v1

latestOpenAPI 3.0.02026-07-247150151.6 KB
Card restrictions

Create card restriction

Create card restriction for a card

post/cards/{card_id}/restrictions

Request body

restriction_type'amount' required

The type of restriction

max_amountstring required

purchase amount limit (decimal format, allows for two decimal places. Maximum amount is 100,000)

Example request

{
  "restriction_type": "amount",
  "max_amount": "100.00"
}

Response

OK

uuidstring uuid required
card_idstring uuid required
restriction_type'amount' required
max_amountstring required
date_createdstring required
date_updatedstring required

Example response

{
  "uuid": "b7492825-adce-4164-b8ba-5676943b6237",
  "card_id": "dab45fde-3450-4fbf-b671-9605756c1c8c",
  "restriction_type": "amount",
  "date_created": "2020-06-29T14:59:38.386930",
  "date_updated": "2020-06-30T14:59:38.386930"
}