Retrieve holidays.
POST/dateandtime/holidays
This API retrieve a list of holidays for a specific year, country code, and optionally state.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
yearnumberrequired
The year for which holidays are requested.
Example:
2022
countryCodestringrequired
The ISO 3166-1 alpha-2 country code.
Example:
AT
statestring
The state within the country (if applicable).
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
holidays object[]required
datestringrequired
startstring<date-time>required
endstring<date-time>required
namestringrequired
typestringrequired
rulestringrequired
{
"holidays": [
{
"date": "string",
"start": "2024-07-29T15:51:28.071Z",
"end": "2024-07-29T15:51:28.071Z",
"name": "string",
"type": "string",
"rule": "string"
}
]
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}