From 34b031a05b5cb3a33c677f656aeb6216c5cd6910 Mon Sep 17 00:00:00 2001 From: Pramod Nuthakki Date: Thu, 19 Sep 2013 18:36:32 +0530 Subject: [PATCH] API doc changes --- api-docs/apiLive.htm | 98 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 93 insertions(+), 5 deletions(-) diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index 1007b744e..b8fc7a7a4 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -458,7 +458,7 @@ loans/{loanId}/charges/{loanChargeId} - + Pay Loan Charge Retrieve a Loan Charge Modify a Loan Charge Delete a Loan Charge @@ -4644,6 +4644,12 @@ GET https://DomainName/mifosng-provider/api/v1/groups The date the loan application was submitted by applicant. + + linkAccountId + + + The Savings Account id for linking with loan account for payments. + amortizationType @@ -5036,6 +5042,18 @@ GET https://DomainName/api/v1/loans/template?templateType=individual&clientId=1& "name": "option.Gold", "position": 18 } + ], + "accountLinkingOptions":[ + { + "id":1, + "accountNo":"000000001", + "clientId":1, + "clientName":"pramod nuthakki", + "productId":1, + "productName":"pramod sav", + "fieldOfficerId":0, + "currency":{"code":"USD","name":"US Dollar","decimalPlaces":2,"displaySymbol":"$","nameCode":"currency.USD","displayLabel":"US Dollar ($)"} + } ] } @@ -5254,7 +5272,11 @@ GET https://DomainName/api/v1/loans/{loanId} 2012, 5, 10 - ] + ], + "linkedAccount":{ + "id":1, + "accountNo":"000000001" + } } } @@ -5447,6 +5469,10 @@ GET https://DomainName/mifosng-provider/api/v1/loans 1 ] }, + "linkedAccount":{ + "id":1, + "accountNo":"000000001" + }, "summary": { "currency": { "code": "USD", @@ -5675,7 +5701,7 @@ Request Body:
Optional Fields
- graceOnPrincipalPayment, graceOnInterestPayment, graceOnInterestCharged + graceOnPrincipalPayment, graceOnInterestPayment, graceOnInterestCharged,linkAccountId @@ -5706,6 +5732,7 @@ Request Body: "transactionProcessingStrategyId": 1, "expectedDisbursementDate": "10 Jun 2013", "submittedOnDate": "10 Jun 2013" + "linkAccountId" : "1" } @@ -7401,6 +7428,42 @@ Request Body: +   +
+
+

Pay Loan Charge

+

Loan Charge will be paid if the loan is linked with a savings account +

+
+
+ +POST https://DomainName/api/v1/loans/{loanId}/charges/{chargeId}?command=pay + + +POST loans/1/charges/12?command=pay +Content-Type: application/json +Request Body: +{ + "dateFormat": "dd MMMM yyyy", + "locale": "en", + "transactionDate": "19 September 2013" +} + + + + + { + "officeId": 1, + "clientId": 1, + "loanId": 6, + "savingsId": 1, + "resourceId": 12 + } + + +
+
 
@@ -11013,7 +11076,20 @@ GET https://DomainName/api/v1/charges/template "code": "chargeTimeType.specifiedDueDate", "value": "Specified due date" } - ] + ], + "chargePaymetModeOptions": + [ + { + "id":0, + "code":"chargepaymentmode.regular", + "value":"chargepaymentmode.regular" + }, + { + "id":1, + "code":"chargepaymentmode.accounttransfer", + "value":"chargepaymentmode.accounttransfer" + } + ] }
@@ -11042,6 +11118,7 @@ Request Body: "amount": "230.56", "chargeTimeType": "1", "chargeCalculationType": "1", + "chargePaymentMode": "1" "active": true } @@ -11062,6 +11139,7 @@ Request Body: "chargeAppliesTo": "1", "chargeTimeType": "2", "chargeCalculationType": "2", + "chargeCalculationType": "1", "active": "true", "penalty": "true" } @@ -11116,6 +11194,11 @@ GET https://DomainName/api/v1/charges "id": 1, "code": "chargeCalculationType.flat", "value": "Flat" + }, + "chargePaymentMode":{ + "id":1, + "code":"chargepaymentmode.accounttransfer", + "value":"Account transfer" } } ] @@ -11165,6 +11248,11 @@ GET https://DomainName/api/v1/charges/{chargeId} "id": 1, "code": "chargeCalculationType.flat", "value": "Flat" + }, + "chargePaymentMode":{ + "id":1, + "code":"chargepaymentmode.accounttransfer", + "value":"Account transfer" } } @@ -19057,7 +19145,7 @@ GET https://DomainName/api/v1/search?query=000000111 loans/{loanId}/charges/{loanChargeId} - + Pay a Loan Charge Retrieve a Loan Charge Modify a Loan Charge Delete a Loan Charge