Category
Work with holidays, working days, and business-day offsets.
The calendar family returns official fixed and movable holidays plus business-day calculations useful for payroll, invoicing, and delivery scheduling.
Routes
3 GET
Holiday model
Fixed + movable
Core use
Business-day math
Routes in this family
#| Route | Purpose | Key query |
|---|---|---|
| /api/v1/calendar/holidays | Return public holidays for a year. | year |
| /api/v1/calendar/working-days | Count working days between two dates. | from, to |
| /api/v1/calendar/add-working-days | Move a date forward or backward by working days. | date, days |
GET /api/v1/calendar/holidays
#Use holidays to obtain the supported Angola public-holiday schedule for a given year.
| Parameter | Required | Description |
|---|---|---|
| year | No | Optional calendar year. Defaults to the current year. |
cURL usage
200 response
Error response
GET /api/v1/calendar/working-days
#Use working-days to count business days between two dates while excluding weekends and supported Angola holidays.
| Parameter | Required | Description |
|---|---|---|
| from | Yes | Start date in `YYYY-MM-DD` format. |
| to | Yes | End date in `YYYY-MM-DD` format. |
cURL usage
200 response
Error response
GET /api/v1/calendar/add-working-days
#Use add-working-days to move a base date forward or backward according to the supported working-day calendar.
| Parameter | Required | Description |
|---|---|---|
| date | Yes | Base date in `YYYY-MM-DD` format. |
| days | Yes | Signed integer representing the working-day offset. |
cURL usage
200 response
Error response