Developers
Reference

Orders

Creation from an external system, tracking, lifecycle.

List the store’s orders #

GET/api/public/v1/quoshop/orders
Scope : orders:readlistOrders

Orders 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

  • langstringquery

    Language 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 is fr, en or ar, English otherwise.

  • pagenumberquery

    Page number (starting at 1).

  • pageSizenumberquery

    Items per page (100 at most).

  • sortstringquery

    Sort: comma-separated fields, - prefix for descending order. Allowed fields: see the route description.

  • updatedSincestringquery

    Only returns the items created or modified since this instant (ISO 8601, inclusive): the recommended form of an incremental sync, alongside webhooks.

  • cursorstringquery

    Cursor pagination: nextCursor of 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 with page.

  • limitnumberquery

    Cursor pagination: items per page (100 at most). ?limit=100 starts a cursor walk; the response returns pagination.nextCursor.

  • statusstring[]query

    Statuses, comma-separated.

  • paymentStatusstring[]query

    Payment statuses, comma-separated.

  • channelstringquery
    STOREFRONTAPI
  • externalIdstringquery

    Exact external reference.

  • sourcestringquery

    Exact external namespace.

  • emailstringquery

    Buyer’s email (exact, case-insensitive).

  • placedFromstringquery

    Placed since (ISO 8601, inclusive).

  • placedTostringquery

    Placed until (ISO 8601, inclusive — whole day).

  • X-QuoShop-Storestringheader

    Target 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[]required
    OrderDto details
  • paginationPaginationDtorequired
    PaginationDto 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.

Request example
curl 'https://quosuite.com/api/public/v1/quoshop/orders' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY"
Response example
{
  "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) #

POST/api/public/v1/quoshop/orders
Scope : orders:writeIdempotentcreateOrder

Creates 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-Storestringheader

    Target 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-Keystringheader

    Idempotency 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: 422 IDEMPOTENCY_KEY_REUSED. First call still in progress: 409 IDEMPOTENCY_IN_PROGRESS.

Request body application/json

  • externalIdstringrequired

    Identifier 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.10293
  • sourcestring

    Namespace of the external system. Use distinct values when several systems create orders on the same store with overlapping numbering.

    default"api"e.g.woocommerce
  • customerOrderCustomerInputrequired
    OrderCustomerInput details
  • linesOrderLineInput[]required

    Ordered lines (100 at most). Prices are not supplied: they are those of the published catalogue at order time, as on the storefront.

    OrderLineInput details
  • shippingAddressCheckoutAddressDto

    Required for a SHIPPING method.

    CheckoutAddressDto details
  • billingAddressCheckoutAddressDto

    Omitted: the shipping address doubles as the billing address.

    CheckoutAddressDto details
  • deliveryOrderDeliveryInput
    OrderDeliveryInput details
  • paymentOrderPaymentInput
    OrderPaymentInput details
  • notestring

    Customer message.

  • localestring

    Buyer’s language (line labels, emails), among the store’s languages.

    e.g.fr
  • expectedTotalnumber

    Total 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.245
  • postToErpboolean

    Post the order to the ERP immediately (ERP customer, sales document, stock, payment). false: the order waits for a confirmation (POST …/status).

    defaulttrue
  • notifyCustomerboolean

    Send 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)required
  • numberstringrequired

    Number given to the customer.

    e.g.WEB-2026-000042
  • channelstringrequired

    Placed on the storefront, or created by an external system.

    valuesSTOREFRONTAPI
  • externalSourcestring | null
    e.g.woocommerce
  • externalIdstring | null
    e.g.10293
  • statusstringrequired
    valuesNEWCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLED
  • statusLabelstringrequired
    e.g.Confirmée
  • paymentStatusstringrequired
    valuesPENDINGAUTHORIZEDPAIDPARTIALLY_REFUNDEDREFUNDEDFAILED
  • paymentStatusLabelstringrequired
    e.g.Payée
  • currencystringrequired

    Store currency.

    e.g.TND
  • localestring | null
    e.g.fr
  • customerOrderCustomerDtorequired
    OrderCustomerDto details
  • shippingAddressOrderAddressDto | null
    OrderAddressDto details
  • billingAddressOrderAddressDto | null
    OrderAddressDto details
  • deliveryOrderDeliveryDtorequired
    OrderDeliveryDto details
  • paymentOrderPaymentInfoDtorequired
    OrderPaymentInfoDto details
  • totalsOrderTotalsDtorequired
    OrderTotalsDto details
  • linesOrderLineDto[]required
    OrderLineDto details
  • erpOrderErpDtorequired
    OrderErpDto details
  • notestring | null
  • cancelReasonstring | null
  • placedAtstringrequired
  • confirmedAtstring | null
  • preparedAtstring | null
  • shippedAtstring | null
  • deliveredAtstring | null
  • cancelledAtstring | null
  • updatedAtstringrequired

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.

Request example
# 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
    }
  ]
}'
Response example
{
  "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 #

GET/api/public/v1/quoshop/orders/{order}
Scope : orders:readgetOrder

Status, payment, lines, totals and ERP posting (erp: sales document and invoice issued, stock applied, last failure if any).

Parameters

  • orderstringpathrequired

    Identifier (UUID) or number (WEB-2026-000042) of the order.

  • langstringquery

    Language 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 is fr, en or ar, English otherwise.

  • X-QuoShop-Storestringheader

    Target 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)required
  • numberstringrequired

    Number given to the customer.

    e.g.WEB-2026-000042
  • channelstringrequired

    Placed on the storefront, or created by an external system.

    valuesSTOREFRONTAPI
  • externalSourcestring | null
    e.g.woocommerce
  • externalIdstring | null
    e.g.10293
  • statusstringrequired
    valuesNEWCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLED
  • statusLabelstringrequired
    e.g.Confirmée
  • paymentStatusstringrequired
    valuesPENDINGAUTHORIZEDPAIDPARTIALLY_REFUNDEDREFUNDEDFAILED
  • paymentStatusLabelstringrequired
    e.g.Payée
  • currencystringrequired

    Store currency.

    e.g.TND
  • localestring | null
    e.g.fr
  • customerOrderCustomerDtorequired
    OrderCustomerDto details
  • shippingAddressOrderAddressDto | null
    OrderAddressDto details
  • billingAddressOrderAddressDto | null
    OrderAddressDto details
  • deliveryOrderDeliveryDtorequired
    OrderDeliveryDto details
  • paymentOrderPaymentInfoDtorequired
    OrderPaymentInfoDto details
  • totalsOrderTotalsDtorequired
    OrderTotalsDto details
  • linesOrderLineDto[]required
    OrderLineDto details
  • erpOrderErpDtorequired
    OrderErpDto details
  • notestring | null
  • cancelReasonstring | null
  • placedAtstringrequired
  • confirmedAtstring | null
  • preparedAtstring | null
  • shippedAtstring | null
  • deliveredAtstring | null
  • cancelledAtstring | null
  • updatedAtstringrequired

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.

Request example
curl 'https://quosuite.com/api/public/v1/quoshop/orders/1c5f6225-fd1a-4972-8a9d-b546c2158aed' \
  -H "Authorization: Bearer $QUOSHOP_API_KEY"
Response example
{
  "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 #

POST/api/public/v1/quoshop/orders/{order}/payments
Scope : orders:writeIdempotentrecordOrderPayment

Payment 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

  • orderstringpathrequired

    Identifier (UUID) or number (WEB-2026-000042) of the order.

  • X-QuoShop-Storestringheader

    Target 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-Keystringheader

    Idempotency 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: 422 IDEMPOTENCY_KEY_REUSED. First call still in progress: 409 IDEMPOTENCY_IN_PROGRESS.

Request body application/json

  • referencestringrequired

    Payment reference — idempotency key: replayed, nothing is rewritten.

    e.g.pi_3QxYz
  • amountnumberrequired
    e.g.245
  • methodstring

    Card by default.

    valuesCASHCHECKDRAFTTRANSFERCARDLOYALTYBALANCECREDITOTHER
  • paidAtstring
    e.g.2026-10-02T09:12:00Z

Response 201application/json

Created.

  • idstring (uuid)required
  • numberstringrequired

    Number given to the customer.

    e.g.WEB-2026-000042
  • channelstringrequired

    Placed on the storefront, or created by an external system.

    valuesSTOREFRONTAPI
  • externalSourcestring | null
    e.g.woocommerce
  • externalIdstring | null
    e.g.10293
  • statusstringrequired
    valuesNEWCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLED
  • statusLabelstringrequired
    e.g.Confirmée
  • paymentStatusstringrequired
    valuesPENDINGAUTHORIZEDPAIDPARTIALLY_REFUNDEDREFUNDEDFAILED
  • paymentStatusLabelstringrequired
    e.g.Payée
  • currencystringrequired

    Store currency.

    e.g.TND
  • localestring | null
    e.g.fr
  • customerOrderCustomerDtorequired
    OrderCustomerDto details
  • shippingAddressOrderAddressDto | null
    OrderAddressDto details
  • billingAddressOrderAddressDto | null
    OrderAddressDto details
  • deliveryOrderDeliveryDtorequired
    OrderDeliveryDto details
  • paymentOrderPaymentInfoDtorequired
    OrderPaymentInfoDto details
  • totalsOrderTotalsDtorequired
    OrderTotalsDto details
  • linesOrderLineDto[]required
    OrderLineDto details
  • erpOrderErpDtorequired
    OrderErpDto details
  • notestring | null
  • cancelReasonstring | null
  • placedAtstringrequired
  • confirmedAtstring | null
  • preparedAtstring | null
  • shippedAtstring | null
  • deliveredAtstring | null
  • cancelledAtstring | null
  • updatedAtstringrequired

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.

Request example
# 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
}'
Response example
{
  "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) #

POST/api/public/v1/quoshop/orders/{order}/status
Scope : orders:writeupdateOrderStatus

For 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

  • orderstringpathrequired

    Identifier (UUID) or number (WEB-2026-000042) of the order.

  • X-QuoShop-Storestringheader

    Target 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

  • statusstringrequired

    Next step. CONFIRMED posts the order to the ERP; SHIPPED issues the goods and invoices if the store invoices on shipping; CANCELLED (before shipping) cancels the documents and puts issued stock back.

    valuesCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLED
  • reasonstring

    Reason (cancellation).

  • notifyCustomerboolean

    Send the store’s step notification to the buyer.

    defaultfalse

Response 200application/json

Success.

  • idstring (uuid)required
  • numberstringrequired

    Number given to the customer.

    e.g.WEB-2026-000042
  • channelstringrequired

    Placed on the storefront, or created by an external system.

    valuesSTOREFRONTAPI
  • externalSourcestring | null
    e.g.woocommerce
  • externalIdstring | null
    e.g.10293
  • statusstringrequired
    valuesNEWCONFIRMEDPREPAREDSHIPPEDDELIVEREDCANCELLED
  • statusLabelstringrequired
    e.g.Confirmée
  • paymentStatusstringrequired
    valuesPENDINGAUTHORIZEDPAIDPARTIALLY_REFUNDEDREFUNDEDFAILED
  • paymentStatusLabelstringrequired
    e.g.Payée
  • currencystringrequired

    Store currency.

    e.g.TND
  • localestring | null
    e.g.fr
  • customerOrderCustomerDtorequired
    OrderCustomerDto details
  • shippingAddressOrderAddressDto | null
    OrderAddressDto details
  • billingAddressOrderAddressDto | null
    OrderAddressDto details
  • deliveryOrderDeliveryDtorequired
    OrderDeliveryDto details
  • paymentOrderPaymentInfoDtorequired
    OrderPaymentInfoDto details
  • totalsOrderTotalsDtorequired
    OrderTotalsDto details
  • linesOrderLineDto[]required
    OrderLineDto details
  • erpOrderErpDtorequired
    OrderErpDto details
  • notestring | null
  • cancelReasonstring | null
  • placedAtstringrequired
  • confirmedAtstring | null
  • preparedAtstring | null
  • shippedAtstring | null
  • deliveredAtstring | null
  • cancelledAtstring | null
  • updatedAtstringrequired

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.

Request example
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"
}'
Response example
{
  "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.