Get Customer Addresses by type
GET/customers/:lookupKey/:lookupValue/addresses/
Use this endpoint to retrieve a list of all customer addresses. Addresses can be filtered by type.
Request
Path Parameters
lookupKey stringrequired
Lookup key. Read more about customer lookup keys
lookupValue stringrequired
The value of the key (id or sourceId)
Query Parameters
type string
Optional. Only retrieve a certain type of address. Possible values:
delivery invoice home
Responses
- 200
- 404
Get Customer Addresses by type - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Get Customer Addresses by type - 200
Schema
Array [
]
data
object[]
active string
city string
code string
company string
country string
email string
fax string
firstName string
gender string
icp string
id number
isDefault string
lastName string
middleName string
mobile string
name string
notes string
number string
numberExtension string
phone string
postalCode string
region string
street string
type string
url string
messages undefined[]
total number
{
"data": [
{
"active": "Y",
"city": "Arnhem",
"code": "11234",
"company": "Propel",
"country": "NL",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "U",
"icp": "N",
"id": 106097,
"isDefault": "N",
"lastName": "McCoy",
"middleName": "",
"mobile": "0038975648",
"name": "",
"notes": "Address notes",
"number": "34",
"numberExtension": "A",
"phone": "0032445888",
"postalCode": "6822 DE",
"region": "",
"street": "Noordpad",
"type": "delivery",
"url": "www.propel.us"
},
{
"active": "Y",
"city": "Amsterdam",
"code": "11235",
"company": "Propel",
"country": "NL",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "U",
"icp": "N",
"id": 106098,
"isDefault": "N",
"lastName": "McCoy",
"middleName": "",
"mobile": "0038975648",
"name": "",
"notes": "",
"number": "193",
"numberExtension": "A",
"phone": "0032445888",
"postalCode": "1016 XA",
"region": "",
"street": "Lijnbaansgracht",
"type": "delivery",
"url": "www.propel.us"
},
{
"active": "Y",
"city": "Arnhem",
"code": "11234",
"company": "",
"country": "NL",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "U",
"icp": "N",
"id": 106099,
"isDefault": "Y",
"lastName": "McCoy",
"middleName": "",
"mobile": "0038975648",
"name": "",
"notes": "Address notes",
"number": "34",
"numberExtension": "A",
"phone": "0032445888",
"postalCode": "6822 DE",
"region": "",
"street": "Noordpad",
"type": "delivery",
"url": "www.propel.us"
}
],
"messages": [],
"total": 3
}
{
"data": [
{
"active": "Y",
"city": "Arnhem",
"code": "11234",
"company": "Propel",
"country": "NL",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "U",
"icp": "N",
"id": 106097,
"isDefault": "N",
"lastName": "McCoy",
"middleName": "",
"mobile": "0038975648",
"name": "",
"notes": "Address notes",
"number": "34",
"numberExtension": "A",
"phone": "0032445888",
"postalCode": "6822 DE",
"region": "",
"street": "Noordpad",
"type": "delivery",
"url": "www.propel.us"
},
{
"active": "Y",
"city": "Amsterdam",
"code": "11235",
"company": "Propel",
"country": "NL",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "U",
"icp": "N",
"id": 106098,
"isDefault": "N",
"lastName": "McCoy",
"middleName": "",
"mobile": "0038975648",
"name": "",
"notes": "",
"number": "193",
"numberExtension": "A",
"phone": "0032445888",
"postalCode": "1016 XA",
"region": "",
"street": "Lijnbaansgracht",
"type": "delivery",
"url": "www.propel.us"
},
{
"active": "Y",
"city": "Arnhem",
"code": "11234",
"company": "",
"country": "NL",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "U",
"icp": "N",
"id": 106099,
"isDefault": "Y",
"lastName": "McCoy",
"middleName": "",
"mobile": "0038975648",
"name": "",
"notes": "Address notes",
"number": "34",
"numberExtension": "A",
"phone": "0032445888",
"postalCode": "6822 DE",
"region": "",
"street": "Noordpad",
"type": "delivery",
"url": "www.propel.us"
}
],
"messages": [],
"total": 3
}
Get Customer Addresses by type - 404
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Get Customer Addresses by type - 404
Schema
error
object
code number
messages string[]
moreInfo string
status number
type string
{
"error": {
"code": 60007,
"messages": [
"Parent resource [Customer] with id [25496] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/60007",
"status": 404,
"type": "ParentCustomerNotFound"
}
}
{
"error": {
"code": 60007,
"messages": [
"Parent resource [Customer] with id [25496] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/60007",
"status": 404,
"type": "ParentCustomerNotFound"
}
}
Loading...