Address Verification System (AVS)

Configure and use Address Verification Service (AVS) in MXmerchant to detect suspicious card transactions—fields, API settings, examples, and auto‑decline behavior.

AVS (Address Verification Service) is a fraud-mitigation tool that checks whether the billing address (street address and/or postal code) provided by the cardholder matches the address on file with the card issuer. This helps reduce instances of fraudulent or unauthorized transactions, and increases confidence in approving card payments.

Key benefits:

  • Helps reduce chargeback risk and fraud losses
  • Adds a validation layer before settlement
  • Enables merchants to make better decisioning (accept, decline, or flag)
  • Often used in card-not-present (CNP) contexts (e-commerce, MOTO, etc.)

Eligibility & Requirements

📘

AVS fields are required only when AVS requirements are enabled under Settings → Loss Prevention in the MX™ Merchant Portal. If AVS fields are included in a payment request, the AVS check will run regardless of this setting. The configuration simply determines whether these fields are mandatory and how mismatches are handled (for example, auto-decline or manual review).

RequirementDescription
Billing Address CollectionMust collect at least the street address and postal code fields during checkout.
Issuer SupportOnly available when the card-issuing bank supports AVS.
Merchant EnablementAVS settings must be configured via the POST https://sandbox.api.mxmerchant.com/checkout/v3/fraudsetting?merchantId=XXXXXXXXX API endpoint.
Response HandlingMerchants must be able to interpret AVS result codes and apply decision logic accordingly.
Data ComplianceEnsure all collected address data complies with privacy and data protection regulations.

How It Works

  • Enable AVS Requirements: Activate AVS requirements for the merchant via the Loss Prevention settings in the MX™ Merchant Portal.
  • Configure AVS Requirements: Define the specific AVS rules for the merchant, including whether fields are required and how mismatches should be handled (auto-decline or manual review).
  • Create Payment with AVS details: The cardholder provides their billing address at checkout via the POST /checkout/v3/payment API endpoint. The merchant’s system submits the address along with the authorization request.
  • Verify Address with Issuer: The issuing bank compares the submitted billing address and postal/ZIP code with the cardholder’s records. A payment’s AVS (Address Verification Service) compares the billing street and postal code you send to the issuer’s records. In payment requests, AVS data lives inside the cardAccount object as:
    • avsStreet
    • avsZip
  • Receive AVS Result: The issuer returns an AVS result code indicating the match status for street address and postal/ZIP code.

Based on the AVS result, the payment processor determines whether to approve, flag, or decline the transaction.


Configure AVS requirements for a Merchant

Use the POST https://sandbox.api.mxmerchant.com/checkout/v3/fraudsetting?merchantId=XXXXXXXXX API endpoint to configure merchant-specific AVS and fraud prevention rules programmatically.

Replace merchantId with the relevant merchant ID.

The settings determine whether AVS fields are required for keyed and swiped transactions and whether mismatches are auto‑declined:

NameTypeDescription
keyedAvsAddressBooleanFor manually keyed cards, require street address.
keyedAvsZipBooleanFor manually keyed cards, require ZIP/postal code.
keyedCvvBooleanFor manually keyed cards, require CVV.
swipedAvsAddressBooleanFor swiped cards, require street address.
swipedAvsZipBooleanFor swiped cards, require ZIP/postal code.

AVS response codes

The AVS codes shared in the response, indicate the result of an address verification check performed during a payment transaction. These codes help merchants understand whether the billing address and postal code provided by the cardholder match the issuer’s records, and guide appropriate actions such as approval, review, or decline of the transaction.

AVS (Address Verification Service) Scenario IDs

IDDescription
AAddress only matches
BAddress only matches (International)
CNo match (International)
DAddress and postal code match
YAddress and postal code match
XAddress and postal code match
ZPostal code only matches
GService unavailable (Global)
NNo match
RRetry — system unavailable, please retry transaction
UService unavailable
0Complete address match
2Partial address match

If Loss Prevention is set to Auto‑Decline AVS mismatches, the response codes E, G, I, R, S, U, 3, 4 are exempted from auto‑decline and a transaction may still be approved.


Test scenarios

The following tables provide test card numbers and associated AVS, CVV, and EMS scenarios that can be used to validate your payment platform’s handling of various transaction conditions. These scenarios help verify:

  • How the system responds to address and CVV verification results
  • Partial approvals and decline handling
  • Fraud scoring or EMS (Enhanced Merchant Screening) responses
  • Transaction limits and approval percentages

Note: These card numbers are for testing purposes only and should not be used for actual payments. Each table corresponds to a specific card brand — Discover, Mastercard, AMEX, and VISA — and includes the expected behavior for AVS, CVV, and EMS checks where applicable.

Card Testing Scenarios — Discover

Card NumberAVSCVVMax AmountApproved %
6011 1111 1113 1438YM$29050%

Card Testing Scenarios — Mastercard

EMS (Enhanced Merchant Screening) simulates risk scoring or fraud evaluation. It helps verify how your platform reacts to fraud scores, reason codes, and approval overrides.

Card NumberAVSCVVMax AmountApproved %EMS Status
5100 0000 0000 0123MM$30100%✅ True (40 / 2)
5100 0000 0000 0131MN$110100%✅ True (120 / 2)
5100 0000 0000 0149NM$290100%✅ True (300 / 2)
5100 0000 0000 0156NN$360100%✅ True (370 / 2)
5211 1111 1113 1438MM$29050%❌ None / —

Card Testing Scenarios — AMEX

Card NumberAVS ResponseCVV ResponseMax AmountApproved Amount % (Partial Approval)
3777 7777 7777 9636YY$29050%

Card Testing Scenarios — VISA

Card NumberAVS CodeCVV CodeMax AmountApproved Amount % (Partial Approval)
4100 0000 0000 0019AN190100%
4100 0000 0000 0126BM180100%
4100 0000 0000 0266CP160100%
4100 0000 0000 0399DS490100%
4100 0000 0000 0761GU110100%
4100 0000 0000 1017NX170100%
4100 0000 0000 1264R0140100%
4100 0000 0000 1512U1120100%
4100 0000 0000 212202220100%
4100 0000 0000 237923290100%
4100 0000 0000 18010M10100%
4100 0000 0000 20490M490100%
4111 1111 1113 1838AX29050%

Troubleshooting

  • Approved despite Auto‑Decline setting: Check if the AVS result is on the exempt list above.
  • Payment rejected for missing AVS fields: Verify Loss Prevention settings for keyed/swiped requirements.
  • High AVS mismatch rate: Confirm you are sending billing address details (not shipping), and normalize address formats.

See also


Open / Pending items to be discussed

  • Need to confirm how to link Loss Prevention > setting to enable AVS requirements , since this is UI . Although the text is mentioned as a note, but how to add more context about it.
  • Need to add “Configure AVS requirements for a Merchant” in API Tryouts
  • Links for Refund API tryout and Payments lifecycle

© 2025 Priority Technology Holdings LLC. All rights reserved.