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
}