TerminalFormat: nLength: 2-4
9F41

Transaction Sequence Counter

Tag ID
9F41
Format
n
Length (bytes)
2-4
Source
Terminal

What it is

Transaction Sequence Counter is a terminal-maintained counter (up to 8 digits, BCD) incremented on each transaction. It provides an ordering / reference number for reconciliation and appears in the transaction record.

Where it appears

Maintained by the terminal; incremented per transaction.

How tag 9F41 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 9F41 is a 2-byte, context-specific class, primitive tag (tag number 65), so its value is plain data rather than nested TLV objects.

9F10011111Bits 8–7 = 10: context-specific class. Bit 6 = 0: primitive. Bits 5–1 all set: the tag number continues in the next byte.
4101000001Bit 8 = 0: last tag byte. Bits 7–1 = 65.

Length

The value is between 2 and 4 bytes long, so the length field runs from 02 to 04.

Value format n

Format n is numeric: BCD, two digits per byte, right-aligned and padded with leading zeros.

Who supplies it

The terminal supplies this value. A card that needs it lists the tag in a data object list (PDOL, CDOL1, CDOL2 or DDOL), and the terminal places the value, at the length the card asked for, in the matching command.

Specification reference

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

Example values

00001234Transaction number 1234 on this terminal

Decode & build this tag