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

NMI Processor Response Codes vs Gateway Response Codes

NMI processor response codes come from the issuer or processor. The gateway response code is NMI's own number. Here is how to tell them apart and use both.

NMI processor response codes are the values your processor or issuer sent back, while the gateway response code is NMI’s own numeric summary of that answer. The gateway code is the 100, 2xx, 3xx or 4xx number. The processor value, if available, sits in separate text fields, and the two are not interchangeable.

Two layers, three fields

A classic NMI API response carries these related values:

  • response: 1 approved, 2 declined, 3 error in transaction data or system error.
  • response_code: NMI’s numeric code from its result code table, such as 100, 201, 300 or 410.
  • responsetext: free-form text. NMI documents the field but not a fixed list of strings, and the text varies.

On the NMI Query API, each transaction action also lists processor_response_code and processor_response_text. That is where the processor layer is reported. Whether a given processor fills them, and with what values, depends on the processor. See the response and responsetext fields for the basics.

What the gateway code tells you

NMI’s table has a defined set. A 1xx code is approval, 2xx is a decline by the processor or issuer, 300 is rejection by the gateway, and 4xx is processor or merchant configuration errors. NMI does not state these as ranges, but the table follows that pattern. Use the main response codes guide for the whole list.

The key point: NMI only returns codes that are in that table. If you see 05, 51, 54, 57, 61, 65, 14, 89, 93, 302, 1500 or 2000, you are looking at an issuer or processor value, not an NMI response_code.

What the processor value tells you

Processor and issuer values come from ISO 8583 style messages. Common ones such as 05 do not honor, 51 insufficient funds and 54 expired card have standard meanings, but wording and exact numbers vary by processor and card network. Values such as 89, 93, 302, 1500 and 2000 are processor-specific, so the same number can mean different things at different processors. Check your processor’s code list.

The safe pairs

These usually correspond, depending on processor:

  • NMI 201 Do not honor and issuer 05.
  • NMI 202 Insufficient funds and 51.
  • NMI 203 Over limit and the 61 and 65 family.
  • NMI 223 Expired card and 54.
  • NMI 240 Call issuer and 01 or 02.
  • NMI 250 Pick up card and the 04, 07, 41, 43 family.

No complete mapping table exists in NMI’s documentation, so do not build logic that assumes one. Treat the gateway code as the primary field and the processor text as supporting detail.

How to find the processor value, step by step

  1. Open the failed order in WooCommerce and read the order note: response code and response text.
  2. Copy the gateway transaction ID from the note.
  3. In the Merchant Portal, find that transaction and open its detail. Look for processor response text or code.
  4. If you use the Query API, request the transaction and read the action’s processor_response_code and processor_response_text. Confirm with your provider that your processor returns them.
  5. Look the value up in your processor’s own code list, not a generic one.

Decision rule: which code do I act on

  • Gateway code is 3xx: act on the gateway side first. Credentials, fields, permissions. See the invalid security key guide if it mentions a key.
  • Gateway code is 4xx: act on merchant setup. See the 400 to 461 guide.
  • Gateway code is 2xx: the issuer refused. Use the processor value only to refine the message to the customer. See the 201 to 204 family.
  • Gateway code is 100: approved. Nothing to decode.
  • What to tell the customer

    Your bank declined this payment. Please try another card or ask your bank to approve it.

    Do not show a processor code to a shopper. It means nothing to them.

    When to call whom

    Call your processor or reseller to decode a processor-specific value or to ask for it to be returned. Call NMI support only if you hold the account directly with NMI. Which party you actually have is explained in gateway, processor, merchant account. The Mastercard side of advice values is in Mastercard decline codes.

    How NMIWP helps

    NMI for WooCommerce stores the gateway response, raw response code, AVS and CVV results in the order note in the free plugin, with redacted logging. That gives you the gateway layer on every order. Whether a processor value appears depends on what the gateway returns. Use the NMI response code lookup for any gateway code.

    Quick answers

    Does NMI return code 05 or 51?

    No. NMI returns 2xx codes, and the issuer value may appear in the text.

    Where are NMI error codes listed?

    In NMI’s result code table, which this site summarizes. Anything outside that table is not an NMI code.

    What is the difference between response and response_code?

    response is 1, 2 or 3. response_code is the more detailed number.

    Last reviewed November 2026.

NMI for WooCommerce

See both layers on every order

The free plugin saves the gateway response and raw code in each WooCommerce order note.

See pricing

Free on WordPress.org. Sandbox and logging included.