Request example
The request body must include pickup and dropoff coordinates plus a valid vehicleTypeId. departureTime is optional and should be provided as a UAE date-time when used.
curl --location 'https://hub-sandbox-api.truxx.ae/api/Trips/get-estimated-price' \
--header 'Content-Type: application/json' \
--header 'x-api-key: truxx_sk_test_6d0f0e50dc9a428ba54d65d7754b4aec' \
--data '{
"fromLat": 24.4667,
"fromLng": 54.3667,
"toLat": 25.2048,
"toLng": 55.2708,
"vehicleTypeId": 1,
"departureTime": "2026-03-18T05:36"
}'