Support

cancelOrder

View as Markdown

Cancel 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

HeaderRequiredDescription
x-store-idYesID 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

  • id ID! required
  • force Boolean optional Default: false.

Possible returns

  • Order Order

Last updated on

How is this guide?