Cashout Creation Endpoint
Learn how to generate cashouts request by using our Cashout API v3 directly from your website
Last updated
Was this helpful?
Learn how to generate cashouts request by using our Cashout API v3 directly from your website
Last updated
Was this helpful?
login
string (max length: 32)
Your D24 CASHOUTS API Key, found on the Merchant Panel by going to: Settings -> API Access. Notice there are specific Cashout credentials
pass
string (max length: 32)
Your D24 CASHOUTS API Passphrase, found on the Merchant Panel by going to: Settings -> API Access. Notice there are specific Cashout credentials
external_id
string (max length: 100)
Unique cashout ID on the merchant end
country
string (length: 2)
Country code for the cashout in ISO 3166-1 alpha-2 code format
amount
Big Decimal (up to 2 decimals)
Cashout amount on the currency specified
Valid number
document_id
string (max length: 40)
Beneficiaryโs personal identification number
document_type
string (maxLength: 15)
Beneficiaryโs personal identification number type
beneficiary_name
string (max length: 100)
Beneficiary's name
String of up to 100 characters
beneficiary_lastname
string (max length: 100)
Beneficiary's last name
String of up to 100 characters
address
string (max length: 255)
Beneficiary's address
String of up to 200 characters
city
string (max length: 100)
Beneficiary's city
String of up to 100 characters
beneficiary_birthdate
string (pattern: 'YYYYMMDD')
Beneficiary's birthdate
notification_url
string (max length: 300)
To be provided if the notification URL is different from the notification URL defined on the Merchant Panel
Valid URL over HTTPS
comments
string (max length: 200)
A commentary for this cashout
String of up to 200 characters
on_hold
boolean
If the merchant wants to hold the cashout and set it to process later through the merchants panel. Default: false
[true, false]
message
String
Description of the error
reason
String
Reason description for KYC check failure. See the list of reasons. *Only shown in case of code 504
reason_code
Number
Reason code for KYC check failure. See the list of reason codes. *Only shown in case of code 504
Each country has different requirements and therefore we ask for different fields you need to send on the requests.
Go to the Countries Validations page to check each country requirements and validations.
In Mexico, we accept cashouts sent directly to debit cards.
When that happens, you need to send the request through a different endpoint, otherwise your request will be declined with Invalid bank account, it shouldn't be a credit card
.
PROD endpoint for Debit Cards: Email integration@d24.com with your cashout API Key
STG endpoint for Debit Cards: https://cc-api-stg.directa24.com/v3/cashout
The bank accounts in Mexico are in CLABE format (numeric) and have 18 digits (without dashes). Therefore one way to detect that a bank account specified by the customer is a debit card is by checking with the luhn algorithm if it is a valid card number and/or with a regex for each brand, like the example below.
If true, send the request through the cc-api
endpoint, if false send it through the normal endpoint. The integration and requirements remains exactly the same, only changing the error message returned in case of invalid bank account and that we validate the bank_account
sent to be a valid credit card number using the Luhn Algorithm.
Sending a debit card number through the non-cc endpoint will make the request to fail with the following error:
Invalid bank_account error on the cc-api endpoint:
This endpoint allows generating cash withdrawal requests (cashout)
/cashout
Request content type
Control signature to verify the authenticity of the request
HmacSHA256-encoded signature
Your access key for the D24 CASHOUTS API
Your password key for the D24 CASHOUTS API
Unique cashout ID on the merchant side
Country of the cashout
Cashout amount
Currency in which the amount is specified
Beneficiary's document ID
Specified identity document type
Beneficiary ID (for anonymous)
Beneficiary's name
Beneficiary's last name
Beneficiary's email address
Beneficiary's phone number
Beneficiary's bank code
Beneficiary's bank account
Bank branch of the beneficiary's account
Beneficiary's account type
Beneficiary's address
Beneficiary's city
Beneficiary's postal code
Beneficiary's date of birth
URL where notifications will be sent
Comments about the cashout
Marks a cashout as on hold and does not process it until manually changed to pending
Response format type