- Initiate the scanning process.
Use the/acs/encoders/scan_credentialendpoint. Specify theacs_encoder_idof the encoder that you want to use to scan the card.
This request returns an action attempt that tracks the status of the scan.
See Initiate the Scanning Process. - Poll the returned action attempt, until its
statusbecomessuccess.
See Confirm Successful Scan. - View the scanned card payload.
Once thestatusof the action attempt issuccess, view the card payload within the action attempt. Note anyaction_attempt.result.warnings. Warning messages show which properties are out of sync.
See View the Scanned Card Payload. Also, see a list of common scanning errors.
1. Initiate the Scanning Process
To scan a card, first, identify theacs_encoder_id of the encoder that you want to use to scan the card. Then, initiate the scan using the /acs/encoders/scan_credential endpoint.
- JavaScript
- cURL
- Python
- Ruby
- PHP
- C#
Code:Output:
2. Confirm Successful Scan
When you make an/acs/encoders/scan_credential request, Seam returns an action attempt. To identify when the scan has completed and to confirm that the scan was successful, poll this action attempt, until its status becomes success.
- JavaScript
- cURL
- Python
- Ruby
- PHP
- C#
Code:Output:
3. View the Scanned Card Payload
Once the action attempt’sstatus is success, view the action attempt payload to view information about the scanned card. 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 credential as stored on the ACS server.action_attempt.result.acs_credential_on_encoderlists the properties of the credential as stored on the card.
Common Scanning Errors
| Error | Description |
|---|---|
no_card_on_encoder | No card was placed on the encoder. |
uncategorized_error | Any other encoding error. |

