Allows merchant to make informed decisions about pending loan applicants

📘

POST (LIVE)

{{URL}}/dikript/analytics/api/v1/afford

📘

POST (TEST)

{{URL}}/dikript/test/api/v1/afford

Request

VariableDescriptionRequired
keyYes
percentageDebtToIncomeRatioDTIYes
loanTenureInMonthsTenure in monthsYes

{
    "key":1,
    "percentageDebtToIncomeRatio":0.3,
    "loanTenureInMonths":3
}

Header (LIVE)

KeyDescription
x-api-keyYour Secret Key

Header (TEST)

KeyDescription
x-api-keyYour Public Key

Response

{
    "status": true,
    "message": "Successful",
    "code": "200",
    "apiVersion": "v1",
    "transactionRef": "N202407051339273039",
    "data": {
        "monthlyAmountAffordable": 151421.75,
        "totalAmountAffordable": 454265.26,
        "percentageDebtToIncomeRatio": 0.3,
        "loanTenureInMonths": 3,
        "averageMonthlyLoanRepaymentAmount": 0
    },
    "error": null
}
{
    "status": false,
    "message": "Unsuccessful",
    "code": "400",
    "apiVersion": "v1",
    "transactionRef": "N202401101345487388",
    "data": "",
    "error": {
        "code": 400,
        "message": null
    }
}