POST
/
price
/
intral-city
curl --request POST \
  --url https://api.mervii.com/beta/price/intral-city \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "destinations": [],
  "item_weight": 1,
  "pickup_origin": {
    "city": "Lagos",
    "country_code": "NG",
    "region": {
      "latitude": 6.4612672,
      "longitude": 3.3961466
    },
    "state_code": "LA"
  }
}'
{
"data": {
"destinations": [
{
"city": "Lagos",
"country_code": "NG",
"price": {
"amount": 28366.4,
"amount_payable": 22693.12,
"discount_amount": 5673.28,
"discount_description": "20% discount",
"discount_type": "percentage",
"distance": "142 km",
"duration": "2 hours 4 mins"
},
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"state_code": "LA"
},
{
"city": "Lagos",
"country_code": "NG",
"price": {
"amount": 28366.4,
"amount_payable": 22693.12,
"discount_amount": 5673.28,
"discount_description": "20% discount",
"discount_type": "percentage",
"distance": "142 km",
"duration": "2 hours 4 mins"
},
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"state_code": "LA"
}
],
"discount_description": "See the destination parcel details",
"discount_type": "percentage",
"pickup_origin": {
"city": "Lagos",
"country_code": "NG",
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"state_code": "LA"
},
"total_amount": 56732.8,
"total_amount_payable": 45386.24,
"total_discount_amount": 11346.56
},
"message": "Pickup and destination addresses successfully verified",
"status": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

success

The response is of type object.