Advertisement

Authorize.net Test Card Numbers

Card numbers for the Authorize.net sandbox, and the billing ZIP codes and card codes that trigger declines, AVS responses, CVV results and partial authorizations.

Advertisement

Sandbox test card numbers

These are approved unless you use one of the trigger values below.

BrandNumberResultCopy
American Express3700 000000 00002Approved (unless a trigger is used)
China UnionPay6221 4990 5336 0818Approved (unless a trigger is used)
China UnionPay6262 3200 0200 0067Approved (unless a trigger is used)
China UnionPay6284 4800 0000 0008Approved (unless a trigger is used)
Discover6011 0000 0000 0012Approved (unless a trigger is used)
JCB3088 0000 0000 0017Approved (unless a trigger is used)
Diners Club / Carte Blanche3800 000000 0006Approved (unless a trigger is used)
Visa4007 0000 0002 7Approved (unless a trigger is used)
Visa4012 8888 1888 8Approved (unless a trigger is used)
Visa4111 1111 1111 1111Approved (unless a trigger is used)
Mastercard5424 0000 0000 0015Approved (unless a trigger is used)
Mastercard2223 0000 1030 9703Approved (unless a trigger is used)
Mastercard2223 0000 1030 9711Approved (unless a trigger is used)

Source: Authorize.net Developer Center – Testing guide, Authorize.net Developer Center – Sandbox account · checked October 2026. Sandbox only — these numbers never work for real payments.

Advertisement

How Authorize.net test cards work

The Authorize.net sandbox is a separate environment with its own API login ID and transaction key. If you mix sandbox and production credentials you get response reason code 13. The sandbox only simulates the card networks, so no real payment is ever processed.

Keep the sandbox account in Live Mode. In Test Mode, transactions are not stored and come back with a transaction ID of 0, so you can’t test refunds, voids or reporting.

Use any expiration date after today. If a card code is required, any three digits work (four for American Express). Results are triggered by the billing ZIP code and the card code, not by the card number.

ZIP codes that trigger declines and AVS responses

Send one of these billing ZIP codes with any test card. ZIP 46282 returns a general bank decline (response code 2, “This transaction has been declined”).

Billing ZIPAVS response
46203E (AVS data provided is invalid or AVS is not allowed for the card type that was used)
46207R (The AVS system was unavailable at the time of processing)
46204G (The card issuing bank is of non-U.S. origin and does not support AVS) — not applicable to American Express
46209U (The address information for the cardholder is unavailable)
46208S (The U.S. card issuing bank does not support AVS)
46205N (Address: No Match, ZIP Code: No Match)
46201A (Address: Match, ZIP Code: No Match)
46217Z (Address: No Match, ZIP Code: Match)
46211W (Address: No Match, ZIP Code: Matched 9 digits) — not applicable to American Express
46214X (Address: Match, ZIP Code: Matched 9 digits) — not applicable to Visa or American Express

Card codes and partial authorizations

Advertisement

Testing Authorize.net payments step by step

  1. Create a sandbox account and copy its API login ID and transaction key.
  2. Submit an authorization with 4111 1111 1111 1111 and any future expiry date to test approval.
  3. Set the billing ZIP to 46282 to get a general bank decline (response code 2).
  4. Use the AVS ZIP codes and card codes 900–904 to test your AVS and CVV handling.
  5. Test refunds and voids with the transaction IDs from Live Mode sandbox transactions.

Common errors and fixes

Response reason code 13
Production credentials used against the sandbox, or the other way around.
Transaction ID is 0
The sandbox account is in Test Mode. Switch it to Live Mode.
Amount triggers ($70.xx) don’t work
They were deprecated in 2011 and may stop working without notice. Use the ZIP code triggers.
No 3D Secure test cards
The testing guide doesn’t document 3DS cards for the sandbox.

Sources

Every number on this page was copied from Authorize.net’s official documentation and passes the Luhn check. Checked October 2026; gateways change their test data from time to time, so if a number stops working, check the source:

Test cards only work in Authorize.net’s sandbox or test mode. To test your own form validation before a request reaches the gateway, use our card number generator and validator. Never use real customer cards in test environments.

Frequently asked questions

What is the Authorize.net test card number?

4111 1111 1111 1111 (Visa) or 5424 0000 0000 0015 (Mastercard) with any future expiration date.

How do I get a declined transaction in the Authorize.net sandbox?

Use billing ZIP code 46282. The transaction returns response code 2, “This transaction has been declined.”

How do I test CVV responses?

Send card code 900 for a match (M), 901 for no match (N), 902 for S, 903 for U and 904 for not processed (P).

Can I use these test cards on another gateway?

Usually not. Each gateway only recognises its own documented test numbers in its own sandbox. Some numbers, such as 4111 1111 1111 1111, appear in several lists, but the results they trigger differ. For format-only testing on your own forms, use our card generator.

Related tools

Advertisement