Skip to main content

Create SKU Order

POST 

/api/storefront/instances/:id/orders/:id2/create-sku-order

Create the SKU.io sales order for this one store order, inline. Idempotent: an order that already has one is returned unchanged. Not gated by the connection's automatic-creation setting.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

422 when the order can never become a SKU sales order — it is cancelled, refunded, or an unfinished checkout that was never paid (see is_importable on the order) — or when creation itself failed, in which case the message carries the reason and the order's error_log records it.

The payload is the full order: every field from the list plus complete line objects (each with its SKU.io product link and, when the store product has been imported, its channel product link), the shipments SKU.io has pushed, the linked SKU.io sales order with its fulfillments, the shipments the store itself reports (store_fulfillments), and the stored store payload (raw_data). items_count is not included here — count items.

Requires the integrations.sync permission.

Authentication: Bearer token (session or PAT).

Request​

Responses​

OK

Response Headers
    Content-Type