Get customer by ID

GET {{AppUrl}}/api/v1/agency/customer/{{Customer ID}}

Introduction

Retrieve a single customer with detailed information by ID.

Structure

ItemTypePluralityOptionsRequiredDescription
idinteger1yesCustomer identifier.
first_namevarchar(255)1yesFirst name.
initialsvarchar(255)1yesInitials.
infixvarchar(255)1noInfix.
last_namevarchar(255)1yesLast name.
gendervarchar(1)1m
f
yesGender (male or female).
customer_numberinteger1yesCustomer number (identifier for municipalities).
phone_numbervarchar(255)1yesPhone number.
mobilephonenumbervarchar(255)1noMobile phone number.
emailvarchar(255)1noE-mail address.
dateofbirthDateTime1yesDate of birth.
payment_methodvarchar(50)1cash
direct-debit
yesCurrently active payment method.
directdebitrequested_atDateTime1noDate/time customer requested direct-debit authorization.
directdebitauthorized_atDateTime1noDate/time the direct-debit request was authorized.
activeboolean10
1
yesIndicates whether the customer is active (1) or archived (0).
created_atDateTime1yesDate/time the customer was created.
updated_atDateTime1yesDate/time customer was last modified.
deleted_atDateTime1noDate/time customer was archived.
municipalityobject1yesThe municipality information.
namevarchar(255)1yesThe name of the municipality.
codevarchar(4)1yesThe municipality code.
regionobject1yesThe region information.
namevarchar(255)1yesThe name of the region.
addressesarrayNyesHome, post and billing are required. Extra custom addresses are optional.
typevarchar(255)1home
post
billing
custom
yesType of address (home, post, billing or custom).
differentfromhomeboolean10
1
yesIndicates whether this address differs from the home address.
labelvarchar(255)1yes*Label to identify the type of custom address. *Only required on addresses of type 'custom'.
streetvarchar(255)1yes*Street name. *Required on the home address and any addresses that have 'differentfromhome' set to 1.
numbervarchar(255)1yes*House number. *Required on the home address and any addresses that have 'differentfromhome' set to 1.
additionvarchar(255)1noHouse number addition.
postcodevarchar(255)1yes*Postal code. *Required on the home address and any addresses that have 'differentfromhome' set to 1.
cityvarchar(255)1yes*City. *Required on the home address and any addresses that have 'differentfromhome' set to 1.
indicationsarrayNassistance
scootmobile
guide-dog
solo
rollator
sit-in-front
room
low-entrance
family
push-wheelchair
foldable-wheelchair
electric-wheelchair
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.
cardsarrayNnoA list of all cards issued to the customer.
activeboolean10
1
yesIndicates whether card is currently active.
numberinteger1yesCard number.
contractsarrayNnoA list of all contracts for the customer (including those that are not currently valid).
transport_typevarchar(255)1llv
omd
wmo
yesTransport type.
valid_fromDateTime1yesValidity start date.
valid_untilDateTime1noValidity end date. If empty, the contract is indefinite.
start_budgetinteger1noThe starting budget in kilometers (only relevant for transport_type 'wmo').
current_budgetinteger1noThe current budget in kilometers (only relevant for transport_type 'wmo').
unitvarchar(255)1noThe unit type of the contract (km or zones)  (only relevant for transport_type 'wmo').
daysectionsper_weekinteger1noNumber of daily sections per week (only relevant for transport_types 'llv' and 'omd').

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"data":{"id":7,"first_name":"Aiden","initials":"A","infix":"","last_name":"Willemsen","gender":"m","customer_number":77318,"phone_number":"+3177 1364761","mobile_phone_number":"+31(0)6-43813624","email":"hulskes.noah@example.com","date_of_birth":"1943-11-30T00:00:00+01:00","bankaccount":"NL27YBGI2209095944","bankaccount_name":"D Blewanus","payment_method":"direct-debit","direct_debit_requested_at":"2018-11-20T08:18:48+01:00","direct_debit_authorized_at":"2018-11-21T10:17:54+01:00","active":1,"created_at":"2018-12-10T15:23:18+01:00","updated_at":"2019-01-22T11:39:56+01:00","deleted_at":null,"municipality":{"name":"Rheden","code":"3516","region":{"name":"Twente"}},"addresses":[{"type":"home","different_from_home":1,"label":null,"street":"Tinssteeg","number":"586","addition":null,"postcode":"8573WP","city":"Grave"},{"type":"post","different_from_home":0,"label":null,"street":null,"number":null,"addition":null,"postcode":null,"city":null},{"type":"billing","different_from_home":0,"label":null,"street":null,"number":null,"addition":null,"postcode":null,"city":null},{"type":"custom","different_from_home":0,"label":"Corrupti cupiditate","street":"de Langering","number":"39","addition":"c","postcode":"3573AL","city":"Rotstergaast"},{"type":"custom","different_from_home":0,"label":"Voluptas totam","street":"Ghoerlehof","number":"2656","addition":"b","postcode":"9999XK","city":"Midwolde"}],"indications":["call-service","extra-high-wheelchair","scootmobile","sms-service","solo","type-1","type-2"],"cards":[{"active":1,"number":973052009},{"active":0,"number":671085614}],"contracts":[{"transport_type":"omd","valid_from":"2019-01-10T00:00:00+01:00","valid_until":"2020-04-10T00:00:00+02:00","day_sections_per_week":6,"maximum_rides_per_week":12,"maximum_rides_total":780},{"transport_type":"wmo","valid_from":"2018-06-10T00:00:00+02:00","valid_until":"2020-05-10T00:00:00+02:00","start_budget":988,"current_budget":988,"unit":"zones"}]}}