Skip to main content

Refresh Order Tracking

POST 

/api/starshipit/integration-instances/:integration_instance/orders/:order/tracking

Refreshes live tracking events for a single order by calling Starshipit's GET /track endpoint with the order's order_number. The carrier-reported events are persisted to starshipit_orders.json_object.events so the order detail page can render an up-to-date tracking timeline.

Authorization

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

Also updates: tracking_number, carrier_name (when previously empty), local status (mapped from the tracking status enum), and details_last_updated.

Returns the refreshed order resource (with json_object included) and a success message.

Errors:

  • 400 if the order has no order_number (Starshipit requires it to look up tracking)
  • 404 if the order does not belong to the given integration instance
  • 502 if the upstream Starshipit /track call fails (auth, network, etc.)

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type