Skip to main content

Get Order Sync Info

GET 

/api/starshipit/integration-instances/:integration_instance/orders/sync-info

Header data for the orders refresh modal: the most recently dated order (latest_order_number + latest_order_date, keyed on order_date), the total order count, and the effective order start date the "Fetch from Start Date" mode will use.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

order_start_date (YYYY-MM-DD) is always returned and resolves through a fallback chain, with order_start_date_source naming where it came from:

  • StarShipIt Order Start Date — the instance's configured Order Start Date (StarShipIt settings)
  • Inventory Start Date — the general inventory start date, when no StarShipIt start date is set
  • Default sync window (last N days) — a now − sync_days_back window, when neither start date is configured

The frontend uses this to seed the "since latest" and "from start date" sync modes (always showing the resolved date and its source) and to show how many orders are currently stored.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type