FlexFlow prices
Door-Door
API Documentation
CitySwift prices
CitySwift Request
FlexFlow Request
Door-Door
Home pickup - Home delivery
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:
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 '{
"destinations": [
{
"city": "Lagos",
"country_code": "NG",
"item_weight": 1,
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"state_code": "LA"
}
],
"pickup_origin": {
"city": "Lagos",
"country_code": "NG",
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"state_code": ""
}
}'
{
"data": {
"destinations": [
{
"city": "Lagos",
"country_code": "NG",
"dropoff_centre": {
"centre_code": "lagos-ojodu-berger",
"centre_name": "Ojodu Berger Lagos"
},
"item_weight": 1,
"price": {
"amount": 11791.850875080365,
"amount_payable": 11791.850875080365,
"discount_amount": 0,
"discount_description": "0% discount",
"discount_type": "Percetage",
"distance": "68.26634062567 Kilometres to the drop off center ",
"duration": "1-4 days"
},
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"state_code": "LA",
"weight": "1"
}
],
"discount_description": "0% discount",
"discount_type": "Percetage",
"pickup_origin": {
"city": "Lagos",
"country_code": "NG",
"pickup_centre": {
"centre_code": "lagos-adeniji-adele",
"centre_name": "Adeniji Adele Lagos"
},
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"state_code": "LA"
},
"total_amount": 11791.850875080365,
"total_amount_payable": 11791.850875080365,
"total_discount_amount": 0
},
"message": "get price",
"status": true
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Example:
"Lagos"
Example:
"NG"
Example:
1
Example:
"LA"
Example:
[
{
"city": "Lagos",
"country_code": "NG",
"item_weight": 1,
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"state_code": "LA"
}
]
Response
200
application/json
success
Example:
"Lagos"
Example:
"NG"
Example:
1
Example:
11791.850875080365
Example:
11791.850875080365
Example:
0
Example:
"0% discount"
Example:
"Percetage"
Example:
"68.26634062567 Kilometres to the drop off center "
Example:
"1-4 days"
Example:
"LA"
Example:
"1"
Example:
[
{
"city": "Lagos",
"country_code": "NG",
"dropoff_centre": {
"centre_code": "lagos-ojodu-berger",
"centre_name": "Ojodu Berger Lagos"
},
"item_weight": 1,
"price": {
"amount": 11791.850875080365,
"amount_payable": 11791.850875080365,
"discount_amount": 0,
"discount_description": "0% discount",
"discount_type": "Percetage",
"distance": "68.26634062567 Kilometres to the drop off center ",
"duration": "1-4 days"
},
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"state_code": "LA",
"weight": "1"
}
]
Example:
"0% discount"
Example:
"Percetage"
Example:
"Lagos"
Example:
"NG"
Example:
"LA"
Example:
11791.850875080365
Example:
11791.850875080365
Example:
0
Example:
"get price"
Example:
true
Was this page helpful?
curl --request POST \
--url https://api.mervii.com/beta/price/door-door \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"destinations": [
{
"city": "Lagos",
"country_code": "NG",
"item_weight": 1,
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"state_code": "LA"
}
],
"pickup_origin": {
"city": "Lagos",
"country_code": "NG",
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"state_code": ""
}
}'
{
"data": {
"destinations": [
{
"city": "Lagos",
"country_code": "NG",
"dropoff_centre": {
"centre_code": "lagos-ojodu-berger",
"centre_name": "Ojodu Berger Lagos"
},
"item_weight": 1,
"price": {
"amount": 11791.850875080365,
"amount_payable": 11791.850875080365,
"discount_amount": 0,
"discount_description": "0% discount",
"discount_type": "Percetage",
"distance": "68.26634062567 Kilometres to the drop off center ",
"duration": "1-4 days"
},
"region": {
"latitude": 7.427026700000001,
"longitude": 3.8900142
},
"state_code": "LA",
"weight": "1"
}
],
"discount_description": "0% discount",
"discount_type": "Percetage",
"pickup_origin": {
"city": "Lagos",
"country_code": "NG",
"pickup_centre": {
"centre_code": "lagos-adeniji-adele",
"centre_name": "Adeniji Adele Lagos"
},
"region": {
"latitude": 6.4612672,
"longitude": 3.3961466
},
"state_code": "LA"
},
"total_amount": 11791.850875080365,
"total_amount_payable": 11791.850875080365,
"total_discount_amount": 0
},
"message": "get price",
"status": true
}