English
English
Appearance
English
English
Appearance
API: https://api.pawdo.com/api/integration/orders/cancel.json
Method: PATCH
Request Header
| key | value |
|---|---|
| X-pawdo-access-token | API KEY |
Request Body (JSON - raw)
| key | type | required | note |
|---|---|---|---|
| order_id | uuid | Required | ID of the order to be cancelled |
| lineitem_ids | uuid[] | Optional | Array of line item IDs to be cancelled |
Notes
lineitem_ids is provided: the system will only cancel the specified line items.lineitem_ids is not provided or an empty array [] is sent: the system will cancel the entire order.lineitem_ids must be a valid UUID; empty strings "" are not allowed.Example (Request)
{
"order_id": "425ec1f5-3527-48b0-9acc-4093811a8ced",
"lineitem_ids": [
"c10d3fff-3a6f-488b-90ac-3714a74da0e7"
]
}Example (Successful Response)
{
"message": "cancel order successfully",
"status": true
}Example (Error Response)
{
"message": "invalid request body",
"status": false
}If you encounter any issues related to the order cancellation API, please contact Pawdo support via Facebook for assistance.