ISO 8583 and Response Codes Quiz
Last Updated: 2026-12-01 Status: Complete
These scenario questions test judgment on ISO 8583 and response codes. Attempt each answer before opening it.
Question 1: Decoding a Bitmap
A primary bitmap begins with the byte C2. What does the first byte tell you, and which data elements does it announce?
View answer
C2 is binary 1100 0010. Bit 1 is set, so a secondary bitmap follows and DE 65 to 128 may be present. Bit 2 is also set, which announces DE 2 (the PAN). Bit 7 is set, announcing DE 7 (transmission date and time). Your parser must therefore read 16 bitmap bytes before reading any data element, and must treat DE 2 as sensitive cardholder data. See How Does the Bitmap Work?.
Question 2: The Lost Response
Your host sends a 0100 and the response never arrives before the timeout. A junior engineer proposes recording a decline and letting the customer retry. What do you do?
View answer
The outcome is unknown. The issuer may have approved and placed a hold, so recording a decline and retrying can create a double hold or duplicate charge. Send a reversal that identifies the original message under its own idempotency key (keep the original key only when resending the same request), and reconcile before retrying or failing over. Model the state as unknown, not declined. See reversals and repeats and Why Is a Timeout Not a Decline?.
Question 3: Repeat or New Request
What is the difference between sending a 0401 and sending a new 0400?
View answer
A 0401 is a repeat: it retransmits the same business reversal because no response was received, so the receiver can recognize a duplicate and respond without applying it twice. A new 0400 looks like a separate reversal and risks being applied twice or rejected as unmatched. Use repeats for retransmission of an unanswered message, and make sure the original data elements remain identical. See Common 1987 MTIs.
Question 4: Identifier Confusion
Support gives you an RRN, finance gives you a STAN and a dispute team asks for the network transaction ID. How do the three relate, and which would you use to link an incremental authorization to the first one?
View answer
The STAN is assigned by the message originator and matches a response to its request. The RRN is assigned by the acquirer or processor and helps people locate a transaction across systems. The network transaction ID is assigned by the card network and links a chain of related messages. To link an incremental authorization to the first, send the network transaction ID returned on the first authorization. See STAN, RRN and Network Transaction ID.
Question 5: Entry Mode and Downgrades
Card-present sales from one terminal type are being downgraded on interchange. Where in the message would you look first, and why?
View answer
Check DE 22 (POS entry mode) and DE 25 (POS condition code), and the chip data in DE 55. A card-present sale submitted as keyed, or a fixed default entry mode set by an integration layer, changes how the transaction qualifies and how issuers score it. Compare the value you sent with the real capture method, and store the sent value for audit. See DE 22.
Question 6: Ambiguous Decline
A dashboard labels every response code 05 as "fraud" and the retry engine blocks those customers permanently. What is wrong with that design?
View answer
Code 05 is generic. Visa places it in the generic category, and issuers use it for many reasons, including policy, velocity or a block. Labeling it fraud misleads analysts and permanent blocking loses recoverable customers. Classify it as a generic decline, combine it with context such as advice codes, entry mode and authentication results, offer an alternative payment method, and retry only within network limits. See Response Code 05.
Question 7: Expired Card
A subscription renewal returns 54. Hard decline, so cancel the subscription?
View answer
Not necessarily. Visa classes 54 as a data quality decline, and the issuer may have reissued the card with a new expiration date. Check for updated credentials through an account updater or network tokens, and if none are available ask the customer to update their card. Avoid repeatedly resubmitting the same expired details, which counts toward network reattempt limits. See Visa decline categories and Account Updater.
Question 8: Mastercard Advice
An authorization declines with response code 51 and Mastercard advice code 25. What does this indicate and what should the retry engine do?
View answer
Merchant advice codes 24 to 30 accompany response code 51 and give a retry delay; in this series 25 means try again after 24 hours. The engine should schedule one retry no earlier than the stated delay and count it against the network's excessive-attempt limit. An advice code of 03 or 21 would instead mean stop. See Mastercard Merchant Advice Codes and Retry Strategy.
Question 9: What the Shopper Sees
An issuer returns 59, suspected fraud. Product wants to show "Your bank flagged this as fraud". How do you respond?
View answer
Decline the proposal. Telling shoppers the fraud reasoning gives attackers feedback for tuning their attempts and can alarm or insult genuine customers. Show a generic message asking them to use another payment method, classify internally as FRAUD_SUSPECTED with no automatic retry, and log the raw code, normalized category and identifiers without any card data. See What Should the Customer See.
Question 10: Logging a Raw Message
An engineer adds a debug log that prints the entire parsed ISO 8583 message for failed authorizations. What is the problem and the fix?
View answer
The parsed message can contain DE 2, 14, 35, 45 and 52, which are cardholder or sensitive authentication data; writing them to logs breaches PCI DSS expectations and sensitive authentication data must never be stored after authorization. Replace the debug dump with an allowlist of safe fields such as MTI, STAN, RRN, DE 39 and identifiers, redact at the serialization boundary, and use synthetic data in tests. See logging rules.