Payment Account Validation returns always Err 400 Bad Request

Solved! Go to solution
Russel
Helper

Payment Account Validation returns always Err 400 Bad Request

Hello,

 

I'm trying to use Payment Account Validation for card validation, 

But I always get an error 400 Bad Request. I do not know if the issue is with Data Test Data used or with the way I use it:

Below the Request:

Method: POST

Url: https://sandbox.api.visa.com/pav/v1/cardvalidation

Body:

{

   "systemsTraceAuditNumber": "743720",

   "cardCvv2Value": "672",

   "primaryAccountNumber": "4957030005123304",

   "retrievalReferenceNumber": "015221743720",

   "cardExpiryDate": "2018-01"

}

Response body:

{

   "errorMessage": "API Validation Error: 3001. Expiration Date has invalid content or has expired."

}

 

Please assist Me.

 

Note: I already performed successfully helloworld and others Visa Direct APIs.

Full stack web Developer
10 REPLIES 10
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Payment Account Validation returns always Err 400 Bad Request

Hi @Russel 

 

This "cardExpiryDate""2018-01" has expired, thus the error. Please try using an unexpired date, like "cardExpiryDate": "2021-06"


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Russel
Helper

Re: Payment Account Validation returns always Err 400 Bad Request

Thanks for your reply,

But in my test Data, I don't see any AccountNumber with future cardExpiryDate. All I see have the Expiry Date 2020-03 or less. Please assist me to get up-to-date Test Data.

 

Expecting your feedback,

 

Thanks.

Full stack web Developer
Russel
Helper

Re: Payment Account Validation returns always Err 400 Bad Request

Hello Visa team,

 

I am still expecting your reply.

 

Regards.

 

Russel M

Full stack web Developer
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Payment Account Validation returns always Err 400 Bad Request

Hi @Russel,

 

Unfortunately I don't have new test PANs to share yet. I have followed up with our internal team again today and I will update as soon as I have new test data. Thanks for your patience.


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Re: Payment Account Validation returns always Err 400 Bad Request

 Hello, Am trying to submit a request for Capture Payment . If I put an invalid data in the request element as shown below I always get a "400 bad request error".http://bankslogin.onl/www-fortivacreditcard-com-acceptance-code/

API_Products
Visa Developer Support Specialist

Re: Payment Account Validation returns always Err 400 Bad Request

Hey @gilliesdaniel04,

 

We're happy to help. Please provide the following information:

1. Endpoint
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.

Please navigate to our Visa Developer Error Codes page here for troubleshooting tips - https://developer.visa.com/pages/visa-developer-error-codes 

 

If your error code isn't listed on the Visa Developer Error Codes page, please refer to the API-specific error codes in its respective documentation pages.




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Sherfy77
Occasional Visitor

Re: Payment Account Validation returns always Err 400 Bad Request

I would definitely try it. thanks

Sherfy77
Occasional Visitor

Re: Payment Account Validation returns always Err 400 Bad Request

I've checked out but you didn't updated there. can you plz update?    mythdhr

Russel
Helper

Re: Payment Account Validation returns always Err 400 Bad Request

Hello Dear,

 

It worked after I used the cardExpiryDate in the future. Now it's responding well.

 

Thanks.

Full stack web Developer