Skip to main content
Log inSign up
mutation

Requires write_orders access scope or write_marketplace_orders access scope. Also: This action cannot be reversed.

Cancels an order.

•
BooleanDefault:false

Whether to send a notification to the customer about the order cancellation.

•
ID!required

The ID of the order to be canceled.

•

The reason for canceling the order.

•
Boolean!required

Indicates whether to refund the amount paid by the customer. Authorized payments will be voided regardless of this setting.

•
Boolean!required

Whether to restock the inventory committed to the order. For unpaid orders fulfilled from locations that have been deactivated, inventory will not be restocked to the deactivated locations even if this argument is set to true.

•
StringDefault:null

A staff-facing note about the order cancellation. This is not visible to the customer.


Was this section helpful?

Anchor to OrderCancelPayload returnsOrderCancelPayload returns

•

The job that asynchronously cancels the order.

Anchor to orderCancelUserErrorsorderCancelUserErrors
•

The list of errors that occurred from executing the mutation.

•
[UserError!]!non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?