fulfillmentOrderCancel mutation
Marks a fulfillment order as canceled.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
mutation fulfillmentOrderCancel($id: ID!) { fulfillmentOrderCancel(id: $id) {} } { “id”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=” }
<font style="color:#1F61A0;">fulfillmentOrder</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">id</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">replacementFulfillmentOrder</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">id</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">field</font>
<font style="color:#1F61A0;">message</font>
<font style="color:#555555;">}</font>
Arguments
Argument | Description |
---|---|
id ( [ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01) ) REQUIRED |
The ID of the fulfillment order to mark as canceled. |
Return fields
- fulfillmentOrder (
[FulfillmentOrder](https://shopify.dev/docs/admin-api/graphql/reference/shipping-and-fulfillment/fulfillmentorder)
)
The fulfillment order that was marked as canceled. - replacementFulfillmentOrder (
[FulfillmentOrder](https://shopify.dev/docs/admin-api/graphql/reference/shipping-and-fulfillment/fulfillmentorder)
)
The fulfillment order that was created to replace the canceled fulfillment order. - userErrors (
[[UserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/usererror)
)
List of errors that occurred executing the mutation.