Linkable
POD Order

Cancel POD order

POST
/v1/orders/pod/{order_id}/cancel

Hủy đơn đang ở trạng thái PENDING hoặc FAILED.

Authorization

ClientToken
AuthorizationBearer <token>

Bearer token issued by Infinitee. Pass in the Authorization: Bearer <token> header.

In: header

Path Parameters

order_id*string
Formatuuid

Response Body

application/json

curl -X POST "https://example.com/v1/orders/pod/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel"
{  "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",  "reference_id": "string",  "status": "PENDING",  "duplicate": true,  "queue_position": 0,  "pricing": {    "subtotal": 0,    "shipping_total": 0,    "discount_amount": 0,    "grand_total": 0  },  "created_at": "2019-08-24T14:15:22Z"}