Factuarea APIDevelopers

Resolve applicable holidays

Resolve the holidays that apply to a given autonomous community in a given year: national holidays, the autonomic holidays of that ccaa, and your custom local holidays, merged into a single flat list under { "data": [Holiday, …] }.

Both ccaa (ISO 3166-2:ES) and year are required; an invalid community code or an out-of-range year returns 422.

GET
/companies/{company}/holidays/resolve

Authorization

AuthorizationBearer <token>

Your API key as a bearer token: fact_live_… in production, fact_test_… in sandbox. See the authentication guide.

In: header

Path Parameters

company*string

Public identifier (UUID v7) of the company. Get it from GET /v1/me (data.scope[].id).

Formatuuid

Query Parameters

ccaa*string

Autonomous community or city (ISO 3166-2:ES).

Value in"AN" | "AR" | "AS" | "IB" | "CN" | "CB" | "CL" | "CM" | "CT" | "VC" | "EX" | "GA" | "MD" | "MC" | "NC" | "PV" | "RI" | "CE" | "ML"
year*integer

Year of the holidays to resolve.

Range2000 <= value <= 2100

Headers

Factuarea-Version?string

Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.

Formatdate

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json