HTTP/1.1 422 Unprocessable Entity
Content-Type: application/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<transaction_error>
<error_code>invalid_card_number</error_code>
<error_category>declined</error_category>
<customer_message lang="en-US">Your card number is not valid. Please update your card number.</customer_message>
<merchant_message lang="en-US">The credit card number is not valid. The customer needs to try a different number.</merchant_message>
</transaction_error>
<error field="transaction.account.billing_info.credit_card_number" symbol="invalid" lang="en-US">is not valid</error>
<transaction href="https://api.recurly.com/v2/transactions/abcdef1234567890">
<uuid>abcdef1234567890</uuid>
<action>purchase</action>
<amount_in_cents type="integer">100</amount_in_cents>
<tax_in_cents type="integer">0</tax_in_cents>
<currency>USD</currency>
<status>declined</status>
<reference nil="nil"></reference>
<test type="boolean">true</test>
<voidable type="boolean">false</voidable>
<refundable type="boolean">false</refundable>
<transaction_error>
<error_code>invalid_card_number</error_code>
<error_category>hard</error_category>
<merchant_message>The credit card number is not valid. The customer needs to try a different number.</merchant_message>
<customer_message>Your card number is not valid. Please update your card number.</customer_message>
</transaction_error>
<cvv_result code=""></cvv_result>
<avs_result code=""></avs_result>
<avs_result_street nil="nil"></avs_result_street>
<avs_result_postal nil="nil"></avs_result_postal>
<created_at type="datetime">2011-04-30T12:00:00Z</created_at>
<details>
<account>
<account_code>verena</account_code>
<first_name nil="nil"></first_name>
<last_name nil="nil"></last_name>
<company nil="nil"></company>
<email nil="nil"></email>
<billing_info type="credit_card">
<first_name nil="nil"></first_name>
<last_name nil="nil"></last_name>
<address1 nil="nil"></address1>
<address2 nil="nil"></address2>
<city nil="nil"></city>
<state nil="nil"></state>
<zip nil="nil"></zip>
<country nil="nil"></country>
<phone nil="nil"></phone>
<vat_number nil="nil"></vat_number>
<cc_type>visa</cc_type>
<year type="integer">2011</year>
<month type="integer">4</month>
<first_six>411111</first_six>
<last_four>1111</last_four>
</billing_info>
</account>
</details>
</transaction>
</errors>