Create Linked Sales Orders
POST/api/faire/instances/:integrationInstance/create-sku-orders
Create SKU.io sales orders from Faire orders that do not yet have a linked sales order.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Path Parameters:
integrationInstance- The ID of the integration instance
Request Body:
ids(required unlesscreate_all_ordersis true, array of integers) - Internal Faire order IDs (theidfrom List Faire Orders, not the Faire order ID string)create_all_orders(optional, boolean) - When true, targets every eligible Faire order on the instance andidsis ignored
Eligibility: Only Faire orders belonging to this instance, without an existing linked sales order, and not archived are processed. Ineligible IDs are silently skipped.
Behavior:
- Exactly 1 eligible order — the sales order is created synchronously within the request
- 2+ eligible orders — a background job is dispatched and the request returns immediately; creation runs asynchronously and progress can be monitored via the returned
tracked_job_log_id - 0 eligible orders — returns a
No orders to createmessage
Response:
message- Outcome summarytracked_job_log_id- ID for monitoring the background creation (only when 2+ orders are queued)total_orders- Number of orders queued for creation (only when 2+ orders are queued)
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.