Reject card renewal
Here, you will learn how to reject card renewals in Tuum.
Use case
In this example, we will demonstrate how to reject a card renewal using the cardRenewalId parameter.
Use case data
API parameters with values
We will reject card renewal C001664282475.
...card-renewals/C001664282475/rejectThe approval will be made using the MANUAL_REVIEW_DECLINED decision code.
{
"decisionCode": "MANUAL_REVIEW_DECLINED"
}Sample API call
To reject a card renewal, use the following endpoint:
https://card-api.sandbox.tuumplatform.com/api/v1/card-renewals/{cardRenewalId}/reject
Sample request
Below is a sample API request to reject a card renewal.
{
"decisionCode": "MANUAL_REVIEW_DECLINED"
}curl -L 'https://card-api.sandbox.tuumplatform.com/api/v1/card-renewals/C001664282475/reject' \
-H 'accept: */*' \
-H 'x-tenant-code: MB' \
-H 'Accept-Language: en' \
-H 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoidGVzdCBrYXN1dGFqYSIsImVtcGxveWVlSWQiOiJJRC0xMTAwIiwidGVuYW50Q29kZSI6Ik1CIiwiZXhwaXJ5RFRpbWUiOiIyMDI1LTA5LTA0VDA5OjI1OjU2IiwiZXhwIjoxNzU2OTc3OTU2LCJyb2xlcyI6WyJBRE1JTiIsIlNZU1RFTSJdfQ.TmWWf_dOXyocPkn-y3qHwMlUfI9xzv4LYegxnjBze28' \
-H 'Content-Type: application/json' \
-d '{
"decisionCode": "MANUAL_REVIEW_DECLINED"
}'Sample response
Below you will find the response to the API request:
Result
The card renewal request has been rejected.
Last updated
Was this helpful?