Get delivery information using QR token
GET/company/qr/:token
This endpoint allows retrieving all information associated with a delivery using its unique QR token.
The QR token is generated when the delivery is created and contains a unique reference to it.
Use cases:
- Scanning a QR code in the mobile app to view delivery details
- Verifying delivery information before confirmation
- Checking the status and details of an ongoing delivery
The response includes:
- Basic delivery data (ID, service code, status)
- Pickup and destination addresses
- Assigned vehicle information
- Estimated and confirmed dates
Request
Responses
- 200
- 404
Successful response with complete delivery details. Example:
{
_id: 5f8d3a1b2c3d4e5f6a7b8c9d,
service_code: SRV-2023-001,
status: in_transit,
date_eta: 2023-10-15T14:30:00Z,
etl_address: {
city: Madrid,
zipcode: 28001,
country: ES,
name: Central Warehouse
},
etd_address: {
city: Barcelona,
zipcode: 08001,
country: ES,
name: Logistics Center
},
trucker_vehicle: {
plate: 1234ABC
},
confirmed: false
}
Delivery not found. This may occur when:
- The QR token does not exist or has expired
- The delivery was removed from the system
- There is an error in the format of the provided token