4 位数字,逐位表达报文性质。例如 0200:Four digits, each position describing the message. For example 0200:
0 = 版本(ISO 8583:1987)Digit 1 0 = version (ISO 8583:1987)2 = 消息类(2xx = 金融/消费)Digit 2 2 = class (2xx = financial/purchase)0 = 功能(0 = 请求)Digit 3 0 = function (0 = request)0 = 来源(0 = 收单方发起)Digit 4 0 = origin (0 = acquirer)所以 0200 = 收单方发起的一笔金融请求;它的响应就是 0210。授权类常见 0100/0110,冲正 0400/0420。So 0200 = a financial request from the acquirer; its response is 0210. Authorizations are commonly 0100/0110, reversals 0400/0420.
紧跟 MTI,是一串二进制位,第 N 位 = 1 表示数据域 N 出现。主位图 64 位(域 1–64)。如果第 1 位为 1,说明还有一张副位图(域 65–128)。这样报文只携带真正用到的字段,非常紧凑。Right after the MTI, a string of bits where bit N = 1 means data element N is present. The primary bitmap is 64 bits (DEs 1–64). If bit 1 is set, a secondary bitmap follows (DEs 65–128). This keeps messages compact — only the fields actually used are carried.
标准定义了 128 个数据域,按位图指示依次排列。最常见的几个:The standard defines 128 data elements, laid out in order as the bitmap indicates. The most common ones:
| DE | 含义Meaning |
|---|---|
| DE2 | 主账号 PAN(卡号)Primary Account Number (card number) |
| DE3 | 处理码(交易类型 + 借贷账户)Processing code (txn type + accounts) |
| DE4 | 交易金额(最小货币单位)Transaction amount (minor units) |
| DE11 | STAN 系统跟踪号(当日唯一)STAN (unique within a day) |
| DE39 | 响应码(00=批准)Response code (00=approved) |
| DE41 / 42 | 终端号 / 商户号Terminal ID / Merchant ID |
| DE49 | 交易货币代码(ISO 4217)Currency code (ISO 4217) |
| DE55 | EMV 芯片数据(TLV)EMV chip data (TLV) |
每个域有固定的格式(n 数字 / an 字母数字 / b 二进制)和长度类型:定长(FIX)、或带 2/3 位长度前缀的变长(LLVAR/LLLVAR)。此外还有编码差异——ASCII、压缩 BCD、EBCDIC——不同卡组织(尤其 VISA)口径不同,这是新手最容易踩的坑。Each element has a fixed format (n numeric / an alphanumeric / b binary) and a length type: fixed (FIX) or variable with a 2/3-digit length prefix (LLVAR/LLLVAR). There's also encoding — ASCII, packed BCD, EBCDIC — which differs by scheme (VISA especially). That's the classic beginner trap.
👉 进阶:EMV 芯片交易与 DE55 深入(订阅)——DE55 里每个 EMV 标签、ARQC 密文、TVR/CVM 决策逻辑。👉 Advanced: EMV Chip & DE55 Deep Dive (subscriber) — every EMV tag in DE55, the ARQC cryptogram, and TVR/CVM decision logic.