TerminalFormat: nLength: 2
9F15

Merchant Category Code (MCC)

Tag ID
9F15
Format
n
Length (bytes)
2
Source
Terminal

What it is

Merchant Category Code (MCC) classifies the merchant’s line of business using an ISO 18245 4-digit code, encoded here in 2 BCD bytes. Issuers use it for authorisation rules, rewards and reporting.

Where it appears

Terminal configuration value; sent in the authorisation message.

How tag 9F15 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 9F15 is a 2-byte, context-specific class, primitive tag (tag number 21), 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.
1500010101Bit 8 = 0: last tag byte. Bits 7–1 = 21.

Length

The value is always 2 bytes, so the length field is 02. A complete 9F15 object starts 9F 15 02 and is 5 bytes long in all.

Value format n

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

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. In a DOL, 9F15 appears as 9F 15 02: the tag followed by the length the card wants.

Specification reference

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

Example values

5411Grocery stores / supermarkets
5812Eating places and restaurants

Decode & build this tag