ORDER-108 - Create order

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 OPERATIONS to be enabled for OPERATION source path.

User scoping

  • Only ACCOUNT users are allowed.

Store scoping

  • Effective store is dj-store header if provided; otherwise the tenant default store.
  • Caller must be attached to the effective store; otherwise 403.

Operation visibility (when sourceType = OPERATION)

  • Only ACTIVE Operations whose now is within [startDate, endDate] are eligible.
  • PUBLIC are visible to all accounts on the store.
  • PRIVATE requires 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.
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!