Skip to main content

Sync Orders

POST 

/api/pinnacle/instances/:instance/sync/orders

Queues a background job that reconciles Pinnacle orders (GetOrders) into SKU.io for a date window, creating or updating local order records. Returns immediately with the background job's id and name.

Not yet available to API tokens

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

Body fields (all optional):

  • mode (string): since_last (default — from the last successful orders sync), from_start_date (from the instance's configured sync_start_date; 422 if none is set), custom_range (date_from..date_to), or specific (one tracking_number).
  • date_from (string, Y-m-d): required when mode is custom_range.
  • date_to (string, Y-m-d, on or after date_from): required when mode is custom_range.
  • tracking_number (string, max 50): required when mode is specific.

Authentication: requires a Bearer token (Personal Access Token).

Requires the integrations.sync permission; without it the request is refused with 403.

Request​

Responses​

OK

Response Headers
    Content-Type