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
| attribute | description |
|---|---|
| id | id of the delivery |
| reason | the reason or cancellation |
Response Body
{
"data": {
"cancel": {
"id": "del_CVNDR5F59Y"
}
}
}