API – Search Customer by SSN

General

Sometimes, it is easiest to find a specific customer by their SSN. This can be done through the API by sending a POST request to the following endpoint:

https://loanpro.simnang.com/api/public/api/1/Customers/Autopal.Search()

The payload should look something like this:

{ 
"query":{
"bool":{
"must":[
{
"bool":{
"should":[
{
"query_string":{
"fields":[
"ssn"
],
"query": "526948235"
}
}
]
}
}
]
}
}
}

​The "query" should contain the SSN you are searching for. This should be only numbers, as that's the way it's stored.

StackBlitz Example

Many of our articles use StackBlitz examples like this. These examples are like a window into a REST client right here in your browser. The window is divided into two sides. Developers can use info in the editor on the left side when configuring your API integration, and the right side shows a preview of a REST client. Click 'Preview' on the bottom, and you'll only see the REST client.

The entire request is set up and connected to a demo API tenant in LMS. Just scroll down and click 'send' and you should get a 200 response. If you want to get some practice with error codes, try editing the endpoint, headers, method and payload to see what responses you get.


How did we do?


Powered by HelpDocs (opens in a new tab)