Skip to content

Order holds and cancel-ship ​

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}.

Where an order stands: cs_hold ​

GET /orders/query.json and every answer of these routes carry cs_hold:

json
{
  "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
stagepre_production (not charged), on_hold, error, fulfilling (charged, not in production), in_production, shipped, cancelled, external, unknown
can_holdYou can hold it now (it is not charged yet).
production_startedItems are being or were produced.
can_cancel, cancel_kindWhether cancel-ship works now, and what it would do: cancel (nothing produced), cancel-produce (production stopped), cancel-ship (made, will not ship).
holdYour 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.

Hold ​

POST {base_url}/api/integration/orders/hold.json

Field
order_id or order_numberone requiredorder_number is tried as sent, then with / without a leading #.
reasonrequireddesign, variant, cancel, address, other, check, customer, agency, leader
note≤ 2000
requested_by≤ 255Who asked (free text).
reference≤ 64Your ticket id.
untilRFC 3339When you expect to release it. Informative: Pawdo never releases by itself.
source≤ 32Label of your system; default cs-hub.
bash
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"}'
json
{
  "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:

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

Release ​

POST {base_url}/api/integration/orders/release.json

Field
order_id or order_numberone required
outcomerequiredcontinue, changed or cancel
note, requested_by
outcomePawdo doesresult
continue / changedResumes the order and validates it again; it is charged on schedule.resumed
continue / changed, someone in Pawdo also holds itCloses your hold; the order stays on hold.released_kept
continue / changed, Pawdo already lifted the holdCloses your hold.released_not_held
cancelCloses 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.

bash
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]"}'
json
{
  "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
}

Cancel-ship ​

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_numberone required
reasonrequiredSame values as hold.
note, requested_by, reference
bash
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]"}'
json
{
  "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.

Errors of the three routes ​

HTTPerror_codeWhendata
400BAD_REQUESTThe body is not JSON
404ORDER_NOT_FOUNDNo such order in the store
409ALREADY_IN_PRODUCTIONHold: the order is charged or in productioncs_hold
409ALREADY_SHIPPEDHold or cancel: handed to the carriercs_hold
409ORDER_CANCELLEDHold: already cancelledcs_hold
409ORDER_EXTERNALFulfilled outside Pawdocs_hold
409NOT_HOLDABLEHold: the order is in errorcs_hold
409NOT_ON_HOLDRelease: you never held itcs_hold
409ORDER_BUSYCancel: being sent to production right now — retry in a minutecs_hold
409NOT_CANCELLABLECancel: refused at this stagecs_hold
409AMBIGUOUS_ORDERorder_number matches several orders — send order_idorder_ids
422VALIDATION_FAILEDA field is missing or not allowed, e.g. validation failed: reason must be one of [design variant cancel address other check customer agency leader]
422NO_STORE_OWNERThe store has no owner account to cancel as — contact Pawdo
500Nothing was written. Safe to resend.

If you have any questions about the API, please contact the Pawdo support team via Facebook.