← API reference
Mutation / commerce

createOrderGraph

Create a complete order — header, customer, billing/shipping addresses, and lines — in a single transaction. Each nested input reuses the same type as the corresponding individual upsert mutation; nested ids are rejected because this mutation is create-only. The resolver also enforces customer:write / address:write / orderline:write when those nested inputs are provided.

Arguments

Converged order input including nested customer, addresses, and lines

Returns CreateOrderGraphPayload!

Explore in a view

Order Intake
View exact SDL
"""
Create a complete order — header, customer, billing/shipping addresses, and lines — in a single transaction. Each nested input reuses the same type as the corresponding individual upsert mutation; nested ids are rejected because this mutation is create-only. The resolver also enforces customer:write / address:write / orderline:write when those nested inputs are provided.
"""
createOrderGraph(
  """Converged order input including nested customer, addresses, and lines"""
  input: CreateOrderGraphInput!
): CreateOrderGraphPayload! @topic(names: ["commerce"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.