Add a closure day to the holiday calendar
Add a day of the tenant's own to the holiday calendar — the days their stores are shut that no public holiday calendar knows about, such as a staff day or a summer week. Supply serviceHolidayUid to make the call idempotent: a repeat with the same serviceHolidayUid returns the day already created and writes nothing — any serviceHolidayUid the tenant already holds for a day of its own returns that day — while a malformed uid stays refused. A serviceHolidayUid held by a public holiday is refused with a 400. The day is created active and belongs to the whole tenant rather than to a country, so its countryCode comes back empty. That empty countryCode is what marks it as the tenant's own, and unlike a public holiday it can therefore be deleted. Adding a day changes nothing that has already been estimated: it is read when a business-day figure is next computed, and the readyAtEstimate dates already on service orders stand as they were set.
Required permissions: SERVICE_CONFIG
Access token recevied after user login with a deviceToken
Reference to a tenant.
^[A-Za-z0-9-_]+A closure day of the tenant's own — the days their stores are shut that no public holiday calendar knows about, such as a staff day or a summer week. Supply serviceHolidayUid to make the call idempotent: a repeat with the same serviceHolidayUid returns the day already created and writes nothing — any serviceHolidayUid the tenant already holds for a day of its own returns that day — while a malformed uid stays refused. A serviceHolidayUid held by a public holiday is refused with a 400. The day is created active and with an empty countryCode, which is what makes it the tenant's own: it applies to every store, and unlike a public holiday it can be deleted.
^[A-Za-z0-9-_]+The day that is not worked, as a date in the tenant's timezone. ISO 8601 date format: YYYY-MM-DD, e.g. 2026-07-13.
What to call the day. Shown in the holiday calendar next to the public holidays.
Example response
One day the tenant's stores do not work — a public holiday out of a country's calendar, or a closure day the tenant added itself. Together the days of a year make up the tenant's holiday calendar. The calendar is what the business-day math runs on: its active days that apply to a store are not among the store's working days, which both the readyAtEstimate prefill from the expected turnaround and avgWorkOpenDays on the service order statistics count. Nothing else reads it: it closes no store, blocks no work and stops no message from going out. countryCode says which of the two a day is, and it is the only thing that says it. A day carrying a countryCode is one Flow put in the calendar from that country's public holidays: it can be renamed and deactivated, but never deleted. A day with an empty countryCode is the tenant's own, applies to every store, and can be deleted as well. A day only counts as non-working while active is true. Deactivating a public holiday is how the tenant says its stores keep that day as any other, and the day then takes no part in either calculation: whether it is one of a store's working days is decided by the store's open days and serviceCountWeekendsAsWorkingDays alone.
^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+The day that is not worked, as a date in the tenant's timezone. ISO 8601 date format: YYYY-MM-DD, e.g. 2026-05-17.
What the day is called — the name of the public holiday, or whatever the tenant called its own closure day. A public holiday Flow put in the calendar is named in its country's own language (a Norwegian day reads "Grunnlovsdag", a Swedish one "Sveriges nationaldag") until the tenant renames it.
The country whose public holiday calendar the day came out of, which is how the same calendar carries days that only some of the tenant's stores keep: a day applies to a store when this matches the store's countryCode. It is also what says where the day came from. A day carrying a country is one Flow put there: it can be renamed and deactivated, but never deleted. An empty string on a day the tenant added itself, which applies to every store and can be deleted as well. This is what "the days that apply to the store" means everywhere the working-day count is described.
Whether the day counts as non-working. Clearing it means the day stops counting as non-working: whether it is one of a store's working days is decided by the store's open days and serviceCountWeekendsAsWorkingDays alone. It is what a public holiday the tenant works through gets instead of a deletion — a day carrying a countryCode is deactivated rather than removed.
POST /v2/tenants/{tenantUid}/serviceorders/holidays HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"serviceHolidayUid": "text",
"date": "2026-01-01",
"name": "text"
}Example response
{
"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?

