Application Duplicate Check
Description
This web service searches for the active applications by taking TIN No., SSN, or both as input.
Definition
Post https://<domain>/services/apexrest//CLS/getLoanDetails/
Authentication Type
Basic Salesforce Auth 2.0 See this link for SFDC Documentation:
https://help.salesforce.com/articleView?id=remoteaccess_oauth_web_server_flow.htm&type=5
Parameters
Request Header Parameters
The following table provides the details of the request header parameters used by this web service:
Key | Value |
---|---|
Content-Type | application/JSON |
charset | UTF-8 |
Accept | application/JSON |
Request Body Parameters
The following table provides the details of the request body parameters used by this web service:
Field | Type | Description |
---|---|---|
TIN |
String | Borrower’s TAX ID Number. |
SIN | String | Merchant’s Social Security Number. |
Error Messages
When you use this web service you can receive the possible error messages as shown in the following table:
Error Code | Error Message | System.Label | HTTP Status Code | |
---|---|---|---|---|
HTTP_INTERNAL_ERROR |
Unable to parse the request parameters. |
genesis.Constants.HTTP_INTERNAL_ERROR |
Error getting the request parameters from the request body. | 500 |
INVALID_INPUT |
Incorrect value of SSN or TIN entered. |
Label.Dup_Check_Incorrect_Input |
Invalid value for TIN/SSN. | 400 |
Sample Request
The sample request to be sent is as shown in the following block:
/services/apexrest/CLS/getLoanDetails/
{
"tin_number": "123123123",
"ssn_number": "123456789"
}
Sample Response
The sample response that you receive is as shown in the following block:
{
"status_code": 200,
"status": "SUCCESS",
"row_number": null,
"error_message": null,
"error_code": "NO_ERROR",
"content": [
{
"tin": "123123123",
"ssn": "555666777",
"loan_fee": null,
"loan_amount": {
"iso_code": "USD",
"currency_value": 5435
},
"last_update_date": "2020022",
"application_submission_date": "2019346",
"application_status": "APPLICATION - SUBMITTED",
"application_id": "2019346CL00059USD"
},
{
"tin": "123123123",
"ssn": "879987987",
"loan_fee": null,
"loan_amount": {
"iso_code": "USD",
"currency_value": 25000
},
"last_update_date": "2019354",
"application_submission_date": "2019350",
"application_status": "APPLICATION - SUBMITTED",
"application_id": "2019350CL00079USD"
}
]
}