Anchor to returnCancelreturn
returnCancel
mutation
Requires access scope or
access scope. Also: Requires the
access scope. The user must have
permission.
Cancels a return and restores the items back to being fulfilled. Canceling a return is only available before any work has been done on the return (such as an inspection or refund).
Anchor to Arguments
Arguments
- •ID!required
The ID of the return to cancel.
- Anchor to notifyCustomernotify•
Customer Whether the customer receives an email notification regarding the canceled return. Not supported. This argument will be removed in a future version.
Was this section helpful?
Anchor to ReturnCancelPayload returnsReturnCancelPayload returns
- Anchor to returnreturn•
The canceled return.
- Anchor to userErrorsuser•
Errors [ReturnUser non-nullError!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation returnCancel($id: ID!, $notifyCustomer: Boolean) {2 returnCancel(id: $id, notifyCustomer: $notifyCustomer) {3 return {4 # Return fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100",3 "notifyCustomer": true4}
{
"id": "gid://shopify/<objectName>/10079785100",
"notifyCustomer": true
}