AltScore
Borrower Central (BC)

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.

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "borrowerId": "789e4567-e89b-12d3-a456-426614174111",
  "executionId": "456e4567-e89b-12d3-a456-426614174222",
  "listOfSimilar": [
    {
      "label": "Option 1",
      "description": "This is the first similar option",
      "entities": [
        {
          "entityType": "address",
          "key": "street",
          "proposedValue": "123 Main St"
        }
      ]
    }
  ],
  "status": "pending",
  "appliedIndex": null,
  "appliedBy": null,
  "createdAt": "2023-01-01T00:00:00Z",
  "updatedAt": "2023-01-01T12:00:00Z"
}

Attributes

AttributeDescriptionType
idUnique identifier of the similar listString
borrowerIdAssociated borrower IDString
executionIdAssociated execution ID (optional)String
listOfSimilarList of similar entitiesArray of Similar
statusIndicates the current status of the list. Can be pending, applied, or no_hitString
appliedIndexIndex of the applied entry (if applicable)Integer
appliedByID of the user who applied the entryString
createdAtCreation date and timeString (ISO 8601)
updatedAtLast update date and timeString (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 money fields it must be an Object with both amount and currency (full replacement):
{
  "entityType": "borrower_field",
  "key": "monthly_revenue",
  "proposedValue": { "amount": "2000", "currency": "MXN" }
}

status Field

This field represents the status of the similar list:

ValueDescription
pendingThe list has not yet been applied and is available for use.
appliedAn item from the list was applied to the borrower.
no_hitThe list was not applied because there was no match.
expiredA 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.

POST /v1/list-of-similar

Input Parameters:

ParameterDescriptionTypeRequired
borrowerIdAssociated borrower IDStringYes
executionIdAssociated execution IDStringNo
listOfSimilarList of similar entitiesArray of SimilarYes

Request Example:

{
  "borrowerId": "789e4567-e89b-12d3-a456-426614174111",
  "executionId": "456e4567-e89b-12d3-a456-426614174222",
  "listOfSimilar": [
    {
      "label": "Option 1",
      "description": "This is the first similar option",
      "entities": [
        {
          "entityType": "address",
          "key": "street",
          "proposedValue": "123 Main St"
        }
      ]
    }
  ]
}

Successful Response:

{
  "id": "123e4567-e89b-12d3-a456-426614174000"
}

Get a Similar List

Retrieves the information of a specific similar list.

GET /v1/list-of-similar/:list_id

Path Parameters:

ParameterDescription
list_idID 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.

POST /v1/list-of-similar/:list_id/apply

Path Parameters:

ParameterDescription
list_idID of the similar list to apply

Input Parameters:

ParameterDescriptionTypeRequired
indexIndex of the entry to applyIntegerYes
retryWorkflowIndicates whether to retry the workflowBooleanYes

Request Example:

{
  "index": 0,
  "retryWorkflow": true
}

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.

POST /v1/list-of-similar/:list_id/no-hit

Path Parameters:

ParameterDescription
list_idID of the similar list to report

Input Parameters:

ParameterDescriptionTypeRequired
retryWorkflowIndicates whether to retry the workflowBooleanYes

Request Example:

{
  "retryWorkflow": false
}

Successful Response:

Status code 204 (No Content) if the report was successful.

Delete a Similar List

Deletes a similar list from the system.

DELETE /v1/list-of-similar/:list_id

Path Parameters:

ParameterDescription
list_idID 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.

GET /v1/list-of-similar

Query Parameters:

ParameterDescriptionType
borrower-idFilter by borrower IDString
execution-idFilter by execution IDString
is-appliedFilter by application statusBoolean
pagePage number (default: 1)Integer
per-pageItems per page (default: 10)Integer
sort-byField to sort byString
sort-directionSorting 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:

CodeDescription
400Bad Request
401Unauthorized
403Forbidden
404Not Found
500Internal Server Error

Errors will include a descriptive message in the response body.

On this page