Developers
Guides

Track and advance an order

Status, ERP posting, shipping, cancellation, late payment.

A store order — placed on the storefront or created through the API — follows a linear lifecycle:

Texte
 NEW ──► CONFIRMED ──► PREPARED ──► SHIPPED ──► DELIVERED
  │          │             │
  └──────────┴─────────────┴──► CANCELLED      (as long as nothing has left)

CONFIRMED means posted to the ERP: ERP customer, sales document, stock according to the store’s policy. An order never goes backwards; a shipped order cannot be cancelled — what is undone after delivery is a return, with its credit note, handled in QuoSuite.

Reading an order

By identifier or by number:

GET/orders/{order}

curl 'https://quosuite.com/api/public/v1/quoshop/orders/WEB-2026-000042' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY"
FieldMeaning
status, statusLabellifecycle step
paymentStatusPENDING, AUTHORIZED, PAID, PARTIALLY_REFUNDED, REFUNDED, FAILED
totals.paid, totals.duecollected, amount due
erp.posted, erp.salesDocument, erp.invoiceNumberdocuments issued in the ERP
erp.stockAppliedthe goods have left the ERP stock
erp.lastErrorlast failure of the ERP posting, if any
shippedAt, deliveredAt, cancelledAt…step dates

Tracking all orders

GET /orders lists the store’s orders — storefront and API — with filters an integration needs: externalId + source (yours), status, paymentStatus, channel, email, placedFrom / placedTo, and above all updatedSince for incremental tracking:

GET/orders

curl 'https://quosuite.com/api/public/v1/quoshop/orders?source=woocommerce&updatedSince=2026-10-01T00%3A00%3A00Z&sort=updatedAt&limit=100' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY"

The order.status_changed, order.paid and order.cancelled webhooks save you from polling: see Receive webhooks.

Moving an order forward

For an external system that handles preparation and shipping — a CMS whose team marks orders “shipped”:

POST/orders/{order}/status

curl -X POST 'https://quosuite.com/api/public/v1/quoshop/orders/WEB-2026-000042/status' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "status": "SHIPPED",
  "notifyCustomer": false
}'
  • One step per call: from CONFIRMED, you can go to PREPARED or straight to SHIPPED, not to DELIVERED. To deliver a confirmed order: SHIPPED, then DELIVERED. A forbidden transition: 422.
  • Asking for the step the order is already at changes nothing and answers 200: replaying a call is safe.
  • ERP effects, those of the back office: CONFIRMED posts to the ERP; SHIPPED issues the goods and invoices if the store invoices on shipping; CANCELLED (with reason) cancels the documents and puts back in stock what had left.

Collecting payment afterwards

Cash on delivery, transfer received: POST /orders/{order}/payments records the payment in the ERP and matches it against the invoice. Idempotent by reference: replayed, the same reference records nothing more.

POST/orders/{order}/payments

# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quoshop/orders/WEB-2026-000042/payments' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY" \
  -H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
  -H 'Content-Type: application/json' \
  -d '{
  "reference": "wc-shop.example.com-10293",
  "amount": 365.33,
  "method": "CASH",
  "paidAt": "2026-10-04T16:20:00Z"
}'

An order carries one payment: a second one, under another reference, is refused (409); so is an amount above what is due (422).

Avoiding ping-pong

If your system pushes its changes to QuoShop and applies QuoShop’s changes received by webhook, do not send back to QuoShop a change that came from it: flag the updates applied from a webhook and skip them in your sending logic. That is what the plugins do.