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

NMI gateway response codes, and what each rejection means

A gateway error and a bank decline look identical in your store. One is yours to fix, the other is not.

A gateway rejection and a bank decline arrive at your store looking identical. They are not. One means the customer bank said no, the other means your request never got that far. Reading the difference saves an afternoon of blaming the wrong party.

Two layers, two vocabularies

The gateway answers first with a status: approved, declined, or error. Behind that sits the issuer response, which is the bank actual answer. A gateway error almost always means your request was malformed, unauthorised or asking for something the account cannot do. A gateway decline is usually the bank talking through the gateway.

The responses you will actually see

What you seeWhat it meansWho fixes it
Transaction declinedThe issuer refused. No further reason is given to the merchantThe cardholder
Invalid credentials or authentication failedWrong API key, or a key from the other environmentYou, in the plugin settings
Transaction type not allowedThe MID is not enabled for that operation, commonly ACH or recurringYour ISO or acquirer
Invalid amountZero, negative, or wrong decimal handling for the currencyYou, usually a currency formatting bug
Duplicate transactionSame card and amount inside the duplicate windowYou, by preventing double submits
Invalid card number or expiryThe data failed validation before it reached the bankThe customer, at the form
Vault or customer not foundThe stored token no longer exists in the vaultYou, by re-collecting the card
AVS or CVV rejectionYour own filter refused a transaction the bank approvedYou, in the fraud rules

The one that catches everybody

An AVS or CVV rejection is not a decline. The issuer approved the authorisation, your rules then voided it. In the gateway history it can look like a failed sale while the cardholder sees a pending charge that disappears a few days later. If customers report a charge for an order you never received, look here first, and read our guide to the response letters.

Sandbox does not prove the account works

Sandbox is a simulator. It will approve a transaction type your live MID has never been enabled for. Before launch, run one small live sale for every method you intend to offer, then refund it. That is the only test that proves the account, not the code.

Where to read the response

Every attempt writes the gateway text, the AVS letter and the CVV letter into the WooCommerce order notes, so you can answer a customer without opening the gateway at all. The troubleshooting guide shows where, and what to send support if it is still unclear.

Official NMI response_code table: approvals and declines (100 to 264)

The classic Payment API returns response (1 approved, 2 declined, 3 error) and a numeric response_code. These are the documented codes and wording. NMI documents nothing outside this table.

CodeOfficial wordingPractical note
100Transaction was approved.Success
200Transaction was declined by processor.Generic decline
201Do not honor.Customer calls the bank
202Insufficient funds.Ask for another card
203Over limit.Lower the amount or use another card
204Transaction not allowed.Issuer rule
220Incorrect payment information.Re-enter details
221No such card issuer.Check the card number
222No card number on file with issuer.Check the card number
223Expired card.Ask for a new expiry
224Invalid expiration date.Re-enter the date
225Invalid card security code.CVV problem
226Invalid PIN.Applies to PIN transactions
240Call issuer for further information.Customer calls the bank
250Pick up card.Do not retry
251Lost card.Do not retry
252Stolen card.Do not retry
253Fraudulent card.Do not retry
260Declined with further instructions available. (See response text)Read responsetext
261Declined-Stop all recurring payments.Stop recurring charges on this card
262Declined-Stop this recurring program.Stop this subscription
263Declined-Update cardholder data available.Updated card data exists
264Declined-Retry in a few days.Wait before retrying

Official NMI response_code table: gateway and processor errors (300 to 461)

Codes in the 3xx range are gateway rejections. The 4xx range covers processor errors and merchant setup problems. This grouping is a reading aid, not an NMI statement.

CodeOfficial wordingPractical note
300Transaction was rejected by gateway.Read responsetext: bad field, credentials, permissions or duplicate
400Transaction error returned by processor.Processor-side error
410Invalid merchant configuration.Contact your gateway provider
411Merchant account is inactive.Contact your gateway provider
420Communication error.Retry later; check status
421Communication error with issuer.Retry later
430Duplicate transaction at processor.Processor-side duplicate
440Processor format error.Check the request data
441Invalid transaction information.Check the request data
460Processor feature not available.Feature may not be enabled for the account
461Unsupported card type.Card brand not enabled on the account

NMI also documents a rate limit response, “Rate limit exceeded”, with response_code=301. Do not retry immediately.

How to read responsetext and REFID

The numeric code tells you the family of problem. The responsetext tells you the specifics, and it varies. For a 300, the text might name a missing field, a permission problem or a duplicate, so do not assume 300 always means one thing. NMI documents numeric codes with free-form text, so avoid matching exact strings in your own code.

Most errors carry a REFID. Give that reference to your gateway or reseller support, along with the transaction ID, the time in UTC and the order ID. It saves a round of questions.

  1. Check response: 1, 2 or 3.
  2. Find response_code in the tables above.
  3. Read responsetext in full, including any REFID.
  4. For 2xx, treat it as an issuer decline and use the decline codes guide.
  5. For 3xx and 4xx, check credentials, fields and account setup before blaming the customer.

Issuer codes such as 05 or 51 are not NMI response codes, though they can appear in processor text. With the NMIWP plugin, the raw response code lands in the order notes (Free plan). For a quick search, use the NMI response code lookup.

NMI response code questions

Answers for common error searches.

What are NMI error codes?
NMI returns a numeric response_code from a documented table: 100 approved, 2xx declines, 300 gateway rejection and 4xx processor or merchant setup errors.
What are NMI processor response codes?
They are the issuer or processor values behind a decline. NMI returns its own 2xx and 4xx codes, and raw processor text may appear in responsetext. The processor vs gateway guide above explains the layers.
Is there an NMI code for a BIN blacklist?
NMI does not document a dedicated code for it. It shows up as a gateway rejection, so read responsetext and the BIN blacklist guide above.
What should I do with code 300?
Read responsetext. It can mean missing fields, credentials or permissions, or a duplicate. Check the NMIWP log for the exact response and note any REFID.
NMI for WooCommerce

Read the gateway response, not a guess.

The full response, AVS letter and CVV letter land on the order, ready for support to answer in one reply.

Troubleshooting guideSee pricing

Free on WordPress.org. Pro from $49 per year, lifetime from $149.