This endpoint allows you to calculate the price for door-to-door delivery. The request should be sent as an HTTP POST to /price/door-door with the following payload in raw request body format:
{
"pickup_origin": {
"state_code": "LA",
"country_code": "NG",
"city": "Lagos",
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
}
},
"destinations": [
{
"city": "Lagos",
"state_code": "LA",
"country_code": "NG",
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"item_weight": 1
}
]
}
The response will include a status, message, and data object. The data object contains details about the pickup origin, destinations, total amount, total discount amount, and other relevant information. Each destination will have details about the city, state code, country code, region, item weight, dropoff centre, price, and weight.
{
"status": true,
"message": "",
"data": {
"pickup_origin": {
"state_code": "",
"country_code": "",
"city": "",
"region": {
"latitude": 0,
"longitude": 0
},
"pickup_centre": {
"centre_code": "",
"centre_name": ""
}
},
"destinations": [
{
"city": "",
"state_code": "",
"country_code": "",
"region": {
"latitude": 0,
"longitude": 0
},
"item_weight": 0,
"dropoff_centre": {
"centre_code": "",
"centre_name": ""
},
"price": {
"amount": 0,
"discount_amount": 0,
"amount_payable": 0,
"discount_type": "",
"discount_description": "",
"distance": "",
"duration": ""
},
"weight": ""
}
],
"total_amount": 0,
"total_discount_amount": 0,
"total_amount_payable": 0,
"discount_type": "",
"discount_description": ""
}
}
Documentation Index
Fetch the complete documentation index at: https://docs.mervii.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.