curl --request PATCH \
--url https://api.next.orenda.finance/v1/customers/{customerId}/cards/{cardId}/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": 3,
"areas": {
"mcc": {
"card": {
"allow": [],
"block": [
"7995"
]
}
}
}
}
'{
"success": true,
"data": {
"cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f",
"version": 4,
"areas": {
"mcc": {
"enabled": true,
"mode": "ALLOW_ALL_EXCEPT_BLOCKED",
"editable": true,
"card": {
"allow": [],
"block": [
"7995"
]
},
"effective": {
"mode": "ALLOW_ALL_EXCEPT_BLOCKED",
"blocked": [
"5813",
"5921",
"7273",
"7297",
"7995"
]
}
},
"limits": {
"enabled": true,
"mode": "PER_CHANNEL",
"editable": true,
"card": null,
"effective": {
"atm": {
"single": 20000,
"daily": 50000,
"weekly": 0,
"monthly": 0,
"annual": 0,
"count": {
"daily": 0,
"weekly": 0,
"monthly": 0,
"annual": 0
}
},
"pos": {
"single": 100000,
"daily": 250000,
"weekly": 0,
"monthly": 0,
"annual": 0,
"count": {
"daily": 0,
"weekly": 0,
"monthly": 0,
"annual": 0
}
}
}
},
"country": {
"enabled": true,
"mode": "ALLOW_ALL_EXCEPT_BLOCKED",
"editable": true,
"card": null,
"effective": {
"mode": "ALLOW_ALL_EXCEPT_BLOCKED",
"countries": [
"AF",
"BY",
"CU",
"IR",
"KP",
"RU",
"SY"
],
"regions": []
}
}
}
}
}Cards
Update this card's policy
Lets a cardholder tighten their own card: block merchant categories or countries, switch off transaction types, or set spending limits below the program’s. Only on accounts whose cards.limits.mode is custom in capabilities; on a preset account use Update card limit group.
Limit amounts here are minor-unit integers, and 0 means use the program’s value. PATCH /v2/customers/{customerId}/cards/{cardId}/policy takes decimal strings in major units with the card’s currency.
Everything else works as in the card limits walkthrough.
PATCH
/
v1
/
customers
/
{customerId}
/
cards
/
{cardId}
/
policy
curl --request PATCH \
--url https://api.next.orenda.finance/v1/customers/{customerId}/cards/{cardId}/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": 3,
"areas": {
"mcc": {
"card": {
"allow": [],
"block": [
"7995"
]
}
}
}
}
'{
"success": true,
"data": {
"cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f",
"version": 4,
"areas": {
"mcc": {
"enabled": true,
"mode": "ALLOW_ALL_EXCEPT_BLOCKED",
"editable": true,
"card": {
"allow": [],
"block": [
"7995"
]
},
"effective": {
"mode": "ALLOW_ALL_EXCEPT_BLOCKED",
"blocked": [
"5813",
"5921",
"7273",
"7297",
"7995"
]
}
},
"limits": {
"enabled": true,
"mode": "PER_CHANNEL",
"editable": true,
"card": null,
"effective": {
"atm": {
"single": 20000,
"daily": 50000,
"weekly": 0,
"monthly": 0,
"annual": 0,
"count": {
"daily": 0,
"weekly": 0,
"monthly": 0,
"annual": 0
}
},
"pos": {
"single": 100000,
"daily": 250000,
"weekly": 0,
"monthly": 0,
"annual": 0,
"count": {
"daily": 0,
"weekly": 0,
"monthly": 0,
"annual": 0
}
}
}
},
"country": {
"enabled": true,
"mode": "ALLOW_ALL_EXCEPT_BLOCKED",
"editable": true,
"card": null,
"effective": {
"mode": "ALLOW_ALL_EXCEPT_BLOCKED",
"countries": [
"AF",
"BY",
"CU",
"IR",
"KP",
"RU",
"SY"
],
"regions": []
}
}
}
}
}Authorizations
Path Parameters
Body
application/json
Response
The updated policy, in exactly the shape Get this card's policy returns: recomposed against the live template, so the app can re-render from this response without a second call.