Skip to main content

Update Order

POST 

/api/orders/updateorder

Tier: Public — stable, supported for third-party integration.

Fully replaces an order's header fields and lines, and raises OrderUpdated.

Line replacement is a full-replace: UpdateOrderDto.OrderSkus and UpdateOrderDto.OrderUniqueItems lines omitted from the request are soft-deleted. Existing SKU lines are matched, in order, by UpdateOrderSkuDto.OrderSkuId, then by SKU + pick sequence, then by SKU + identical extended-property constraints, then (legacy fallback) by SKU alone.

Because Orders.UpdateOrderDto's constraint-setting properties are non-nullable with hard-coded back-compat defaults, omitting them from the request resets any organisation-default-derived values the order previously had — this is a sharp edge to be aware of when partially updating an order.

Request

Responses

Returns the updated Orders.OrderDetailDto.