Disable policy
curl --request POST \
--url https://sg.sandbox.api.reap.global/policies/{id}/disable \
--header 'Authorization: Bearer <token>' \
--header 'Reap-Version: <reap-version>'const options = {
method: 'POST',
headers: {'Reap-Version': '<reap-version>', Authorization: 'Bearer <token>'}
};
fetch('https://sg.sandbox.api.reap.global/policies/{id}/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/policies/{id}/disable"
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"id": "<string>",
"scope": {
"type": "PROJECT"
},
"status": "ACTIVE",
"name": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"type": "MERCHANT_RESTRICTION",
"config": {
"match": {
"dimension": "MCC",
"codes": [
"<string>"
]
}
}
}{
"error": {
"code": "POLICY_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Policies
Disable policy
Disables a policy so it stops applying to new transactions. Recorded usage is retained. Disabling an already-disabled policy returns it unchanged.
POST
/
policies
/
{id}
/
disable
Disable policy
curl --request POST \
--url https://sg.sandbox.api.reap.global/policies/{id}/disable \
--header 'Authorization: Bearer <token>' \
--header 'Reap-Version: <reap-version>'const options = {
method: 'POST',
headers: {'Reap-Version': '<reap-version>', Authorization: 'Bearer <token>'}
};
fetch('https://sg.sandbox.api.reap.global/policies/{id}/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/policies/{id}/disable"
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"id": "<string>",
"scope": {
"type": "PROJECT"
},
"status": "ACTIVE",
"name": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"type": "MERCHANT_RESTRICTION",
"config": {
"match": {
"dimension": "MCC",
"codes": [
"<string>"
]
}
}
}{
"error": {
"code": "POLICY_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
Available options:
2025-02-14 Example:
"2025-02-14"
Unique key for safely retrying this request. Up to 255 characters; we recommend a UUIDv4. The first request executes and its response is cached; subsequent requests with the same key replay the cached response (24h retention).
Required string length:
1 - 255Path Parameters
Policy ID
Response
Policy resource
- MerchantRestriction
- ChannelRestriction
- TransactionAmountLimit
- SpendLimit
- AuthorizationCountLimit
Policy ID. A UUID for your policies; a stable identifier for platform policies.
Where the policy attaches.
- Project
- User
- Card
Show child attributes
Show child attributes
Available options:
ACTIVE, DISABLED Example:
"ACTIVE"
Human-readable label.
Required string length:
1 - 128ISO 8601 creation timestamp.
ISO 8601 last-update timestamp.
Allowed value:
"MERCHANT_RESTRICTION"Block transactions whose merchant matches the criteria.
Show child attributes
Show child attributes