Hello everyone,
Please, I am trying to set up a Fixed Deposit product on Mifos and I am getting errors.
I will appreciate any help I can get.
These are the errors:"developerMessage" : "The request was invalid. This typically will happen due to validation errors which are provided.",
"httpStatusCode" : "400",
"defaultUserMessage" : "Validation errors exist.",
"userMessageGlobalisationCode" : "validation.msg.validation.errors.exist",
"errors" : [ {
"developerMessage" : "Failed data validation due to: chart.slabs.range.end.incorrect.",
"defaultUserMessage" : "Failed data validation due to: chart.slabs.range.end.incorrect.",
"userMessageGlobalisationCode" : "validation.msg.fixeddeposit.chart.slabs.range.end.incorrect",
"args" : [ { }, {
"value" : [ 30, null ]
} ]
}, {
"developerMessage" : "Failed data validation due to: chart.overlapping.from.and.end.dates.",
"defaultUserMessage" : "Failed data validation due to: chart.overlapping.from.and.end.dates.",
"userMessageGlobalisationCode" : "validation.msg.fixeddeposit.chart.overlapping.from.and.end.dates",
"args" : [ { }, {
"value" : [ "2024-08-08", null, "2012-06-05", null ]
} ]
}, {
"developerMessage" : "Failed data validation due to: chart.overlapping.from.and.end.dates.",
"defaultUserMessage" : "Failed data validation due to: chart.overlapping.from.and.end.dates.",
"userMessageGlobalisationCode" : "validation.msg.fixeddeposit.chart.overlapping.from.and.end.dates",
"args" : [ { }, {
"value" : [ "2012-06-05", null, "2024-08-08", null ]
T
his is my payload:{
"name": "Fixed",
"shortName": "FE",
"description": "Fixed",
"currencyCode": "NGN",
"digitsAfterDecimal": 2,
"inMultiplesOf": 0,
"minDepositAmount": 100,
"depositAmount": 100000,
"maxDepositAmount": 900000000000,
"interestCompoundingPeriodType": 1,
"interestPostingPeriodType": 4,
"interestCalculationType": 1,
"interestCalculationDaysInYearType": 365,
"minDepositTerm": 1,
"minDepositTermTypeId": 0,
"inMultiplesOfDepositTerm": 1,
"maxDepositTerm": 20,
"maxDepositTermTypeId": 0,
"preClosurePenalApplicable": false,
"withHoldTax": false,
"charts": [
{
"name": "Goal",
"description": "Ending",
"fromDate": "08 August 2024",
"isPrimaryGroupingByAmount": false,
"chartSlabs": [
{
"periodType": 0,
"fromPeriod": "1",
"toPeriod": "30",
"amountRangeFrom": "",
"amountRangeTo": "",
"annualInterestRate": "20",
"description": "Interest",
"incentives": []
}
],
"dateFormat": "dd MMMM yyyy",
"locale": "en"
}
],
"charges": [],
"accountingRule": 1,
"locale": "en"
}