Skip to content
Constaia
ca_driver_licence

Canadian driver's licence

Driver's licence from a Canadian province or territory, with an AAMVA PDF417 barcode; acceptable under US Form I-9 List B.

Category
Driving licences
Country
Canada
Extracted fields
15 fields
Cost
1 credit
ca_driver_licencespecimen
Document number
Issuing province
First name
Last name
Date of birth
Issue date
Expiry date
Sex
Height

What it checks

  • PDF417 barcode (AAMVA). The back is decoded and compared with the front.
  • National identifiers. Official checksum or format of the number (NIF, CPF, CURP, RUT, SSN…).postal_code
  • Postal code. Postal code format of the country.
  • Holder. Name, number or date of birth match what you expect.
  • Age. Minimum or maximum age from the date of birth.
  • Validity. Not expired on the reference date.
  • Form I-9. Whether the document belongs to list A, B or C.B

Extracted fields

  • Document numberdocument_number
  • Issuing provinceissuing_province
  • First namefirst_name
  • Last namelast_name
  • Date of birthbirth_date
  • Issue dateissue_date
  • Expiry dateexpiry_date
  • Sexsex
  • Heightheight
  • Addressaddress
  • Postal codepostal_code
  • Dddd
  • Classclass
  • Conditionsconditions
  • Barcode databarcode_data

Sample request

curl https://api.constaia.com/v1/analyze \
  -H "Authorization: Bearer $CONSTAIA_API_KEY" \
  -F "file=@document.pdf" \
  -F 'options={
    "expect": "ca_driver_licence",
    "checks": {
      "not_expired": true,
      "holder": {
        "full_name": "Carmen Especimen Ruiz"
      }
    },
    "storage": "none"
  }'

Sample response

Fictitious data. Shortened response.

200 OK · application/json
{
  "id": "an_01J9Z3K8QW4T6Y2B7N5M1R0PXC",
  "object": "analysis",
  "status": "completed",
  "livemode": false,
  "document": {
    "type": "ca_driver_licence",
    "label": "Canadian driver's licence",
    "confidence": 0.97
  },
  "verdict": {
    "expected": [
      "ca_driver_licence"
    ],
    "match": true,
    "status": "valid",
    "reasons": [
      {
        "code": "type_match",
        "severity": "info",
        "message": "The document is: Canadian driver's licence."
      }
    ]
  },
  "fields": {
    "issuing_province": {
      "value": "ON",
      "confidence": 0.99,
      "validated": true
    },
    "document_number": {
      "value": "S1234-56789-50730",
      "confidence": 0.98,
      "validated": null
    },
    "first_name": {
      "value": "JANE",
      "confidence": 0.97,
      "validated": null
    },
    "last_name": {
      "value": "SPECIMEN",
      "confidence": 0.96,
      "validated": null
    },
    "birth_date": {
      "value": "1985-07-30",
      "confidence": 0.99,
      "validated": null
    },
    "issue_date": {
      "value": "2023-07-30",
      "confidence": 0.98,
      "validated": null
    },
    "expiry_date": {
      "value": "2028-07-30",
      "confidence": 0.97,
      "validated": null
    },
    "sex": {
      "value": "F",
      "confidence": 0.96,
      "validated": null
    },
    "height": {
      "value": "165 cm",
      "confidence": 0.99,
      "validated": null
    },
    "address": {
      "value": "100 QUEEN ST W, TORONTO, ON",
      "confidence": 0.98,
      "validated": null
    },
    "postal_code": {
      "value": "M5H 2N2",
      "confidence": 0.97,
      "validated": null
    },
    "class": {
      "value": "G",
      "confidence": 0.96,
      "validated": null
    },
    "barcode_data": {
      "value": "@\nANSI 636012090002DL00410260ZO03010024DLDAQS1234-56789-50730\nDCSSPECIMEN\nDACJANE\nDBB19850730\nDBA20280730\nDAJON\nDAKM5H 2N2\n",
      "confidence": 0.99,
      "validated": null
    }
  },
  "checks": [
    {
      "code": "aamva_barcode_matches_front",
      "passed": true,
      "message": "The PDF417 barcode matches the front."
    },
    {
      "code": "id_number",
      "passed": true,
      "message": "id_number"
    }
  ],
  "warnings": [],
  "storage": {
    "mode": "none",
    "file_deleted_at": "2026-09-29T10:00:02Z",
    "expires_at": null
  },
  "usage": {
    "credits": 1,
    "pages": 1
  }
}

FAQ

Does Constaia prove the document is authentic?

No. It checks the type, data consistency and your rules, and flags signals such as a possible edit or a screen photo. That does not prove authenticity.

Is a copy of the document kept?

No, unless you ask for it. With storage "none" (the default) the file is deleted when the analysis ends.

Other documents

And for the record…

Create your account, copy the test key and validate your first document in five minutes.