GET ./holidays
Tags: simple query
The method also supports additional filtering through query parameters. The query parameters are processed by the api_query library. The supported query parameters include:
Obs: holIsGlobal
is the flag for identify the global holidays.
GET parameters
Name | Value Type | Validation | Details |
---|---|---|---|
holID | string | Optional | Filter holidays by their ID. |
startDate | rfc_date | Required | Filter holidays having data > startDate. |
endDate | rfc_date | Required | Filter holidays having data < endDate |
Validation
Error Field | Error Code | Error Message |
---|---|---|
startDate | 102 | The date in invalid. |
endDate | 103 | The date in invalid. |
endDate | 104 | The end date must be higher than start date. |
Output example
{"meta": {"countTotal": "0","countData": "3","countOffset": ""},"data": [{"holID": "lwWrpQ","holName": "1 Mai","holDate": "2024-03-01","holIsGlobal": "0","holCountryCod": null},{"holID": "2fVACv","holName": "Paste22 updated 2 22","holCountryID": "3","holDate": "2024-03-02","holIsGlobal": "1","holCountryCod": "IT"},{"holID": "4O52ya","holName": "Paste","holCountryID": "1","holDate": "2024-03-02","holIsGlobal": "1","holCountryCod": "RO"}]}