Cancel a cashout
This API allows you to cancel a cashout request. Only for cashouts in PENDING state.
Header parameters
Content-TypestringRequiredDefault:
Media type of the request.
application/json
Payload-SignaturestringRequiredExample:
Control Signature. Calculated by hashing the JSON payload of the request using HMAC256 and your secret key (API Signature) to encrypt it.
2e5023770760ea0a02230bff1a6dab934fe3b47a5e3d43854b58676600ee3868
Body
loginstring · max: 32RequiredExample:
Your D24 CASHOUTS API login key.
cashout_login
passstring · max: 32RequiredExample:
Your D24 CASHOUTS API pass key.
cashout_pass
cashout_idinteger · int64RequiredExample:
The ID of the cashout to cancel. It is the one generated by D24 when the cashout was created.
11954
external_idstringRequiredExample:
The external ID of the cashout to cancel. It is the one you sent when generating the cashout.
cashoutID2134
Responses
200
Cashout cancelled successfully
application/json
412
Error while cancelling the cashout. It can be cancelled only if its status is Pending. (Also used for "Cashout not found" or other "Invalid status transition" errors as per PDF examples)
application/json
delete
DELETE /v3/cashout/cancel HTTP/1.1
Host: api-stg.directa24.com
Content-Type: application/json
Payload-Signature: text
Accept: */*
Content-Length: 96
{
"login": "cashout_login",
"pass": "cashout_pass",
"cashout_id": 11954,
"external_id": "cashoutID2134"
}
{
"cashout_status": 2,
"cashout_status_description": "Canceled"
}
Last updated
Was this helpful?