Skip to main content

Sync Shipments

POST 

/api/shiphero/integration-instances/:integration_instance/shipments/sync

Queue a tracked job that syncs shipments from ShipHero's GraphQL shipments query (cursor-paginated). Job name: Sync Shiphero Shipments: {instance}.

Authorization

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

Request body (all optional):

  • mode (string) — sync mode. One of: since_latest, date_range, all.
    • since_latest — pass date_from set to the latest synced shipment's created date (bounded window through now).
    • date_range — pass an explicit date_from / date_to window.
    • all — FULL re-sync: leaves the window unbounded so ShipHero returns the entire shipment history. date_from / date_to are ignored.
  • date_from (ISO 8601 datetime) — lower bound. Ignored when mode=all.
  • date_to (ISO 8601 datetime) — upper bound. Ignored when mode=all.

When mode is omitted, a missing date window defaults to the last 30 days.

Returns 409 if a shipments sync is already in progress for this integration.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type