How can I test responseCodes using additionalData?

A green triangle with an exclamation point in it.

Do you have the right user role?

Please check whether you have the following user role:

  • Manage Test Cards

If you don't have the required user role, please reach out to your admin.

To test different responseCodes, you can do a normal test payment request to /payments using one of our test cards, and adding an additionalData object containing a RequestedTestAcquirerResponseCode element. In this object you specify the desired responseCodes.

For example, if you want to get responseCode 6 - Expired Card you can do a payment request like the following:

"amount": {
"currency": "USD",
"value": 1000
"paymentMethod": {
"type": "scheme",
"expiryYear": "2030",
"expiryMonth": "03",
"cvc": "737",
"number": "4111111111111111",
"holderName": "J. De Tester"
"additionalData": {
"RequestedTestAcquirerResponseCode": 6
"reference": "ref213784568978023465896",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
Check our result code testing page for a detailed guide. For all possible responseCodes refer to Adyen response codes.

If testing using the additionalData object is not available for you, you can also test responseCodes using the cardholder name.

Learn more

Find more details on this topic.

Go to Adyen Docs
The illustration of support agent wearing a headset.

Do you need additional help?

Contact our support team

Send us the details of your issue by adding images or screenshots.

Submit a request