Cancel an Order
When the merchant creates an order but later decides it should not be paid, the merchant can cancel the order.
- The Merchant Server needs to send a request to the Zalopay Server to cancel the order.
- An order can only be canceled if it has not been paid successfully.
- Once an order is canceled, it can no longer be paid.
- application/json
- application/x-www-form-urlencoded
Request Body required
- app_id integer required
The unique ID of the application will be provided after the merchant registered successfully with Zalopay.
- app_trans_id string required
The transaction ID that will be canceled.
- mac string required
It is signature of order. It's calculated by following input: hmacinput = appid +
|
+ apptransid +|
+ key1 and use sha256 with app's hmac key as sign key.Please refer to secure data transmission for detailed information.
Request Body required
- app_id integer required
The unique ID of the application will be provided after the merchant registered successfully with Zalopay.
- app_trans_id string required
The transaction ID that will be canceled.
- mac string required
It is signature of order. It's calculated by following input: hmacinput = appid +
|
+ apptransid +|
+ key1 and use sha256 with app's hmac key as sign key.Please refer to secure data transmission for detailed information.
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- return_code integer
Status code of this operation. Please refer to status code for possible values
- return_message string
- sub_return_code integer
The detailed reason explains if the operation has failed. Please refer to sub status code for possible values
- sub_return_message string
{
"return_code": 0,
"return_message": "string",
"sub_return_code": 0,
"sub_return_message": "string"
}