ISO 8583 REFERENCE

ISO 8583 sample messages: annotated 0200, 0210, 0800 and 0810

Four real-shaped messages, field by field, with the bitmap worked out and what to check when one fails.

6 min read · By Kevin Medina · Updated November 25, 2026
The short version

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.

Read these as illustrations

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.

Sample 1: purchase request (0200)

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.

FieldNameFormatValueNote
DE 2Primary account number (PAN)LLVAR, n..19164111111111111111Test PAN, not a real card
DE 3Processing coden600000000 purchase, 00 from account, 00 to account
DE 4Amount, transactionn1200000000125012.50
DE 7Transmission date and timen10 MMDDhhmmss112516350025 Nov, 16:35:00 UTC
DE 11System trace audit number (STAN)n6000123Echoed back unchanged in the response
DE 12Local transaction timen6 hhmmss08350008:35:00 local
DE 13Local transaction daten4 MMDD112525 Nov
DE 14Expiration daten4 YYMM2812December 2028
DE 22Point of service entry moden305105 chip read, 1 PIN capable (host specific)
DE 25Point of service condition coden20000 normal presentment
DE 37Retrieval reference numberan12633000123456Echoed back in the response
DE 41Card acceptor terminal IDans8TERM0001Echoed back in the response
DE 42Card acceptor ID codeans15MERCHANT0000010Echoed back in the response
DE 49Currency code, transactionn3840840 US dollars

The complete message as one string:

0200723C048008C0800016411111111111111100000000000000125011251635000001230835001125281205100633000123456TERM0001MERCHANT0000010840

Sample 2: purchase response (0210)

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.

FieldNameFormatValueNote
DE 2Primary account number (PAN)LLVAR, n..19164111111111111111Test PAN, not a real card
DE 3Processing coden600000000 purchase, 00 from account, 00 to account
DE 4Amount, transactionn1200000000125012.50
DE 7Transmission date and timen10 MMDDhhmmss112516350025 Nov, 16:35:00 UTC
DE 11System trace audit number (STAN)n6000123Echoed back unchanged in the response
DE 12Local transaction timen6 hhmmss08350008:35:00 local
DE 13Local transaction daten4 MMDD112525 Nov
DE 37Retrieval reference numberan12633000123456Echoed back in the response
DE 38Authorization ID responsean6A1B2C3Issuer approval code
DE 39Response codean20000 approved
DE 41Card acceptor terminal IDans8TERM0001Echoed back in the response
DE 42Card acceptor ID codeans15MERCHANT0000010Echoed back in the response
DE 49Currency code, transactionn3840840 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.

Sample 3: sign-on request (0800)

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.

FieldNameFormatValueNote
DE 7Transmission date and timen10 MMDDhhmmss112516350025 Nov, 16:35:00 UTC
DE 11System trace audit number (STAN)n6000124Echoed back unchanged in the response
DE 70Network management information coden3001001 sign-on
0800822000000000000004000000000000001125163500000124001

Sample 4: sign-on response (0810)

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.

FieldNameFormatValueNote
DE 7Transmission date and timen10 MMDDhhmmss112516350025 Nov, 16:35:00 UTC
DE 11System trace audit number (STAN)n6000124Echoed back unchanged in the response
DE 39Response codean20000 approved
DE 70Network management information coden3001001 sign-on
081082200000020000000400000000000000112516350000012400001

How to decode these

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.

What to check when a message fails

Frequently asked questions

What does a real ISO 8583 message look like?
It is the MTI, then one or two bitmaps, then the data elements in ascending field order. A purchase request such as an 0200 usually carries the PAN, processing code, amount, STAN, local time and date, entry mode, terminal and merchant IDs and the currency code.
How do I match a response to a request?
Use the fields the host echoes back, mainly the STAN in field 11, the retrieval reference number in field 37 and the terminal ID in field 41, along with the response MTI being the request MTI plus 10.
Why does my message not decode?
The usual causes are a bitmap read in the wrong encoding, a field length prefix the parser does not expect, or a bit set for a field your format table does not define. The bitmap tells you which fields are present but not how long each one is.
Is the PAN in these samples real?
No. The samples use a widely published test card number and made-up terminal, merchant and reference values. Do not use real card numbers in logs, tickets or test tools.
What happens if an 0200 times out?
The sender normally sends an 0400 reversal using the original STAN and data elements so the host can undo a transaction it may have approved. Field 90 carries the original data. See the MTI codes page for the reversal codes.
Testing a non-EMV host integration? Foundry Test Bench runs your test cases on a device and records the request, response and device log as evidence. See Foundry Test Bench →

Building against an ISO 8583 host?

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