English
English
Appearance
English
English
Appearance
For customer service: hold an order while the buyer decides, then release it or cancel it. These three routes work on orders of every source of the store, like the Hold / Resume / Cancel buttons of the seller app, and answer in one shape: data = {order_id, order_number, order_code, result, hold, cancel_kind, refund_amount, items, cs_hold}.
cs_hold GET /orders/query.json and every answer of these routes carry cs_hold:
{
"stage": "on_hold",
"production_started": false,
"can_hold": true,
"can_cancel": true,
"cancel_kind": "cancel",
"hold": {
"id": "27932d01-3f3d-4324-ad61-8c7ccfcba7a0",
"reason": "design",
"reason_label": "Chờ khách xác nhận thiết kế / ảnh",
"note": "Buyer is sending a new photo",
"source": "cs-hub",
"requested_by": "[email protected]",
"reference": "CS-1234",
"until": "2026-11-20T00:00:00Z",
"held_at": "2026-11-10T11:55:35.883986Z",
"released_at": null
}
}| Key | |
|---|---|
stage | pre_production (not charged), on_hold, error, fulfilling (charged, not in production), in_production, shipped, cancelled, external, unknown |
can_hold | You can hold it now (it is not charged yet). |
production_started | Items are being or were produced. |
can_cancel, cancel_kind | Whether cancel-ship works now, and what it would do: cancel (nothing produced), cancel-produce (production stopped), cancel-ship (made, will not ship). |
hold | Your open hold, or null. |
Suggested flow: can_hold → offer Hold; else can_cancel → offer Cancel (cancel_kind says what is lost); else the order is shipped and nothing can be done in Pawdo.
POST {base_url}/api/integration/orders/hold.json
| Field | ||
|---|---|---|
order_id or order_number | one required | order_number is tried as sent, then with / without a leading #. |
reason | required | design, variant, cancel, address, other, check, customer, agency, leader |
note | ≤ 2000 | |
requested_by | ≤ 255 | Who asked (free text). |
reference | ≤ 64 | Your ticket id. |
until | RFC 3339 | When you expect to release it. Informative: Pawdo never releases by itself. |
source | ≤ 32 | Label of your system; default cs-hub. |
curl -X POST "{base_url}/api/integration/orders/hold.json" \
-H "X-pawdo-access-token: $PAWDO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"order_number": "DOCS-185527-H", "reason": "design", "note": "Buyer is sending a new photo", "requested_by": "[email protected]", "reference": "CS-1234", "until": "2026-11-20T00:00:00Z"}'{
"data": {
"order_id": "5cd24b56-a3f5-4d71-8105-61c5188cd24e",
"order_number": "DOCS-185527-H",
"order_code": "PD290-9320",
"result": "held",
"hold": {
"id": "27932d01-3f3d-4324-ad61-8c7ccfcba7a0",
"reason": "design",
"reason_label": "Chờ khách xác nhận thiết kế / ảnh",
"note": "Buyer is sending a new photo",
"source": "cs-hub",
"requested_by": "[email protected]",
"reference": "CS-1234",
"until": "2026-11-20T00:00:00Z",
"held_at": "2026-11-10T11:55:35.883986163Z",
"released_at": null
},
"cs_hold": {
"stage": "on_hold",
"production_started": false,
"can_hold": true,
"can_cancel": true,
"cancel_kind": "cancel",
"hold": {
"id": "27932d01-3f3d-4324-ad61-8c7ccfcba7a0",
"reason": "design",
"reason_label": "Chờ khách xác nhận thiết kế / ảnh",
"note": "Buyer is sending a new photo",
"source": "cs-hub",
"requested_by": "[email protected]",
"reference": "CS-1234",
"until": "2026-11-20T00:00:00Z",
"held_at": "2026-11-10T11:55:35.883986Z",
"released_at": null
}
}
},
"message": "order on hold",
"status": true
}Holding a held order answers result: already_held and keeps the first reason. An order already charged cannot be held — the 409 carries cs_hold, and the way out is cancel-ship:
{
"data": {
"order_id": "6321be4b-5079-4dbb-9d56-52a997129efc",
"order_number": "#1002",
"order_code": "PD290-9249",
"hold": null,
"cs_hold": {
"stage": "in_production",
"production_started": true,
"can_hold": false,
"can_cancel": true,
"cancel_kind": "cancel-produce",
"hold": null
}
},
"error_code": "ALREADY_IN_PRODUCTION",
"message": "the order is in production; it can no longer be held, only cancelled (cancel-ship)",
"status": false
}
POST {base_url}/api/integration/orders/release.json
| Field | ||
|---|---|---|
order_id or order_number | one required | |
outcome | required | continue, changed or cancel |
note, requested_by |
outcome | Pawdo does | result |
|---|---|---|
continue / changed | Resumes the order and validates it again; it is charged on schedule. | resumed |
continue / changed, someone in Pawdo also holds it | Closes your hold; the order stays on hold. | released_kept |
continue / changed, Pawdo already lifted the hold | Closes your hold. | released_not_held |
cancel | Closes the hold and cancels the order, as cancel-ship. | cancelled |
changed means the buyer's change was already made in Pawdo — with PATCH /orders/{id}.json for an API order, or in the seller app — before releasing. Releasing again answers already_released.
curl -X POST "{base_url}/api/integration/orders/release.json" \
-H "X-pawdo-access-token: $PAWDO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"order_id": "5cd24b56-a3f5-4d71-8105-61c5188cd24e", "outcome": "continue", "note": "Buyer kept the design", "requested_by": "[email protected]"}'{
"data": {
"order_id": "5cd24b56-a3f5-4d71-8105-61c5188cd24e",
"order_number": "DOCS-185527-H",
"order_code": "PD290-9320",
"result": "resumed",
"hold": {
"id": "27932d01-3f3d-4324-ad61-8c7ccfcba7a0",
"reason": "design",
"reason_label": "Chờ khách xác nhận thiết kế / ảnh",
"note": "Buyer is sending a new photo",
"source": "cs-hub",
"requested_by": "[email protected]",
"reference": "CS-1234",
"until": "2026-11-20T00:00:00Z",
"held_at": "2026-11-10T11:55:35.883986Z",
"released_at": "2026-11-10T11:55:35.920654194Z",
"release_outcome": "continue",
"release_note": "Buyer kept the design",
"released_by": "[email protected]"
},
"cs_hold": {
"stage": "pre_production",
"production_started": false,
"can_hold": true,
"can_cancel": true,
"cancel_kind": "cancel",
"hold": null
}
},
"message": "hold released",
"status": true
}
POST {base_url}/api/integration/orders/cancel-ship.json
Cancels any order of the store that has not been handed to the carrier: Pawdo will not deliver it and refunds the fulfillment charge to the store balance — including items already produced.
| Field | ||
|---|---|---|
order_id or order_number | one required | |
reason | required | Same values as hold. |
note, requested_by, reference |
curl -X POST "{base_url}/api/integration/orders/cancel-ship.json" \
-H "X-pawdo-access-token: $PAWDO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"order_id": "a2b05603-3d78-470f-bd3e-8bbe9f88acaa", "reason": "cancel", "requested_by": "[email protected]"}'{
"data": {
"order_id": "a2b05603-3d78-470f-bd3e-8bbe9f88acaa",
"order_number": "#1004",
"order_code": "PD290-9313",
"result": "cancelled",
"hold": null,
"cancel_kind": "cancel-produce",
"refund_amount": 20,
"items": [
{
"id": "05e9c08d-3fe9-4cc4-9a77-4f429c5511d0",
"print_code": 2572833,
"sku": "SOC-M",
"status": "cancel-produce",
"cancelled_at": "2026-11-10T11:55:36.326938Z"
},
{
"id": "2a8cf2ca-447c-460a-a353-e23e1f06ceca",
"print_code": 2572834,
"sku": "GP-L1",
"status": "cancel-produce",
"cancelled_at": "2026-11-10T11:55:36.326938Z"
}
],
"cs_hold": {
"stage": "cancelled",
"production_started": false,
"can_hold": false,
"can_cancel": false,
"cancel_kind": "",
"hold": null
}
},
"message": "order cancelled",
"status": true
}cancel_kind is what was done; refund_amount what was refunded (absent when nothing had been charged); items each unit with its new status — cancel-produce (will not be made) or cancel-ship (made, will not ship). Calling again answers already_cancelled and refunds nothing more.
| HTTP | error_code | When | data |
|---|---|---|---|
| 400 | BAD_REQUEST | The body is not JSON | |
| 404 | ORDER_NOT_FOUND | No such order in the store | |
| 409 | ALREADY_IN_PRODUCTION | Hold: the order is charged or in production | cs_hold |
| 409 | ALREADY_SHIPPED | Hold or cancel: handed to the carrier | cs_hold |
| 409 | ORDER_CANCELLED | Hold: already cancelled | cs_hold |
| 409 | ORDER_EXTERNAL | Fulfilled outside Pawdo | cs_hold |
| 409 | NOT_HOLDABLE | Hold: the order is in error | cs_hold |
| 409 | NOT_ON_HOLD | Release: you never held it | cs_hold |
| 409 | ORDER_BUSY | Cancel: being sent to production right now — retry in a minute | cs_hold |
| 409 | NOT_CANCELLABLE | Cancel: refused at this stage | cs_hold |
| 409 | AMBIGUOUS_ORDER | order_number matches several orders — send order_id | order_ids |
| 422 | VALIDATION_FAILED | A field is missing or not allowed, e.g. validation failed: reason must be one of [design variant cancel address other check customer agency leader] | |
| 422 | NO_STORE_OWNER | The store has no owner account to cancel as — contact Pawdo | |
| 500 | Nothing was written. Safe to resend. |
If you have any questions about the API, please contact the Pawdo support team via Facebook.