If you send invalid data in a payment request, the payment is not processed and you receive a 422 HTTP status code.
The API response returns additional information about the invalid data in the error_codes object. For more information, see Error codes.