Authorization: Bearer ********************
{
"id": "db2857d7-389e-4c3e-8cca-facc2276e6b2",
"created_at": 1721128037.821,
"updated_at": 1733734664.6568186,
"lead_id": "42f4b8b5-2fdd-4cf8-a691-ed034ea1f9af",
"program_id": "0c6288c2-3b17-4737-b1a5-4b39d079562e",
"type": "loan",
"days_in_month": 30,
"days_in_year": 360,
"tenure_period": "days",
"tenure_value": 40,
"tenure_period_type": "as_per_days",
"tenure_fixed_due_date": false,
"tenure_due_days": [],
"tenure_min_days": 0,
"tenure_starts_at": "disbursement_date",
"roi_period": "years",
"roi_slab_based": true,
"roi_value": [
{
"days": "15",
"value": 18
},
{
"days": "30",
"value": 24
},
{
"days": -1,
"value": 36
}
],
"overdue_roi_same_as_roi": true,
"overdue_roi_slab_based": true,
"overdue_roi_value": [
{
"days": "15",
"value": 18
},
{
"days": "30",
"value": 24
},
{
"days": -1,
"value": 36
}
],
"penal_roi_same_as_roi": false,
"penal_roi_slab_based": false,
"penal_tax": 0,
"penal_min_amount": 0,
"penal_max_amount": 0,
"penal_roi_value": [
{
"days": "inf",
"value": 72
}
],
"penal_roi_value_type": null,
"penal_accrual_frequency": "daily",
"penal_lag_days_after_due": 0,
"penal_calculation_type": "exclude_grace_period",
"interest_starts": "same_day",
"interest_lock_in_enabled": false,
"interest_lock_in_days": 0,
"subvention_is_enabled": false,
"subvention_value_type": "percentage",
"subvention_value": 0,
"subvention_days": 0,
"cashback_is_enabled": false,
"cashback_use_as": "adjust",
"cashback_payment_to": "borrower",
"cashback_release_at": "loan_closure",
"cashback_deduction_is_enabled": false,
"cashback_deduction_type": "fixed",
"cashback_deduction_value": 0,
"holdback_is_enabled": true,
"holdback_rate": 0,
"holdback_return_is_enabled": false,
"holdback_return_payment_to": null,
"margin_is_enabled": false,
"margin_value_type": null,
"margin_value": 0,
"margin_receive_before_disbursement": true,
"pf_is_enabled": false,
"pf_value_type": "percentage",
"pf_value": 0.5,
"pf_gst": 18,
"emi_frequency": null,
"emi_count": 0,
"emi_days": [],
"is_pre_emi_enabled": false,
"pre_emi_period": 0,
"broker_period_interest": 0,
"extend_pre_emi_is_enabled": false,
"co_lending_split": {},
"dpd_components": null,
"topup": "fb71dc3a-0bd4-49aa-adbb-98dd2cf6717c",
"loan": null
}
curl --location --request PATCH 'https://preprod.api.crego.io/v1/lms/loan_data/db2857d7-389e-4c3e-8cca-facc2276e6b2/' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "db2857d7-389e-4c3e-8cca-facc2276e6b2",
"created_at": 1721128037.821,
"updated_at": 1733734664.6568186,
"lead_id": "42f4b8b5-2fdd-4cf8-a691-ed034ea1f9af",
"program_id": "0c6288c2-3b17-4737-b1a5-4b39d079562e",
"type": "loan",
"days_in_month": 30,
"days_in_year": 360,
"tenure_period": "days",
"tenure_value": 40,
"tenure_period_type": "as_per_days",
"tenure_fixed_due_date": false,
"tenure_due_days": [],
"tenure_min_days": 0,
"tenure_starts_at": "disbursement_date",
"roi_period": "years",
"roi_slab_based": true,
"roi_value": [
{
"days": "15",
"value": 18
},
{
"days": "30",
"value": 24
},
{
"days": -1,
"value": 36
}
],
"overdue_roi_same_as_roi": true,
"overdue_roi_slab_based": true,
"overdue_roi_value": [
{
"days": "15",
"value": 18
},
{
"days": "30",
"value": 24
},
{
"days": -1,
"value": 36
}
],
"penal_roi_same_as_roi": false,
"penal_roi_slab_based": false,
"penal_tax": 0,
"penal_min_amount": 0,
"penal_max_amount": 0,
"penal_roi_value": [
{
"days": "inf",
"value": 72
}
],
"penal_roi_value_type": null,
"penal_accrual_frequency": "daily",
"penal_lag_days_after_due": 0,
"penal_calculation_type": "exclude_grace_period",
"interest_starts": "same_day",
"interest_lock_in_enabled": false,
"interest_lock_in_days": 0,
"subvention_is_enabled": false,
"subvention_value_type": "percentage",
"subvention_value": 0,
"subvention_days": 0,
"cashback_is_enabled": false,
"cashback_use_as": "adjust",
"cashback_payment_to": "borrower",
"cashback_release_at": "loan_closure",
"cashback_deduction_is_enabled": false,
"cashback_deduction_type": "fixed",
"cashback_deduction_value": 0,
"holdback_is_enabled": true,
"holdback_rate": 0,
"holdback_return_is_enabled": false,
"holdback_return_payment_to": null,
"margin_is_enabled": false,
"margin_value_type": null,
"margin_value": 0,
"margin_receive_before_disbursement": true,
"pf_is_enabled": false,
"pf_value_type": "percentage",
"pf_value": 0.5,
"pf_gst": 18,
"emi_frequency": null,
"emi_count": 0,
"emi_days": [],
"is_pre_emi_enabled": false,
"pre_emi_period": 0,
"broker_period_interest": 0,
"extend_pre_emi_is_enabled": false,
"co_lending_split": {},
"dpd_components": null,
"topup": "fb71dc3a-0bd4-49aa-adbb-98dd2cf6717c",
"loan": null
}'
{
"_id": "992cfe0d-ca6a-4d41-ab8c-f2e9e5452292",
"lead_id": "133c3a74-c1b9-4e11-be6b-031ef323b163",
"program_id": "6788f287-c670-46b9-8ec9-48cc351ab2bc",
"interest_lock_in_days": 0,
"roi_value": [
{
"value": 14,
"days": "inf"
}
],
"tenure_value": 5,
"penal_roi_value": [
{
"value": 10,
"days": "inf"
}
],
"penal_lag_days_after_due": 0,
"overdue_roi_value": [
{
"value": 14,
"days": "inf"
}
],
"subvention_is_enabled": false,
"subvention_value_type": "percentage",
"subvention_days": 0,
"subvention_value": 0,
"tenure_starts_at": "disbursement_date",
"interest_starts": "same_day",
"days_in_month": 30,
"days_in_year": 365,
"tenure_period": "days",
"tenure_period_type": "as_per_days",
"roi_period": "years",
"roi_slab_based": false,
"interest_lock_in_enabled": false,
"overdue_roi_same_as_roi": true,
"overdue_roi_slab_based": true,
"penal_roi_same_as_roi": false,
"penal_roi_slab_based": false,
"cashback_is_enabled": false,
"cashback_payment_to": "borrower",
"cashback_use_as": "adjust",
"cashback_release_at": "loan_closure",
"cashback_deduction_is_enabled": false,
"cashback_deduction_type": "fixed",
"cashback_deduction_value": 0,
"holdback_is_enabled": false,
"holdback_rate": "0",
"holdback_return_is_enabled": false,
"holdback_return_payment_to": "",
"margin_is_enabled": false,
"margin_receive_before_disbursement": true,
"pf_is_enabled": false,
"is_deleted": false,
"created_at": 1720621562.504,
"updated_at": 1720621622.705
}