Hello Jamal, The values for parameter loanType can be individual, jlg or group depending on the type of loan you are applying. see the docs here specifically in loan tab [ https://demo.openmf.org/api-docs/apiLive.htm | https://demo.openmf.org/api-docs/apiLive.htm ]
Regards, Nenge. From: "Jamal Inkoom" <[email protected]> To: "Mifos software development" <[email protected]> Cc: "dev" <[email protected]> Sent: Monday, March 12, 2018 6:54:45 PM Subject: [Mifos-developer] Help with Loan Submittal API Hello Seniors, I'm trying to use the API for new loan creation. Below is my json and associated response respectively. Is there anything I'm doing wrong or is there known issue in this particular API that I'm not aware of? Any help from you will be very much appreciated. REQUEST MESSAGE {"locale":"en","submittedOnDate":"08 January 2014","numberOfRepayments":"12","externalId":"FAFC000000001","amortizationType":"1","clientId":"1","productId":"1","interestType":"1","expectedDisbursementDate":"08 January 2014","loanTermFrequency":"12","repaymentFrequencyType":"2","repaymentEvery":"1","principal":"2149.000000","createStandingInstructionAtDisbursement":true,"interestRatePerPeriod":"0.000000","loanType":"1","interestCalculationPeriodType":"1","dateFormat":"dd MMMM yyyy","linkAccountId":"1","loanTermFrequencyType":"2","transactionProcessingStrategyId":"1"} RESPONSE MESSAGE {"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":"The parameter loanType must be between 1 and 3.","defaultUserMessage":"The parameter loanType must be between 1 and 3.","userMessageGlobalisationCode":"validation.msg.loan.loanType.is.not.within.expected.range","parameterName":"loanType","value":null,"args":[{"value":0},{"value":1},{"value":3}]}]} regards, Jamal ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot Mifos-developer mailing list [email protected] Unsubscribe or change settings at: https://lists.sourceforge.net/lists/listinfo/mifos-developer -- Nenge Masoya Software Developer Research & Development Office: +255 22 261 8511 | Mobile: +255 659 395 570 Singo Africa Limited Block G Mbezi Beach | Nakawale Road | P. O. Box 78908 | 14121 Dar es Salaam singo.co.tz | amala.co.tz Let's grow together!
