Skip to main content
PATCH
/
api
/
v1
/
cards
/
limit
Update card limit
curl --request PATCH \
  --url https://staging.qash.ai/api/v1/cards/limit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "amount": 500,
  "frequency": "per24HourPeriod"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "limit": {
    "amount": 500,
    "frequency": "per24HourPeriod"
  }
}
This endpoint requires Authorization: Bearer <token>.
x-idempotency-key is required. Use a unique UUID for each limit update.
Supported frequencies are per24HourPeriod, perWeek, perMonth, and allTime.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-idempotency-key
string<uuid>
required

Unique idempotency key for the operation. Use a UUID to prevent duplicate processing.

Body

application/json

New spending limit settings.

amount
number
required
Required range: x >= 0
frequency
enum<string>
required
Available options:
per24HourPeriod,
perWeek,
perMonth,
allTime

Response

Card limit updated successfully.

id
string<uuid>
required
limit
object
required