Skip to main content
Anchor to OrderCancelUserError

OrderCancelUserError

object

Requires read_orders access scope or read_marketplace_orders access scope.

Errors related to order cancellation.

•OrderCancelUserErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

Cancels an order.

Arguments

•BooleanDefault:false

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

•ID!required

The ID of the order to be canceled.

•OrderCancelReason!required

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.


Fields

•Job

The job that asynchronously cancels the order.

Anchor to orderCancelUserErrorsorderCancelUserErrors
•[OrderCancelUserError!]!non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!non-nullDeprecated

Was this section helpful?


Was this section helpful?