POST

Create Arrival By Credential


Developer Preview

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

Writes an arrival for the holder of a presented credential: resolves the token to its credential and holder and calls Create Arrival for them. The outcome is Create Arrival's contract. It carries no override: letting the person in after a denial is Override Arrival as Granted with the denied arrival's ID.

A token that does not resolve to a live credential fails with BAD_SIGNATURE or TOKEN_REVOKED, and an entranceId that names no entrance with ENTRANCE_NOT_FOUND; nothing is recorded. The arrival is recorded at the entrance, in the area it belongs to, with source.identifiedBy BY_TOKEN and source.createdBy naming the Wix user, or the app that called (a reader or a partner app). 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. A repeat within 5 seconds by the same caller, for the same holder and entrance, returns the arrival already written, whether it came from a scan or from 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/create-by-credential

Errors
400Invalid Argument

There is 1 error with this status code.

404Not Found

There is 1 error with this status code.

428Failed Precondition

There are 2 errors with this status code.

503Unavailable

There are 2 errors with this status code.

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

Event TriggersThis method triggers the following events:
Did this help?