Skip to main content

Sync Orders

POST 

/api/shippo/instances/:integration_instance/orders/sync

Queues a background import of orders from Shippo for the chosen window.

Not yet available to API tokens

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

Body fields (all optional — an empty body syncs everything changed since the last successful sync):

  • mode (string): one of since_last_update (default), from_start_date (from the instance's sync_start_date setting), date_range, specific.
  • date_from (date, nullable): start of the window (Y-m-d is a local calendar day; an ISO-8601 date-time is used as an instant). Required for date_range when date_to is empty.
  • date_to (date, nullable): end of the window; a bare Y-m-d means through the end of that day. Must be on or after date_from.
  • reference (string, nullable, max 255): identifies the single record to sync. Required when mode is specific. For orders, reference is either the 32-character Shippo order object id or an order number already synced to SKU.io; an order number that is not known returns 422.

Returns 200 with the tracked_job_log_id of the background job, which can be polled for progress. Returns 422 with field errors when validation fails, 404 for an unknown instance.

Authentication: Requires a Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type