cancelOrder
View as MarkdownCancel an existing order. Only an `OPEN` order can be marked as canceled. Set `force: true` to cancel a `COMPLETED` order.
mutation
Requires one of commerce.order:create, commerce.order:update, commerce.order:cancel, or commerce.order:complete (use the scope that matches the operation).
Cancel an existing order. Only an OPEN order can be marked as canceled. Set force: true to cancel a COMPLETED order.
Required headers
| Header | Required | Description |
|---|---|---|
x-store-id | Yes | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED". |
Go to Authentication for credential setup.
Arguments
idID!requiredforceBooleanoptional Default:false.
Possible returns
OrderOrder
Last updated on
How is this guide?