> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vindicia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PaymentMethodValidationResponse

Defines the response returned by the Vindicia Retain addPaymentMethods API.

**Note:**

The `PaymentMethodValidationResponse` array returns only PaymentMethods with errors; PaymentMethods processed without errors have no status values returned. (An empty array means there were no errors.) Use this array to take actions on the failures. PaymentMethods with errors are not stored by Retain. Correct all errors and resubmit the PaymentMethod(s) to Retain for use in transaction processing.

`PaymentMethodValidationResponse` values are summarized in the table below.

| Data Members | Data Type | Description |
| - | - | - |
| `code` | int | Numeric code indicating the type of issue that was encountered. For more information, see [Retain Return Codes](retain.return_codes). |
| `description` | string | Description of the issue encountered. The `description` is not saved by Vindicia Retain, and has no size limit. The meaningful data is usually located within the first 512 bytes. |
| `paymentMethodId` | string | Your unique ID for the submitted PaymentMethod. |
| **Parent topic:**[The PaymentMethod Object](../topics/payment_method_object) | | |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.