Skip to main content
PATCH
https://api.usedroptrail.com
/
delivery-requests
/
{id}
Update Delivery Request
curl --request PATCH \
  --url https://api.usedroptrail.com/delivery-requests/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_location": "<string>",
  "to_location": "<string>",
  "receiver_phone": "<string>",
  "estimated_weight": 123,
  "package_count": 123,
  "description": "<string>",
  "delivery_deadline": "<string>",
  "is_interstate": true
}
'
{
  "id": "<string>",
  "status": "<string>",
  "from_location": "<string>",
  "to_location": "<string>",
  "receiver_phone": "<string>",
  "estimated_weight": 123,
  "package_count": 123,
  "description": "<string>",
  "delivery_deadline": "<string>",
  "is_interstate": true,
  "updated_at": "<string>",
  "estimated_price": 123
}
Update details of an existing delivery request. Only requests in PENDING status can be updated.

Path Parameters

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

Request Body

from_location
string
Full pickup location address including street, city, state and postal code
to_location
string
Full delivery destination address including street, city, state and postal code
receiver_phone
string
Phone number of the recipient in E.164 format (e.g. +1234567890)
estimated_weight
number
Estimated weight of the package in kilograms (max 500kg)
package_count
integer
Number of packages in the delivery (max 50)
description
string
Detailed description of the package contents and any special handling instructions
delivery_deadline
string
ISO 8601 formatted deadline for delivery completion (must be in the future)
is_interstate
boolean
Whether the delivery crosses state lines. Additional fees may apply.

Response

id
string
The unique identifier for the delivery request
status
string
Current status of the delivery request
from_location
string
Updated pickup location address
to_location
string
Updated delivery destination address
receiver_phone
string
Updated phone number of the recipient
estimated_weight
number
Updated estimated weight in kilograms
package_count
integer
Updated number of packages
description
string
Updated package description and handling instructions
delivery_deadline
string
Updated ISO 8601 formatted delivery deadline
is_interstate
boolean
Updated interstate delivery status
updated_at
string
ISO 8601 timestamp when the request was last updated
estimated_price
number
Updated estimated delivery price in USD based on new parameters

Example Request