POST
/
price
/
door-door
curl --request POST \
  --url https://api.mervii.com/beta/price/door-door \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "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
    }
  ]
}'
"{\n    \"status\": true,\n    \"message\": \"get price\",\n    \"data\": {\n        \"pickup_origin\": {\n            \"state_code\": \"LA\",\n            \"country_code\": \"NG\",\n            \"city\": \"Lagos\",\n            \"region\": {\n                \"latitude\": 6.4612672,\n                \"longitude\": 3.3961466\n            },\n            \"pickup_centre\": {\n                \"centre_code\": \"lagos-adeniji-adele\",\n                \"centre_name\": \"Adeniji Adele Lagos\"\n            }\n        },\n        \"destinations\": [\n            {\n                \"city\": \"Lagos\",\n                \"state_code\": \"LA\",\n                \"country_code\": \"NG\",\n                \"region\": {\n                    \"latitude\": 7.427026700000001,\n                    \"longitude\": 3.8900142\n                },\n                \"item_weight\": 1,\n                \"dropoff_centre\": {\n                    \"centre_code\": \"lagos-ojodu-berger\",\n                    \"centre_name\": \"Ojodu Berger Lagos\"\n                },\n                \"price\": {\n                    \"amount\": 11791.850875080363,\n                    \"discount_amount\": 0,\n                    \"amount_payable\": 11791.850875080363,\n                    \"discount_type\": \"Percetage\",\n                    \"discount_description\": \"0% discount\",\n                    \"distance\": \"68.26634062567 Kilometres to the drop off center \",\n                    \"duration\": \"1-4 days\"\n                },\n                \"weight\": \"1\"\n            }\n        ],\n        \"total_amount\": 11791.850875080363,\n        \"total_discount_amount\": 0,\n        \"total_amount_payable\": 11791.850875080363,\n        \"discount_type\": \"Percetage\",\n        \"discount_description\": \"0% discount\"\n    }\n}"

Authorizations

Authorization
string
header
required

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

Headers

Cache-Control
string
Postman-Token
string
Content-Type
string
Content-Length
string
Host
string
User-Agent
string
Accept
string
Accept-Encoding
string
Connection
string
accept
string

Body

application/json · object

The body is of type object.

Response

200
text/plain
OK

The response is of type string.

Was this page helpful?