Skip to main content
Anchor to OrderCancelJobResult

OrderCancelJobResult

object

Requires read_orders access scope or read_marketplace_orders access scope. Also: The user requires cancel_orders access scope.

A job to determine the result of an order cancellation request.

•Boolean!non-null

This indicates if the job is still queued or has been run.

•[OrderCancelUserError!]!non-null

Returns any error that occurred during order cancellation.

•ID!non-null

A globally-unique ID that's returned when running an asynchronous mutation.

•Order

The order associated with the cancellation request.

•OrderCancelStatus!non-null

The current status of the order cancellation request.


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.

•OrderCancelJobResult

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?

•interface

Was this section helpful?