Does a lookup on a customer based on a search value. Creates the customer if found.
POST /v1/clients/{clientId}/lookup/customer
application/json
[
{
"lookupField": "IdentificationNumber",
"lookupValue": "string"
}
]
{
"_links": [
{
"href": "https://api.horizonafs.io/customer/v1/client/1234/customers/customer-person-1",
"rel": "_self",
"method": "GET"
},
{
"href": "https://api.horizonafs.io/customer/v1/client/1234/customers/customer-person-1",
"rel": "check_customer",
"method": "HEAD"
},
{
"href": "https://api.horizonafs.io/customer/v1/client/1234/customers/customer-person-1",
"rel": "update_customer",
"method": "PUT"
},
{
"href": "https://api.horizonafs.io/customer/v1/client/1234/customers/search?page={Page}&perPage={PerPage}&sort={byFieldName}&order={ASC/DESC}",
"rel": "search_customer_by_field",
"method": "POST"
}
],
"customerNumber": "customer-person-1",
"type": "Person",
"person": {
"firstName": "Tom",
"lastName": "Customer"
},
"phoneNumber": "+4712345678",
"email": "tom.customer@mail.com",
"paymentMeans": {
"paymentId": "291069002072200000004"
},
"address": {
"addressLine": "Person Street 1",
"postalCode": "0002",
"postalPlace": "PRSN",
"countryCode": "NO"
}
}