Financial History

Here you gain insights to customer attributes such as average account balance, total count and amount of credit and debit transactions on a month on month basis

METHOD: POST

RESOURCE URL

{base-url}/api/v1/request/customer-insights/financial-attributes


Request body description

FieldField nameData typeMax lengthRequiredDescription
1identificationNumberString10TrueEither 'bvn' or 'phone'
2startYearMonthString7TrueThe start month and year in yyyy-MM
3endYearMonthString7TrueThe end month and year in yyyy-MM

Response message description

FieldField nameData typeDescription
1responseCodeStringResponse code of the request
2responseMessageStringResponse mesage of the request
3dataList (Object)Response data containing the list of financial history assigned to the identification type and the date range

Sample Request

{
	"phone":"2348082135806",
    "startYearMonth":"2024-02",
    "endYearMonth":"2024-07"
}

_Sample Response

_

{
    "responseCode": "00",
    "responseMessage": "Successful",
    "count": 3,
    "data": [
        {
            "phone": "2348082135806",
            "totalDebit": 4000.0,
            "debitCount": 1.0,
            "totalCredit": 4133200.0,
            "creditCount": 15.0,
            "yearMonth": "2024-04",
            "averageBalance": 369248.425
        },
        {
            "phone": "2348082135806",
            "totalDebit": 1500.0,
            "debitCount": 1.0,
            "totalCredit": 0.0,
            "creditCount": 0.0,
            "yearMonth": "2024-05",
            "averageBalance": 0.0
        },
        {
            "phone": "2348082135806",
            "totalDebit": 581954.0,
            "debitCount": 73.0,
            "totalCredit": 0.0,
            "creditCount": 0.0,
            "yearMonth": "2024-07",
            "averageBalance": 0.0
        }
    ]
}