Control which card transactions are permitted by creating rules based on merchant category code (MCC) or transaction currency.
An authorisation rule dictates whether transactions should be declined or approved based on a pre-determined set of rules. A transaction can only pass if it satisfies all the applied rules.
Creating a rule has no practical implication until it is applied. Applying a rule results in the authorisation rule being evaluated against every incoming card authorisation request.
Rules are scoped at the application level. Use a client credentials token to call these endpoints.
Creates an authorisation rule. It won't be enabled unless it is applied.
An ALLOW rule permits only the transactions that match the specified criteria and blocks all others. For instance, a rule allowing SGD transactions will block all transactions that are not in SGD.
Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more.
- Production Environmenthttps://api.wise.com/v3/spend/applications/{clientId}/spend-controls/rules
- Sandbox Environmenthttps://api.wise-sandbox.com/v3/spend/applications/{clientId}/spend-controls/rules
curl -i -X POST \
'https://api.wise.com/v3/spend/applications/{clientId}/spend-controls/rules' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-External-Correlation-Id: f47ac10b-58cc-4372-a567-0e02b2c3d479' \
-d '{
"description": "Blocking all transactions from MCC 1234 and 5678",
"type": "MCC",
"operation": "BLOCK",
"values": [
"1234",
"5678"
]
}'The created rule.
Echoed back when X-External-Correlation-Id was included in the request. Learn more.
Determines whether the transactions should be allowed or blocked.
{ "id": 123, "description": "my authorisation rule", "type": "MCC", "operation": "BLOCK", "values": [ "1234", "5678" ] }