Skip to main content

Refresh Single Order (Download)

POST 

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

Download (or update) a single order live from StarShipIt by its StarShipIt order id and persist it to the local cache. Backs the search tab's per-result Download / Update buttons.

Authorization

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

Body parameters:

  • uniqueIdrequired string. The StarShipIt order id (the starshipit_order_id returned by Search Orders).

Fetches the order via StarShipIt's GET /orders?order_id=, upserts it (with detailed fields), and returns the refreshed order resource (with json_object included).

Errors:

  • 422 if uniqueId is missing
  • 502 if the upstream StarShipIt call fails or the order cannot be persisted

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type