Merge pull request #400 from goutham-M/mifosx---438
for close client functionality apiLive.htm is updated
This commit is contained in:
@@ -183,6 +183,14 @@
|
|||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td>clients/{clientId}?command=close</td>
|
||||||
|
<td><a href="#clients_close">Close a Client</a></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
<tr class="alt">
|
<tr class="alt">
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>clients/{clientId}/loans</td>
|
<td>clients/{clientId}/loans</td>
|
||||||
@@ -1839,6 +1847,12 @@ function executeAjaxRequest(url, verbType, jsonData, basicAuthKey, successFuncti
|
|||||||
</dd>
|
</dd>
|
||||||
<dd>Defaults to false if not provided. If <strong>staffInSelectedOfficeOnly=true</strong> only staff
|
<dd>Defaults to false if not provided. If <strong>staffInSelectedOfficeOnly=true</strong> only staff
|
||||||
who are associated with the selected branch are returned.</dd>
|
who are associated with the selected branch are returned.</dd>
|
||||||
|
<dt>commandParam</dt>
|
||||||
|
<dd>
|
||||||
|
String <span>optional</span>
|
||||||
|
</dd>
|
||||||
|
<dd>If <strong>commandParam=close</strong> retrieves all closureReasons which are associated with
|
||||||
|
<strong>"ClientClosureReason"</strong> value.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<p>Example Request:</p>
|
<p>Example Request:</p>
|
||||||
<div class=apiClick>clients/template</div>
|
<div class=apiClick>clients/template</div>
|
||||||
@@ -1976,6 +1990,33 @@ Request Body:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a id="clients_close" name="clients_close" class="old-syle-anchor"> </a>
|
||||||
|
<div class="method-section">
|
||||||
|
<div class="method-description">
|
||||||
|
<h4>Close a Client</h4>
|
||||||
|
<p>Clients can be closed if they dont have any non-closed loans/savingsAccount. This API exists to close a client .</p>
|
||||||
|
<p>If the client have any corresponding active loans/savingsAccount this API will result in an error.</p>
|
||||||
|
</div>
|
||||||
|
<div class="method-example">
|
||||||
|
<code class="method-declaration">POST https://Domain Name/api/v1/clients/{clientId}?command=close</code>
|
||||||
|
<code class="method-request">POST clients/1?command=close
|
||||||
|
Content-Type: application/json
|
||||||
|
Request Body:
|
||||||
|
{
|
||||||
|
"dateFormat":"dd MMMM yyyy",
|
||||||
|
"locale":"en",
|
||||||
|
"closureDate":"25 June 2013",
|
||||||
|
"closureReasonId":"11"
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
<code class="method-response">
|
||||||
|
{
|
||||||
|
"clientId":15,
|
||||||
|
"resourceId":15
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<a id="clients_retrieve" name="clients_retrieve" class="old-syle-anchor"> </a>
|
<a id="clients_retrieve" name="clients_retrieve" class="old-syle-anchor"> </a>
|
||||||
<div class="method-section">
|
<div class="method-section">
|
||||||
<div class="method-description">
|
<div class="method-description">
|
||||||
@@ -15783,6 +15824,14 @@ GET https://DomainName/api/v1/search?query=000000111
|
|||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td>clients/{clientId}?command=close</td>
|
||||||
|
<td><a href="#clients_close">Close a Client</a></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
<tr class="alt">
|
<tr class="alt">
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>clients/{clientId}/loans</td>
|
<td>clients/{clientId}/loans</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user