In this example, we will review how to decline a deposit offer.
We will decline a deposit offer ID-1718023944.
...offers/ID-1718023944/decline
deposit-api.sandbox.tuumplatform.com/api/v3/offers/{offerId}/decline
Below is an example request body of the API call for declining a deposit offer.
{
"reasonCode": "DOCUMENT_MISSING"
}
curl --location --request PUT 'https://deposit-api.sandbox.tuumplatform.com/api/v3/offers/ID-1718023944/decline' \
--header 'x-channel-code: SYSTEM' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiT2ZmaWNlciBUZXN0IiwiZW1wbG95ZWVJZCI6IklELTEwMDAiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHBpcnlEVGltZSI6IjIwMjQtMDYtMjdUMDk6NDU6NTgiLCJleHAiOjE3MTk0ODE1NTgsInJvbGVzIjpbIkFETUlOIl19.Iek0Ie70FXaTaduvpSat17RcEV8KPp9c9JsL14S1QOU' \
--header 'Content-Type: application/json' \
--data '{
"reasonCode": "DOCUMENT_MISSING"
}'
Below you find an example response body to the API call above.
As a result, a deposit offer ID-1718023943
was declined.