List Pre-Start-Date Orders
GET/api/faire/instances/:integrationInstance/pre-start-date-orders
Query Faire live for orders placed before the instance's order import start date, so historical orders can be selectively imported. Results come directly from the Faire API — not from the local database — and each order carries eligibility flags for import.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Requires the instance's order import start date to be set — returns 422 otherwise.
Path Parameters:
integrationInstance- The ID of the integration instance
Query Parameters:
created_at_min(optional, date) - Lower bound for the query window. Defaults to one year before the order import start date
Behavior:
- Scans up to 10 pages of 50 orders from Faire and keeps only orders created before the start date
- Cancelled orders and orders already imported into SKU.io are marked ineligible
- Order totals are read from Faire payout data, falling back to a sum of line item prices when Faire returns zero
Response:
data- The queried orders, each with:faire_order_id- Faire order ID (e.g.bo_abc123xyz)display_id- Short human-readable Faire order numberstatus- Faire order state (e.g.DELIVERED,CANCELED)retailer_name- Retailer/company name from the order addressordered_at- When the order was placed on Fairetotal- Order subtotal in minor currency units (cents); null when unavailablecurrency_code- Currency of the total (default USD)item_count- Total units across all line itemsalready_imported- True when the order already exists in SKU.ioeligible- True when the order can be importedineligible_reason- Why the order cannot be imported (null when eligible)items- Line items withfaire_line_item_id,sku,name,quantity,unit_price(major units)
order_import_start_date- The instance's configured start datemeta.total_queried/meta.eligible_count/meta.already_imported_count- Query summary counts
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.