Process Barcode

Send an AAMVA-compliant barcode for data extraction and verification of the authenticity of the encoded information.

POST /v1/Document/ProcessBarcode

Parameters

NameInTypeRequiredDescription
traceIdquerystringoptionalA string provided by a programmer and echoed back unchanged in the response, designed to facilitate easier tracking of requests and responses.
dateFormatquerystringoptionalThe format in which dates will be returned in the retrieved data.
returnFieldLabelsquerybooleanoptionalField labels are user-friendly descriptions of the field type, which can be displayed on a webpage or shown to the customer. This input parameter indicates whether to include field labels for each field in the response.
returnFieldValidationsquerybooleanoptionalIndicates whether to perform validation on the data fields encoded in the submitted AAMVA-compliant barcode.
returnCalculatedFieldsquerybooleanoptionalCalculated fields are fields that are not explicitly encoded in the AAMVA-compliant barcode but are inferred from the information contained in it. For example, the age field can be calculated from the encoded date of birth. This input parameter is used to decide whether to include calculated fields in the response.
returnDocumentForensicAuthenticationsquerybooleanoptionalThis field is used to decide whether to perform forensic authentication of the content encoded in an AAMVA-compliant barcode.
shouldFailExpiredDocumentsquerybooleanoptionalWhen forensic authentication is performed on the content of an AAMVA-compliant barcode, this field determines whether the authentication should automatically fail when the expiration date encoded in the barcode indicates that the document is expired (when this field is set to true), or whether the expiration status should be ignored when calculating the authentication score (when this field is set to false). In either case, a warning will be issued indicating that the document is expired. The default value is true.
ageLimitqueryinteger / int32optionalThis field is used to verify whether the age of the person identified by the data encoded in the AAMVA-compliant barcode is below the specified age entered in this field. The validation result will be included in the response as a field named "IsBelowAgeLimit", indicating whether the condition is met.

Request body

optional (1)
NameTypeRequiredDescription
barcodeContentBase64stringoptionalThe Base64-encoded content of an AAMVA-compliant barcode.

Code sample language

curl -X POST "{{API.SANDBOX_BASE_URL}}/Document/ProcessBarcode" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "barcodeContentBase64=BARCODECONTENTBASE64"

Responses

200OK