get https://demo.onefin.in/api/v1/client/loan/lead_id/repayment/
This API returns all the repayment details of a particular case.The response contains two sections. One payment_details which contains latest payment details only and another payment_history which contains payment history for all the payments
Sample Response Data
{
"is_success": true,
"data": {
"status": "Disbursed",
"goalseek_amount": 0,
"collection": {
"principal": 24624.0,
"interest": 1806.0,
"bounce_charges": 0,
"late_interest": 0,
"excess": 1500.0,
"accrued_interest": 0,
"foreclosure_fee_tax": 0,
"foreclosure_fee": 0,
"waived_off": 0,
"refund": 0,
"tds_charges": 0,
"joining_fees": 0,
"waived_principal": 0,
"waived_interest": 0,
"waived_accrued_interest": 0,
"waived_foreclosure_fee": 0,
"waived_foreclosure_fee_tax": 0,
"waived_bounce_charge": 0,
"waived_late_interest": 0,
"dpd": 0,
"total": 27930.0,
"outstanding": 50177.0,
"total_outstanding": 50651.18
},
"loan_details": {
"emi_amount": 0,
"interest_rate": 0,
"cashback": 0
},
"repayments": [
{
"due_date": "05-Aug-2024",
"status": "Due",
"opening_balance": 12468.0,
"repayment_amount": 12686.0,
"goalseek_amount": 0,
"principal_amount": 12468.0,
"interest_amount": 218.0,
"remaining_principal": 12468.0,
"remaining_interest": 218.0,
"paid_principal": 0.0,
"paid_interest": 0.0,
"dpd": 0,
"repayment_number": 6,
"closing_balance": 0.0,
"extra_charges": [
{}
],
"payment_details": {
"total_allocated": 0,
"principal_allocated": 0,
"interest_allocated": 0,
"charges_allocated": [
{}
]
},
"payment_history": [],
"uuid": "2b70ce3d-ccbc-4d60-9f64-153fd5ea02a8",
"tranche_id": null,
'total_charges':
[
{
'charge_type': "BOUNCE_CHARGE"
'total_charge_amount':1000,
'total_waived_off_amount':100,
'total_amount_paid':800,
'total_pending_amount':100
},
{
'charge_type': "LATE_CHARGE"
'total_charge_amount':1000,
'total_waived_off_amount':100,
'total_amount_paid':800,
'total_pending_amount':100
}
]
{
"due_date": "05-Jul-2024",
"status": "Due",
"opening_balance": 25256.0,
"repayment_amount": 13215.0,
"goalseek_amount": 0,
"principal_amount": 12788.0,
"interest_amount": 427.0,
"remaining_principal": 12788.0,
"remaining_interest": 427.0,
"paid_principal": 0.0,
"paid_interest": 0.0,
"dpd": 0,
"repayment_number": 5,
"closing_balance": 12468.0,
"extra_charges": [
{}
],
"payment_details": {
"total_allocated": 0,
"principal_allocated": 0,
"interest_allocated": 0,
"charges_allocated": [
{}
]
},
"payment_history": [],
"uuid": "7d3b5f8c-0ad6-4f08-947e-0a6e1727c4c5",
"tranche_id": null,
'total_charges':
[
{
'charge_type': "BOUNCE_CHARGE"
'total_charge_amount':1000,
'total_waived_off_amount':100,
'total_amount_paid':800,
'total_pending_amount':100
},
{
'charge_type': "LATE_CHARGE"
'total_charge_amount':1000,
'total_waived_off_amount':100,
'total_amount_paid':800,
'total_pending_amount':100
}
]
},
{
"due_date": "05-Jun-2024",
"status": "Due",
"opening_balance": 37810.0,
"repayment_amount": 13215.0,
"goalseek_amount": 0,
"principal_amount": 12554.0,
"interest_amount": 661.0,
"remaining_principal": 12554.0,
"remaining_interest": 661.0,
"paid_principal": 0.0,
"paid_interest": 0.0,
"dpd": 0,
"repayment_number": 4,
"closing_balance": 25256.0,
"extra_charges": [
{}
],
"payment_details": {
"total_allocated": 0,
"principal_allocated": 0,
"interest_allocated": 0,
"charges_allocated": [
{}
]
},
"payment_history": [],
"uuid": "1c88f602-f793-4f1e-8674-ecabe0579f63",
"tranche_id": null
},
{
"due_date": "05-May-2024",
"status": "Due",
"opening_balance": 50177.0,
"repayment_amount": 13215.0,
"goalseek_amount": 0,
"principal_amount": 12367.0,
"interest_amount": 848.0,
"remaining_principal": 12367.0,
"remaining_interest": 848.0,
"paid_principal": 0.0,
"paid_interest": 0.0,
"dpd": 0,
"repayment_number": 3,
"closing_balance": 37810.0,
"extra_charges": [
{}
],
"payment_details": {
"total_allocated": 0,
"principal_allocated": 0,
"interest_allocated": 0,
"charges_allocated": [
{}
]
},
"payment_history": [],
"uuid": "9d8891ba-2c96-4e0a-921b-43df7c7ef339",
"tranche_id": null
},
{
"due_date": "05-Apr-2024",
"status": "Paid",
"opening_balance": 62303.0,
"repayment_amount": 13215.0,
"goalseek_amount": 0,
"principal_amount": 12126.0,
"interest_amount": 1089.0,
"remaining_principal": 0.0,
"remaining_interest": 0.0,
"paid_principal": 12126.0,
"paid_interest": 1089.0,
"dpd": 0,
"repayment_number": 2,
"closing_balance": 50177.0,
"extra_charges": [
{}
],
"payment_details": {
"transaction_time": "22-May-2024",
"payment_type": "Razorpay",
"payment_id": "edgro_uat_repayment_try_717",
"total_allocated": 13215.0,
"principal_allocated": 12126.0,
"interest_allocated": 1089.0,
"charges_allocated": [
{}
]
},
"payment_history": {
"charges_history": [
{}
],
"payment_transaction_history": [
{
"payment_id": "edgro_uat_repayment_try_717",
"total_amount": 26430.0,
"principal_allocated": 12126.0,
"interest_allocated": 1089.0
}
]
},
"uuid": "8a5257ad-0c49-4961-a722-b251725e1d77",
"tranche_id": null
},
{
"due_date": "05-Mar-2024",
"status": "Paid",
"opening_balance": 74801.0,
"repayment_amount": 13215.0,
"goalseek_amount": 0,
"principal_amount": 12498.0,
"interest_amount": 717.0,
"remaining_principal": 0.0,
"remaining_interest": 0.0,
"paid_principal": 12498.0,
"paid_interest": 717.0,
"dpd": 0,
"repayment_number": 1,
"closing_balance": 62303.0,
"extra_charges": [
{
"charge_amount": 1400.0,
"charge_paid": 1400.0,
"charge_remaining": 0.0,
"charge_type": "LATE_PAYMENT_CHARGE"
},
{
"charge_amount": 2000.0,
"charge_paid": 2000.0,
"charge_remaining": 0.0,
"charge_type": "LATE_PAYMENT_CHARGE"
},
{
"charge_amount": 407.0,
"charge_paid": 407.0,
"charge_remaining": 0.0,
"charge_type": "BOUNCE_CHARGES"
}
],
"payment_details": {
"transaction_time": "22-May-2024",
"payment_type": "Razorpay",
"payment_id": "edgro_uat_repayment_try_717",
"total_allocated": 13215.0,
"principal_allocated": 12498.0,
"interest_allocated": 717.0,
"charges_allocated": [
{
"allocated_amount": 1400.0,
"charge_type": "LATE_PAYMENT_CHARGE"
},
{
"allocated_amount": 2000.0,
"charge_type": "LATE_PAYMENT_CHARGE"
},
{
"allocated_amount": 407.0,
"charge_type": "BOUNCE_CHARGES"
}
]
},
"payment_history": {
"charges_history": [
{
"allocated_amount": 1400.0,
"charge_type": "LATE_PAYMENT_CHARGE",
"payment_id": "edgro_uat_repayment_try_717"
},
{
"allocated_amount": 2000.0,
"charge_type": "LATE_PAYMENT_CHARGE",
"payment_id": "edgro_uat_repayment_try_717"
},
{
"allocated_amount": 407.0,
"charge_type": "BOUNCE_CHARGES",
"payment_id": "edgro_uat_repayment_try_717"
}
],
"payment_transaction_history": [
{
"payment_id": "edgro_uat_repayment_try_717",
"total_amount": 26430.0,
"principal_allocated": 12498.0,
"interest_allocated": 717.0
}
]
},
"uuid": "cb105f71-8ba8-4bed-b20d-88b43944edd0",
"tranche_id": null,
'total_charges':
[
{
'charge_type': "BOUNCE_CHARGE"
'total_charge_amount':1000,
'total_waived_off_amount':100,
'total_amount_paid':800,
'total_pending_amount':100
},
{
'charge_type': "LATE_CHARGE"
'total_charge_amount':1000,
'total_waived_off_amount':100,
'total_amount_paid':800,
'total_pending_amount':100
}
]
}
],
"excess_payment_history": [
{
"payment_id":"xyz",
"amount":2111
},
{
"payment_id":"abc",
"amount":111
}
],
"co_lending_repayments": [
{
"principal_co_lender_repayments": [
{
"uuid": "29183041-1251-4969-be6b-aa4373e96f73",
"due_date": "2024-08-05",
"status": 5,
"repayment_number": 6,
"repayment_amount": 10094.0,
"principal_amount": 9974.0,
"interest_amount": 120.0,
"remaining_principal": 9974.0,
"remaining_interest": 120.0,
"opening_balance": 9974.0,
"closing_balance": 0.0,
"payment_history": []
},
{
"uuid": "65994520-df8c-46e2-8fcf-c5ef9d959ced",
"due_date": "2024-07-05",
"status": 5,
"repayment_number": 5,
"repayment_amount": 10467.0,
"principal_amount": 10231.0,
"interest_amount": 236.0,
"remaining_principal": 10231.0,
"remaining_interest": 236.0,
"opening_balance": 20205.0,
"closing_balance": 9974.0,
"payment_history": []
},
{
"uuid": "1dfd5c9b-805e-407d-bcbc-798b10e8e5ec",
"due_date": "2024-06-05",
"status": 5,
"repayment_number": 4,
"repayment_amount": 10408.0,
"principal_amount": 10043.0,
"interest_amount": 365.0,
"remaining_principal": 10043.0,
"remaining_interest": 365.0,
"opening_balance": 30248.0,
"closing_balance": 20205.0,
"payment_history": []
},
{
"uuid": "a236b593-1671-4531-ab15-3b86d98c5491",
"due_date": "2024-05-05",
"status": 5,
"repayment_number": 3,
"repayment_amount": 10362.0,
"principal_amount": 9894.0,
"interest_amount": 468.0,
"remaining_principal": 9894.0,
"remaining_interest": 468.0,
"opening_balance": 40142.0,
"closing_balance": 30248.0,
"payment_history": []
},
{
"uuid": "b89779c9-0b3b-4b1d-a31a-e226f705d2b1",
"due_date": "2024-04-05",
"status": 1,
"repayment_number": 2,
"repayment_amount": 10301.0,
"principal_amount": 9700.0,
"interest_amount": 601.0,
"remaining_principal": 0.0,
"remaining_interest": 0.0,
"opening_balance": 49842.0,
"closing_balance": 40142.0,
"payment_history": {
"charges_history": {},
"payment_transaction_history": [
{
"payment_id": "edgro_uat_repayment_try_717",
"total_amount": 10301.0,
"principal_allocated": 9700.0,
"interest_allocated": 601.0
}
]
}
},
{
"uuid": "7d309922-dc42-473f-9a4e-ceefd8622e4a",
"due_date": "2024-03-05",
"status": 1,
"repayment_number": 1,
"repayment_amount": 10395.0,
"principal_amount": 9999.0,
"interest_amount": 396.0,
"remaining_principal": 0.0,
"remaining_interest": 0.0,
"opening_balance": 59841.0,
"closing_balance": 49842.0,
"payment_history": {
"charges_history": {},
"payment_transaction_history": [
{
"payment_id": "edgro_uat_repayment_try_717",
"total_amount": 10395.0,
"principal_allocated": 9999.0,
"interest_allocated": 396.0
}
]
}
}
],
"co_lender_repayments": [
{
"uuid": "b50e926d-7d5b-40ff-bda6-aa3c48ebe555",
"due_date": "2024-08-05",
"status": 5,
"repayment_number": 6,
"repayment_amount": 2592.0,
"principal_amount": 2494.0,
"interest_amount": 98.0,
"remaining_principal": 2494.0,
"remaining_interest": 98.0,
"opening_balance": 2494.0,
"closing_balance": 2494.0,
"payment_history": []
},
{
"uuid": "f7a53eba-b31e-4c24-b188-b2637b33f1d6",
"due_date": "2024-07-05",
"status": 5,
"repayment_number": 5,
"repayment_amount": 2748.0,
"principal_amount": 2557.0,
"interest_amount": 191.0,
"remaining_principal": 2557.0,
"remaining_interest": 191.0,
"opening_balance": 5051.0,
"closing_balance": 5051.0,
"payment_history": []
},
{
"uuid": "0fc9c966-65dc-4dda-9460-114efcb2c7dd",
"due_date": "2024-06-05",
"status": 5,
"repayment_number": 4,
"repayment_amount": 2807.0,
"principal_amount": 2511.0,
"interest_amount": 296.0,
"remaining_principal": 2511.0,
"remaining_interest": 296.0,
"opening_balance": 7562.0,
"closing_balance": 7562.0,
"payment_history": []
},
{
"uuid": "3ccbe76a-6cc4-4047-bba1-837df85787e6",
"due_date": "2024-05-05",
"status": 5,
"repayment_number": 3,
"repayment_amount": 2853.0,
"principal_amount": 2473.0,
"interest_amount": 380.0,
"remaining_principal": 2473.0,
"remaining_interest": 380.0,
"opening_balance": 10035.0,
"closing_balance": 10035.0,
"payment_history": []
},
{
"uuid": "09cbc434-d6a2-4adc-b396-4ac099d5d195",
"due_date": "2024-04-05",
"status": 1,
"repayment_number": 2,
"repayment_amount": 2914.0,
"principal_amount": 2426.0,
"interest_amount": 488.0,
"remaining_principal": 0.0,
"remaining_interest": 0.0,
"opening_balance": 12461.0,
"closing_balance": 12461.0,
"payment_history": {
"charges_history": {},
"payment_transaction_history": [
{
"payment_id": "edgro_uat_repayment_try_717",
"total_amount": 2914.0,
"principal_allocated": 2426.0,
"interest_allocated": 488.0
}
]
}
},
{
"uuid": "9fe75029-22f5-4a45-9da7-f8d8c0b647a6",
"due_date": "2024-03-05",
"status": 1,
"repayment_number": 1,
"repayment_amount": 2820.0,
"principal_amount": 2499.0,
"interest_amount": 321.0,
"remaining_principal": 0.0,
"remaining_interest": 0.0,
"opening_balance": 14960.0,
"closing_balance": 14960.0,
"payment_history": {
"charges_history": {
"allocated_amount": 1400.0,
"charge_type": "LATE_PAYMENT_CHARGE",
"payment_id": "edgro_uat_repayment_try_717"
},
{
"allocated_amount": 2000.0,
"charge_type": "LATE_PAYMENT_CHARGE",
"payment_id": "edgro_uat_repayment_try_717"
},
{
"allocated_amount": 407.0,
"charge_type": "BOUNCE_CHARGES",
"payment_id": "edgro_uat_repayment_try_717"
},
"payment_transaction_history": [
{
"payment_id": "edgro_uat_repayment_try_717",
"total_amount": 2820.0,
"principal_allocated": 2499.0,
"interest_allocated": 321.0
}
]
}
}
],
"excess_payment_history": [
{
"payment_id":"xyz",
"amount":2111
},
{
"payment_id":"abc",
"amount":111
}
]
}
]
}
}