diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index 9db64215b..409c42392 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -900,6 +900,22 @@
Some MFI's span large regions where different branch offices might observe different holidays. They need the ability to define holidays for specific branch offices and be able to set the repayment rule to follow during those holidays. +
++ The reschedule of repayments to repaymentsRescheduledTo date durign defined holidays is turned on/off by enabling/disabling reschedule-repayments-on-holidays in Global configurations. +
+Allow Repayment transactions on a defined holidays is turned on/off by enabling/disabling allow-transactions-on-holiday in Global configurations. +
+Field Descriptions |
+
| name | +
| Name of the holiday. + | +
| fromDate | +
| The date on holiday begins. + | +
| toDate | +
| The date on holiday ends. + | +
| repaymentsRescheduledTo | +
| Date to which repayments will be rescheduled when repayments date falls on a defined holiday. e.g. A holiday is defined on 25th of October 2013 with repaymentsRescheduledTo date to 26th of October 2013 and any loans with repayments date on 25th of October 2013 will be rescheduled to 26th of October 2013. + | +
| officeId | +
| The officeId represents the office to which holiday is applied. + | +
Example Requests:
+
+GET https://DomainName/api/v1/holidays?officeId=1
+
+
+[
+ {
+ "id": 1,
+ "name": "Good Friday",
+ "fromDate": [
+ 2013,
+ 10,
+ 25
+ ],
+ "toDate": [
+ 2013,
+ 10,
+ 25
+ ],
+ "repaymentsScheduleTo": [
+ 2013,
+ 10,
+ 26
+ ]
+ }
+]
+
+ Mandatory Fields |
+
| name, fromDate, toDate, repaymentsRescheduledTo, offices | +
+POST https://DomainName/api/v1/holidays
+
+
+POST holidays
+Content-Type: application/json
+Request Body:
+{
+ "name": "Good Friday",
+ "dateFormat": "dd MMMM yyyy",
+ "locale": "en",
+ "fromDate": "25 October 2013",
+ "toDate": "25 October 2013",
+ "repaymentsRescheduledTo": "26 October 2013",
+ "offices": [
+ "officeId":"1",
+ "officeId":"2"
+ ]
+}
+
+
+{
+ "resourceId": 1
+}
+
+ The days of the week that are workdays. +
++ Rescheduling of repayments when it falls on a non-working is turned on /off by enable/disable reschedule-future-repayments parameter in Global configurations. +
++ Allow transactions on non-working days is configurable by enabling/disbaling the allow-transactions-on-non_workingday parameter in Global configurations. +
+Schedule for repayments on non-working day |
+
| Same day | +
| The repayments schedule for same day regardless of it's a non-working day. + | +
| Next workday | +
| The repayments reschedule to next working day. e.g. if a repayment falls on a non-working day will be rescheduled to next available working day. + | +
| Previous workday | +
| The repayments reschedule to previous working day. e.g. if a repayment falls on a non-working day will be rescheduled to previous available working day. + | +
| Next scheduled meeting | +
| The repayments reschduled to next scheduled meeting. + | +
Global configuration related to set of supported enable/disable configurations: