Skip to main content
PUT
Set Account Daily Spending Limit

Body

application/json
amount
integer<int64>
required

Daily limit in the currency's smallest unit (minor units). Must be in (0, 1,000,000].

Required range: 1 <= x <= 1000000
currency
string
required

ISO-4217 currency code. Must match the account's native currency.

Response

The request has succeeded.

amount
integer<int64>
required

Daily limit in the currency's smallest unit (minor units). Divide by 10^decimals to get the major-unit value.

currency
string
required

ISO-4217 currency code — the account's native currency.

decimals
integer<int32>
required

Number of decimal places for this currency.

syncStatus
enum<string>
required

Replication state of the limit. 'pending' immediately after an update, 'synced' once the change has been applied, 'failed' if the change could not be applied after retries.

Available options:
pending,
synced,
failed
updatedAt
string<date-time>
required

Last time this limit was modified.

spentToday
integer<int64>
required

Amount spent today against this limit, in the currency's smallest unit (minor units). Resets at the start of each calendar day.

remaining
integer<int64>
required

Remaining headroom today, in the currency's smallest unit. Equals max(0, amount - spentToday).