Cashout Cancellation Endpoint
Learn how to use the Cashout Cancellation Endpoint to cancel cashouts when needed
Last updated
Learn how to use the Cashout Cancellation Endpoint to cancel cashouts when needed
Last updated
DELETE
https://api-stg.onekeypayments.com/v3/cashout/cancel
This API allows you to cancel a cashout request. Only for cashouts in PENDING state.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
The Cancel Cashout Request endpoint is only to cancel a cashout while it is still in PENDING state (it hasn't been sent for processing).
To do that, you will need to provide both the cashout ID on our end and the external ID you sent while creating the cashout.
The method to use this endpoint has to be DELETE.
The Payload-Signature of the Cashout Status Endpoint is calculated by hashing the JSON payload of the request using HMAC256 and your secret key (API Signature) to encrypt it.
Click here for further instructions.
Response fields
Field | Format | Description |
---|---|---|
Content-Type*
string
application/json
Payload-Signature*
string
Control Signature
login*
string
Your D24 CASHOUTS API login key
pass*
string
Your D24 CASHOUTS API pass key
cashout_id*
number
The ID of the cashout to cancel. It is the one generated by D24 when the cashout was created
external_id*
string
The external ID of the cashout to cancel. It is the one you sent when generating the cashout
login
String. Length 32 max
Your OKP CASHOUTS API Key, it can be found on the Merchant Panel: Settings -> API Access. Notice there are specific Cashout credentials
pass
String. Length 32 max
Your OKP CASHOUTS API Passphrase, it can be found on the Merchant Panel: Settings -> API Access. Notice there are specific Cashout credentials
cashout_id
Number
Identifier of the cashout in the OKP end. Returned by the Create Cashout Endpoint
external_id
String
The external ID of the cashout to cancel. It is the one you sent when generating the cashout
Field
Format
Type
Description
cashout_status
Number
Success
If shown, it is the new status code of the cashout.
cashout_status_description
String
Success
If shown, it described the new status of the cashout.
code
Number
Error
Error code
message
String
Error
Error description