For the complete documentation index, see llms.txt. This page is also available as Markdown.

List the non-working days of a year

List the tenant's non-working days for one year — the holiday calendar the business-day math runs on. Both the public holidays Flow put there and the closure days the tenant added itself are returned, active and deactivated alike, so the whole year can be shown and edited from one list. countryCode tells the two apart: a day carrying one came out of that country's public holidays, and a day with an empty countryCode is the tenant's own. Reading a year is what seeds it. The first read of a year the tenant has no rows for generates that year's public holidays from Flow's own holiday computation, for each country the tenant's stores are in, and stores them as rows before answering. Later reads of the same year return those rows as they now stand, edits included: the generation happens once and never overwrites what the tenant has since done to the year. The calendar feeds two things and nothing else: intake skips its days when it prefills a service order's readyAtEstimate from the expected turnaround, and avgWorkOpenDays on the service order statistics leaves them out. It closes no store, blocks no work and stops no message from going out. A day only counts as non-working while it is active. A public holiday the tenant's stores work through is deactivated rather than deleted — a day carrying a countryCode can be renamed and deactivated but never deleted — and stops counting from then on. Reading it asks for any service permission — SERVICE_ORDER or SERVICE_STORE_CONFIG at the tenant, at an organization or at any one store, or SERVICE_CONFIG, which is held at the tenant only — because whoever configures the holiday calendar reads it. A tenant-wide ADMIN grant counts as every permission. A caller holding none of them, a user with no role assignments included, is refused with a 403.

Required permissions: SERVICE_ORDER, SERVICE_STORE_CONFIG, SERVICE_CONFIG

get
/tenants/{tenantUid}/serviceorders/holidays
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
yearinteger · min: 2000 · max: 2999Required

The year to list the non-working days for, as four digits, e.g. 2026. The days are dates in the tenant's timezone. Reading a year seeds it: the first read of a year the tenant has no rows for generates that year's public holidays before answering, so the list always comes back complete. A business-day computation that reaches into an unseeded year — the readyAtEstimate prefill crossing a year end, or the open-hours work figure spanning one — seeds it the same way before computing, so the math never runs against an empty year.

Responses
200

Example response

application/json
get/tenants/{tenantUid}/serviceorders/holidays
GET /v2/tenants/{tenantUid}/serviceorders/holidays?year=1 HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Example response

{
  "items": [
    {
      "serviceHolidayUid": "text",
      "tenantUid": "text",
      "date": "2026-01-01",
      "name": "text",
      "countryCode": "text",
      "active": true,
      "createdAt": "2026-01-01T00:00:00.000Z",
      "createdBy": "text",
      "lastModifiedAt": "2026-01-01T00:00:00.000Z",
      "lastModifiedBy": "text"
    }
  ]
}

Last updated

Was this helpful?