Founder deal: 75% off the lifetime licence. Unlimited sites, one payment, every update.See the founder plan
Home / Blog / Declines and diagnostics

Credit Card Return Codes and Bank Response Codes Explained

Credit card return codes come from the issuer, processor and gateway, and the same decline can carry a different number at each layer. Here is how to read them.

Credit card return codes are short values that tell a merchant why a card payment was approved, declined or errored. They come from three different layers (the card issuer, the processor and the gateway), and the same decline can show up with a different number at each one. Read the layer first, then the number.

This post is the map of those layers. For the meaning of individual declines, start with the decline codes overview and use the NMI response code lookup when you have a number in hand.

What it means: three code layers

When a customer pays, the request travels from your store to a gateway, on to a processor, across a card network and finally to the issuing bank. The answer travels back the same way, and each hop can rewrite it.

  • Issuer and network codes. Two-digit values in the ISO 8583 style, such as 05, 51, 54 or 57. The bank chooses one, and the processor passes it along.
  • Processor codes. Often the issuer code, sometimes a processor-specific value such as 89, 93, 302, 1500 or 2000. These differ by processor and are not standardized.
  • Gateway codes. The gateway normalizes everything into its own scheme. NMI returns a three-digit response_code such as 201 or 202, plus a responsetext string that may contain the processor wording.

So when someone says “code 51” and someone else says “code 202”, they can be describing the same event at two layers. The wording and exact numbers vary by processor and card network, so check your processor’s own code list before you build rules on a number.

Why you see different numbers for the same decline

  1. Normalization. The gateway maps many processor values to a small set. NMI documents only a fixed list of response_code values, and the full table is on the gateway response codes page.
  2. Text fields carry the raw value. The processor text may include the issuer number or a label, which is why you see strings like “DECLINED – 51” next to a 2xx code.
  3. Processor dialects. A number that means one thing at one processor means something else at another. Never assume a three-digit processor code is universal.
  4. Plugin messages. A plugin may show only the text and hide the number, or show a friendly message that matches neither.

Common issuer codes and the NMI codes they usually match

These pairings usually hold, but they depend on the processor.

  • 05 do not honor usually corresponds to NMI 201. See NMI do not honor.
  • 51 insufficient funds usually corresponds to NMI 202. See decline code 51.
  • 54 expired card usually corresponds to NMI 223.
  • 61 and 65 limit declines usually fall in the NMI 203 over limit family.
  • 04, 07, 41 and 43 pick up card values usually fall in the NMI 250 family.
  • 01 and 02 refer to card issuer usually correspond to NMI 240.

Two codes in the lists above have no safe one-to-one match, so do not hard-code one. A generic 200 from NMI means the processor declined without a more specific reason, which is the situation described in generic decline meaning.

What to do when you see a code

  1. Open the order and copy the full gateway response, including the number and the text. In NMIWP the response code and text are written to the order notes.
  2. Identify the layer. Three digits beginning with 1 to 4 and set by the gateway are NMI codes. Two digits are almost always issuer values passed through.
  3. Look the NMI number up in the official table. If it is in the 2xx range, the bank or processor said no and the customer is the only one who can fix it.
  4. If it is 3xx or 4xx, the problem is on the setup side: credentials, fields, merchant configuration. Read the text before you act.
  5. If the number is not in any table you have, treat it as processor-specific and ask your processor or reseller what it means. Do not guess.

For a full triage order that starts at the checkout, use the card was declined diagnosis order.

When to stop and call someone

  • Call the customer’s bank when the same card fails across several attempts with 2xx codes. Only the issuer can lift it.
  • Call your gateway provider or reseller when you see 4xx codes, a processor value you cannot identify, or the same decline across many unrelated customers.
  • Stop retrying after a hard decline such as a pick up card value. Repeated retries on a closed or blocked card add noise and can draw attention from the networks.

If you are unsure who to call, gateway, processor and merchant account explains who owns which part of the chain.

How NMIWP helps

NMIWP writes the gateway response to the WooCommerce order notes, including the auth code, transaction ID, AVS and CVV results and the raw response code, and it logs requests with card numbers and the security key stripped. That is available in the free version. It reports what the gateway returned; it cannot change what the issuer decided.

Quick answers

Are return codes the same as decline codes?

Mostly. “Return code” is a loose term for any response value. Decline codes are the subset that means the payment was refused.

Is a return code the same as an ACH return?

No. ACH returns use R-codes such as R01 and come days later. They are covered in ACH return codes explained.

Why does my processor show a different number than NMI?

Because NMI normalizes the response into its own scheme. Both numbers can be correct for the same event.

Should I show the code to customers?

No. Show a plain message and keep the code in your order notes.

Running NMI on WooCommerce? Free covers the basics and Pro adds the paid features. Compare Free and Pro.

More in this series: NMI Processor Response Codes vs Gateway Response Codes | NMI Response Codes 400 to 461: Processor Errors and Merchant Setup Problems | NMI Response Codes 220 to 226: Incorrect Payment Information

Last reviewed November 2026.

NMI for WooCommerce

See the gateway response on every order

NMIWP writes the response code, AVS and CVV results into the order notes.

See pricing

Free on WordPress.org. Pro and Enterprise add more.