---
agentTools:
  projectIndex: https://mifos.readme.io/llms.txt
---

# List Holidays

Example Requests:

holidays?officeId=1

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Apache Fineract",
    "description": "Apache Fineract is a secure, multi-tenanted microfinance platform\n\nThe goal of the Apache Fineract API is to empower developers to build apps on top of the Apache Fineract Platform<br>The [reference app](https://cui.fineract.dev) (username: mifos, password: password) works on the same demo tenant as the interactive links in this documentation\n\n- The API is organized around [REST](https://en.wikipedia.org/wiki/Representational_state_transfer)\n- Find out more about Apache Fineract [here](/fineract-provider/api-docs/apiLive.htm#top)\n- You can [Try The API From Your Browser](/fineract-provider/api-docs/apiLive.htm#interact)\n- The Generic Options are available [here](/fineract-provider/api-docs/apiLive.htm#genopts)\n- Find out more about [Updating Dates and Numbers](/fineract-provider/api-docs/apiLive.htm#dates_and_numbers)\n- For the Authentication and the Basic of HTTP and HTTPS refer [here](/fineract-provider/api-docs/apiLive.htm#authentication_overview)\n- Check about ERROR codes [here](/fineract-provider/api-docs/apiLive.htm#errors)\n\nPlease refer to the [old documentation](/fineract-provider/api-docs/apiLive.htm) for any documentation queries",
    "contact": {
      "email": "dev@fineract.apache.org"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.5.0-39-gc7b9611-dirty"
  },
  "servers": [
    {
      "url": "https://localhost:8443/fineract-provider/api/v1"
    },
    {
      "url": "https://demo.fineract.dev/fineract-provider/api/v1"
    }
  ],
  "security": [
    {
      "basicAuth": [],
      "tenantid": []
    }
  ],
  "tags": [
    {
      "name": "Holidays",
      "description": "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.\n\nThe reschedule of repayments to repaymentsRescheduledTo date during defined holidays is turned on/off by enabling/disabling reschedule-repayments-on-holidays in Global configurations.\n\nAllow Repayment transactions on a defined holidays is turned on/off by enabling/disabling allow-transactions-on-holiday in Global configurations."
    }
  ],
  "paths": {
    "/holidays": {
      "get": {
        "tags": [
          "Holidays"
        ],
        "summary": "List Holidays",
        "description": "Example Requests:\n\nholidays?officeId=1",
        "operationId": "retrieveAllHolidays",
        "parameters": [
          {
            "name": "officeId",
            "in": "query",
            "description": "officeId",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "fromDate",
            "schema": {
              "$ref": "#/components/schemas/DateParam"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "toDate",
            "schema": {
              "$ref": "#/components/schemas/DateParam"
            }
          },
          {
            "name": "locale",
            "in": "query",
            "description": "locale",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateFormat",
            "in": "query",
            "description": "dateFormat",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetHolidaysResponse"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EnumOptionData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "code": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "DateParam": {
        "type": "object"
      },
      "GetHolidaysResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "example": 1
          },
          "name": {
            "type": "string",
            "example": "Good Friday"
          },
          "fromDate": {
            "type": "string",
            "format": "date"
          },
          "toDate": {
            "type": "string",
            "format": "date"
          },
          "repaymentsRescheduledTo": {
            "type": "string",
            "format": "date"
          },
          "officeId": {
            "type": "integer",
            "format": "int64",
            "example": 1
          },
          "status": {
            "$ref": "#/components/schemas/EnumOptionData"
          }
        },
        "description": "GetHolidaysResponse"
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      },
      "tenantid": {
        "type": "apiKey",
        "name": "fineract-platform-tenantid",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 97,
      "1": 32,
      "2": 72,
      "3": 46,
      "4": 61,
      "5": 118,
      "6": 9,
      "7": 0,
      "8": 71,
      "9": 41,
      "10": 139,
      "11": 203
    }
  }
}
```