post https://example.com/v2/shop/commercial-orders
Create a new commercial order from an optional single source (OPERATION, QUOTE, ORDER, or CART).
⚠️ As of now, only OPERATION is supported as a source.
Feature flag
- Requires
OPERATIONSto be enabled forOPERATIONsource path.
User scoping
- Only
ACCOUNTusers are allowed.
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 visibility (when sourceType = OPERATION)
- Only
ACTIVEOperations whosenowis within[startDate, endDate]are eligible. PUBLICare visible to all accounts on the store.PRIVATErequires an explicit association with the caller's account.
Line selection
isFull = true(FULL): all eligible Operation lines are added during creation; if none eligible → 422.isFull = false(PARTIAL): the order is created empty but linked to the Operation; lines are then added via ORDER-150 with Operation constraints enforced.
