Orders
Import an e-commerce order (Shopify/WooCommerce connectors) into the channel sync engine — stored as a channel order (stock reserved, invoice drafted by the engine), deduped by source+external_id; returns channel_order_id (scope: orders:write)
POST
bearerAuthheader
AuthorizationBearer <token>API key as Bearer token
application/json- body
source?stringDefault
"other"Value in
"shopify""woocommerce""other"external_id?stringOrder id in the source system (required; snake_case or camelCase accepted)
Length
length <= 255external_number?stringHuman-facing order number in the source system
Length
length <= 64issuedAt?stringOrder date (ISO 8601); defaults to today (Europe/Bucharest)
currency?stringLength
3 <= length <= 3Default
"RON"customer*lines*array<>Items
1 <= itemstotal*stringDecimal string order total
paid?booleanDefault
falsecurl -X POST "https://example.com/orders/import" \ -H "Content-Type: application/json" \ -d '{ "customer": { "name": "string" }, "lines": [ { "description": "string", "quantity": 1, "unitPrice": "string" } ], "total": "string" }'Empty