Skip to main content
POST
https://api.usedroptrail.com
/
delivery-requests
/
{id}
/
cancel
Cancel Delivery Request
curl --request POST \
  --url https://api.usedroptrail.com/delivery-requests/{id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "status": "<string>",
  "cancelled_at": "<string>",
  "cancellation_reason": "<string>"
}
Cancel a delivery request that hasn’t been accepted by a delivery partner yet. Once a request is accepted, it cannot be cancelled.

Path Parameters

id
string
required
The unique identifier of the delivery request to cancel

Response

id
string
The unique identifier of the cancelled delivery request
status
string
Updated status of the request. Will be set to “CANCELLED”
cancelled_at
string
ISO 8601 timestamp when the request was cancelled
cancellation_reason
string
System-generated reason for cancellation (“USER_REQUESTED”)

Example Request