Area Object


An area is a part of a business that pricing plans grant entry into (the main floor, the pool, a cycle studio), with the entrances clients pass through to get in. Plans are connected to areas: an area is the Benefit Programs item a pricing plan's benefit names, so which plans are allowed into an area is defined on the plans' benefits, not on the area. Every entry is recorded against an area and one of its entrances. An area belongs to a business location. When Arrivals is installed on a site, an area with one entrance (the default entrance of that location) is created at the site's default location, each with a default name in the site's language: "Main area" and "Main entrance" in English. The owner can rename them. A site can be installed before it has a default location, which the Locations API creates once the business info has an address; it then gets no area at install, and the dashboard's setup asks for a location and creates the first area. Other areas are created with Create Area.

An area's policy holds what the owner configures about entering it (whether a booked scheduled event admits a client, with its entry window, and the intake forms a client must have on file) and nothing about a single entry: whether a human is present to decide is a property of the scan, not of the area.

An area is archived to close it, or deleted. Either way, while Pricing Plans is enabled on the site, it is removed from its plans, and unarchiving does not put it back. Past arrivals keep the area's ID and name either way.

Properties
createdDatestringRead-onlyformat date-time

Date and time the area was created.


entrancesArray <Entrance>minItems 1maxItems 20

The entrances clients get into the area through: a door, a turnstile, a gate or a front desk. An area has at least one. Site collaborators pick the entrance they are standing at once per scanning position, and every arrival records it. One or more devices can be paired to an entrance; each scan names the entrance, not the device. Managed through Update Area: send the whole list, which replaces the current one. An entrance keeps its id for as long as it is in the list; a removed entrance disappears from the scanner, and past arrivals keep its ID and name.


idstringRead-onlyformat GUID

Area ID. Stable for the lifetime of the site and never reused, neither after the area is archived nor after it is deleted. It is also the ID of the Benefit Programs item that stands for the area on a plan's benefit.


locationIdstringformat GUID

ID of the business location this area belongs to, from the Locations API. Every area belongs to one. It must be a location of the site: an unknown ID fails with LOCATION_NOT_FOUND. To move an area to another location, change it with Update Area.


namestringminLength 1maxLength 100

Area name, in the business owner's own words. For example, Main area or Pool. Site collaborators see it on every scan, and it is the name of the area's Benefit Programs item on a plan.


policyEntryPolicy

What the owner requires of a client to enter this area: whether a booked scheduled event admits them, with its entry window, and the intake forms a client must have on file. Always set on a returned area. An area created without a policy gets one where scheduled events do not admit and no form is required.


revisionstringRead-onlyformat int64

Revision number, which increments by 1 each time the area is updated. To prevent conflicting changes, the current revision must be passed when updating the area.

Ignored when creating an area.


statusstringRead-only

Whether the area is active or archived. Changes only through Archive Area and Unarchive Area.


updatedDatestringRead-onlyformat date-time

Date and time the area was updated.

Did this help?