Device Type Parameter

Applies to: Direct

The optional device_type parameter can be included with a barcode-only endpoint request. The device_type tells us how you want to parse the identification characters, prefix, and suffix of your base64-encoded barcode field.

The device_type parameter is optional. It can be left empty, and it is typically not needed for standard configurations. If provided, the device_type value depends on your device-specific configuration.

🚧

An unrecognized device_type will cause an error response, such as a processResult of DocumentBadDevice, or an extendedResultCode of B.

The following table lists recognized device_type values and requirements.

device_type ValueDescriptionBarcode Text Includes These IdentifiersBarcode Prefix/Suffix Specifications
DS4208For a handheld barcode scanner.r for PDF417 format.N/A
GenericFor a device that only passes raw barcode data to your application.[pdf} for PDF417 format. [mag} for a magnetic stripe.N/A
IM1200For a document insertion processor (DIP) reader such as the E-Seek® M260.]L for PDF417 format. ]M for a magnetic stripe. ]C for Code 128 format. ]A for Code 39 format.Prefix exactly 30 characters. Suffix exactly 10 characters.
RawFor raw data.30-character minimum length for a PDF417 format.N/A