Get Customer by lookup key
GET/customers/:lookupKey/:lookupValue
Use this endpoint to retrieve customer details by lookup key. If multiple customers with the same lookup key exist, use additional filtering depending on the lookup key to uniquely identify the customer (e.g. source
and language
for lookup key sourceId
).
Request
Path Parameters
Lookup key. Read more about customer lookup keys
The value of the key (id or sourceId)
Query Parameters
Use expands
as a query parameter to fetch additional information for customers like sources, parent, etc.
sources
: if the "expands" parameter contains this value, the response from the API will return additional source information descibing where this resource is imported from. If there are no sources for this resource then the sources
property in the response will be just an empty array.
parent
: use this value in the expands
query parameter to get additional information about the container which this resource belongs to. In this particular scenario the parent of a customer can be a resource of type usergroup
Responses
- 200
- 400
- 404
Get Customer by lookup key - 200 / Get Customer by lookup key - 200 (expands: sources,parent)
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 by lookup key - 200
- Get Customer by lookup key - 200 (expands: sources,parent)
Schema
Array [
]
Array [
]
data
object
parent
object
sources
object[]
sources
object[]
{
"data": {
"abbreviation": "MM",
"dateOfBirth": "August, 28 1993 00:00:00 +0000",
"debtorId": "12345",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "M",
"id": 25494,
"lastName": "McCoy",
"login": "miles@propel.us",
"middleName": "",
"mobile": "0038975648",
"name": "Miles McCoy",
"parent": {
"authorizeId": "",
"budget": "N",
"budgetInherit": "Y",
"company": "Trimergo",
"defaultobjectId": 227298,
"department": "",
"id": 109,
"inheritOrderList": "Y",
"inheritProductList": "Y",
"name": "Customer root",
"notes": "",
"office": "",
"orderListAllowAll": "U",
"orderListManagerId": "",
"sources": [
{
"language": "NL",
"source": "RCEB0451-3",
"sourceId": "199605"
},
{
"language": "NL",
"source": "OTTEVANGER-TRIMERGO",
"sourceId": "OTTEVANGER-TRIMERGO-CRM-ROOT"
}
],
"userManagerId": ""
},
"phone": "0032445888",
"pricelistAmount": "",
"pricelistPercentage": "",
"primaryLanguage": "EN",
"sources": [
{
"language": "NL",
"source": "REST-API",
"sourceId": "3004196"
}
],
"ssn": "",
"title": "Mr."
},
"messages": [],
"total": 1
}
{
"data": {
"abbreviation": "MM",
"dateOfBirth": "August, 28 1993 00:00:00 +0000",
"debtorId": "12345",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "M",
"id": 25494,
"lastName": "McCoy",
"login": "miles@propel.us",
"middleName": "",
"mobile": "0038975648",
"name": "Miles McCoy",
"phone": "0032445888",
"pricelistAmount": "",
"pricelistPercentage": "",
"primaryLanguage": "EN",
"ssn": "",
"title": "Mr."
},
"messages": [],
"total": 1
}
{
"data": {
"abbreviation": "MM",
"dateOfBirth": "August, 28 1993 00:00:00 +0000",
"debtorId": "12345",
"email": "miles@propel.us",
"fax": "",
"firstName": "Miles",
"gender": "M",
"id": 25494,
"lastName": "McCoy",
"login": "miles@propel.us",
"middleName": "",
"mobile": "0038975648",
"name": "Miles McCoy",
"parent": {
"authorizeId": "",
"budget": "N",
"budgetInherit": "Y",
"company": "Trimergo",
"defaultobjectId": 227298,
"department": "",
"id": 109,
"inheritOrderList": "Y",
"inheritProductList": "Y",
"name": "Customer root",
"notes": "",
"office": "",
"orderListAllowAll": "U",
"orderListManagerId": "",
"sources": [
{
"language": "NL",
"source": "RCEB0451-3",
"sourceId": "199605"
},
{
"language": "NL",
"source": "OTTEVANGER-TRIMERGO",
"sourceId": "OTTEVANGER-TRIMERGO-CRM-ROOT"
}
],
"userManagerId": ""
},
"phone": "0032445888",
"pricelistAmount": "",
"pricelistPercentage": "",
"primaryLanguage": "EN",
"sources": [
{
"language": "NL",
"source": "REST-API",
"sourceId": "3004196"
}
],
"ssn": "",
"title": "Mr."
},
"messages": [],
"total": 1
}
Get Customer by lookup key - 400 (invalid lookup key)
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 by lookup key - 400 (invalid lookup key)
Schema
error
object
{
"error": {
"code": 10006,
"messages": [
"Invalid lookup key [ids], key must contain one of the following values: [id,sourceId,]"
],
"moreInfo": "https://www.propel.us/docs/errors/10006",
"status": 400,
"type": "InvalidLookupKey"
}
}
{
"error": {
"code": 10006,
"messages": [
"Invalid lookup key [ids], key must contain one of the following values: [id,sourceId,]"
],
"moreInfo": "https://www.propel.us/docs/errors/10006",
"status": 400,
"type": "InvalidLookupKey"
}
}
Get Customer by lookup key - 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 by lookup key - 404
Schema
error
object
{
"error": {
"code": 60006,
"messages": [
"Customer with id [25495] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/60006",
"status": 404,
"type": "CustomerNotFound"
}
}
{
"error": {
"code": 60006,
"messages": [
"Customer with id [25495] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/60006",
"status": 404,
"type": "CustomerNotFound"
}
}