Mobile Documents (mDoc)
Mobile Document reading lets your DynaFlex II Go capture a digital identity document, such as a mobile driver's license (mDL) or a mobile passport (mPass), directly from a smartphone. The reader opens an encrypted connection using NFC or a dynamic QR code. It then requests specific data elements that require consumer approval approved by their device. Next, it validates the issuer's digital signature to ensure authenticity before transmitting the verified records to your host system.
This guide explains how an mDoc transaction works and points to the reference pages for each command, property, and file operation involved. It is the orientation layer; the byte-level detail lives in the reference pages linked throughout.
Applies to: DynaFlex II Go with AC3 firmware or later.
Introductory preview: AC3 firmware automatically activates mDoc features on all compatible DynaFlex II Go readers as an introductory preview. Development and operations teams can evaluate workflow integration, frontline interactions, and transaction speeds without upfront licensing costs. When the preview period ends, mDoc requires an active subscription.
What mDoc Does
mDoc supports credential-verification flows that need a real, issuer-signed government identity document rather than a self-reported value — for example, age-restricted sales, identity checks at pickup or check-in, and digital onboarding. A transaction can return specific data elements (name, birth date, portrait, document number, and so on), or, when all you need is an age check, run a boolean age-verification command.
Two ISO standards are supported:
ISO/IEC 18013-5 — the mobile driver's license (mDL) standard, together with the AAMVA data set used by U.S. jurisdictions.
ISO/IEC 23220-4 / mobile passport — a second namespace for other mobile ID document types, including mobile passports.
Which data elements are available depends on the namespace you select. The full catalog of request items per namespace lives in the request-item tag tables (see Reference below).
Supported Wallets and Phones
Supported Wallets and Phones
An mDoc credential lives in the cardholder's mobile wallet or in a state-issued digital credential app. The phone hardware and OS versions required to hold a mobile driver's license or passport are set by the wallet and app providers and change over time, so this guide links to their documentation rather than restating requirements that would quickly go stale:
State-issued digital credential apps
Check the relevant provider page for current device, OS, and regional requirements.
How a Transaction Works

An mDoc transaction moves through four phases. The host starts it with Command 0x1201 – Read Mobile Document (or Command 0x1202 – Age Verification for age-only checks) and follows progress through notifications.
Device engagement. The cardholder presents their phone by tapping (NFC) or by letting the reader scan a QR code shown on the phone. The data exchanged during engagement seeds the ephemeral session keys used to encrypt and decrypt the rest of the exchange, per the key-generation algorithm defined in ISO/IEC 18013-5. The reader reports engagement status back to the host through Notification 0x0101 – Transaction Information Update. If engagement fails, the transaction ends here.
User consent. The reader connects to the phone over BLE and sends the session-encrypted "mDoc request" it built from the request items you specified in the command. The phone then displays a consent message showing the ID holder exactly which data elements the reader is asking for. No data leaves the phone until the holder taps Accept; if they decline, the transaction ends without returning data.
Data retrieval. Once the holder consents, the phone releases the "mDoc response." The response is CBOR-encoded and decoded by the reader.
Authentication and integrity. The reader validates the response locally on the reader itself against its pre-loaded issuer IACA certificates and verifies the SHA-256 hashes of every returned item to confirm the data has not been altered. On success, the results are delivered to the host through Notification 0x0101; on failure, a failure notification is sent instead.

If the operation finishes – whether it timed out or was cancelled – the reader sends Notification 0x0105 – Transaction Operation Complete.
Choosing a Command
Use Command 0x1201 – Read Mobile Document for a full transaction where you specify exactly which data elements to request across the ISO 18013-5 / AAMVA / ISO 23220-4 namespaces.
Use Command 0x1202 – Age Verification when you only need to check age. It is a subset of 0x1201, supports the ISO 18013-5 namespace only, and requests just the age-over item — 18, 21, or 25. The response format is identical to 0x1201: the reader returns the requested data element, not a separate pass/fail flag (see Handling results and errors). Because only the age-over element is requested, your application can complete an age check without receiving the holder’s name, birth date, or other identifying data.
To cancel a transaction that is already running, send Command 0x1008 – Cancel Transaction.
Engagement Methods
The host enables one or more ways for the phone to start engagement:
NFC — the cardholder taps the phone to the reader.
QR code — the reader reads a QR code presented on the phone.
At least one engagement method must be enabled for a transaction to start. Audio cues (start engagement, finish engagement, BLE transfer complete, mDL transaction error) can be left on automatic tones or driven explicitly by the host.
Security and Trust
mDoc layers two independent protections:
Session security. The engagement exchange derives ephemeral keys that protect the request/response traffic between the reader and the phone (ISO/IEC 18013-5).
Issuer authentication and integrity. The reader hosts an internal Certificate Store of trusted IACA certificates — the issuer certificates supplied by the original credential issuers (states, Apple Wallet, Google Wallet, Samsung Wallet, and others). It validates the returned mDoc locally, on the reader itself, against those certificates and checks the SHA-256 hash of each item, so a response can be trusted to have come, unaltered, from a legitimate issuer without relying on any external service.

Separately, the data returned to the host can optionally be encrypted and MAC-protected. mDoc uses the reader's existing DUKPT keys for this — the same keys shared with the device's other features — so no mDoc-specific key provisioning is required. The container is secured with either a TDES or an AES key, depending on the DUKPT key type in use. See the Security & Key Management guide for details.
Prerequisites
Prerequisites
Before a reader can run an mDoc transaction, all of the following must be in place:
Firmware. mDoc requires AC3 firmware or later on DynaFlex II Go. Note that certificate-store file IDs differ between older and newer reader images, so confirm the image before scripting file operations.
An mDoc subscription. mDoc is a licensed capability. During the introductory preview, AC3 firmware enables mDoc features on compatible readers without a subscription.
After the preview ends, the device must hold a subscription (1.2.9.1.1.1 - Mobile Document Subscription – OID) whose ValidFrom–ValidTo window includes the current date. Transactions are permitted only inside the subscription window. Subscriptions are managed and provisioned through MagTek Reader Management System (RMS). At the device level, the subscription is set with 0xD112 - Set Property (Secured).
To set up mDoc subscription licensing for your reader fleet, contact your MagTek representative at RetailSolutions@magtek.com.
A loaded certificate store. The reader needs the issuer trust anchors used to authenticate documents: a VICAL file (the Verified Issuer Certificate Authority List, provided by AAMVA, up to 30 certificates) plus individual IACA certificates supplied by the credentialed issuers--states/DMVs, Apple, Google, Samsung, and others (up to 15). See the Certificate Store reference for loading, fetching, and deleting these files.
A valid device RTC, so subscription and certificate validity windows can be evaluated.
At least one engagement method enabled (NFC and/or QR/BCR).
Subscription Expiration Warnings

Optionally, configure 1.2.9.1.1.2 - Mobile Document Expiration Notification – OID with a number of "warning days." When the subscription is within that many days of its ValidTo date, the reader emits a subscription-warning notification (Notification Detail 05000101 on Notification 0x1001) reporting the configured warning-day threshold, the days remaining, and the ValidTo timestamp, letting your application prompt for renewal before transactions stop.
When the subscription passes its ValidTo date, the reader sends a subscription-expired notification (Notification Detail 05000102 on Notification 0x1001). From that point, 0x1201 and 0x1202 no longer return data until a new subscription is provisioned. Payment and other non-mDoc functions are unaffected.

Requesting Data Elements
For a full read (0x1201), you choose which identity fields to request using the command's bit-mapped request items. The elements available for each namespace — for example family_name, birth_date, portrait, document_number, age_over_21 — are catalogued in the request-item tag tables:
ISO 18013-5 request items — tags start from 0xDFB001
AAMVA request items — tags start from 0xDFB041
Mobile passport request items — tags start from 0xDFB061
The reader requests only the elements you select, and the phone shows the holder exactly those elements before releasing any data. The host never receives an element it didn't request. Request the smallest set your workflow needs. For example, a pickup check might need only family_name and portrait, not a full identity record.
See Request Item Tag Tables in the Reference section for the complete lists.
Handling Results and Errors
On a successful read, the requested data elements are returned to the host. When output security is enabled, the data arrives as an encrypted string that the host decrypts; when it is disabled, the same data is returned in the clear. A requested portrait is returned as JPEG image data (encrypted along with the rest of the container when output security is on). The 0x1201 and 0x1202 responses share the same format.
Progress updates and successful results arrive on Notification 0x0101 - Transaction Information Update, carried under Payment Technology 0x40 (Mobile Document). The terminal state of the operation arrives on Notification 0x0105 - Transaction Operation Complete.
Common non-success conditions to handle — these behave like the equivalent events in a standard EMV transaction:
Session-data failure — the secure session with the phone could not be established or validated.
Timeout — the cardholder did not complete engagement within the configured timeout.
Host cancel — the host sent Command 0x1008.
User cancel — the cardholder declined consent or cancelled from the phone (display-only reason).
Subscription warning — the subscription is nearing expiration (see above).
Reference
The pages below hold the authoritative, byte-level detail for everything referenced in this guide. (Link targets in the site are wired to these destinations.)
Starts an mDoc transaction, defining the namespace, timeout, bit-mapped request items, output security, engagement methods (NFC or QR), and audio cues the reader uses to request and verify identity data from the holder’s phone.
Runs an age-only check in the ISO 18013-5 namespace, requesting just the age-over-18, -21, or -25 element so the host never receives the holder’s name, birth date, or other identifying data.
Cancels a transaction in progress, including a pending 0x1201 or 0x1202 mDoc read, after which the reader reports the final state through Notification 0x0105.
Sets device properties that require authentication, such as the mDoc subscription (OID 1.2.9.1.1.1), using the same request data as 0xD111 but sent through the secured command sequence.
Wraps another command, such as 0xD112, with a challenge token and a MAC or ECDSA signature so the reader can confirm it came from an authorized host and is not a replay.
Reports device-level state changes outside a transaction, including the mDoc subscription warning (05000101) and expired (05000102) events with the configured warning days, days remaining, and ValidTo timestamp.
This notification reports information about progress and state changes that occur during a transaction.
This notification reports the final result of a transaction the host initiated using Command 0x1001 - Start Transaction.
Lists every data element the host can request in each namespace (ISO 18013-5 tags from 0xDFB001, AAMVA from 0xDFB041, and mobile passport from 0xDFB061) for selection through the bit-mapped request items in 0x1201.
mDOC subscription — OID 1.2.9.1.1.1 and expiration notification OID 1.2.9.1.1.2
Device properties used to configure Mobile Document functionality.
File operations 0xD811 / 0xD812 / 0xD821 / 0xD831; VICAL, individual certificates, Cert Store Table
How DynaFamily readers protect cardholder data and manage keys: encrypting data at the point of read, the keys and key-serial numbers behind DUKPT, verifying message integrity with MACs, loading keys with TR-31, and the PCI requirements deployers must meet.
DynaFamily readers with a contactless interface can exchange commands directly with NFC tags and MIFARE cards through pass-through commands and can present themselves as a card to another reader through NFC card emulation
Explains how DynaFamily readers connect to a host over USB or Bluetooth LE, with transport-specific guidance for USB HID, WLAN, SLIP framing, and Apple iAP2.
Need More Help
Last updated

