Four real-shaped messages, field by field, with the bitmap worked out and what to check when one fails.
These are four annotated ISO 8583 messages: a purchase request and response (0200 and 0210) and a sign-on request and response (0800 and 0810). Each one shows the bitmap, every field and its value, and what to look at when something goes wrong. They are written in the ASCII form the free decoder reads, so you can paste them straight in.
Real hosts differ. They may use binary bitmaps, BCD or EBCDIC, different field formats, extra private fields, or fewer of the fields shown here. The samples use the common 1987 layout, a published test PAN and invented IDs, so they show the structure and not any particular network.
A single-message purchase from a terminal. The bitmap 723C048008C08000 sets fields 2, 3, 4, 7, 11, 12, 13, 14, 22, 25, 37, 41, 42 and 49. Field 2 has a two-digit length prefix (LLVAR), so the PAN is sent as 16 followed by the 16 digits.
| Field | Name | Format | Value | Note |
|---|---|---|---|---|
| DE 2 | Primary account number (PAN) | LLVAR, n..19 | 164111111111111111 | Test PAN, not a real card |
| DE 3 | Processing code | n6 | 000000 | 00 purchase, 00 from account, 00 to account |
| DE 4 | Amount, transaction | n12 | 000000001250 | 12.50 |
| DE 7 | Transmission date and time | n10 MMDDhhmmss | 1125163500 | 25 Nov, 16:35:00 UTC |
| DE 11 | System trace audit number (STAN) | n6 | 000123 | Echoed back unchanged in the response |
| DE 12 | Local transaction time | n6 hhmmss | 083500 | 08:35:00 local |
| DE 13 | Local transaction date | n4 MMDD | 1125 | 25 Nov |
| DE 14 | Expiration date | n4 YYMM | 2812 | December 2028 |
| DE 22 | Point of service entry mode | n3 | 051 | 05 chip read, 1 PIN capable (host specific) |
| DE 25 | Point of service condition code | n2 | 00 | 00 normal presentment |
| DE 37 | Retrieval reference number | an12 | 633000123456 | Echoed back in the response |
| DE 41 | Card acceptor terminal ID | ans8 | TERM0001 | Echoed back in the response |
| DE 42 | Card acceptor ID code | ans15 | MERCHANT0000010 | Echoed back in the response |
| DE 49 | Currency code, transaction | n3 | 840 | 840 US dollars |
The complete message as one string:
0200723C048008C0800016411111111111111100000000000000125011251635000001230835001125281205100633000123456TERM0001MERCHANT0000010840 The MTI changes from 0200 to 0210. The response echoes the identifying fields so the sender can match it, adds the authorization ID (field 38) and the response code (field 39), and drops the fields the host does not return, here the expiry date and entry mode. The bitmap becomes 723800000EC08000.
| Field | Name | Format | Value | Note |
|---|---|---|---|---|
| DE 2 | Primary account number (PAN) | LLVAR, n..19 | 164111111111111111 | Test PAN, not a real card |
| DE 3 | Processing code | n6 | 000000 | 00 purchase, 00 from account, 00 to account |
| DE 4 | Amount, transaction | n12 | 000000001250 | 12.50 |
| DE 7 | Transmission date and time | n10 MMDDhhmmss | 1125163500 | 25 Nov, 16:35:00 UTC |
| DE 11 | System trace audit number (STAN) | n6 | 000123 | Echoed back unchanged in the response |
| DE 12 | Local transaction time | n6 hhmmss | 083500 | 08:35:00 local |
| DE 13 | Local transaction date | n4 MMDD | 1125 | 25 Nov |
| DE 37 | Retrieval reference number | an12 | 633000123456 | Echoed back in the response |
| DE 38 | Authorization ID response | an6 | A1B2C3 | Issuer approval code |
| DE 39 | Response code | an2 | 00 | 00 approved |
| DE 41 | Card acceptor terminal ID | ans8 | TERM0001 | Echoed back in the response |
| DE 42 | Card acceptor ID code | ans15 | MERCHANT0000010 | Echoed back in the response |
| DE 49 | Currency code, transaction | n3 | 840 | 840 US dollars |
0210723800000EC0800016411111111111111100000000000000125011251635000001230835001125633000123456A1B2C300TERM0001MERCHANT0000010840 Fields 11, 37 and 41 match the request, which is how the terminal knows this answer belongs to that sale. Field 39 is 00, approved. For other values see the response codes reference.
A network management message to log a terminal or host on to the network. It needs field 70, which is above 64, so bit 1 of the primary bitmap is set and a secondary bitmap follows. The two bitmaps are 8220000000000000 and 0400000000000000.
| Field | Name | Format | Value | Note |
|---|---|---|---|---|
| DE 7 | Transmission date and time | n10 MMDDhhmmss | 1125163500 | 25 Nov, 16:35:00 UTC |
| DE 11 | System trace audit number (STAN) | n6 | 000124 | Echoed back unchanged in the response |
| DE 70 | Network management information code | n3 | 001 | 001 sign-on |
0800822000000000000004000000000000001125163500000124001 The host answers with 0810 and echoes the STAN and field 70, adding a response code in field 39. The bitmaps are 8220000002000000 and 0400000000000000.
| Field | Name | Format | Value | Note |
|---|---|---|---|---|
| DE 7 | Transmission date and time | n10 MMDDhhmmss | 1125163500 | 25 Nov, 16:35:00 UTC |
| DE 11 | System trace audit number (STAN) | n6 | 000124 | Echoed back unchanged in the response |
| DE 39 | Response code | an2 | 00 | 00 approved |
| DE 70 | Network management information code | n3 | 001 | 001 sign-on |
081082200000020000000400000000000000112516350000012400001 Copy any of the message strings into the ISO 8583 decoder. It reads the MTI, expands the bitmaps and lists which data elements are present. It does not split the field values, because their formats depend on each host, so the data after the bitmap is shown as the unparsed body. The tables above do the splitting by hand. To check only the bitmap, use the bitmap decoder, and for how the bits work see the bitmap guide.
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