Skip to main content

Scan

The Scan object represents the current state of a scan.

status

type string

The current state of the scan.

Possible valuesMeaning
scanStartedSet when the video stream is started.
scanCancelledSet if the user cancels the flow by closing the modal
scanFailedSet if the scan fails, (e.g. there is no webcam on the user's device)
scanCompleteSet when the scan flow is completed by the user.

scanId

type uuid string

The scan ID

Example value:

"36c16169-4e0a-4999-8124-1bfdf2e3bc4a"

options

type object

Optional configuration fields that were sent to Dyneti to customize the scanning experience.

Example value:

{
"logoUrl": "https://dyneti.com/wp-content/uploads/2019/11/fb-preview.jpg",
"userId": "some-user-id"
}

scanResult

type object

Details about the card that was scanned.

Example value:

{
"firstSix": "123456",
"lastFour": "4321"
}