This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Evaluates a person for an area and writes one arrival, whatever it finds about them. For the flows that call it (scans, the dashboard, readers), see About the Arrivals API.
Only arrival.contactDetails.contactId, arrival.area.entranceId and denialOverride are read; the
area is the one the entrance belongs to. Everything else is set by the server: the contact's name and picture,
eligibilityDetails, status, source, the area's ID, name and location, the
entrance's name, and what granted the entry. status follows from the entry's issues:
INTAKE_FORM_MISSING for forms that do not block entry: GRANTED, with planBenefit or
scheduledEvent naming what admitted the person; the server picks it by the rule on planBenefit: an admitting item, free before finite.NO_ELIGIBLE_GRANT, RECENT_ENTRY, or INTAKE_FORM_MISSING for a form that blocks entry: DENIED.
Nothing is redeemed; a site user may let the person in with
Override Arrival as Granted.Override at creation.* With denialOverride, a denial is written GRANTED at once, with its issues and
overrideReason; Arrival Created fires with that GRANTED arrival. Only a site user may send it,
a Wix user acting through an app (a call that carries the user's identity beside the app's) included; any other
caller fails with OVERRIDE_NOT_ALLOWED and nothing is recorded.
Redemption.* A granted benefit is redeemed asynchronously after the response, with the arrival ID as the
idempotency key: usually within seconds, and retried for several minutes while Pricing Plans is unavailable. If
Pricing Plans refuses the redemption, for example a credit pack with no credits left after an override, the
arrival stays GRANTED and nothing is recorded on it; the balance is read from Pricing Plans.
Repeats within 5 seconds.* A call for the same contact and entrance by the same caller within 5 seconds of an
arrival returns that arrival unchanged. The caller is the Wix user when the call carries one, through an app
included, so two site collaborators on one scanner app are two callers; otherwise it is the app. A repeat that
carries denialOverride onto a DENIED arrival is the exception: the override is applied to that arrival exactly
as Override Arrival as Granted applies it, from its stored evaluation, and Arrival Updated fires instead of
Arrival Created. On a GRANTED arrival denialOverride is ignored. See
About the Arrivals API
for retries.
Errors and outages.* CONTACT_NOT_FOUND and ENTRANCE_NOT_FOUND record nothing. When Pricing Plans or
Contacts can't be reached and nothing else admits the person, the call fails with UNAVAILABLE
(PRICING_PLANS_UNAVAILABLE or CONTACTS_UNAVAILABLE) and records nothing, unless it carries denialOverride:
a site user has decided, so the arrival is written GRANTED with that outage in its issues, no plan benefit, and
nothing redeemed. Without Contacts the arrival also has no name or picture.
You can only call this method when authenticated as a Wix app or Wix user identity.
There is 1 error with this status code.
There are 2 errors with this status code.
There is 1 error with this status code.
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.