Search customer

GET {{AppUrl}}/api/v1/agency/customer/search?last_name={{LastName}}

Introduction

Search all customers within the following fields: - lastname: Last name - dateofbirth: Date of birth (Y-m-d) - cardnumber: Card number - phone_number: Phone number

It is possible to combine these fields, at least one must be given. No other fields are searchable.

Structure

ItemTypePluralityRequiredDescription
idinteger1yes
first_namevarchar(255)1yesFirst name.
initialsvarchar(255)1yesInitials.
infixvarchar(255)1noInfix.
last_namevarchar(255)1yesLast name.
customer_numberinteger1yesCustomer number (identifier for municipalities).
phone_numbervarchar(255)1yesPhone number.
mobilephonenumbervarchar(255)1noMobile phone number.
dateofbirthDateTime1yesDate of birth.
zipcodevarchar(255)1noPrimary address zipcode.
housenumbervarchar(255)1noPrimary address house number.
card_numberinteger1noCurrent card number.

Request Params

KeyDatatypeRequiredDescription
last_namestring

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"data":[{"id":1,"first_name":"Aiden","initials":"A","infix":"","last_name":"Willemsen","customer_number":77318,"phone_number":"3177 1364761","mobile_phone_number":null,"date_of_birth":"1943-11-30T00:00:00+01:00","zipcode":"5050TT","housenumber":"15","card_number":1858105},{"id":1,"first_name":"Bas","initials":"B.R.","infix":"","last_name":"Willemsen","customer_number":51314,"phone_number":"+31615113161","mobile_phone_number":null,"date_of_birth":"1973-02-14T00:00:00+01:00","zipcode":"7031BL","housenumber":"1B","card_number":null}]}