Skip to main content

Update Order From Fulfillment (Power User)

PUT 

/api/starshipit/update-order/:sales_order_fulfillment

Pushes the current state of a sales order fulfillment to StarShipIt. If the fulfillment already has a linked StarShipIt order, that order is updated live via the StarShipIt API (preserving existing line identifiers); otherwise a new StarShipIt order is created. The result is persisted to the local order cache and returned.

Not yet available to API tokens

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

The path parameter is the sales order fulfillment ID. No request body.

Before submitting, the fulfillment is validated as a StarShipIt order payload (destination address, line items, etc.); when validation fails, a 400 is returned with per-field errors. A 502 is returned when the StarShipIt API call fails.

This is a legacy power-user endpoint kept for backward compatibility; it is not instance-scoped and resolves the single active StarShipIt integration instance itself. When no StarShipIt instance is configured, it returns HTTP 200 with an error payload (code StarshipitNotIntegrated).

Requires the power user role.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type