Transfer fund
This API to is used to Execute top-up transaction.
- application/json
- application/x-www-form-urlencoded
Request Body required
- app_id int64 required
This is a Zalopay-provided identifier specific to the merchant's service or application, established during the integration agreement for payment methods.
- payment_id string required
Payment code provided by Zalopay for Merchant disbursement execution.
- partner_order_id string required
Merchant transaction ID sent to Zalopay system for disbursement execution (TXID of the disbursement transaction). Merchant uses this value to query transaction status and perform reconciliation.
- disbursement_type string required
Disbursement type:
WALLETorBANK. - receiver_info string required
Encrypted beneficiary account details. Use RSA public key for encryption.
- amount int64 required
Transaction disbursement amount.
- description string required
Disbursement transaction description.
- partner_embed_data string required
Specific Merchant details for disbursement execution, formatted as a JSON string.
- Default:"{}".
- Use Merchant wallet:“{\“merchant_wallet_id\”:\ “35AA123456\”}". The value"35AA123456"is for example purposes only. - mc_reference_id string
Merchant's custom information required for disbursement reconciliation based on the disbursement transaction ID (partner_order_id).
Example: Disbursement transaction ID on the Merchant's system, User ID, etc. - extra_info string required
Custom transaction data.
If not applicable, set the value to"{}". - time int64 required
Disbursement request timestamp in milliseconds (Unix timestamp). Current timestamp in milliseconds based on current time.
- sig string
Authentication information: mac = HMAC(hmac_algorihtm, mac key, hmacinput), see as below:
- hmac_algorihtm: is a security method registered by Merchant with Zalopay, the default is HmacSHA256.
- mac key: provided by Zalopay at registration.
- hmac_input = app_id +|+ payment_id +|+ partner_order_id +|+ disbursement_type +|+ receiver_info (after encrypt) +|+ amount +|+ description +|+ partner_embed_data +|+ extra_info +|time.Please refer to secure data transmission for detailed information.
Request Body required
- app_id int64 required
This is a Zalopay-provided identifier specific to the merchant's service or application, established during the integration agreement for payment methods.
- payment_id string required
Payment code provided by Zalopay for Merchant disbursement execution.
- partner_order_id string required
Merchant transaction ID sent to Zalopay system for disbursement execution (TXID of the disbursement transaction). Merchant uses this value to query transaction status and perform reconciliation.
- disbursement_type string required
Disbursement type:
WALLETorBANK. - receiver_info string required
Encrypted beneficiary account details. Use RSA public key for encryption.
- amount int64 required
Transaction disbursement amount.
- description string required
Disbursement transaction description.
- partner_embed_data string required
Specific Merchant details for disbursement execution, formatted as a JSON string.
- Default:"{}".
- Use Merchant wallet:“{\“merchant_wallet_id\”:\ “35AA123456\”}". The value"35AA123456"is for example purposes only. - mc_reference_id string
Merchant's custom information required for disbursement reconciliation based on the disbursement transaction ID (partner_order_id).
Example: Disbursement transaction ID on the Merchant's system, User ID, etc. - extra_info string required
Custom transaction data.
If not applicable, set the value to"{}". - time int64 required
Disbursement request timestamp in milliseconds (Unix timestamp). Current timestamp in milliseconds based on current time.
- sig string
Authentication information: mac = HMAC(hmac_algorihtm, mac key, hmacinput), see as below:
- hmac_algorihtm: is a security method registered by Merchant with Zalopay, the default is HmacSHA256.
- mac key: provided by Zalopay at registration.
- hmac_input = app_id +|+ payment_id +|+ partner_order_id +|+ disbursement_type +|+ receiver_info (after encrypt) +|+ amount +|+ description +|+ partner_embed_data +|+ extra_info +|time.Please refer to secure data transmission for detailed information.
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- return_code integer
Status code.
Please refer to status code for detailed information. - return_message string
Description status code.
- sub_return_code integer
Status code detail.
Please refer to sub status code for detailed information. - sub_return_message string
Description status code detail.
data object
order_id stringZalopay disbursement transaction ID.
disbursement_type stringDisbursement type:
WALLETorBANKm_u_id stringUser's identity in Zalopay.
Note: only respond when verify by disbursement_type ="WALLET".phone stringMasked user's phone number Example: masked_user_phone: "****6938".
Note: only respond when transfer by disbursement_type ="WALLET".bank_code stringBeneficiary bank code.
Note: only respond when transfer by disbursement_type ="BANK".account_no stringBeneficiary account number.
Note: only respond when transfer by disbursement_type ="BANK"and using account.account_holder_name stringBeneficiary account holder name.
Note: only respond when transfer by disbursement_type ="BANK"and using account.card_no stringBeneficiary card number.
Note: only respond when transfer by disbursement_type ="BANK"and using card.card_holder_name stringBeneficiary card holder name.
Note: only respond when transfer by disbursement_type ="BANK"and using card.status integerDisbursement execution status.
- 3 PROCESSING: The transaction is in progress. The merchant must retry calling the Query Transaction API (/v2/disbursement/query-txn) periodically until reaching a final state.amount int64Transaction disbursement amount.
partner_fee int64Partner fee
zlp_fee int64Zalopay fee.
server_time int64The initiation time of the transfer processing.
{
"return_code": 0,
"return_message": "string",
"sub_return_code": 0,
"sub_return_message": "string",
"data": {
"order_id": "string",
"disbursement_type": "string",
"m_u_id": "string",
"phone": "string",
"bank_code": "string",
"account_no": "string",
"account_holder_name": "string",
"card_no": "string",
"card_holder_name": "string",
"status": 0,
"amount": 0,
"partner_fee": 0,
"zlp_fee": 0,
"server_time": 0
}
}