diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index d884ab448..cd3fce57e 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -12,7 +12,7 @@ var result = {}; if (window.location.search) { // split up the query string and store in an associative array - var params = window.location.search.slice(1).split("&"); + var params = window.location.search.slice(1).split("&"); x for ( var i = 0; i < params.length; i++) { var tmp = params[i].split("="); result[tmp[0]] = unescape(tmp[1]); @@ -454,6 +454,14 @@
-POST loans/1?command=approve
-Content-Type: application/json
+POST loans/1?command=undoApproval
+Content-Type: application/json
+Request Body:
+{
+ "note": "Loan undo approval note"
+}
{
@@ -4250,7 +4262,62 @@ Request Body:
-
+
+
+
+
+ Write-off Loan
+
+
+
+ POST https://DomainName/api/v1/loans/{loanId}/transactions?command=writeoff
+
+
+ POST loans/70/transactions?command=writeoff
+ Content-Type: application/json
+ Request Body:
+ {
+ "locale": "en_GB",
+ "dateFormat": "dd MMMM yyyy",
+ "transactionDate": "14 May 2012",
+ "note": "Write-off note"
+ }
+
+
+ {
+ "officeId": 1,
+ "clientId": 7,
+ "loanId": 70,
+ "resourceId": 442,
+ "changes": {
+ "transactionDate": "1 March 2012",
+ "locale": "en",
+ "dateFormat": "dd MMMM yyyy",
+ "status": {
+ "id": 601,
+ "code": "loanStatusType.closed.written.off",
+ "value": "Closed (written off)",
+ "pendingApproval": false,
+ "waitingForDisbursal": false,
+ "active": false,
+ "closedObligationsMet": false,
+ "closedWrittenOff": true,
+ "closedRescheduled": false,
+ "closed": true,
+ "overpaid": false
+ },
+ "closedOnDate": "1 March 2012",
+ "writtenOffOnDate": "1 March 2012",
+ "note": "Write-off note"
+ }
+ }
+
+
+
+
+
+
+
Retrieve a Transaction Details