How the three digits of field 22 describe how the card was read and whether the terminal takes a PIN.
Data element 22 is the POS entry mode. In the common 1987 layout it is three digits: the first two say how the card data was captured, and the third says whether the terminal can take a PIN. A chip purchase on a PIN-capable terminal is 051, a swipe is 021 and a contactless chip tap is 071.
The host needs to know how the card data reached it. A chip read carries a cryptogram, a swipe carries track data and a keyed entry carries only the card number and expiry. Each one carries a different level of fraud risk, so issuers, networks and acquirers use DE 22 to decide how to authorize the transaction and which rules and fees apply.
DE 22 = P P N
| | +-- PIN entry capability
+-+---- PAN entry mode Later versions of the standard replace this with a longer structured field that describes the terminal, the cardholder and the card data separately. Many hosts still use the three-digit form, so check which one yours expects.
| Code | Meaning | What you would expect to see with it |
|---|---|---|
00 | Unspecified | Nothing in particular |
01 | Manual key entry | PAN and expiry only (DE 2 and DE 14) |
02 | Magnetic stripe read | Track data (DE 35 or DE 45) |
05 | Chip (ICC) read | EMV data in DE 55 |
07 | Contactless chip | EMV data in DE 55 |
90 | Magnetic stripe, full track read | Network-defined, used where the full track is read unaltered |
91 | Contactless magnetic stripe | Network-defined, contactless card data sent as track data |
Codes such as 90 and 91 are network conventions rather than part of the original standard. Chip fallback and e-commerce also have their own values on some networks, so treat this table as the common core, not the full list.
| Code | Meaning |
|---|---|
0 | Unspecified |
1 | Terminal can accept PINs |
2 | Terminal cannot accept PINs |
This digit is about what the terminal can do, not whether the cardholder entered a PIN on this transaction. Whether a PIN was actually used shows up in DE 52 (PIN data) and in the chip data.
| DE 22 | Reads as |
|---|---|
011 | Manually keyed, terminal has a PIN pad |
012 | Manually keyed, no PIN capability |
021 | Magnetic stripe read, PIN-capable terminal |
022 | Magnetic stripe read, no PIN capability |
051 | Chip read, PIN-capable terminal |
052 | Chip read, no PIN capability |
071 | Contactless chip, PIN-capable terminal |
072 | Contactless chip, no PIN capability |
The 0200 purchase request in the sample messages carries 051 in DE 22. Split it into 05 and 1: the card was read from the chip, and the terminal has PIN entry capability. A host reading that message would expect EMV data in DE 55, and would be right to question it if DE 55 were missing.
When a chip card cannot be read, a terminal may fall back to the magnetic stripe if the rules allow it. Hosts need to be told this happened, and networks define the value used for it. If you send a plain swipe value for a card that has a chip, the issuer cannot tell the chip failed, and the transaction may be declined or handled under different rules. Confirm the fallback value and the conditions in your host specification before you certify.
Paste a message into the ISO 8583 decoder and choose the generic 1987 layout to split the values. DE 22 appears with its three digits, ready to read against the tables above.
Tell us the host, the terminal and the region. A payments engineer will help you scope the integration and certification.
Talk to us Book a meeting with a founder