latestOpenAPI 3.0.12026-08-104068226.2 KB
a772504dcc9e
Card spending controls
Create card spending limit control
Creates a card spending limit control and applies it to all cards defined in the scope and scope_id of the request.<br> Note: A newer version of this endpoint is available. To use the updated version, please refer to the (V2) endpoint and provide the required Api-Version header.
post/v1/card_controls/spending_limits
Request body
Example request
{
"scope_id": "54e06604b0cf825810bec508cc1f2dc7mcrd",
"idempotency_key": "504f6816-f7b5-4965-bc35-69acadc9f5c7",
"limit": {
"dimension": [
"5411"
],
"amount": 10000
}
}Response
The card spending limit control was successfully created.
Example response
{
"id": "7a911b90-0109-11ec-9a03-0242ac130003",
"scope_id": "54e06604b0cf825810bec508cc1f2dc7mcrd",
"idempotency_key": "504f6816-f7b5-4965-bc35-69acadc9f5c7",
"limit": {
"dimension": [
"5411"
],
"amount": 10000
}
}