Comment on page
Get Delivery Price
post
{baseUrl}
/deliveries/price
Get Delivery Price
This endpoint allows you to get the delivery price between two locations.
You have 2 options:
Pass the location code generated in the "Get Delivery Locations" endpoint.
Include the geocode for both the pickup and drop-off locations.
Parameters
Body
pickupCode
string
Location code
dropoffCode
string
Location code
pickupDate*
Date(ISO)
The delivery date
pickupGeo
object
Longitude and latitude
dropoffGeo
object
Longitude and latitude
Responses
200
Delivery price successfully generated.
400
Validation error
401
{
"pickupCode": "11",
"dropoffCode": "02",
"pickupDate": "2021-12-10",
"pickupGeo": {
"lat": "6.637954799999999",
"long": "3.5439057",
}
"dropoffGeo": {
"lat": "6.459488599999999",
"long": "3.4179723"
},
}
Last modified 3mo ago