Create a Payout
This API enables outbound payments in mutilple currency using supported payout methods. Steps to create a payout:
- Step 1: Call the Get payout methods to retrieve the list of supported methods.
- Step 2: Call the Get payout required fields to get specific required fields for each method.
- Step 3: Initialize a payout with the required fields.
You only need to do steps 1 and 2 once. After that, you can use the same method and required fields to create a payout payment.
There are 4 statuses of the payment:
created: Payout payment created.processing: Payout has been processedscheduled: Waiting for fund to be charged to the payee.completed: Payout payment has been completed for the entire batch, not for individual transactions.
Please note: If you use one of the following payout methods, please check the list of supported providers before proceeding:
vn_bank_vnd: View supportedph_bank_php: View supportedng_bank_ngn: View supportedsa_bank_zar: View supportedke_bank_kes: View supportedke_mobile_money_kes: View supportedgh_mobile_money_ghs: View supportedcm_mobile_money_xaf: View supportedci_mobile_money_xof: View supportedmy_bank_myr: View supportedmy_ewallet_*_myr(touchngo,finexus,boost,bigpay,shopeepay,gxbank,merchantrade): View supportedbr_bank_brl: View supportedth_bank_thb: View supportedbw_bank_bwp: View supportedph_qrph_php: View supportedmwk_mobile_money_network: View supported
For vn_bank_vnd, we also provide an API to get branch codes when required.
For kr_bank_krw, we also provide an Required Field API to obtain the list of banks that are currently supported.
Please note that if any of the transactions fail, it will not affect the completion of the entire batch.
Authorizations
A unique identifier assigned to each application.
A secure token associated with the app-id.
Body
Payout transaction details
Currency for payout
"PHP"
Payout method name
"ph_ewallet_gcash_php"
Description of payout payment
5"Payout payment 2023"
Payout transaction to payee in this time. This datetime would be in UTC timezone.
"2023-04-01T00:00:00"
Custom ID
"123"
Callbacks
POST{$request.body#/webhook_notification/endpoint_url}myEvent
Body
Unique id in system.
"OHXTEF9M"
Currency payout
"PHP"
"ph_ewallet_gcash_php"
Total amount of list payout transactions
"1000"
Status of payout payment
created, processing, scheduled, completed, expired "completed"
Merchant Callback Details
Description of payout payment.
1 - 90"Payout payment 2023"
Payout transaction to payee in this time. This datetime would be in UTC timezone.
"2023-04-01T00:00:00.000+0000"
Payout transaction details
Error code for the batch. We have 2 error codes HC_PAYOUT1 (Insufficient funds to payout. Please topup balance in dashboard) and HC_PAYOUT2 (Insufficient Balance. Hello Clever will charge your PayTo agreement to pay out).
HC_PAYOUT1, HC_PAYOUT2 "HC_PAYOUT1"
A description corresponds to the value of the statusCode field.
Insufficient available funds. Top up your balance., Insufficient Balance. Hello Clever will charge your PayTo agreement to pay out. "Insufficient available funds. Top up your balance."
Custom ID
"123"
Response
The merchant's server should returns this code
Response
OK
Unique id in system.
"OHXTEF9M"
Currency payout
"PHP"
"ph_ewallet_gcash_php"
Total amount of list payout transactions
"1000"
Status of payout payment
created, processing, scheduled, completed, expired "completed"
Merchant Callback Details
Description of payout payment.
1 - 90"Payout payment 2023"
Payout transaction to payee in this time. This datetime would be in UTC timezone.
"2023-04-01T00:00:00.000+0000"
Payout transaction details
Error code for the batch. We have 2 error codes HC_PAYOUT1 (Insufficient funds to payout. Please topup balance in dashboard) and HC_PAYOUT2 (Insufficient Balance. Hello Clever will charge your PayTo agreement to pay out).
HC_PAYOUT1, HC_PAYOUT2 "HC_PAYOUT1"
A description corresponds to the value of the statusCode field.
Insufficient available funds. Top up your balance., Insufficient Balance. Hello Clever will charge your PayTo agreement to pay out. "Insufficient available funds. Top up your balance."
Custom ID
"123"