Borrowers API
This API allows managing borrowers in the system. It provides endpoints to create, read, update, and delete borrowers, as well as perform specific operations such as updating status, risk rating, and other borrower properties.
The Borrower Central Base URL is used (see introduction).
The Borrower Object
The Borrower object represents a borrower in the system.
Attributes
| Attribute | Description | Type |
|---|---|---|
id | Unique identifier of the borrower | String |
persona | Type of person (business or individual) | String |
avatarUrl | URL of the borrower's avatar image | String |
label | Label or name of the borrower | String |
tags | List of tags associated with the borrower | Array of String |
flag | Flag associated with the borrower (e.g., green, yellow, red) | String |
riskRating | Risk rating of the borrower | String |
repaymentRiskRating | Repayment risk rating (1-10) | Integer |
currentStep | Information about the borrower's current step | Object |
cmsClientIds | List of client IDs in the CMS | Array of String |
createdAt | Date and time of borrower creation | String (ISO 8601) |
updatedAt | Date and time of the last borrower update | String (ISO 8601) |
Borrowers API
The Borrower Summary Object
The Borrower Summary object provides a detailed summary of a borrower, including additional information such as identities, custom fields, points of contact, and alerts.
Attributes
| Attribute | Description | Type |
|---|---|---|
id | Unique identifier of the borrower | String |
persona | Type of person (business or individual) | String |
label | Label or name of the borrower | String |
identities | List of identities associated with the borrower | Array of Object |
fields | List of custom fields of the borrower | Array of Object |
pointsOfContact | List of points of contact of the borrower | Array of Object |
alerts | List of alerts associated with the borrower | Array of Object |
tags | List of tags associated with the borrower | Array of String |
flag | Flag associated with the borrower (e.g., green, yellow, red) | String |
stage | Current stage of the borrower in the process | String |
riskRating | Risk rating of the borrower | String |
repaymentRiskRating | Repayment risk rating (1-10) | Integer |
currentStep | Information about the borrower's current step | Object |
cmsClientIds | List of client IDs in the CMS | Array of String |
createdAt | Date and time of borrower creation | String (ISO 8601) |
updatedAt | Date and time of the last borrower update | String (ISO 8601) |
Nested Objects
Identity
| Attribute | Description | Type |
|---|---|---|
id | Unique identifier of the identity | String |
key | Key of the identity | String |
label | Descriptive label of the identity | String |
value | Value of the identity | String |
priority | Priority of the identity | Integer |
Field
| Attribute | Description | Type |
|---|---|---|
id | Unique identifier of the field | String |
key | Key of the field | String |
label | Descriptive label of the field | String |
value | Value of the field | String |
Point of Contact
| Attribute | Description | Type |
|---|---|---|
id | Unique identifier of the point of contact | String |
signatures | List of contact types (e.g., email, phone) | Array of String |
priority | Priority of the point of contact | Integer |
value | Value of the point of contact | String |
Alert
| Attribute | Description | Type |
|---|---|---|
id | Unique identifier of the alert | String |
ruleId | Identifier of the rule that generated the alert | String |
ruleCode | Rule code (optional) | String |
level | Severity level of the alert | Integer |
message | Descriptive message of the alert | String |
isAcknowledged | Indicates if the alert has been acknowledged | Boolean |
createdAt | Date and time of alert creation | String (ISO 8601) |
Endpoints
Create a New Borrower
Creates a new borrower in the system.
Input Parameters:
| Parameter | Description | Type | Required |
|---|---|---|---|
persona | Type of person (business or individual) | String | Yes |
label | Label or name of the borrower | String | No |
riskRating | Initial risk rating | String | No |
repaymentRiskRating | Initial repayment risk rating (1-10) | Integer | No |
flag | Initial flag (red, yellow, green) | String | No |
tags | Initial list of tags | Array of String | No |
Example Request:
Successful Response:
Get a Borrower
Retrieves information about a specific borrower.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the borrower to retrieve |
Successful Response:
The response will be a complete Borrower object, as described above.
Update a Borrower
Updates information about an existing borrower.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the borrower to update |
Input Parameters:
| Parameter | Description | Type |
|---|---|---|
label | New label or name of the borrower | String |
tags | New list of tags | Array of String |
Example Request:
Successful Response:
The response will be the updated Borrower object.
Delete a Borrower
Deletes a borrower from the system.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the borrower to delete |
Successful Response:
Status code 204 (No Content) if the deletion was successful.
Update a Borrower's Risk Rating
Updates the risk rating of a borrower.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the borrower to update the risk rating |
Input Parameters:
| Parameter | Description | Type |
|---|---|---|
value | New risk rating value | String |
referenceId | Reference ID (optional) | String |
Example Request:
Successful Response:
Status code 204 (No Content) if the update was successful.
Update a Borrower's Repayment Risk Rating
Updates the repayment risk rating of a borrower.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the borrower to update the repayment risk rating |
Input Parameters:
| Parameter | Description | Type |
|---|---|---|
value | New repayment risk rating value (1-10) | Integer |
referenceId | Reference ID (optional) | String |
Example Request:
Successful Response:
Status code 204 (No Content) if the update was successful.
Update a Borrower's Flag
Updates the flag of a borrower.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the borrower to update the flag |
Input Parameters:
| Parameter | Description | Type |
|---|---|---|
value | New flag value (red, yellow, green) | String |
referenceId | Reference ID (optional) | String |
Example Request:
Successful Response:
Status code 204 (No Content) if the update was successful.
List Borrowers
Retrieves a paginated list of borrowers with filtering and sorting options.
Query Parameters:
| Parameter | Description | Type |
|---|---|---|
search | Text to search in borrowers | String |
page | Page number (default: 1) | Integer |
per-page | Items per page (default: 10) | Integer |
persona | Filter by type of person | String |
sort-by | Field to sort by | String |
risk-rating | Filter by risk rating | String |
current-step-key | Filter by current step key | String |
cms-client-id | Filter by CMS client ID | String |
sort-direction | Sorting direction (asc or desc) | String |
Successful Response:
The response will be a paginated list of Borrower objects.
Get Borrowers Summary
Retrieves a summary of borrowers with advanced filtering and grouping options.
Query Parameters:
| Parameter | Description | Type |
|---|---|---|
by | Field to group by | String |
borrower-id | Specific borrower IDs | String |
search | Text to search | String |
page | Page number | Integer |
per-page | Items per page | Integer |
persona | Filter by type of person | String |
current-step-key | Filter by current step key | String |
repayment-risk-rating | Filter by repayment risk rating | String |
risk-rating | Filter by risk rating | String |
flag | Filter by flag | String |
tags | Filter by tags | String |
cms-client-id | Filter by CMS client ID | String |
sort-by | Field to sort by | String |
sort-direction | Sorting direction (asc or desc) | String |
Successful Response:
The response will be a summary of borrowers according to the specified criteria.
Send SMS to a Borrower
Sends an SMS message to a specific borrower.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the recipient borrower |
Input Parameters:
| Parameter | Description | Type |
|---|---|---|
message | SMS message content | String |
pointOfContactId | Point of contact ID (optional) | String |
Example Request:
Successful Response:
Status code 204 (No Content) if the message was sent successfully.
Associate a CMS Client ID to a Borrower
Associates a new CMS Client ID to a specific borrower.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the borrower |
cms_client_id | CMS client ID to associate |
Successful Response:
Status code 204 (No Content) if the association was successful.
Possible Errors:
| Code | Description |
|---|---|
| 404 | Borrower with the specified ID not found |
Update CMS Client IDs of a Borrower
Updates the complete list of CMS Client IDs associated with a specific borrower.
Path Parameters:
| Parameter | Description |
|---|---|
borrower_id | ID of the borrower |
Input Parameters:
| Parameter | Description | Type |
|---|---|---|
cmsClientIds | New list of CMS Client IDs | Array of String |
Example Request:
Successful Response:
Status code 204 (No Content) if the update was successful.
Possible Errors:
| Code | Description |
|---|---|
| 404 | Borrower with the specified ID not found |
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.