Get ride by ID

GET {{AppUrl}}/api/v1/carrier/ride/{{Ride ID}}

Introduction

Retrieve detailed information for a ride by ID. Only rides in plots for which the carrier is responsible can be retrieved.

Structure

ItemTypePluralityOptionsRequiredDescription
idinteger1yesRide identifier.
transport_typevarchar(255)1llv
omd
wmo
yesThe transport type of the ride.
distance_kmdecimal(8,2)1yesDistance in kilometers (up to two decimals).
distance_zoneinteger1yesDistance in zones.
rbs_numberinteger1yesRBS number (agency ride ID).
remarkvarchar(255)1noAn optional remark that can be supplied by the agency.
callcentre_employeevarchar(255)1yesThe call centre employee responsible for booking the ride.
callback_numbervarchar(255)1noThe number you can reach the customer on.
payment_methodvarchar(255)1yesThe payment method for the ride.
is_goanboolean1yesWhether the ride was booked through the Goan app.
customerobject1yesCustomer information.
idinteger1yesThe customer identifier.
first_namevarchar(255)1yesThe first name of the customer.
initialsvarchar(255)1yesThe initials of the customer.
infixvarchar(255)1noThe infix of the customer.
last_namevarchar(255)1yesThe last name of the customer.
emailvarchar(255)1noE-mail address.
gendervarchar(1)1m
f
yesThe gender of the customer (Male or female).
phone_numbervarchar(255)1yesPhone number of the customer.
mobilephonenumbervarchar(255)1noMobile phone number of the customer.
restrictionsarrayNintellectual
visual
auditory
motoric
psychological
yes*Is only required for contract_type of wmo.
indicationsarrayNassistance
scootmobile
guide-dog
solo
rollator
sit-in-front
room
low-entrance
family
push-wheelchair
foldable-wheelchair
electric-wheelchair
assistance
extra-high-wheelchair
extra-wide-wheelchair
leg-support
extra-large-entrance
extra-large-seat
sms-service
call-service
type-1
type-2
type-3
child
pet
free-counselor
social-counselor
noThe indications for the customer.
card_numbervarchar(255)1noThe active card number for the customer.
locationsarray2yesExactly two locations must be supplied, one with action 'pickup' and one with action 'dropoff'.
typevarchar(255)1coordinate
address
yesIndicates whether the location is a coordinate or address. Either a coordinate or address must be supplied for a location.
actionvarchar(255)1pickup
dropoff
yesThe action of the location.
descriptionvarchar(255)1noAn optional description that can be supplied by the agency.
idealDateTime1yes*Ideal time to arrive. Is required once for action 'pickup' or 'dropoff', not both.
coordinateobject1noThe coordinates of the location.
latitudedecimal(8,6)1yesLatitudinal coordinate of the location.
longitudedecimal(9,6)1yesLongitudinal coordinate of the location.
addressobject1noThe address of the location.
streetvarchar(255)1yesStreet name of the location.
numbervarchar(255)1yesNumber of the location.
additionvarchar(255)1noAddition to the number of the location.
postcodevarchar(255)1yesPostal code of the location.
placevarchar(255)1yesPlace of the location.
passengersarrayNyesDefines the passengers for the ride.
typevarchar(255)1customer
assistance
guide-dog
companion
yesThe type of passenger.
tariffvarchar(255)1normal
reduced
free
yesThe tariff of the passenger.
descriptionvarchar(255)1yesThe passenger description supplied by the agency.
quantityinteger1yesThe quantity of passengers of this type and tariff.
indicationsarrayNnoDefines the indications for the ride.
typevarchar(255)1assistance
scootmobile
guide-dog
solo
rollator
sit-in-front
room
low-entrance
family
push-wheelchair
foldable-wheelchair
electric-wheelchair
assistance
extra-high-wheelchair
extra-wide-wheelchair
leg-support
extra-large-entrance
extra-large-seat
sms-service
call-service
type-1
type-2
type-3
child
pet
free-counselor
social-counselor
yesThe type of indication.
quantityinteger1yesThe number of times this indication is required / requested.
contributionsarrayNyesContribution the customer will pay for the ride.
typevarchar(255)1personal-contribution
social-mentor
inner-zones
outer-zones
late-booking
yesEigen bijdrage
Eigen bijdrage sociaal begeleider
Eigen bijdrage boven 5e zone
Eigen bijdrage zone 1 t/m 5
Laatboek toeslag
amountinteger1yesThe amount of contribution the customer will pay in cents.
statusesarrayNnoThe statuses for the ride.
typevarchar(255)1accepted
start
pick-up
drop-off
eta
call
not-picked-up
yesThe type of status.
timestampDateTime1yesDate/time of the status.
coordinateobject1yes*Location of the vehicle at the time of the status update. *Required for all statuses except 'accept'.
latitudedecimal(8,6)1yesLatitude of the coordinate.
longitudedecimal(9,6)1yesLongitude of the coordinate.
vehicleobject1yes*Details of the vehicle that updated the status. *Required on statuses of type 'start'.
idinteger1yesVehicle ID as supplied by the carrier.
licensevarchar(255)1yesVehicle license plate number.
fuel_typevarchar(255)1unknown
petrol
diesel
electricity
hydrogen
yesThe vehicle's fuel type.
etaobject1yes*Estimated time of arrival. *Required on statuses of type 'eta'
etaDateTime1yesEstimated time of arrival.
eta_typevarchar(255)1pick-up
drop-off
yesWhether the eta is for pick-up or drop-off location.
resultvarchar(255)1success
not-picked-up
yes*Result of the call. *Required on statuses of type 'call'.
reasonvarchar(255)1unknown
too-late
client-not-there
yes*Reason for the call. *Required on statuses of type 'call'.
odometerinteger1yes*The odometer at the time of the status update. *Required on statuses of type 'pick-up' and 'drop-off'.
distancedecimal(8,2)1yes*The actual distance in km traveled between pick-up and drop-off. *Required on statuses of type 'drop-off'.
card_numbervarchar(255)1yes*The card number used by the customer. *Required on statuses of type 'pick-up' and 'drop-off'.
created_atDateTime1yesDate/time the ride was created.
updated_atDateTime1yesDate/time the ride was last modified.
deleted_atDateTime1noDate/time the ride was canceled.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"data":{"id":284,"transport_type":"wmo","distance_km":71,"distance_zones":8,"rbs_number":"2359226819","remark":"Aliquam odit commodi dicta.","callcentre_employee":"Joep van Dongen","customer":{"id":63,"first_name":"Lola","initials":"L","infix":"de","last_name":"Haan","gender":"m","phone":"+3120 5852978","mobile":"+31(0)6 10433663","municipality_name":"Ter Idzard","bankaccount":"NL27YBGI2209095944","bankaccount_name":"D Blewanus","restrictions":["auditory","psychological"],"indications":[],"card_number":411875582},"locations":[{"type":"coordinate","action":"pickup","description":"Sit inventore sit quos quisquam asperiores aut voluptatum.","ideal":"2019-01-12T08:20:46+01:00","coordinate":{"latitude":"-57.282994","longitude":"90.328695"}},{"type":"address","action":"dropoff","description":"Reiciendis eveniet est provident quia sed.","ideal":"2016-07-31T13:10:39+02:00","address":{"street":"Schippersingel","number":"1859","addition":"bis","zipcode":"1271KZ","place":"Oldeholtpade"}}],"passengers":[{"type":"companion","tariff":"reduced","description":"Voluptatem ut dolore sapiente necessitatibus.","quantity":3},{"type":"assistance","tariff":"reduced","description":"Corrupti doloribus delectus iusto porro.","quantity":1},{"type":"guide-dog","tariff":"free","description":"Iusto id quaerat qui aut consequuntur.","quantity":3}],"indications":[{"type":"assistance","quantity":1},{"type":"call-service","quantity":1},{"type":"electric-wheelchair","quantity":1},{"type":"extra-large-entrance","quantity":1},{"type":"extra-large-seat","quantity":1},{"type":"extra-wide-wheelchair","quantity":1},{"type":"free-counselor","quantity":1},{"type":"pet","quantity":1},{"type":"room","quantity":1},{"type":"scootmobile","quantity":1}],"contributions":[{"type":"outer-zones","amount":400},{"type":"personal-contribution","amount":0}],"statuses":[{"type":"accepted","timestamp":"2018-12-05T15:24:18+01:00"},{"type":"pick-up","odometer":2,"card_number":"383602248","timestamp":"2018-11-10T15:24:18+01:00","coordinate":{"latitude":"68.676456","longitude":"25.372141"}},{"type":"eta","eta":"2018-12-10T16:41:18+01:00","eta_type":"pick-up","timestamp":"2018-10-24T15:24:18+02:00","coordinate":{"latitude":"-79.641633","longitude":"113.411381"}},{"type":"call","result":"success","reason":"unknown","timestamp":"2018-10-09T15:24:18+02:00","coordinate":{"latitude":"-83.608910","longitude":"-151.616844"}},{"type":"eta","eta":"2018-12-10T16:44:18+01:00","eta_type":"drop-off","timestamp":"2018-09-10T15:24:18+02:00","coordinate":{"latitude":"-10.875086","longitude":"-143.208329"}},{"type":"start","timestamp":"2008-07-18T06:59:22+02:00","coordinate":{"latitude":"52.065000","longitude":"5.104730"},"vehicle":{"id":5,"license":"AA-999-A","fuel_type":"diesel"}},{"type":"drop-off","odometer":300123,"card_number":"123456789","distance":23.15,"timestamp":"2008-07-18T06:59:22+02:00","coordinate":{"latitude":"52.065000","longitude":"5.104730"}}],"created_at":"2018-12-10T15:23:30+01:00","updated_at":"2019-01-23T15:38:03+01:00","deleted_at":null}}