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

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
        }
    ]
}