Admin API/Shipping and fulfillment/Mutations
fulfillmentCancel
mutationCancels a parcel that hasn't been delivered or refused: its stock goes back to committed and the order back to 'to ship'.
Returns FulfillmentCancelPayload!
mutation FulfillmentCancel($id: ID!) {
fulfillmentCancel(id: $id) {
fulfillment {
id
status
deliveredAt
displayStatus
returnedAt
shippedAt
}
userErrors {
code
message
field
}
}
}
# Variables
{
"id": "gid://ostorya/Product/0f8c5b1e-…"
}Arguments
- idID!required
Payload
- fulfillmentFulfillment
- userErrors[UserError!]!required