POST

Check Eligibility


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Checks whether a contact would be granted entry at an entrance, into the area it belongs to, without recording or redeeming anything. It takes the same entranceId as Create Arrival.

The response is eligibilityDetails as Create Arrival would record it, with the status Create Arrival would derive from it, and the contact's contactDetails (name and picture) as Contacts holds them now. With scheduledEventSearchWindow, events found only in that window are also listed, with OUTSIDE_ENTRY_WINDOW. Scheduled events are read only while the area's policy.scheduledEventsPolicy.entryGrantingAppIds is not empty. The person is checked for now, the time of the call. When they were let into this area within the last 15 minutes and this entry would spend a credit, the status is DENIED with RECENT_ENTRY, and recentArrival names that arrival. A contactId that is not a contact of the site fails with CONTACT_NOT_FOUND, including a contact that was merged into another, and an entranceId that names no entrance with ENTRANCE_NOT_FOUND; an entrance of an archived area fails with AREA_ARCHIVED, and a scheduledEventSearchWindow whose endDate is not after its startDate with SEARCH_WINDOW_INVALID, checked before anything is read. When Pricing Plans or Contacts can't be reached the call does not fail: the outage is reported in eligibilityDetails.issues (PRICING_PLANS_UNAVAILABLE or CONTACTS_UNAVAILABLE). The status is then DENIED, unless something else admits the person. Create Arrival, in the same case, fails with UNAVAILABLE unless it carries denialOverride. Without Contacts, contactDetails has the contact ID alone. Nothing is stored. To record the entry, call Create Arrival.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permission Scopes
SCOPE.ARRIVALS.ADMIT
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/arrivals/v1/arrivals/check-eligibility

Errors
400Invalid Argument

There is 1 error with this status code.

404Not Found

There are 2 errors with this status code.

428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?