Update spending limit for a card beta

Updates the spending limit for a given card.

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

The ID of the card to work with.

Example: e9293471-5eb3-4dbc-916c-dbaf9e2deefd
limitId
required
string <uuid> <= 36 characters

The ID of the limit to work with.

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

Any of:
amount
required
number

amount of limit to be set

active
boolean

Indicates whether the limit is active on Marqeta.

usageLimit
integer >= -1
Default: -1

Number of transactions allowed in a given time window. -1 means the limit is disabled. 0 means no transactions can be made.

limitTurnedOff
boolean

Defines if the limit was turned off by the user

limitWindow
string

Defines the time period to which the limit apply

Enum: "DAY" "WEEK" "MONTH" "LIFETIME"
Responses
200

OK

put/cards/{cardId}/spending-limits/{limitId}
Request samples
application/json
{
  • "amount": 100.5,
  • "active": true,
  • "usageLimit": 15,
  • "limitTurnedOff": true,
  • "limitWindow": "DAY"
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "amount": 100.5,
  • "currencyCode": "GBP",
  • "active": true,
  • "usageLimit": 15,
  • "limitTurnedOff": true,
  • "limitWindow": "DAY",
  • "available": {
    }
}