Create transaction limit for a card beta

Creates a transaction limit for a given card. A transaction limit defines the maximum amount that can be spent in a single transaction.

SecurityCommonAuth
Request
path Parameters
cardId
required
string <uuid> <= 36 characters

The ID of the card to work with.

Example: e9293471-5eb3-4dbc-916c-dbaf9e2deefd
query Parameters
accountId
required
string

The ID of the account to work with.

Example: accountId=F50091
budgetId
required
string <uuid> <= 36 characters

The ID of the budget to work with.

Example: budgetId=775596ae-2624-40af-a9dc-9756110a4a03
personId
string <uuid> <= 36 characters

The ID of the person to work with.

Example: personId=775596ae-2624-40af-a9dc-9756110a4a04
Request Body schema: application/json

Body

amount
required
number

amount of limit to be set

currencyCode
string
active
boolean

Indicates whether the limit is active on Marqeta.

limitTurnedOff
boolean

Defines if the limit was turned off by the user

limitWindow
required
string

Defines the time period to which the limit apply

Value: "TRANSACTION"
Responses
201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

405

Method Not Allowed

415

Unsupported Media Type

429

Too Many Requests

500

Internal Server Error

post/cards/{cardId}/transaction-limits
Request samples
application/json
{
  • "amount": 100.5,
  • "currencyCode": "GBP",
  • "active": true,
  • "limitTurnedOff": true,
  • "limitWindow": "TRANSACTION"
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "amount": 100.5,
  • "currencyCode": "GBP",
  • "active": true,
  • "limitTurnedOff": true,
  • "limitWindow": "TRANSACTION"
}