Get Contact by lookup key
GET/contacts/:lookupKey/:lookupValue
Use this endpoint to retrieve contact details by lookup key. If multiple contacts with the same lookup key exist, use additional filtering depending on the lookup key to uniquely identify the contact (e.g. source
and language
for lookup key sourceId
).
Request
Path Parameters
Lookup key. Read more about contact lookup keys
The value of the key (id or sourceId)
Query Parameters
Use expands
as a query parameter to fetch additional information for contacts 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 contact can be a resource of type company
Responses
- 200
- 400
- 404
Get Contact by lookup key - 200 / Get Contact 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 Contact by lookup key - 200
- Get Contact by lookup key - 200 (expands: sources,parent)
Schema
Array [
]
data
object
parent
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": 25492,
"lastName": "McCoy",
"login": "miles@propel.us",
"middleName": "",
"mobile": "0038975648",
"name": "Miles McCoy",
"parent": {
"authorizeId": "",
"budget": "N",
"budgetInherit": "N",
"cocNumber": "75564998",
"company": "",
"defaultobjectId": 944644,
"department": "",
"id": 9482,
"inheritOrderList": "N",
"inheritProductList": "Y",
"name": "Propeller B.V.",
"notes": "Usergroup created from API",
"office": "",
"orderListAllowAll": "U",
"orderListManagerId": "",
"sources": [],
"taxNumber": "NL860325386B01",
"userManagerId": ""
},
"phone": "0032445888",
"primaryLanguage": "EN",
"sources": [
{
"language": "NL",
"source": "REST-API",
"sourceId": "3002196"
}
],
"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": 25492,
"lastName": "McCoy",
"login": "miles@propel.us",
"middleName": "",
"mobile": "0038975648",
"name": "Miles McCoy",
"phone": "0032445888",
"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": 25492,
"lastName": "McCoy",
"login": "miles@propel.us",
"middleName": "",
"mobile": "0038975648",
"name": "Miles McCoy",
"parent": {
"authorizeId": "",
"budget": "N",
"budgetInherit": "N",
"cocNumber": "75564998",
"company": "",
"defaultobjectId": 944644,
"department": "",
"id": 9482,
"inheritOrderList": "N",
"inheritProductList": "Y",
"name": "Propeller B.V.",
"notes": "Usergroup created from API",
"office": "",
"orderListAllowAll": "U",
"orderListManagerId": "",
"sources": [],
"taxNumber": "NL860325386B01",
"userManagerId": ""
},
"phone": "0032445888",
"primaryLanguage": "EN",
"sources": [
{
"language": "NL",
"source": "REST-API",
"sourceId": "3002196"
}
],
"ssn": "",
"title": "Mr."
},
"messages": [],
"total": 1
}
Get Contact 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 Contact 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 Contact 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 Contact by lookup key - 404
Schema
error
object
{
"error": {
"code": 50006,
"messages": [
"Contact with id [25493] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/50006",
"status": 404,
"type": "ContactNotFound"
}
}
{
"error": {
"code": 50006,
"messages": [
"Contact with id [25493] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/50006",
"status": 404,
"type": "ContactNotFound"
}
}