Request example
Send pickup and destination coordinates, customer contact details, and one approved vehicle type. departureTime is optional and should be sent as a UAE date-time when provided.
curl --location 'https://hub-sandbox-api.truxx.ae/api/Trips/create-trip' \
--header 'Content-Type: application/json' \
--header 'x-api-key: truxx_sk_test_25d003e5789c483ab47793ad8cc3704f' \
--data '{
"fromLat": 23.004475,
"fromLng": 53.350864,
"toLat": 25.968739,
"toLng": 56.137327,
"mobileNumber": "541112233",
"phoneCode": "971",
"firstName": "John",
"lastName": "Doe",
"vehicleTypeId": 1,
"departureTime": "2026-03-18T05:36"
}'