Get countries available for holiday calendars
Changed onReturns the countries and their subdivisions that can be used for automatic holiday generation. Use the returned code values as the holiday calendar country and state attributes. Requires permission to manage holidays.
This is a plain JSON response (not JSON:API). The list is proxied from holidayapi.com and cached for 24 hours; if the provider is unavailable, countries is an empty array.
Request
- Base URLhttps://developer.productive.io (the document declares no server; this is the origin it was published from)
- URLhttps://developer.productive.io/api/v2/holiday_calendars/countries
- Authnone declared
Response
List of supported countries with their subdivisions.
Example response
{
"countries": [
{
"code": "US",
"name": "United States",
"codes": {
"alpha-2": "US",
"alpha-3": "USA",
"numeric": "840"
},
"languages": [
"en"
],
"currencies": [
{
"alpha": "USD"
}
],
"flag": "https://flagsapi.com/US/flat/64.png",
"subdivisions": [
{
"code": "US-CA",
"name": "California",
"languages": [
"en"
]
}
]
}
]
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- info
endpoint added
This list may be incomplete.
- info