diff --git a/APIFolder/api.htm b/APIFolder/api.htm index 9271bc53c..f048e8c4f 100644 --- a/APIFolder/api.htm +++ b/APIFolder/api.htm @@ -1604,17 +1604,34 @@ No Request Body:
Example Request: - https://localhost:8443/mifosng-provider/api/v1/loans/1/transactions/template?type=waiver" -
+Example Request:
+ https://localhost:8443/mifosng-provider/api/v1/loans/10/transactions/template?command=repayment&pretty=trueGET https://thedomainname/api/v1/loans/{loanId}/transactions/template"
- to be done
+ {
+ "date" : [ 2009, 8, 1 ],
+ "total" : {
+ "currencyCode" : "XOF",
+ "digitsAfterDecimal" : 0,
+ "amount" : 471,
+ "defaultName" : "CFA Franc BCEAO",
+ "nameCode" : "currency.XOF",
+ "displaySymbol" : "CFA",
+ "zero" : false,
+ "greaterThanZero" : true,
+ "displaySymbolValue" : "471 CFA"
+ }
+}
POST https://thedomainname/api/v1/loans/{loanId}/transactions
- https://localhost:8443/mifosng-provider/api/v1/loans/1/transactions
-
-
- Content-Type: application/json
- Request Body:
- new json here
+ POST https://localhost:8443/mifosng-provider/api/v1/loans/37/transactions?command=repayment
+Content-Type: application/json
+Request Body:
+{
+ "locale": "en_GB",
+ "dateFormat": "dd MMMM yyyy",
+ "transactionDate": "14 May 2012",
+ "transactionAmount": "559.88",
+ "note": "Repayment at branch"
+}
{
- "entityId": 2
+"entityId": 37
}
Example Request: - https://localhost:8443/mifosng-provider/api/v1/loans/1/transactions/1 -
+Example Request:
+ https://localhost:8443/mifosng-provider/api/v1/loans/10/transactions/20?pretty=trueGET https://thedomainname/api/v1/loans/{loanId}/transactions/{transactionId}
-
+ {
+ "id" : 10,
+ "date" : [ 2009, 1, 29 ],
+ "principal" : null,
+ "interest" : null,
+ "total" : {
+ "currencyCode" : "XOF",
+ "digitsAfterDecimal" : 0,
+ "amount" : 300000,
+ "defaultName" : "CFA Franc BCEAO",
+ "nameCode" : "currency.XOF",
+ "displaySymbol" : "CFA",
+ "zero" : false,
+ "greaterThanZero" : true,
+ "displaySymbolValue" : "300000 CFA"
+ },
+ "totalWaived" : null,
+ "overpaid" : null,
+ "transactionOffsetFromToday" : -1218
+}
PUT https://thedomainname/api/v1/loans/{loanId}/transactions/{transactionId}
- https://localhost:8443/mifosng-provider/api/v1/loans/1/transactions/1
-
-
+ POST https://thedomainname/api/v1/loans/{loanId}/transactions/{transactionId}
+ POST https://localhost:8443/mifosng-provider/api/v1/loans/10/transactions/20
Content-Type: application/json
Request Body:
- new json here
{
- "entityId": 2
+ "entityId": 10
}