Skip to content

Cancel order (full order or by individual line items)

API: https://api.pawdo.com/api/integration/orders/cancel.json

Method: PATCH

Request Header

keyvalue
X-pawdo-access-tokenAPI KEY

Request Body (JSON - raw)

keytyperequirednote
order_iduuidRequiredID of the order to be cancelled
lineitem_idsuuid[]OptionalArray of line item IDs to be cancelled

Notes

  • If lineitem_ids is provided: the system will only cancel the specified line items.
  • If lineitem_ids is not provided or an empty array [] is sent: the system will cancel the entire order.
  • Every element in lineitem_ids must be a valid UUID; empty strings "" are not allowed.

Example (Request)

json
{
  "order_id": "425ec1f5-3527-48b0-9acc-4093811a8ced",
  "lineitem_ids": [
    "c10d3fff-3a6f-488b-90ac-3714a74da0e7"
  ]
}

Example (Successful Response)

json
{
  "message": "cancel order successfully",
  "status": true
}

Example (Error Response)

json
{
  "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.