Query transaction
This API to is used to Query transaction information.
- 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.
- partner_order_id string required
Merchant transaction ID sent to Zalopay system for disbursement execution (TXID of the disbursement transaction).
- time int64 required
Query request timestamp in milliseconds (Unix timestamp). Current timestamp in milliseconds based on current time.
- mac string required
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 +|+ partner_order_id +|+ 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.
- partner_order_id string required
Merchant transaction ID sent to Zalopay system for disbursement execution (TXID of the disbursement transaction).
- time int64 required
Query request timestamp in milliseconds (Unix timestamp). Current timestamp in milliseconds based on current time.
- mac string required
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 +|+ partner_order_id +|+ 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.
- 1 SUCCESS : Successful transaction.
- 2 FAIL : Failed transaction.
- 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.
- 4 PENDING: Pending transactions, needs to be manually fixed by Zalopay internal teams.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
}
}