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

AVS and CVV response codes, and which ones are worth declining

Two letters come back with every card not present sale. Treating them as a simple pass or fail turns away good customers and still lets fraud through.

Two small fields travel with every card not present authorisation, and both come back with a one letter answer. AVS compares the billing address the shopper typed against the address the bank holds. CVV compares the code on the card. Neither can stop a determined fraudster, and neither should be ignored, because how you treat the answers decides both your fraud rate and your interchange.

What AVS actually checks

Only two things: the numeric part of the street address, and the postcode. Not the city, not the state, not the name. In the United States it checks the house number and the ZIP. Outside the United States, support is patchy: many European and Asian issuers return no useful answer at all, which is the single most important fact about AVS for an international store.

The response codes worth knowing

CodeMeaningUsual treatment
YAddress and postcode both matchAccept
X or DFull match including nine digit ZIPAccept
AAddress matches, postcode does notAccept for low value, review for high
Z or WPostcode matches, address does notReview
NNeither matchesDecline or hold for review
U, G, SIssuer does not support AVS, or is foreignDo not decline on this alone
RSystem unavailable, retryDo not decline

The mistake that costs real money is declining U and G. Those are not failures, they are silence. Decline them and you turn away most international cards.

CVV results

The answers are simpler. M means matched. N means did not match. P means not processed. S means the merchant indicated the card has no code. U means the issuer is not certified.

An N on CVV is a much stronger fraud signal than an N on AVS, because a physical card thief has the code and a data thief usually does not. Most stores decline outright on CVV N, and that is a defensible default.

The rule that catches people out: you may not store the CVV after authorisation, ever, not even encrypted. That is why a saved card charged later has no CVV result at all, and why you should not use a missing CVV as a fraud signal on repeat billing.

The interchange angle

Sending address data is not only a fraud control. On card not present transactions the networks require AVS data for the transaction to qualify for the better interchange categories. Omit it and the sale downgrades, silently, on every order. For a store doing 40,000 a month that can be several hundred pounds a year for two fields you already collect at checkout.

Building a policy that does not punish good customers

The useful mental model is a score, not a gate. Combine the AVS letter, the CVV letter, the order value and one or two other signals, then decide.

  • CVV N: decline, whatever else is true.
  • AVS N with a domestic card and a high value: hold for review, do not auto decline. Genuine customers move house and forget.
  • AVS U or G: ignore the AVS result and lean on other signals. This is the normal answer for most non US cards.
  • AVS Z with a low value physical goods order: accept, and let the address mismatch show on the pick list.
  • Billing and shipping in different countries plus AVS N: review every time.

What AVS will never catch

Any fraudster with the full card record has the billing address, so account takeover and stolen data both sail through. AVS catches the lazy end of the market. For everything else you need velocity limits, device signals, and a hold on the orders whose profile does not fit your normal customer. Our fraud rules page lists the checks worth turning on first.

Declined with AVS Y and CVV M: “Pick up card”

A gateway response such as Pick up card - SF | AVS: Y | CVV response: M looks contradictory, but it is not. AVS Y and CVV M mean the address and the security code both matched. The decline came from the card issuer: “Pick up card” (response code 04, or 07 for a special condition) is what a bank returns when the card is flagged, usually because it was reported lost or stolen or is blocked for suspected fraud. Loosening your AVS or CVV rules will not change the result.

Do not retry the card. Ask the customer to call their bank or to pay with another card, and treat repeated attempts on the same order as a fraud signal.

A short checklist

  1. Send AVS and CVV on every card not present authorisation, without exception.
  2. Decline on CVV N.
  3. Never decline on AVS U, G, S or R.
  4. Review, do not decline, on AVS N above your average order value.
  5. Log both letters against the order so a dispute can be answered later.
  6. Recheck your rules once a quarter against what actually charged back.

AVS response codes at a glance

AVS compares the billing address and ZIP the customer typed with what the card issuer has on file. Letters vary slightly by processor, so check the exact response your gateway shows. These are the standard US values.

AVSWhat it meansUsual reading
YAddress and ZIP both matchStrong match
XAddress and 9-digit ZIP matchStrong match
AAddress matches, ZIP does notPartial; often a ZIP typo
ZZIP matches, address does notPartial; check the street
W9-digit ZIP matches, address does notPartial
NNeither address nor ZIP matchesWeak; review the order
UIssuer unavailable or not supportedNo information
RRetry, issuer system unavailableNo information; try again
SService not supportedNo information
GNon-US issuer does not participateNo information; common for international cards
B, C, D, I, M, PInternational variantsVary by processor; check your list

For one-letter deep dives, see AVS codes Y, Z, A and X, AVS code N and AVS codes R, U, S and G.

CVV response codes at a glance

CVV checks the 3 or 4 digit security code. The gateway returns one letter in cvvresponse. The meaning of each letter is also covered in CVV response codes M, N, P and U.

CVVWhat it meansWhat to do
MMatchGood
NNo matchAsk the customer to re-enter; do not ship on repeat failures
PNot processedTreat as no information; try again
SMerchant indicated the CVV is not present on the cardCheck that the form sent the code
UIssuer not certified or has not provided keysNo information from the issuer

When the issuer refuses on the security code, NMI uses 225 “Invalid card security code.” Causes and fixes are in CVV2 failure declines.

Ship or hold? A rule-based way to decide

AVS and CVV are signals, not verdicts. The issuer already approved or declined the payment. These letters only help you judge fraud risk on an approved order. Use a rule you wrote down, not a gut feeling.

  1. Y or X with CVV M: ship under your normal process.
  2. A, Z or W with CVV M: look for an obvious typo and compare billing and shipping. Ship if the customer history is clean.
  3. AVS N with CVV M, or any AVS with CVV N: hold and contact the customer by email before shipping.
  4. U, R, S, G or CVV P: no information. Judge on other signals such as order size, new customer, a freight forwarder address or a mismatched email domain.
  5. AVS N and CVV N together on a high-value order: hold, or cancel and refund.

If your gateway declines on these results, that is a rule on your side. Read do not honor due to AVS/CVV settings to separate your gateway rule from an issuer decline. Confirm chargeback and card-brand rules with your processor.

Reading the result in a WooCommerce order note

An order note can look like “pick up card – sf | avs: y | cvv response: m”. The first part is the processor text for the transaction. The AVS and CVV values are separate fields. A Y and an M beside a decline mean the address and the security code were fine and the issuer refused for another reason, so do not blame the customer’s address. The suffix after the text varies by processor; ask your processor if the wording matters.

With the NMIWP plugin, the auth code, transaction ID, AVS and CVV results and the raw response code go into the order notes on the Free plan. The walk-through is in reading AVS and CVV results in WooCommerce order notes. Automatic AVS and CVV decline rules in the plugin are on the roadmap, not shipped. See fraud rules and AVS for the current state.

AVS and CVV questions

Quick answers for the searches we see most.

What do AVS codes mean?
Each letter tells you how well the billing address and ZIP matched the issuer record. Y is a full match, A and Z are partial, N is no match and U, R, S and G mean no usable answer.
Which CVV response codes should worry me?
N is a mismatch. P and U give no information. M is a match. A CVV mismatch plus an address mismatch is the combination to hold for review.
Can an order be approved with AVS N?
Yes. Many issuers approve and leave the decision to the merchant. It is your risk call, unless your processor or gateway enforces a rule that declines it.
Why do international cards return U or G?
Many non-US issuers do not support US-style AVS, so the gateway shows a no-information code. Do not treat it as fraud on its own.
Why is a card declined when AVS is Y and CVV is M?
The issuer declined for a different reason, such as funds, limits or a bank rule. The decline codes guide helps find the cause.
NMI for WooCommerce

Screen orders without losing good ones.

Set AVS, CVV and velocity rules per order value, and hold the borderline orders for review instead of declining them.

See fraud rulesSee pricing

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