Orders
Creation from an external system, tracking, lifecycle.
- GET
/ordersList the store’s orders - POST
/ordersCreate an order (basket → order) - GET
/orders/{order}Track an order - POST
/orders/{order}/paymentsRecord an order payment - POST
/orders/{order}/statusMove an order forward (confirmation, preparation, shipping, delivery, cancellation)
List the store’s orders #
/api/public/v1/quoshop/ordersorders:readlistOrdersOrders placed on the storefront and created through the API. Filters: status, paymentStatus (multi-value), channel, externalId / source, email, placedFrom / placedTo, updatedSince (incremental status tracking). Allowed sort: placedAt, number, updatedAt, total (default -placedAt). Cursor pagination recommended for a full pass (limit, cursor).
Parameters
langstringqueryLanguage of the merchant content (titles, descriptions), among the store’s languages (
GET /store→locales). Default:Accept-Language, otherwise the store’s default language. Code labels (statusLabel…) follow this language when it isfr,enorar, English otherwise.pagenumberqueryPage number (starting at 1).
pageSizenumberqueryItems per page (100 at most).
sortstringquerySort: comma-separated fields,
-prefix for descending order. Allowed fields: see the route description.updatedSincestringqueryOnly returns the items created or modified since this instant (ISO 8601, inclusive): the recommended form of an incremental sync, alongside webhooks.
cursorstringqueryCursor pagination:
nextCursorof the previous page, to be passed back as is with the same filters and the same sort. Stable even if items are created during the walk, and constant cost whatever the depth. Mutually exclusive withpage.limitnumberqueryCursor pagination: items per page (100 at most).
?limit=100starts a cursor walk; the response returnspagination.nextCursor.statusstring[]queryStatuses, comma-separated.
paymentStatusstring[]queryPayment statuses, comma-separated.
channelstringquerySTOREFRONTAPIexternalIdstringqueryExact external reference.
sourcestringqueryExact external namespace.
emailstringqueryBuyer’s email (exact, case-insensitive).
placedFromstringqueryPlaced since (ISO 8601, inclusive).
placedTostringqueryPlaced until (ISO 8601, inclusive — whole day).
X-QuoShop-StorestringheaderTarget store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400,
detail.stores).
Response 200application/json
Success.
itemsOrderDto[]requiredOrderDto details
paginationPaginationDtorequiredPaginationDto details
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl 'https://quosuite.com/api/public/v1/quoshop/orders' \
-H "Authorization: Bearer $QUOSHOP_API_KEY"{
"success": true,
"data": {
"items": [
{
"id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
"number": "WEB-2026-000042",
"channel": "STOREFRONT",
"externalSource": "woocommerce",
"externalId": "10293",
"status": "NEW",
"statusLabel": "Confirmée",
"paymentStatus": "PENDING",
"paymentStatusLabel": "Payée",
"currency": "TND",
"locale": "fr",
"customer": {
"id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
"email": "client@exemple.tn",
"name": "Sarra Ben Ali",
"phone": null
},
"shippingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"billingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"delivery": {
"methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
"code": "STANDARD",
"label": "Livraison standard"
},
"payment": {
"method": "CARD",
"label": "Carte bancaire",
"reference": "pi_3QxYz"
},
"totals": {
"items": 238,
"shipping": 7,
"discount": 0,
"totalExclTax": 207,
"tax": 38,
"total": 245,
"paid": 245,
"due": 0
},
"lines": [
{
"productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
"sku": "ART-0042",
"title": "Chaise en chêne massif",
"quantity": 2,
"unitPrice": 119,
"unitPriceExclTax": 100,
"vatRate": 19,
"totalExclTax": 200,
"tax": 38,
"total": 238
}
],
"erp": {
"posted": true,
"postedAt": "2026-10-02T09:15:00.000Z",
"salesDocument": {
"type": "COMMANDE_VENTE",
"typeLabel": "Facture",
"number": "FAC-2026-00042"
},
"invoiceNumber": "FAC-2026-00042",
"creditNoteNumber": null,
"stockApplied": true,
"lastError": null
},
"note": null,
"cancelReason": null,
"placedAt": "2026-10-02T09:15:00.000Z",
"confirmedAt": "2026-10-02T09:15:00.000Z",
"preparedAt": "2026-10-02T09:15:00.000Z",
"shippedAt": "2026-10-02T09:15:00.000Z",
"deliveredAt": "2026-10-02T09:15:00.000Z",
"cancelledAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
}
],
"pagination": {
"page": 1,
"pageSize": 25,
"totalItems": 132,
"totalPages": 6,
"limit": 100,
"nextCursor": "c1.eyJzIjoiZGF0ZTpkZXNjLGlkOmFzYyIsImYiOiJ…",
"hasMore": true
}
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Try this request
Create an order (basket → order) #
/api/public/v1/quoshop/ordersorders:writeIdempotentcreateOrderCreates an order on the store from an external system, then posts it to the ERP through the same gateway as the storefront: ERP customer found by email (created if missing), sales document for the full amount paid by the customer, stock according to the store’s policy, payment recorded and matched if payment.status = PAID.
Prices: those of the published catalogue at order time (promotions included) — never supplied by the caller; expectedTotal lets you reject a difference. Stock: checked as on the storefront (409 if insufficient). Delivery: one of the store’s methods (fee computed by the store) or a fee announced by the integration.
Strict idempotency: (source, externalId) designates a single order per store, guaranteed by the database. The same request replayed returns the existing order (Idempotent-Replayed: true) and completes its ERP posting if it had failed; different content under the same reference is refused (409, detail.orderId). An external order therefore never produces two invoices.
A failed ERP posting does not lose the order: it is created (201), and erp.posted = false and erp.lastError say why.
Parameters
X-QuoShop-StorestringheaderTarget store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400,
detail.stores).Idempotency-KeystringheaderIdempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header
Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
externalIdstringrequiredIdentifier of the order in the external system. Together with
source, it is the creation’s idempotency key, guaranteed by the database: sending the same order again returns the one already created (Idempotent-Replayed: true) — never a second order, nor a second invoice.e.g.10293sourcestringNamespace of the external system. Use distinct values when several systems create orders on the same store with overlapping numbering.
default"api"e.g.woocommercecustomerOrderCustomerInputrequiredOrderCustomerInput details
linesOrderLineInput[]requiredOrdered lines (100 at most). Prices are not supplied: they are those of the published catalogue at order time, as on the storefront.
OrderLineInput details
shippingAddressCheckoutAddressDtoRequired for a
SHIPPINGmethod.CheckoutAddressDto details
billingAddressCheckoutAddressDtoOmitted: the shipping address doubles as the billing address.
CheckoutAddressDto details
deliveryOrderDeliveryInputOrderDeliveryInput details
paymentOrderPaymentInputOrderPaymentInput details
notestringCustomer message.
localestringBuyer’s language (line labels, emails), among the store’s languages.
e.g.frexpectedTotalnumberTotal incl. tax that the integration displayed to the customer. Never used to invoice: a difference of more than one cent from the total computed by the store gets the order refused (409), rather than charging an amount the customer never saw.
e.g.245postToErpbooleanPost the order to the ERP immediately (ERP customer, sales document, stock, payment).
false: the order waits for a confirmation (POST …/status).defaulttruenotifyCustomerbooleanSend the store’s order acknowledgement to the buyer.
defaultfalse
Response 201application/json
Order created — or the existing order for this external reference (`Idempotent-Replayed: true`).
idstring (uuid)requirednumberstringrequiredNumber given to the customer.
e.g.WEB-2026-000042channelstringrequiredPlaced on the storefront, or created by an external system.
valuesSTOREFRONTAPIexternalSourcestring | nulle.g.woocommerceexternalIdstring | nulle.g.10293statusstringrequiredvaluesNEWCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLEDstatusLabelstringrequirede.g.ConfirméepaymentStatusstringrequiredvaluesPENDINGAUTHORIZEDPAIDPARTIALLY_REFUNDEDREFUNDEDFAILEDpaymentStatusLabelstringrequirede.g.PayéecurrencystringrequiredStore currency.
e.g.TNDlocalestring | nulle.g.frcustomerOrderCustomerDtorequiredOrderCustomerDto details
shippingAddressOrderAddressDto | nullOrderAddressDto details
billingAddressOrderAddressDto | nullOrderAddressDto details
deliveryOrderDeliveryDtorequiredOrderDeliveryDto details
paymentOrderPaymentInfoDtorequiredOrderPaymentInfoDto details
totalsOrderTotalsDtorequiredOrderTotalsDto details
linesOrderLineDto[]requiredOrderLineDto details
erpOrderErpDtorequiredOrderErpDto details
notestring | nullcancelReasonstring | nullplacedAtstringrequiredconfirmedAtstring | nullpreparedAtstring | nullshippedAtstring | nulldeliveredAtstring | nullcancelledAtstring | nullupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quoshop/orders' \
-H "Authorization: Bearer $QUOSHOP_API_KEY" \
-H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
-H 'Content-Type: application/json' \
-d '{
"externalId": "10293",
"customer": {
"email": "client@exemple.tn"
},
"lines": [
{
"quantity": 2
}
]
}'{
"success": true,
"data": {
"id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
"number": "WEB-2026-000042",
"channel": "STOREFRONT",
"externalSource": "woocommerce",
"externalId": "10293",
"status": "NEW",
"statusLabel": "Confirmée",
"paymentStatus": "PENDING",
"paymentStatusLabel": "Payée",
"currency": "TND",
"locale": "fr",
"customer": {
"id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
"email": "client@exemple.tn",
"name": "Sarra Ben Ali",
"phone": null
},
"shippingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"billingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"delivery": {
"methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
"code": "STANDARD",
"label": "Livraison standard"
},
"payment": {
"method": "CARD",
"label": "Carte bancaire",
"reference": "pi_3QxYz"
},
"totals": {
"items": 238,
"shipping": 7,
"discount": 0,
"totalExclTax": 207,
"tax": 38,
"total": 245,
"paid": 245,
"due": 0
},
"lines": [
{
"productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
"sku": "ART-0042",
"title": "Chaise en chêne massif",
"quantity": 2,
"unitPrice": 119,
"unitPriceExclTax": 100,
"vatRate": 19,
"totalExclTax": 200,
"tax": 38,
"total": 238
}
],
"erp": {
"posted": true,
"postedAt": "2026-10-02T09:15:00.000Z",
"salesDocument": {
"type": "COMMANDE_VENTE",
"typeLabel": "Facture",
"number": "FAC-2026-00042"
},
"invoiceNumber": "FAC-2026-00042",
"creditNoteNumber": null,
"stockApplied": true,
"lastError": null
},
"note": null,
"cancelReason": null,
"placedAt": "2026-10-02T09:15:00.000Z",
"confirmedAt": "2026-10-02T09:15:00.000Z",
"preparedAt": "2026-10-02T09:15:00.000Z",
"shippedAt": "2026-10-02T09:15:00.000Z",
"deliveredAt": "2026-10-02T09:15:00.000Z",
"cancelledAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Track an order #
/api/public/v1/quoshop/orders/{order}orders:readgetOrderStatus, payment, lines, totals and ERP posting (erp: sales document and invoice issued, stock applied, last failure if any).
Parameters
orderstringpathrequiredIdentifier (UUID) or number (
WEB-2026-000042) of the order.langstringqueryLanguage of the merchant content (titles, descriptions), among the store’s languages (
GET /store→locales). Default:Accept-Language, otherwise the store’s default language. Code labels (statusLabel…) follow this language when it isfr,enorar, English otherwise.X-QuoShop-StorestringheaderTarget store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400,
detail.stores).
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber given to the customer.
e.g.WEB-2026-000042channelstringrequiredPlaced on the storefront, or created by an external system.
valuesSTOREFRONTAPIexternalSourcestring | nulle.g.woocommerceexternalIdstring | nulle.g.10293statusstringrequiredvaluesNEWCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLEDstatusLabelstringrequirede.g.ConfirméepaymentStatusstringrequiredvaluesPENDINGAUTHORIZEDPAIDPARTIALLY_REFUNDEDREFUNDEDFAILEDpaymentStatusLabelstringrequirede.g.PayéecurrencystringrequiredStore currency.
e.g.TNDlocalestring | nulle.g.frcustomerOrderCustomerDtorequiredOrderCustomerDto details
shippingAddressOrderAddressDto | nullOrderAddressDto details
billingAddressOrderAddressDto | nullOrderAddressDto details
deliveryOrderDeliveryDtorequiredOrderDeliveryDto details
paymentOrderPaymentInfoDtorequiredOrderPaymentInfoDto details
totalsOrderTotalsDtorequiredOrderTotalsDto details
linesOrderLineDto[]requiredOrderLineDto details
erpOrderErpDtorequiredOrderErpDto details
notestring | nullcancelReasonstring | nullplacedAtstringrequiredconfirmedAtstring | nullpreparedAtstring | nullshippedAtstring | nulldeliveredAtstring | nullcancelledAtstring | nullupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl 'https://quosuite.com/api/public/v1/quoshop/orders/1c5f6225-fd1a-4972-8a9d-b546c2158aed' \
-H "Authorization: Bearer $QUOSHOP_API_KEY"{
"success": true,
"data": {
"id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
"number": "WEB-2026-000042",
"channel": "STOREFRONT",
"externalSource": "woocommerce",
"externalId": "10293",
"status": "NEW",
"statusLabel": "Confirmée",
"paymentStatus": "PENDING",
"paymentStatusLabel": "Payée",
"currency": "TND",
"locale": "fr",
"customer": {
"id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
"email": "client@exemple.tn",
"name": "Sarra Ben Ali",
"phone": null
},
"shippingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"billingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"delivery": {
"methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
"code": "STANDARD",
"label": "Livraison standard"
},
"payment": {
"method": "CARD",
"label": "Carte bancaire",
"reference": "pi_3QxYz"
},
"totals": {
"items": 238,
"shipping": 7,
"discount": 0,
"totalExclTax": 207,
"tax": 38,
"total": 245,
"paid": 245,
"due": 0
},
"lines": [
{
"productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
"sku": "ART-0042",
"title": "Chaise en chêne massif",
"quantity": 2,
"unitPrice": 119,
"unitPriceExclTax": 100,
"vatRate": 19,
"totalExclTax": 200,
"tax": 38,
"total": 238
}
],
"erp": {
"posted": true,
"postedAt": "2026-10-02T09:15:00.000Z",
"salesDocument": {
"type": "COMMANDE_VENTE",
"typeLabel": "Facture",
"number": "FAC-2026-00042"
},
"invoiceNumber": "FAC-2026-00042",
"creditNoteNumber": null,
"stockApplied": true,
"lastError": null
},
"note": null,
"cancelReason": null,
"placedAt": "2026-10-02T09:15:00.000Z",
"confirmedAt": "2026-10-02T09:15:00.000Z",
"preparedAt": "2026-10-02T09:15:00.000Z",
"shippedAt": "2026-10-02T09:15:00.000Z",
"deliveredAt": "2026-10-02T09:15:00.000Z",
"cancelledAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Try this request
Record an order payment #
/api/public/v1/quoshop/orders/{order}/paymentsorders:writeIdempotentrecordOrderPaymentPayment received after the order (cash on delivery, bank transfer received…): recorded in the ERP and matched against the invoice, the order being posted to the ERP along the way if it was not. Idempotent by reference: replayed, the same reference records nothing more. An order carries one payment: a second one, under another reference, is refused (409).
Parameters
orderstringpathrequiredIdentifier (UUID) or number (
WEB-2026-000042) of the order.X-QuoShop-StorestringheaderTarget store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400,
detail.stores).Idempotency-KeystringheaderIdempotency key (1–255 printable ASCII characters, UUID v4 recommended). A retry with the same key and the same body within 24 h replays the response of the first successful call (header
Idempotent-Replayed: true) instead of creating a second time. Same key, different body: 422IDEMPOTENCY_KEY_REUSED. First call still in progress: 409IDEMPOTENCY_IN_PROGRESS.
Request body application/json
referencestringrequiredPayment reference — idempotency key: replayed, nothing is rewritten.
e.g.pi_3QxYzamountnumberrequirede.g.245methodstringCard by default.
valuesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHERpaidAtstringe.g.2026-10-02T09:12:00Z
Response 201application/json
Created.
idstring (uuid)requirednumberstringrequiredNumber given to the customer.
e.g.WEB-2026-000042channelstringrequiredPlaced on the storefront, or created by an external system.
valuesSTOREFRONTAPIexternalSourcestring | nulle.g.woocommerceexternalIdstring | nulle.g.10293statusstringrequiredvaluesNEWCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLEDstatusLabelstringrequirede.g.ConfirméepaymentStatusstringrequiredvaluesPENDINGAUTHORIZEDPAIDPARTIALLY_REFUNDEDREFUNDEDFAILEDpaymentStatusLabelstringrequirede.g.PayéecurrencystringrequiredStore currency.
e.g.TNDlocalestring | nulle.g.frcustomerOrderCustomerDtorequiredOrderCustomerDto details
shippingAddressOrderAddressDto | nullOrderAddressDto details
billingAddressOrderAddressDto | nullOrderAddressDto details
deliveryOrderDeliveryDtorequiredOrderDeliveryDto details
paymentOrderPaymentInfoDtorequiredOrderPaymentInfoDto details
totalsOrderTotalsDtorequiredOrderTotalsDto details
linesOrderLineDto[]requiredOrderLineDto details
erpOrderErpDtorequiredOrderErpDto details
notestring | nullcancelReasonstring | nullplacedAtstringrequiredconfirmedAtstring | nullpreparedAtstring | nullshippedAtstring | nulldeliveredAtstring | nullcancelledAtstring | nullupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
# One key per operation, reused as is on every retry.
curl -X POST 'https://quosuite.com/api/public/v1/quoshop/orders/1c5f6225-fd1a-4972-8a9d-b546c2158aed/payments' \
-H "Authorization: Bearer $QUOSHOP_API_KEY" \
-H 'Idempotency-Key: 3f1c2a9e-5b7d-4e8a-9c1f-2d6b8e4a7c30' \
-H 'Content-Type: application/json' \
-d '{
"reference": "pi_3QxYz",
"amount": 245
}'{
"success": true,
"data": {
"id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
"number": "WEB-2026-000042",
"channel": "STOREFRONT",
"externalSource": "woocommerce",
"externalId": "10293",
"status": "NEW",
"statusLabel": "Confirmée",
"paymentStatus": "PENDING",
"paymentStatusLabel": "Payée",
"currency": "TND",
"locale": "fr",
"customer": {
"id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
"email": "client@exemple.tn",
"name": "Sarra Ben Ali",
"phone": null
},
"shippingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"billingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"delivery": {
"methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
"code": "STANDARD",
"label": "Livraison standard"
},
"payment": {
"method": "CARD",
"label": "Carte bancaire",
"reference": "pi_3QxYz"
},
"totals": {
"items": 238,
"shipping": 7,
"discount": 0,
"totalExclTax": 207,
"tax": 38,
"total": 245,
"paid": 245,
"due": 0
},
"lines": [
{
"productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
"sku": "ART-0042",
"title": "Chaise en chêne massif",
"quantity": 2,
"unitPrice": 119,
"unitPriceExclTax": 100,
"vatRate": 19,
"totalExclTax": 200,
"tax": 38,
"total": 238
}
],
"erp": {
"posted": true,
"postedAt": "2026-10-02T09:15:00.000Z",
"salesDocument": {
"type": "COMMANDE_VENTE",
"typeLabel": "Facture",
"number": "FAC-2026-00042"
},
"invoiceNumber": "FAC-2026-00042",
"creditNoteNumber": null,
"stockApplied": true,
"lastError": null
},
"note": null,
"cancelReason": null,
"placedAt": "2026-10-02T09:15:00.000Z",
"confirmedAt": "2026-10-02T09:15:00.000Z",
"preparedAt": "2026-10-02T09:15:00.000Z",
"shippedAt": "2026-10-02T09:15:00.000Z",
"deliveredAt": "2026-10-02T09:15:00.000Z",
"cancelledAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Move an order forward (confirmation, preparation, shipping, delivery, cancellation) #
/api/public/v1/quoshop/orders/{order}/statusorders:writeupdateOrderStatusFor an external system that handles preparation and shipping. Progress follows the store’s transition table (NEW → CONFIRMED → PREPARED → SHIPPED → DELIVERED; cancellation as long as nothing has left) — a forbidden transition answers 422. The ERP effects are those of the back office: confirming posts to the ERP, shipping issues the stock and invoices if the store invoices on shipping, cancelling cancels the documents and puts issued stock back. Asking for the step the order is already at changes nothing.
Parameters
orderstringpathrequiredIdentifier (UUID) or number (
WEB-2026-000042) of the order.X-QuoShop-StorestringheaderTarget store: identifier (UUID) or slug. Optional when the workspace holds only one. Store not in the workspace (404), suspended (403), or not specified while the workspace holds several (400,
detail.stores).
Request body application/json
statusstringrequiredNext step.
CONFIRMEDposts the order to the ERP;SHIPPEDissues the goods and invoices if the store invoices on shipping;CANCELLED(before shipping) cancels the documents and puts issued stock back.valuesCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLEDreasonstringReason (cancellation).
notifyCustomerbooleanSend the store’s step notification to the buyer.
defaultfalse
Response 200application/json
Success.
idstring (uuid)requirednumberstringrequiredNumber given to the customer.
e.g.WEB-2026-000042channelstringrequiredPlaced on the storefront, or created by an external system.
valuesSTOREFRONTAPIexternalSourcestring | nulle.g.woocommerceexternalIdstring | nulle.g.10293statusstringrequiredvaluesNEWCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLEDstatusLabelstringrequirede.g.ConfirméepaymentStatusstringrequiredvaluesPENDINGAUTHORIZEDPAIDPARTIALLY_REFUNDEDREFUNDEDFAILEDpaymentStatusLabelstringrequirede.g.PayéecurrencystringrequiredStore currency.
e.g.TNDlocalestring | nulle.g.frcustomerOrderCustomerDtorequiredOrderCustomerDto details
shippingAddressOrderAddressDto | nullOrderAddressDto details
billingAddressOrderAddressDto | nullOrderAddressDto details
deliveryOrderDeliveryDtorequiredOrderDeliveryDto details
paymentOrderPaymentInfoDtorequiredOrderPaymentInfoDto details
totalsOrderTotalsDtorequiredOrderTotalsDto details
linesOrderLineDto[]requiredOrderLineDto details
erpOrderErpDtorequiredOrderErpDto details
notestring | nullcancelReasonstring | nullplacedAtstringrequiredconfirmedAtstring | nullpreparedAtstring | nullshippedAtstring | nulldeliveredAtstring | nullcancelledAtstring | nullupdatedAtstringrequired
Errors
400VALIDATION_FAILEDIDEMPOTENCY_KEY_INVALIDINVALID_CURSOR
Invalid parameter or body (missing, unknown or mistyped field, sort not allowed), or pagination cursor issued for another sort or other filters.
401API_KEY_MISSINGAPI_KEY_INVALIDAPI_KEY_REVOKEDAPI_KEY_EXPIRED
Key missing, invalid, revoked or expired.
403API_KEY_WRONG_PERIMETERAPI_INSUFFICIENT_SCOPEAPI_ORIGIN_NOT_ALLOWEDAPI_TENANT_MISMATCHAPI_TENANT_INACTIVEAPI_MODULE_UNAVAILABLEAPI_FEATURE_UNAVAILABLE
Valid key but insufficient: wrong perimeter, missing scope, origin refused, inactive subscription, or module / option not included in the plan.
404NOT_FOUND
Resource not found — or belonging to another workspace, which amounts to the same.
409CONFLICTIDEMPOTENCY_IN_PROGRESS
Conflict: unique value already taken, or same idempotency key still in progress.
422BUSINESS_RULE_VIOLATIONIDEMPOTENCY_KEY_REUSED
Well-formed request but refused by an ERP business rule (forbidden status transition, locked paid document, stock…), or reused idempotency key.
429API_RATE_LIMITEDAPI_AUTH_BLOCKED
Key or workspace quota reached (see Retry-After), or address blocked.
500INTERNAL_ERROR
Unexpected error. Quote requestId to support.
503SERVICE_UNAVAILABLE
Temporarily unavailable (see Retry-After). No infrastructure details.
curl -X POST 'https://quosuite.com/api/public/v1/quoshop/orders/1c5f6225-fd1a-4972-8a9d-b546c2158aed/status' \
-H "Authorization: Bearer $QUOSHOP_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"status": "CONFIRMED"
}'{
"success": true,
"data": {
"id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
"number": "WEB-2026-000042",
"channel": "STOREFRONT",
"externalSource": "woocommerce",
"externalId": "10293",
"status": "NEW",
"statusLabel": "Confirmée",
"paymentStatus": "PENDING",
"paymentStatusLabel": "Payée",
"currency": "TND",
"locale": "fr",
"customer": {
"id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
"email": "client@exemple.tn",
"name": "Sarra Ben Ali",
"phone": null
},
"shippingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"billingAddress": {
"fullName": null,
"line1": "12 rue de la Liberté",
"line2": null,
"postalCode": "1002",
"city": "Tunis",
"country": "TN",
"notes": null
},
"delivery": {
"methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
"code": "STANDARD",
"label": "Livraison standard"
},
"payment": {
"method": "CARD",
"label": "Carte bancaire",
"reference": "pi_3QxYz"
},
"totals": {
"items": 238,
"shipping": 7,
"discount": 0,
"totalExclTax": 207,
"tax": 38,
"total": 245,
"paid": 245,
"due": 0
},
"lines": [
{
"productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
"sku": "ART-0042",
"title": "Chaise en chêne massif",
"quantity": 2,
"unitPrice": 119,
"unitPriceExclTax": 100,
"vatRate": 19,
"totalExclTax": 200,
"tax": 38,
"total": 238
}
],
"erp": {
"posted": true,
"postedAt": "2026-10-02T09:15:00.000Z",
"salesDocument": {
"type": "COMMANDE_VENTE",
"typeLabel": "Facture",
"number": "FAC-2026-00042"
},
"invoiceNumber": "FAC-2026-00042",
"creditNoteNumber": null,
"stockApplied": true,
"lastError": null
},
"note": null,
"cancelReason": null,
"placedAt": "2026-10-02T09:15:00.000Z",
"confirmedAt": "2026-10-02T09:15:00.000Z",
"preparedAt": "2026-10-02T09:15:00.000Z",
"shippedAt": "2026-10-02T09:15:00.000Z",
"deliveredAt": "2026-10-02T09:15:00.000Z",
"cancelledAt": "2026-10-02T09:15:00.000Z",
"updatedAt": "2026-10-02T09:15:00.000Z"
},
"timestamp": "2026-10-02T09:15:00.000Z"
}Generated from the QuoShop API OpenAPI contract v1.0.0.