{"openapi":"3.0.3","info":{"title":"AU Business Days API","version":"1.0.0","description":"Australian statewide public holidays, business days, school terms, BAS due dates, financial years and ABN checksums. Published by Gridwattle, Victoria, Australia. General information only, not tax, legal or employment advice.","contact":{"name":"Gridwattle","url":"https://au-business-days.pages.dev/"}},"servers":[{"url":"https://au-holiday-api.pages.dev","description":"This deployment"}],"tags":[{"name":"Holidays"},{"name":"Business days"},{"name":"School terms"},{"name":"Tax and identifiers"}],"paths":{"/v1/holidays":{"get":{"tags":["Holidays"],"summary":"List statewide public holidays","parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string","example":"VIC"},"description":"Australian state or territory code (NSW, VIC, QLD, SA, WA, TAS, ACT, NT) or full name."},{"name":"year","in":"query","required":false,"schema":{"type":"integer","example":2027},"description":"Optional calendar year. Omit to return every year in the dataset."}],"responses":{"200":{"description":"Holiday list"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/is-holiday":{"get":{"tags":["Holidays"],"summary":"Check whether a date is a full-day public holiday","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2027-11-02"},"description":"Calendar date as YYYY-MM-DD."},{"name":"state","in":"query","required":true,"schema":{"type":"string","example":"VIC"},"description":"Australian state or territory code (NSW, VIC, QLD, SA, WA, TAS, ACT, NT) or full name."}],"responses":{"200":{"description":"Holiday flag and name"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/business-days":{"get":{"tags":["Business days"],"summary":"Count business days between two dates (inclusive)","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2027-11-02"},"description":"Calendar date as YYYY-MM-DD."},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2027-11-02"},"description":"Calendar date as YYYY-MM-DD."},{"name":"state","in":"query","required":true,"schema":{"type":"string","example":"VIC"},"description":"Australian state or territory code (NSW, VIC, QLD, SA, WA, TAS, ACT, NT) or full name."}],"responses":{"200":{"description":"Inclusive count, negative if end is before start"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/add-business-days":{"get":{"tags":["Business days"],"summary":"Add or subtract business days (WORKDAY-style)","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2027-11-02"},"description":"Calendar date as YYYY-MM-DD."},{"name":"days","in":"query","required":true,"schema":{"type":"integer","example":1}},{"name":"state","in":"query","required":true,"schema":{"type":"string","example":"VIC"},"description":"Australian state or territory code (NSW, VIC, QLD, SA, WA, TAS, ACT, NT) or full name."}],"responses":{"200":{"description":"Resulting date"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/next-business-day":{"get":{"tags":["Business days"],"summary":"Next business day on or after the date","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2027-11-02"},"description":"Calendar date as YYYY-MM-DD."},{"name":"state","in":"query","required":true,"schema":{"type":"string","example":"VIC"},"description":"Australian state or territory code (NSW, VIC, QLD, SA, WA, TAS, ACT, NT) or full name."}],"responses":{"200":{"description":"Business day"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/school-terms":{"get":{"tags":["School terms"],"summary":"Government school term dates","parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string","example":"VIC"},"description":"Australian state or territory code (NSW, VIC, QLD, SA, WA, TAS, ACT, NT) or full name."},{"name":"year","in":"query","required":true,"schema":{"type":"integer","example":2027},"description":"Calendar year. Data currently covers 2026 and 2027."}],"responses":{"200":{"description":"Terms 1-4"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/bas-due-dates":{"get":{"tags":["Tax and identifiers"],"summary":"ATO standard BAS due dates for a calendar year","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","example":2027},"description":"Calendar year. Data currently covers 2026 and 2027."},{"name":"frequency","in":"query","required":false,"schema":{"type":"string","enum":["quarterly","monthly","annual"],"default":"quarterly"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","example":"VIC"},"description":"Optional. If set, weekend and public-holiday due dates roll to the next business day for that state."}],"responses":{"200":{"description":"Due dates"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/abn/validate":{"get":{"tags":["Tax and identifiers"],"summary":"Validate an ABN checksum (no ABR lookup)","parameters":[{"name":"abn","in":"query","required":true,"schema":{"type":"string","example":"51 824 753 556"}}],"responses":{"200":{"description":"Checksum result"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v1/fy":{"get":{"tags":["Tax and identifiers"],"summary":"Australian financial year for a date","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2027-11-02"},"description":"Calendar date as YYYY-MM-DD."}],"responses":{"200":{"description":"FY label, bounds and quarter"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}}}}