Adyen Test Cards API
Adyen Test Cards API
Adyen Test Card Service API generates test card numbers for sandbox payment testing — covers various issuer response scenarios.
Covers diverse issuer responses (approved, declined, 3DS challenge)
Sandbox-only
Register an Adyen test account; use the published static test card numbers (e.g. 4111111111111111 for approved) or call the API to dynamically generate.
Uptime · 30-day window
About this API
All payment processors provide test cards; Adyen is no exception. Test Card Service lets you trigger various scenarios in sandbox with different card numbers: successful authorization, various failures (insufficient funds, card lost, suspected fraud), forced 3DS challenge, partial capture, full refund, etc. Developers use these test cards in e2e tests to ensure their payment integration handles all issuer-response scenarios correctly. Adyen also provides "magic amounts" — e.g. amount 11 = declined, amount 22 = 3DS challenge — so you don't have to switch card numbers each time.
What you can build
- 1Run end-to-end payment tests in CI/CD
- 2Test 3DS authorization flows
- 3Test authorization failure / fraud / refund scenarios
- 4QA acceptance testing
Strengths & limitations
Strengths
- Covers diverse issuer responses (approved, declined, 3DS challenge)
- Free + unlimited (sandbox environment)
- Bundled with Adyen test merchant account
Limitations
- Sandbox-only
- Cannot fully test hardware POS flows (need physical test terminals)
Example request
curl https://www.adyen.help/hc/en-us/community/topics/<endpoint>Getting started
Register an Adyen test account; use the published static test card numbers (e.g. 4111111111111111 for approved) or call the API to dynamically generate.
FAQ
Can test cards be used in production?+
No — test cards only work in sandbox (test.adyen.com); production rejects them.
Technical details
- Auth type
- unknown
- Pricing
- unknown
- Protocols
- REST
- SDKs
- javascript, java, python
- Response time
- 179 ms
- Last health check
- 5/12/2026, 7:36:32 AM
More from Adyen
Adyen Balance Control API moves funds between merchant accounts within Adyen — for centralized fund management and reconciliation.
Adyen BIN Lookup API returns card info from the first 6-8 digits of a PAN (BIN) — issuing bank, country, card type (debit/credit), product type.
Adyen Checkout API is the modern payments API for new integrations — pairs with frontend drop-in components, auto-adapting to 250+ payment methods.
Adyen Checkout Utility API provides auxiliary operations for Checkout API — originKey generation, payment methods listing, status queries.
Adyen Data Protection API handles GDPR/privacy operations — right-to-be-forgotten, PII deletion, shopper data export.
Adyen Payments API is its flagship payment-processing API — authorize, capture, and refund across cards, local payment methods, and wallets.
Adyen Payouts API moves funds from a merchant account out to external bank accounts or cards — supports multiple local clearing rails.
Adyen Recurring API manages subscription card tokens — store, look up, and reuse tokens for subsequent card-not-present payments.