Get Existing Statement Affordability Analysis

This endpoint assumes that you have previously generated affordability for a statement. You must specify the key of the previously generated affordability to recieve its details.

MethodEndpointHeadersParameters
GET/affordability/{statementKey}Authorization value: Bearer string_encrypted_access_tokenaccepted values: key for an existing statement

Request

curl --location --request GET 'https://api.insights-periculum.com/affordability/{statementKey}'
--header 'Authorization: Bearer string_encrypted_access_token'
--header 'Content-Type: application/json'
--data- none

Response

[
    {
        "statementKey": 121,
        "dti": 0.5,
        "loanTenure": 10,
        "monthly_disposable_income/monthly_affordability_amount": 12000,
        "affordability_amount": 120000,
        "createdDate": "2022-01-27T18:34:53.994-08:00",
        "average_predicted_salary": 315149.25,
        "average_other_income": 0,
        "average_monthly_total_expenses": 34474.51,
        "average_monthly_loan_repayment_amount": 33836.46
    },
    {
        "statementKey": 121,
        "dti": 0.2,
        "loanTenure": 36,
        "monthly_disposable_income/monthly_affordability_amount": 0,
        "affordability_amount": 0,
        "createdDate": "2022-01-27T15:32:34.828-08:00",
        "average_predicted_salary": 315149.25,
        "average_other_income": 0,
        "average_monthly_total_expenses": 34474.51,
        "average_monthly_loan_repayment_amount": 33836.46
    }
]