curl --request GET \
--url https://sg.sandbox.api.reap.global/policies/effective \
--header 'Authorization: Bearer <token>' \
--header 'Reap-Version: <reap-version>'const options = {
method: 'GET',
headers: {'Reap-Version': '<reap-version>', Authorization: 'Bearer <token>'}
};
fetch('https://sg.sandbox.api.reap.global/policies/effective', 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/effective"
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"policy": {
"id": "<string>",
"scope": {
"type": "PROJECT"
},
"status": "ACTIVE",
"name": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"type": "MERCHANT_RESTRICTION",
"config": {
"match": {
"dimension": "MCC",
"codes": [
"<string>"
]
}
}
},
"usage": {
"limit": 123,
"used": 123,
"remaining": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}
}
]
}{
"error": {
"code": "POLICY_SCOPE_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}List effective policies
Returns the policies in force for a card, cardholder, or your program, resolved up the attachment chain (a card inherits its cardholder and program policies). Limits that track a running total over a window include their current usage and remaining headroom, so you can show how much is left. Only active policies are included.
curl --request GET \
--url https://sg.sandbox.api.reap.global/policies/effective \
--header 'Authorization: Bearer <token>' \
--header 'Reap-Version: <reap-version>'const options = {
method: 'GET',
headers: {'Reap-Version': '<reap-version>', Authorization: 'Bearer <token>'}
};
fetch('https://sg.sandbox.api.reap.global/policies/effective', 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/effective"
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"policy": {
"id": "<string>",
"scope": {
"type": "PROJECT"
},
"status": "ACTIVE",
"name": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"type": "MERCHANT_RESTRICTION",
"config": {
"match": {
"dimension": "MCC",
"codes": [
"<string>"
]
}
}
},
"usage": {
"limit": 123,
"used": 123,
"remaining": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}
}
]
}{
"error": {
"code": "POLICY_SCOPE_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
2025-02-14 "2025-02-14"
Query Parameters
The scope level to resolve policies for.
PROJECT, USER, CARD "PROJECT"
The entity to resolve policies for. Required for entity-level scopes; omit for program-level scopes that carry no id.
Response
The policies in force for the scope, with current usage for each limit that tracks a running total over a window.
Policies in force for the scope, ordered most-specific first (card, then user, then project).
Show child attributes
Show child attributes