Fetch Banking Data

Fetch data aggregation associated with loan request.

HTTPS Request

POST https://api.lenmo.app/api/v3/data_marketplace/data_aggregation/fetch_loan_request_data_aggs/

This endpoint receives loan_request_id and returns the data_aggregation associated with this loan_request.

Headers

NameTypeDescription

Accept

String

The content type of the response.

X-API-KEY*

String

The API key that gives the user the authentication to perform this request.

X-Timestamp*

String

The timestamp of the request.

X-HMAC*

String

The HMAC generated for the request.

Request Body

NameTypeDescription

loan_request_id*

Long

loan request id for the needed aggregation to fetch

{
        "created": "2022-05-27T10:37:14.658672Z",
        "borrower_bank_name_at_loan_request": "SANDBOX TEST BANK",
        "borrower_bank_balance": "0.00",
        "data_aggregation": // {aggregation fetched through fiserv.}
 }

Sample Request

curl -X POST "https://api.lenmo.app/api/v3/data_marketplace/data_aggregation/fetch_loan_request_data_aggs/" \
    -H "Accept: application/json" \
    -H "X-API-KEY: YOUR_API_KEY" \
    -H "X-Timestamp: REQUEST_TIMESTAMP" \
    -H "X-HMAC: REQUEST_HMAC" \
    -d "{\"loan_request_id\": 1}"

Response Parameters

ParameterTypeDescription

created

Date

UTC time of data aggregation saved in the database.

borrower_bank_name_at_loan_request

String

Name of the borrower bank from which aggregation is fetched

borrower_bank_balance

String

Borrower balance in the bank provided the aggregation

data_aggregation

JSON Obj

JSON object containing the data aggregation from the borrower's bank. It contains aggregation data provided by fiserv. Please, refer to DepAcctTrnInqRsentry in fiserv client's response.

Last updated