{"openapi":"3.1.0","info":{"title":"Workday Calendar API","version":"1.0.0","description":"Public holidays and business-day calculations for 55 countries (2024-2030), including non-Sat/Sun weekends (e.g. SA, IL) and official weekend make-up workdays (e.g. CN, KR adjustments where published). National (country-wide) public holidays only; regional/state holidays and ad-hoc closures are not included. Future years may contain estimated dates. Verify for critical use.","contact":{"name":"Workday Calendar API","url":"https://workday-calendar.regnotes.workers.dev"},"x-guidance":"Use /v1/business-day to check one date (and get next/previous business day), /v1/business-days/add for T+N settlement or SLA due dates (negative days go backwards), /v1/business-days/count for working days between two dates, /v1/holidays for a full year list. Country codes are ISO alpha-2; free list at /countries."},"x-discovery":{"llms":"https://workday-calendar.regnotes.workers.dev/llms.txt","x402":"https://workday-calendar.regnotes.workers.dev/.well-known/x402"},"paths":{"/health":{"get":{"summary":"Health","security":[],"responses":{"200":{"description":"OK"}}}},"/v1/business-day":{"get":{"summary":"Is a date a business day?","description":"Whether a date is a business day in a country (holiday/weekend/make-up workday aware), plus the previous and next business day.","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"},"description":"ISO alpha-2"},{"name":"date","in":"query","required":true,"schema":{"type":"string"},"description":"YYYY-MM-DD"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217}}],"network":"eip155:8453","payTo":"0xF98B4FDAC9c2AcCD59803316a2b2DFf2E653F5Ad"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request"},"402":{"description":"Payment Required (x402 PAYMENT-REQUIRED header and MPP WWW-Authenticate: Payment challenge)"}}}},"/v1/business-days/add":{"get":{"summary":"Add/subtract business days","description":"Date that is N business days after (or before, if negative) a start date in a country. Typical use: T+2 settlement, SLA and filing deadlines.","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"},"description":"ISO alpha-2"},{"name":"date","in":"query","required":true,"schema":{"type":"string"},"description":"Start date YYYY-MM-DD"},{"name":"days","in":"query","required":true,"schema":{"type":"integer"},"description":"Integer -260..260"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217}}],"network":"eip155:8453","payTo":"0xF98B4FDAC9c2AcCD59803316a2b2DFf2E653F5Ad"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request"},"402":{"description":"Payment Required (x402 PAYMENT-REQUIRED header and MPP WWW-Authenticate: Payment challenge)"}}}},"/v1/business-days/count":{"get":{"summary":"Count business days between dates","description":"Number of business days in [start, end] inclusive (max 3 years), with the holidays that fell on weekdays.","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"},"description":"ISO alpha-2"},{"name":"start","in":"query","required":true,"schema":{"type":"string"},"description":"YYYY-MM-DD"},{"name":"end","in":"query","required":true,"schema":{"type":"string"},"description":"YYYY-MM-DD"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217}}],"network":"eip155:8453","payTo":"0xF98B4FDAC9c2AcCD59803316a2b2DFf2E653F5Ad"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request"},"402":{"description":"Payment Required (x402 PAYMENT-REQUIRED header and MPP WWW-Authenticate: Payment challenge)"}}}},"/v1/holidays":{"get":{"summary":"Public holidays for a country/year","description":"All national public holidays for a country and year, with weekend definition and official weekend make-up workdays.","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"},"description":"ISO alpha-2"},{"name":"year","in":"query","required":true,"schema":{"type":"integer"},"description":"YYYY"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217}}],"network":"eip155:8453","payTo":"0xF98B4FDAC9c2AcCD59803316a2b2DFf2E653F5Ad"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request"},"402":{"description":"Payment Required (x402 PAYMENT-REQUIRED header and MPP WWW-Authenticate: Payment challenge)"}}}}}}