Issuer / AcquirerFormat: bLength: var
71

Issuer Script Template 1

Tag ID
71
Format
b
Length (bytes)
var
Source
Issuer / Acquirer

What it is

Issuer Script Template 1 carries issuer script commands the card must process before the final GENERATE ACApplication CryptogramA cryptogram the card generates to approve or decline a transaction: TC (approve offline), ARQC (go online), or AAC (decline).. Scripts let the issuer update the card in the field — unblocking the application, changing PIN, or adjusting offline limits — piggybacked on the online authorisation response.

Where it appears

Returned by the issuer in the authorisation response; delivered to the card before the second GENERATE ACApplication CryptogramA cryptogram the card generates to approve or decline a transaction: TC (approve offline), ARQC (go online), or AAC (decline)..

How tag 71 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 71 is a 1-byte, application class, constructed tag (tag number 17), so its value is itself a series of TLV objects that a parser has to walk in turn.

7101110001Bits 8–7 = 01: application class. Bit 6 = 1: constructed. Bits 5–1 give tag number 17.

Length

The length varies, so read it from the length field: one byte for values up to 127 bytes, 81 plus one byte up to 255, 82 plus two bytes beyond that.

Value format b

Format b is binary: the bits mean what this tag defines, with no padding or character conversion.

Who supplies it

This value comes from the authorisation host rather than from the card or the terminal: the issuer returns it in the authorisation response, and the terminal hands it to the card, for example in EXTERNAL AUTHENTICATE, the second GENERATE AC or an issuer script.

Specification reference

Defined in: EMV 4.x Book 3 (Application Specification), Annex A — Data Element Dictionary

Decode & build this tag