curl --request PUT \
--url https://sg.sandbox.api.reap.global/fees/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"value": {
"unit": "BPS",
"bps": 51
}
}
'const options = {
method: 'PUT',
headers: {
'Reap-Version': '<reap-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({value: {unit: 'BPS', bps: 51}})
};
fetch('https://sg.sandbox.api.reap.global/fees/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/fees/{id}"
payload = { "value": {
"unit": "BPS",
"bps": 51
} }
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FX_MARKUP",
"value": {
"unit": "BPS",
"bps": 51
},
"scope": {
"type": "PROJECT"
},
"version": 0,
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": {
"code": "INVALID_FEE_VALUE",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "PROJECT_FEE_NOT_EDITABLE_VIA_API",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "FEE_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Update fee value
Replaces the value of a fee row and bumps its version. Transactions authorized from then on are priced with the new value; settled transactions keep the version that priced them. Project defaults can only be updated from the dashboard.
curl --request PUT \
--url https://sg.sandbox.api.reap.global/fees/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"value": {
"unit": "BPS",
"bps": 51
}
}
'const options = {
method: 'PUT',
headers: {
'Reap-Version': '<reap-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({value: {unit: 'BPS', bps: 51}})
};
fetch('https://sg.sandbox.api.reap.global/fees/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/fees/{id}"
payload = { "value": {
"unit": "BPS",
"bps": 51
} }
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FX_MARKUP",
"value": {
"unit": "BPS",
"bps": 51
},
"scope": {
"type": "PROJECT"
},
"version": 0,
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": {
"code": "INVALID_FEE_VALUE",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "PROJECT_FEE_NOT_EDITABLE_VIA_API",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "FEE_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
2025-02-14 "2025-02-14"
Path Parameters
Fee ID
Body
Replace the fee value. The value unit must match the fee type.
The fee value. unit must match the fee type: BPS for a rate-based type, AMOUNT for a fixed one.
- FeeBpsValueInput
- FeeAmountValueInput
Show child attributes
Show child attributes
Response
A cardholder fee row.
Fee ID.
Which cardholder fee this row sets.
FX_MARKUP, ATM_DOMESTIC_VARIABLE, ATM_DOMESTIC_FIXED, ATM_CROSS_BORDER_VARIABLE, ATM_CROSS_BORDER_FIXED "FX_MARKUP"
The fee value, denominated as unit says.
- FeeBpsValue
- FeeAmountValue
Show child attributes
Show child attributes
Where the fee attaches. PROJECT rows are the default rate card for your program; an ACCOUNT row overrides one fee type for one account.
- Project
- Account
Show child attributes
Show child attributes
Incremented on every change. Transaction events record the version that priced them.
-9007199254740991 <= x <= 9007199254740991ISO 8601 creation timestamp.
ISO 8601 last-update timestamp.