put https://example.com/v2/shop/commercial-orders//lines
Add or update lines on an existing commercial order.
Scope
- Front Office only; caller must be an
ACCOUNTuser.
Store scoping
- Effective store is
dj-storeheader if provided; otherwise the tenant default store. - Caller must be attached to the effective store; otherwise 403.
Operation context
- If the order originates from an Operation (
sourceType = OPERATION) and you are in a PARTIAL flow: - For a line whose variant belongs to the Operation, apply Operation constraints (visibility, dates,
minQuantity/maxQuantity) alongside standard rules. - For a line whose variant does not belong to the Operation, apply standard rules only (no Operation constraints).
- If none of the requested lines are eligible after applying all applicable constraints, the request fails with 422.
Response model
- On success, returns an array of non-blocking warnings (may be empty) describing adjustments performed by the system (for example, quantity bounded to min/max).
