Create a User Identity
Use the Seam API to create auser_identity. A user identity represents the hotel guest.
Code:
Create an Access Grant
To create an Access Grant, specify the user identity, entrance or space IDs, and starting and ending times. Includecard as a requested access method.
Code:
Encode the Card
As a final step in creating a plastic key card, use the Seam API to encode the access method onto the plastic card. Your app can serve hotel front desk staff as well as self-serve check-in kiosks with built-in physical encoders.
Scan the Card
You can scan the card to view its data and confirm that it’s up to date with the server. The scan result includes the card’s properties, such as its card number, serial number, and other useful details. If discrepancies are detected, Seam provides warnings to indicate that the card is out of date and needs re-encoding.
action_attempt.result.warnings. Warning messages show which properties are out of sync.
Pay special attention to the following parts of the returned payload:
action_attempt.result.warningslist any properties that Seam has detected are out-of-sync between the card and the encoder.action_attempt.result.acs_credential_on_seamlists the properties of the access method as stored on the access system server.action_attempt.result.acs_credential_on_encoderlists the properties of the access method as stored on the card.