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

Reading the NMI Transaction Response: response, responsetext and response_code

Read response, response_code and responsetext in the right order to tell a card decline from a gateway rejection or a merchant setup problem.

An NMI transaction response carries three fields you need to read together: response (1 approved, 2 declined, 3 error), responsetext (free-form text) and response_code (a three-digit number from NMI’s result code table). Start with response_code to learn who said no, then read responsetext to learn why. This guide covers the NMI response fields in the order to read them.

The classic Payment API returns its answer as a query string, for example response=2&responsetext=...&response_code=2xx. In WooCommerce with NMI for WooCommerce, the raw response code and the gateway result are written to the order notes, so you rarely need to call the API yourself. If you are stuck, the troubleshooting documentation lists where each log lives.

The three fields, in reading order

  1. response: 1 means approved, 2 means declined, 3 means an error in the transaction data or a system error. This tells you whether to look at the cardholder side (2) or the request and setup side (3).
  2. response_code: the numeric mapping. NMI’s own table is short, so a code outside it is not something to trust a blog post about.
  3. responsetext: the human text. NMI documents numeric codes plus free-form text, and the wording varies. Many errors also carry a REFID, which is what NMI support asks for.

How to read response_code ranges

NMI does not publish these as ranges, but the table falls into four groups that help you triage:

  • 100: approved.
  • 200 to 264: the issuer or processor declined. Examples: 201 do not honor, 202 insufficient funds, 223 expired card, 225 invalid card security code.
  • 300: the gateway itself rejected the request before it reached an issuer. Always read responsetext, because the cause can be a missing field, credentials, permissions or a duplicate.
  • 400 to 461: processor errors and merchant configuration problems, such as 410 invalid merchant configuration, 411 merchant account inactive, 430 duplicate transaction at processor, 460 processor feature not available and 461 unsupported card type.

A rate limit response is documented separately: response=3, text “Rate limit exceeded” and code 301. Do not retry immediately if you see it.

Codes that change what you do next

Most decline codes mean “ask the customer to use another card”. A few change your own behavior:

  • 261 Declined, stop all recurring payments, and 262 stop this recurring program: do not keep retrying renewals on that card.
  • 263 Declined, update cardholder data available: updated card details exist, which is the Account Updater case.
  • 264 Declined, retry in a few days: schedule a retry rather than asking the customer to act at once.
  • 260 Declined with further instructions available: the answer is in responsetext.

Checklist when an order fails

  1. Open the order and read the order notes for the response code and gateway result.
  2. Note response first: 2 or 3?
  3. Match response_code to the groups above. Group 2xx goes to the customer, 3xx to your settings, 4xx to your processor.
  4. Copy the full responsetext including any REFID before you contact anyone.
  5. Check AVS and CVV results on the order. The AVS and CVV guide explains which values matter.
  6. If the failure came from a 3D Secure step, the liability shift explainer covers what the outcome means for chargebacks.

What each layer controls

NMI defines the fields and codes. NMI for WooCommerce records them on the order (free on every plan) and shows the customer a message. Your processor or reseller controls what sits behind the 4xx codes: which card brands are enabled, whether a feature is turned on for your merchant ID, and whether the account is active. Confirm those with your processor, not with the plugin.

If you use the Authorize.Net compatible mode

The emulator wraps NMI results in Authorize.Net style fields, so you may see different wording and codes. The compatible mode error guide translates those messages back to the NMI result.

For the older overview, see NMI gateway response codes. For card network reasons that sit behind a generic 2xx decline, see credit card decline codes. Everything in this cluster is gathered in the troubleshooting center.

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

Related guides: NMI Plugin Bad Auth Response: Causes and Fixes in WooCommerce | Decline Code 57: Transaction Not Permitted to Cardholder | Decline Code 54: Expired Card in WooCommerce and NMI

Last reviewed November 2026.

NMI for WooCommerce

Fix failed payments faster

See the troubleshooting documentation for logs, order notes and next steps.

Open troubleshooting docsSee pricing

Gateway response is saved on every order, free.