Skip to main content

Refresh Shipment From ShipStation

POST 

/api/shipstation/integration-instances/:integrationInstance/shipments/:shipment/refresh

Fetch fresh shipment data live from the ShipStation API and upsert it into the local row, then return the refreshed resource (including the raw json_object payload).

Authorization

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

ShipStation V1 has no GET /shipments/{id} endpoint, so the lookup calls List Shipments filtered by the shipment's orderId (falling back to its trackingNumber) and matches the shipmentId in the results.

Returns 404 when the local shipment does not belong to the instance, or when ShipStation no longer returns the shipment (e.g. it was removed). Returns 502 when the ShipStation API call fails.

Authentication: Requires Bearer token.

product_links — when include_json=1, the response also includes product_links: a map of lowercased item SKU → { id, name, link_route } resolving the raw payload's item SKUs (shipmentItems for shipments, items for orders) to local SKU.io products at /products/{id}. SKUs with no matching local product are absent from the map.

Request

Responses

OK

Response Headers
    Content-Type