From 8b135f769aefc3a43f79dbdd8a620dcfb292b194 Mon Sep 17 00:00:00 2001 From: Priti Date: Thu, 4 Apr 2013 16:17:14 +0530 Subject: [PATCH] API Doc file updated 1. WriteOff Loan documentation added 2. UndoApproval : command correction and request body added --- api-docs/apiLive.htm | 75 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 71 insertions(+), 4 deletions(-) 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 @@ + + + loans/{loanId}/transactions?command=writeoff + Write-off Loan + + + + loans/{loanId}/transactions/{transactionId} @@ -3807,8 +3815,12 @@ Request Body: POST https://DomainName/api/v1/loans/{loanId}?command=undoApproval -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