API Documentation
API documentation:
1. Authenticate with the vendor-token request header; please contact your business manager.
2. Use the API domain; please contact your business manager.
POST cancel - Cancel Order
URL: /api/order/cancel · Description: Cancel the order and refund the balance.
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
order_id |
Yes | int | Order ID (only the current vendor's own orders can be operated) |
Cancel rules:
① A completed order cannot be canceled;
① an already canceled order cannot be canceled again.
Request Example
POST /api/order/cancel
Header: vendor-token: xxxxx
Content-Type: application/json
{
"order_id": 1024
}
Response Example
{
"success": true,
"message": "Order canceled successfully!",
"msg": "Order canceled successfully!",
"code": 200,
"data": [] // data is an empty array on success
}