Skip to main content
Anchor to fulfillmentOrderCancel

fulfillmentOrderCancel

mutation

Requires write_merchant_managed_fulfillment_orders access scope or write_third_party_fulfillment_orders access scope. Also: The user must have fulfill_and_ship_orders permission.

Cancels a FulfillmentOrder and creates a replacement fulfillment order to represent the work left to be done. The original fulfillment order will be marked as closed.

This mutation works when the fulfillment order has a SUBMITTED or CANCELLATION_REQUESTED status. For SUBMITTED orders, cancellation happens immediately because the fulfillment service hasn't accepted the request.


Note

Orders that have had cancellation requested but the cancellation has yet to be accepted by the fulfillment service might still have work completed despite cancellation.


ID!
required

The ID of the fulfillment order to mark as canceled.


Was this section helpful?

Anchor to FulfillmentOrderCancelPayload returnsFulfillmentOrderCancelPayload returns

FulfillmentOrder

The fulfillment order that was marked as canceled.

Anchor to replacementFulfillmentOrderreplacementFulfillmentOrder
FulfillmentOrder

The fulfillment order that was created to replace the canceled fulfillment order.

[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?