Skip to main content

Sync Orders (Queue Job)

POST 

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

Queue a background (tracked) job to sync orders from StarShipIt into SKU.io. Progress is reported through the tracked job log endpoints and can also be polled via Get Order Sync Progress.

Authorization

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

Body parameters (all optional):

  • mode — one of since_latest | date_range | all.
    • since_latest: sync orders dated on/after the most recently synced order. Send the latest synced order date as date_from.
    • date_range: sync orders between date_from and date_to (inclusive). StarShipIt's API only bounds the start date, so the end date (date_to) is applied by post-filtering fetched pages.
    • all: pull full order history; date_from/date_to are ignored.
  • date_from — start date (YYYY-MM-DD). Lower bound for since_latest and date_range.
  • date_to — end date (YYYY-MM-DD). Upper bound for date_range only.
  • since_datelegacy alias for date_from, kept for backward compatibility with the previous one-click refresh. Used only when date_from is absent.

When mode is omitted the job falls back to the instance's configured order start date (or its sync-days-back window).

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type