Skip to main content

Quote Parcel

TRT Express Quote Parcel API allows you to get a quote for a parcel delivery. You can use the API to get the price and estimated delivery time for a parcel delivery.

Request

Endpoint

POST /api/v1/quote
Authorization: Basic bXktY2xpZW50LWlkOm15LWNsaWVudC1zZWNyZXQ=

BODY
{
"from": {
"address": "123 Main St",
"city": "Toronto",
"province": "ON",
"postal_code": "M5V 1A1",
"country": "Canada"
},
"to": {
"address": "456 Queen St",
"city": "Toronto",
"province": "ON",
"postal_code": "M5V 2A1",
"country": "Canada"
},
"weight": 5,
"weight_unit": "kg",
"length": 10,
"width": 10,
"height": 10
}

Response

{
"rates": [
{
"service": "Express",
"price": 10.0,
"delivery_time": "1-2 days"
},
{
"service": "Standard",
"price": 5.0,
"delivery_time": "3-5 days"
}
]
}