cURL
curl --request POST \ --url https://api.usedroptrail.com/delivery-requests \ --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>", "created_at": "<string>", "sender_id": "<string>", "estimated_price": 123 }
Create a new delivery request
{ "from_location": "123 Main St, Anytown, USA, 12345", "to_location": "456 Elm St, Anytown, USA, 12345", "receiver_phone": "+1234567890", "estimated_weight": 10, "package_count": 2, "description": "Fragile items, please handle with care", "delivery_deadline": "2025-01-31T12:00:00Z", "is_interstate": false }