Mutations for creating Orders as the authenticated Customer.
The My Orders mutations return the same Order output type as the Orders mutations. To query Orders of the authenticated Customer, use the
order and orders fields on the me field. These return Order and OrderQueryResult.The GraphQL API doesn't provide an update mutation for My Orders.
Queries
The queries for My Orders are the
order and orders fields on the me field. They are the same as the queries documented on the Orders page (Query Orders and Get Order), but return only Orders of the authenticated Customer.Mutations
Create My Order from Cart
MUTATIONcreateMyOrderFromCart
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
| Arguments | |
|---|---|
draft | |
storeKey | The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions. |
Output:Order
Create My Order from Quote
MUTATIONcreateMyOrderFromQuote
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
| Arguments | |
|---|---|
draft | |
Output:Order
Output types
The My Orders queries and mutations return the Order and OrderQueryResult types.
Input types
OrderMyCartCommand
idString | |
versionLong |
OrderMyQuoteCommand
idString | |
versionLong | |
quoteStateToAcceptedBoolean | Default: false |