> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Arrival

# Type: Arrival Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/arrivals/arrival/arrival-object.md

## Description: 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.

## Schema:

```json
 Type: Arrival Object | type: Arrival
 Description: 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.
       - name: id  | type: string | description: Arrival ID. Returned by Create Arrival; Override Arrival as Granted names it.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: 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.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: 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`.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: 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.
       - name: contactDetails  | type: ContactDetails | description: 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.
           - name: contactId  | type: string | description: ID of the contact who arrived. The only field of `contactDetails` sent when creating an arrival.
           - name: firstName  | type: string | description: The contact's first name at the time of the arrival. Set by the server; personal data. `****` after the contact's personal data is deleted for privacy.
           - name: lastName  | type: string | description: The contact's last name at the time of the arrival. Set by the server; personal data. `****` after the contact's personal data is deleted for privacy.
           - name: picture  | type: Image | description: The contact's profile picture at the time of the arrival, as Contacts held it. Set by the server; personal data. Absent when the contact has none, and absent after the contact's personal data is deleted for privacy.
               - name: id  | type: string | description: WixMedia image ID.
               - name: url  | type: string | description: Image URL.
               - name: height  | type: number | description: Original image height.
               - name: width  | type: number | description: Original image width.
               - name: altText  | type: string | description: Image alt text.
               - name: filename  | type: string | description: Image filename.
       - name: source  | type: ArrivalSource | description: How the arrival came to be, and who created it. Set by the server.
           - name: identifiedBy  | type: string | description: How the person was identified: `BY_TOKEN` when a pass token was presented and the arrival was written by Create Arrival By Credential, `BY_CONTACT` when the arrival was written by contact ID with nothing presented. Who wrote the arrival (a Wix user, or an app such as a reader at an entrance) is `createdBy`.
               enum: BY_TOKEN, BY_CONTACT
           - name: createdBy  | type: IdentificationData | description: Who created the arrival, from the call identity: a Wix user (`wixUserId`), such as a site collaborator in a scanner app or an owner on the contact card, or an app (`appId`), such as a reader at an entrance or a partner app. This, not `identifiedBy`, is what tells a Wix user from an app, such as a reader or a partner app. Only `wixUserId` or `appId` is ever set; `anonymousVisitorId` and `memberId` never appear on an arrival, since members and visitors can't create arrivals. Who let the person in against a denial is `overriddenBy`, not this field.
               - ONE-OF:
                   - name: anonymousVisitorId  | type: string | description: ID of a site visitor who hasn't logged in to the site.
                   - name: memberId  | type: string | description: ID of a site visitor who has logged in to the site.
                   - name: wixUserId  | type: string | description: ID of a Wix user. For example, the site owner or a [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
                   - name: appId  | type: string | description: ID of an app.
       - name: area  | type: AreaInfo | description: 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.
           - name: id  | type: string | description: ID of the area. Set by the server: the area the entrance belongs to.
           - name: locationId  | type: string | description: ID of the business location the area belonged to at the time of the arrival, from the Locations API. Kept on the record so history survives an area moving to another location.
           - name: name  | type: string | description: Name of the area at the time of the arrival, kept on the record so history still reads right after the area is renamed.
           - name: entranceId  | type: string | description: ID of the entrance the person came in through, one of an area's `entrances[].id`. The one field of `area` sent when creating an arrival.
           - name: entranceName  | type: string | description: Name of the entrance at the time of the arrival, kept on the record so history still reads right after the entrance is renamed or removed.
       - name: eligibilityDetails  | type: EligibilityDetails | description: 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.
           - name: issues  | type: Array<EntryIssue> | description: The issues of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When a site user lets the person in (afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival), the status is `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE` and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with `UNAVAILABLE`; Check Eligibility reports them without failing. A `DENIED` arrival always has at least one. Empty when nothing stood in the way.
               enum: NO_ELIGIBLE_GRANT, INTAKE_FORM_MISSING, RECENT_ENTRY, PRICING_PLANS_UNAVAILABLE, CONTACTS_UNAVAILABLE
           - name: missingIntakeForms  | type: Array<MissingIntakeForm> | description: Every intake form the area's policy requires and the person has no valid submission for, with its `blocksEntry`, so an app can point site collaborators to the right form. Empty unless `issues` contains `INTAKE_FORM_MISSING`, so always empty for now: intake forms aren't checked at entry yet.
               - name: formId  | type: string | description: ID of the intake form, from the Intake Forms API, as listed in the area's policy.
               - name: blocksEntry  | type: boolean | description: Whether this missing form blocks entry, as configured on the area's policy (`policy.intakeForms[].blocksEntry` in the Areas API). `false`: the arrival is granted and site collaborators are warned. `true`: the arrival is denied until the form is submitted; site collaborators can still override.
           - name: planBenefits  | type: Array<PlanBenefitEligibility> | description: The person's Pricing Plans benefits allowed into this area, each a `planBenefit` with its own `issues`: empty means the benefit admits. Listed on a `DENIED` arrival too, admitting ones included, so an override can take one later. The grant picks one by the rule on the arrival's `planBenefit` and records it there. Listed in the order of that rule, so the first is the one a grant takes; at most 20 are listed, the first 20 in that order. Empty when the person holds no benefit for this area, and when the status of the contact's site member (`memberInfo.status` in Contacts) is `BLOCKED`, `DELETED` or `OFFLINE`, since such a member holds no plans here.
               - name: planBenefit  | type: PlanBenefit | description: The benefit found, as `planBenefit` records it on an arrival.
               - name: issues  | type: Array<PlanBenefitIssue> | description: Why the benefit does not admit, in Pricing Plans' own words where it has one. Empty: the benefit admits. At most one is reported, since Pricing Plans gives one reason.
           - name: scheduledEvents  | type: Array<ScheduledEventEligibility> | description: The scheduled events the person is booked on at this area's location inside the area's entry window, each with its own `issues`: empty means the event admits. Listed on a `DENIED` arrival too, admitting ones included, so an override can take one later. Check Eligibility with a `scheduledEventSearchWindow` also lists the events that start inside that window, with `OUTSIDE_ENTRY_WINDOW`; Create Arrival never does. At most 20 are listed: the events inside the area's window first, then the others by start time, earliest first. Always empty while the area's `scheduledEventsPolicy.entryGrantingAppIds` is empty.
               - name: scheduledEvent  | type: ScheduledEvent | description: The event found, as `scheduledEvent` records it on an arrival.
               - name: issues  | type: Array<ScheduledEventIssue> | description: Why the event does not admit. Empty: the event admits. At most one is reported: when both apply, `OUTSIDE_ENTRY_WINDOW` wins over `PENDING_CONFIRMATION`, since approving the booking would not help outside the window.
       - name: status  | type: string | description: 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.
           enum: GRANTED, DENIED
       - name: overrideReason  | type: string | description: 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.
       - name: overriddenBy  | type: IdentificationData | description: 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.
       - name: overriddenDate  | type: string | description: 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.
       - ONE-OF:
           - name: planBenefit  | type: PlanBenefit | description: 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.
               - name: poolId  | type: string | description: ID of the Pricing Plans benefit pool the member holds: the plan or pack they bought. Read-only to Arrivals.
               - name: benefitKey  | type: string | description: Key of the benefit inside the pool, as Pricing Plans defines it; a pool can hold several benefits. Read-only to Arrivals.
               - name: displayName  | type: string | description: Name to display, in the site's language ("10-Class Pack", "Monthly Unlimited"). The owner's own wording; not translated.
               - name: type  | type: string | description: Whether the benefit counts entries: a credit pack spends a credit per entry, an unlimited plan counts nothing. Set by the server from the benefit's configuration in Pricing Plans.
                   enum: CREDIT, UNLIMITED
           - name: scheduledEvent  | type: ScheduledEvent | description: 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.
               - name: eventId  | type: string | description: ID of the scheduled event, as the provider in `appId` knows it. For an event from the Wix Calendar, the ID in the Wix Calendar Events API.
               - name: displayName  | type: string | description: Name to display, in the site's language ("Tue 18:00 Reformer"). Not translated.
               - name: appId  | type: string | description: App ID of the provider the event came from: the app that owns it on the Wix Calendar, such as Wix Bookings. Scheduled events are read from the Wix Calendar today; a provider of scheduled events of its own may later supply them, and is then identified here.

```