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
| Field | Field name | Data type | Max length | Required | Description |
|---|---|---|---|---|---|
| 1 | identificationNumber | String | 10 | True | Either 'bvn' or 'phone' |
| 2 | startYearMonth | String | 7 | True | The start month and year in yyyy-MM |
| 3 | endYearMonth | String | 7 | True | The end month and year in yyyy-MM |
Response message description
| Field | Field name | Data type | Description |
|---|---|---|---|
| 1 | responseCode | String | Response code of the request |
| 2 | responseMessage | String | Response mesage of the request |
| 3 | data | List (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
}
]
}
Updated 15 days ago