Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -s -u mifos:password \
- -H "Fineract-Platform-TenantId: default" \
- -H "Content-Type: application/json" \
- "http://localhost:8080/fineract-provider/api/v1/loanproducts" \
- -d '{
- "charges": [],
- "interestRecognitionOnDisbursementDate": false,
- "loanScheduleType": "PROGRESSIVE",
- "transactionProcessingStrategyCode": "advanced-payment-allocation-strategy",
- "amortizationType": 1,
- "interestType": 0,
- "isEqualAmortization": false,
- "interestCalculationPeriodType": 1,
- "allowPartialPeriodInterestCalculation": false,
- "daysInYearType": 1,
- "daysInMonthType": 1,
- "canDefineInstallmentAmount": false,
- "accountMovesOutOfNPAOnlyOnArrearsCompletion": false,
- "allowVariableInstallments": false,
- "canUseForTopup": false,
- "isInterestRecalculationEnabled": false,
- "multiDisburseLoan": false,
- "enableDownPayment": false,
- "loanScheduleProcessingType": "HORIZONTAL",
- "chargeOffBehaviour": "REGULAR",
- "accountingRule": 1,
- "allowAttributeOverrides": {
- "amortizationType": true,
- "interestType": true,
- "transactionProcessingStrategyCode": true,
- "interestCalculationPeriodType": true,
- "inArrearsTolerance": true,
- "repaymentEvery": true,
- "graceOnPrincipalAndInterestPayment": true,
- "graceOnArrearsAgeing": true
- },
- "interestRateFrequencyType": 3,
- "repaymentFrequencyType": 2,
- "paymentAllocation": [
- {
- "transactionType": "DEFAULT",
- "paymentAllocationOrder": [
- {
- "order": 1,
- "paymentAllocationRule": "PAST_DUE_PENALTY"
- },
- {
- "order": 2,
- "paymentAllocationRule": "PAST_DUE_FEE"
- },
- {
- "order": 3,
- "paymentAllocationRule": "PAST_DUE_PRINCIPAL"
- },
- {
- "order": 4,
- "paymentAllocationRule": "PAST_DUE_INTEREST"
- },
- {
- "order": 5,
- "paymentAllocationRule": "DUE_PENALTY"
- },
- {
- "order": 6,
- "paymentAllocationRule": "DUE_FEE"
- },
- {
- "order": 7,
- "paymentAllocationRule": "DUE_PRINCIPAL"
- },
- {
- "order": 8,
- "paymentAllocationRule": "DUE_INTEREST"
- },
- {
- "order": 9,
- "paymentAllocationRule": "IN_ADVANCE_PENALTY"
- },
- {
- "order": 10,
- "paymentAllocationRule": "IN_ADVANCE_FEE"
- },
- {
- "order": 11,
- "paymentAllocationRule": "IN_ADVANCE_PRINCIPAL"
- },
- {
- "order": 12,
- "paymentAllocationRule": "IN_ADVANCE_INTEREST"
- }
- ],
- "futureInstallmentAllocationRule": "NEXT_INSTALLMENT"
- }
- ],
- "creditAllocation": [],
- "name": "Balloon With Bug",
- "digitsAfterDecimal": 2,
- "shortName": "BWB",
- "currencyCode": "USD",
- "fundId": 3,
- "principal": 300000,
- "allowApprovedDisbursedAmountsOverApplied": false,
- "repaymentStartDateType": 1,
- "numberOfRepayments": 8,
- "interestRatePerPeriod": 30,
- "repaymentEvery": 3,
- "graceOnPrincipalPayment": 7,
- "enableInstallmentLevelDelinquency": false,
- "enableIncomeCapitalization": false,
- "locale": "en",
- "dateFormat": "dd MMMM yyyy"
- }'
Advertisement
Add Comment
Please, Sign In to add comment