Get customer addresses by card number

GET {{AppUrl}}/api/v1/carrier/customer/by-card/{{Card number}}

Introduction

Get customer address information for the specified card number.

Structure

ItemTypePluralityOptionsRequiredDescription
idinteger1yesCustomer identifier.
adressesarrayNyesThe customer's addresses. Includes at least home, post and billing addresses.
typevarchar(255)1home
post
billing
custom
yesType of address (home, post, billing or custom).
differsfromhomeboolean10
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 'differsfromhome' set to 1.
numbervarchar(255)1yes*House number. *Required on the home address and any addresses that have 'differsfromhome' set to 1.
additionvarchar(255)1noHouse number addition.
postcodevarchar(255)1yes*Postal code. *Required on the home address and any addresses that have 'differsfromhome' set to 1.
cityvarchar(255)1yes*City. *Required on the home address and any addresses that have 'differsfromhome' set to 1.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"data":{"id":54,"blocked":false,"addresses":[{"type":"home","different_from_home":1,"label":null,"street":"van Salmring","number":"2382","addition":"a","postcode":"6871ZM","city":"Plasmolen"},{"type":"post","different_from_home":1,"label":null,"street":"Abdiweg","number":"3131","addition":"b","postcode":"7261CN","city":"Bolsward"},{"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":"Aliquid dolorem","street":"Duboisboulevard","number":"2560","addition":"b","postcode":"2922AG","city":"Heusden"}]}}