Update fee value
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": {}
}
}Fees
Update fee value
Replaces the value of an account-level override 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.
PUT
/
fees
/
{id}
Update fee value
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": {}
}
}Required scope: FEES_WRITE
Headers
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Replace the fee value. The value unit must match the fee type.
Response
A cardholder fee row.