Query order status
Query order status
- application/json
- application/xml
- application/x-www-form-urlencoded
Request Body required
Query order status
- app_id int64 required
The unique ID of the partner will be provided after the partner registered successfully with Zalopay
- partner_order_id string required
The unique id in partner system
- time int64 required
Requests timestamp in ms
- mac string required
It is a signature of the order. It’s calculated by following input: hmacInput = (app_id+ “|” + partner_order_id+ “|” + time) and use sha256 with app’s hmac key.
Please refer to secure data transmission for detailed information.
Request Body required
Query order status
- app_id int64 required
The unique ID of the partner will be provided after the partner registered successfully with Zalopay
- partner_order_id string required
The unique id in partner system
- time int64 required
Requests timestamp in ms
- mac string required
It is a signature of the order. It’s calculated by following input: hmacInput = (app_id+ “|” + partner_order_id+ “|” + time) and use sha256 with app’s hmac key.
Please refer to secure data transmission for detailed information.
Request Body required
Query order status
- app_id int64 required
The unique ID of the partner will be provided after the partner registered successfully with Zalopay
- partner_order_id string required
The unique id in partner system
- time int64 required
Requests timestamp in ms
- mac string required
It is a signature of the order. It’s calculated by following input: hmacInput = (app_id+ “|” + partner_order_id+ “|” + time) and use sha256 with app’s hmac key.
Please refer to secure data transmission for detailed information.
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- return_code integer
1 - SUCCESS
2 - FAIL
- return_message string
Return code description
- sub_return_code integer
-101 - Order not found
-401 - Request param illegal
-402 - Unauthorized
-500 - Zalopay system error
-503 - The system is maintenance
- sub_return_message string
Sub return code description
data object
order_id stringMerchant transaction code
status integer1 – SUCCESS
2 – FAIL
3 – PROCESSING: Has to repeat query order status in a period of time until final status (configured interval and number of query)
4 – PENDING: Pending transactions, needs to be manually fixed by internal teams
m_u_id stringUser's identity
phone stringUser’s phone
amount int64Transaction amount
description stringTransaction description
partner_fee int64Partner fee
zlp_fee int64Zalopay fee
extra_info stringOrder extra info, json string
time int64Transaction timestamp in millisecond
zp_trans_id stringZalopay's transaction code
result_url stringZalopay middle_page url for notify merchant about success disbursement result
{
"return_code": 0,
"return_message": "string",
"sub_return_code": 0,
"sub_return_message": "string",
"data": {
"order_id": "string",
"status": 0,
"m_u_id": "string",
"phone": "string",
"amount": 0,
"description": "string",
"partner_fee": 0,
"zlp_fee": 0,
"extra_info": "string",
"time": 0,
"zp_trans_id": "string",
"result_url": "string"
}
}