get https://demo.onefin.in/api/v1/client/linehttps://demo.onefin.in/api/v1/client/line//upcoming-bill/
This will fetch amount which is due as of next month end date at customer level.
Sample Response
{
"is_success": true,
"data": {
"bill_amount": 3162.0,
"bill_date": "05-Dec-2023",
"joining_charge": {
"charge_amount": 1062.0,
"charge_type": "Joining Fee",
"charge_date": "05-Dec-2023",
"amount_paid": 0.0,
"status": "Not Paid"
},
"extra_charges": [
{
'charge_amount': 100,
'charge_type': 'LATE INTEREST',
'charge_date': "05-Dec-2023",
'amount_paid': 0.0,
'status': 'NOT PAID',
'loan_repayment_date': None
}
],
"due_repayments": [
{
'due_date': "05-Dec-2023",
'tranche_id': None,
'status': 'DUE',
'repayment_amount': 1000.0,
'principal_amount': 829.0,
'interest_amount': 171.0,
'remaining_amount': 1000.0,
'remaining_principal': 829.0,
'remaining_interest': 171.0
},
'due_date': "05-Jan-2023",
'tranche_id': None,
'status': 'DUE',
'repayment_amount': 1000.0,
'principal_amount': 829.0,
'interest_amount': 171.0,
'remaining_amount': 1000.0,
'remaining_principal': 829.0,
'remaining_interest': 171.0
}
]
}
}