Arrival Object


An arrival is the record of one entry into an area, at one of its entrances: who arrived, where, what the eligibility engine found (eligibilityDetails), and whether access was given (status). Arrivals are written only by Create Arrival, directly or through Create Arrival By Credential. An arrival changes only when a site user overrides it, which moves a denial to GRANTED (Override Arrival as Granted, or a repeat of Create Arrival within 5 seconds that carries denialOverride), and when two contacts are merged in CRM, which moves contactDetails.contactId to the surviving contact; the snapshot stays as it was; and when the contact's personal data is deleted for privacy, which replaces contactDetails.firstName, contactDetails.lastName and overrideReason with **** and removes the picture. Otherwise, the person's name and picture are kept as they were when the arrival was written, and a granted arrival keeps what granted the entry. eligibilityDetails and overrideReason say why a person was not eligible, so they are returned only to callers with the SCOPE.ARRIVALS.READ-ELIGIBILITY-DETAILS permission scope.

Properties
areaAreaInfo

The area the person entered and the entrance they came in through, with the area's name and location and the entrance's name as they were at the time of the arrival. On Create Arrival only area.entranceId is sent; the server finds the area the entrance belongs to and fills in the rest.


contactDetailsContactDetails

Who arrived: the contact, with their name and picture as Contacts held them when the arrival was written. Always present. On Create Arrival only contactDetails.contactId is sent; the server fills in the rest.


createdDatestringRead-onlyformat date-time

Date and time the arrival was written, right after the person was evaluated at the entrance. For a granted arrival that was not overridden, it is the time the person was let in; for one that a site user overrode afterwards, it is the denial's time, and the override's time is overriddenDate; for one let in with denialOverride on the Create Arrival call that wrote it, it is the time the arrival was written, a moment after its overriddenDate.


eligibilityDetailsEligibilityDetailsRead-only

What the engine found, from which status was derived: the issues of the entry as a whole, the intake forms the person is missing, and every plan benefit and scheduled event it found for the area, each with its own issue. Set by the server at creation and never changed afterwards: an override keeps it, so its issues hold what was overridden. Returned only to callers with the SCOPE.ARRIVALS.READ-ELIGIBILITY-DETAILS permission scope, since it says why a person was not eligible; filtering on eligibilityDetails.issues requires the same scope. Every response that carries an arrival leaves it out for other callers, Create Arrival and Create Arrival By Credential included: an app without the permission, such as a reader at an entrance, gets status and not the reason.


One Of

planBenefitPlanBenefitRead-only

The Pricing Plans benefit the entry was taken from: a credit pack or an unlimited plan (type). Redeemed in Pricing Plans after the arrival is written, after an override too.


scheduledEventScheduledEventRead-only

The scheduled event the person was booked into. Nothing is redeemed for one, and Arrivals doesn't mark its attendance: a business that wants it marked sets up an automation on the "Client arrives" trigger.


idstringRead-onlyformat GUID

Arrival ID. Returned by Create Arrival; Override Arrival as Granted names it.


overriddenByIdentificationDataRead-only

Who let the person in against a denial: the caller of Override Arrival as Granted, or of Create Arrival with denialOverride. Set by the server; present only on an arrival a site user let in against a denial, absent on every other arrival. Always a Wix user (wixUserId), since only site users may override. Who wrote the arrival is source.createdBy; the two can differ.


overriddenDatestringRead-onlyformat date-time

Date and time a site user let the person in against a denial, set once with overriddenBy: when Override Arrival as Granted granted the arrival, or the time Create Arrival evaluated the person when it let them in with denialOverride on the call that wrote it: a moment before that arrival's createdDate, which is stamped when the arrival is written. Set by the server; absent on every arrival no site user overrode. A later contact merge moves updatedDate but never this.


overrideReasonstringRead-onlymaxLength 500

Why a site user let the person in against the issues, in their own words. Optional; written by Override Arrival as Granted, or from denialOverride.reason when Create Arrival let the person in despite a denial, so it can be present only on a GRANTED arrival with issues; either way the actor is overriddenBy. Free text that may describe the person, so it is personal data: **** after the contact's personal data is deleted for privacy. It is returned only to callers with the SCOPE.ARRIVALS.READ-ELIGIBILITY-DETAILS permission scope.


revisionstringRead-onlyformat int64

Revision number, which increments by 1 each time the arrival is updated: when a site user overrides a denied arrival (with Override Arrival as Granted, or with a repeat of Create Arrival within 5 seconds that carries denialOverride), and when a CRM contact merge moves the arrival to the surviving contact.


sourceArrivalSourceRead-only

How the arrival came to be, and who created it. Set by the server.


statusstringRead-only

Whether access was given. Set by the server: by Create Arrival, from the issues (GRANTED despite them when the call carries denialOverride), and moved from DENIED to GRANTED by Override Arrival as Granted. Never sent by a caller.


updatedDatestringRead-onlyformat date-time

Date and time the arrival was updated. Equal to createdDate until a site user overrides the arrival or a contact merge moves it. For the time of the override itself, read overriddenDate, which a later merge does not move.

Did this help?