Skip to main content

Get Latest Order Sync Info

GET 

/api/storefront/instances/:id/orders/latest-sync-info

Everything about the state of order importing for this connection: the newest order held, how many orders are waiting on a SKU sales order, how the last import run ended, and when the next automatic run is due.

Not yet available to API tokens

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

  • pending_sku_orders — active, importable orders with no SKU sales order yet.
  • failed_sku_orders — orders whose last creation attempt recorded an error.
  • held_sku_orders — importable orders an automatic run is holding because a line's SKU has no mapped product. Always 0 while the connection's "require mapped products" setting is off.
  • mapped_line_items / unmapped_line_items — order LINES that did and did not resolve to a product.
  • cursor_at — the store-side watermark the next incremental run reads from.
  • last_sync_completed_at, last_sync_failed_at, last_sync_error — how the previous run ended.
  • order_import_start_date — the earliest order date this connection will ever import.
  • auto_sync — derived from the schedule itself, never a fixed label: is_enabled (automatic sync on, schedule not paused, inbound order import enabled), cadence in words, interval_seconds, and seconds_until_next (null when disabled).

Authentication: Bearer token (session or PAT).

Request​

Responses​

OK

Response Headers
    Content-Type