Skip to main content

Cancel a Delivery

cancelDelivery Mutation

mutation {
cancelDelivery(id: "del_CVNDR5F59Y", reason: "There's a snake in my boots") {
id
}
}

When a delivery is canceled, a cancellationReason will be available via webhook or API request. See Cancellation reasons for the list of values (e.g. "User Requested", "Driver Issue").

Response

attributedescription
idid of the delivery
reasonthe reason or cancellation

Response Body

{
"data": {
"cancel": {
"id": "del_CVNDR5F59Y"
}
}
}