Similar List API
This API allows managing lists of similar entities in the system. It provides endpoints to create, read, update, and delete similar lists, as well as to update the status of a specific list.
The ListOfSimilar Object
The ListOfSimilar object represents a list of similar entities associated with a borrower.
Attributes
| Attribute | Description | Type |
|---|---|---|
id | Unique identifier of the similar list | String |
borrowerId | Associated borrower ID | String |
executionId | Associated execution ID (optional) | String |
listOfSimilar | List of similar entities | Array of Similar |
status | Indicates the current status of the list. Can be pending, applied, or no_hit | String |
appliedIndex | Index of the applied entry (if applicable) | Integer |
appliedBy | ID of the user who applied the entry | String |
createdAt | Creation date and time | String (ISO 8601) |
updatedAt | Last update date and time | String (ISO 8601) |
proposedValue type
proposedValue is polymorphic and depends on the entity's configured data type:
- For most fields it can be a String (e.g.
"123 Main St"). - For
moneyfields it must be an Object with bothamountandcurrency(full replacement):
status Field
This field represents the status of the similar list:
| Value | Description |
|---|---|
pending | The list has not yet been applied and is available for use. |
applied | An item from the list was applied to the borrower. |
no_hit | The list was not applied because there was no match. |
expired | A new list associated with the borrower was created while this list was still pending. |
Available Operations
Create a New Similar List
Creates a new list of similar entities in the system. Any other pending list associated with the same borrower will become expired.
Input Parameters:
| Parameter | Description | Type | Required |
|---|---|---|---|
borrowerId | Associated borrower ID | String | Yes |
executionId | Associated execution ID | String | No |
listOfSimilar | List of similar entities | Array of Similar | Yes |
Request Example:
Successful Response:
Get a Similar List
Retrieves the information of a specific similar list.
Path Parameters:
| Parameter | Description |
|---|---|
list_id | ID of the similar list to retrieve |
Successful Response:
The response will be a complete ListOfSimilar object, as described above.
Apply an Entry from the Similar List
Applies a specific entry from the similar list, changing its status to applied.
Path Parameters:
| Parameter | Description |
|---|---|
list_id | ID of the similar list to apply |
Input Parameters:
| Parameter | Description | Type | Required |
|---|---|---|---|
index | Index of the entry to apply | Integer | Yes |
retryWorkflow | Indicates whether to retry the workflow | Boolean | Yes |
Request Example:
Successful Response:
Status code 204 (No Content) if the application was successful.
Report a Similar List Entry as "no_hit"
Changes the status of a specific similar list entry to no_hit.
Path Parameters:
| Parameter | Description |
|---|---|
list_id | ID of the similar list to report |
Input Parameters:
| Parameter | Description | Type | Required |
|---|---|---|---|
retryWorkflow | Indicates whether to retry the workflow | Boolean | Yes |
Request Example:
Successful Response:
Status code 204 (No Content) if the report was successful.
Delete a Similar List
Deletes a similar list from the system.
Path Parameters:
| Parameter | Description |
|---|---|
list_id | ID of the similar list to delete |
Successful Response:
Status code 204 (No Content) if the deletion was successful.
List Similar Lists
Retrieves a paginated list of similar lists with filtering and sorting options.
Query Parameters:
| Parameter | Description | Type |
|---|---|---|
borrower-id | Filter by borrower ID | String |
execution-id | Filter by execution ID | String |
is-applied | Filter by application status | Boolean |
page | Page number (default: 1) | Integer |
per-page | Items per page (default: 10) | Integer |
sort-by | Field to sort by | String |
sort-direction | Sorting direction (asc or desc) | String |
Successful Response:
The response will be a paginated list of ListOfSimilar objects.
Error Handling
The API may return the following error codes:
| Code | Description |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Internal Server Error |
Errors will include a descriptive message in the response body.