API Validation Error

Solved! Go to solution
mchouaha
Regular Visitor

API Validation Error

Hello everyone,

I am new to Visa Direct API and I am having an server issue when I make a call to this end-point:

https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pushfundstransactions

The server responded with this error:

{
"errorMessage": "API Validation Error: 3001. Mandatory field 'localTransactionDateTime' is missing or has invalid content."
}

The same error can be found on this request sample from the visa developer page: Funds Transfer API 

 

The request body is

Screenshot 2023-08-04 at 18.56.52.png

 

 
 
 
 
 
 
 
 
 
 
As you can see, localTransactionDateTime is the right date-time format
"localTransactionDateTime": "2019-08-21T12:15:39",
 
 
The request header is:
Screenshot 2023-08-04 at 18.59.41.png
 
Furthermore, I was able to test the connectivity of the Visa Direct server by calling: and the server response was succesful.

I have seen other people having the same issue but I do not know how to resolve this issue ?
API Validation Error:3001. Mandatory field 'DateAndTimeLocalTransaction' is missing/invalid content  

I heard that the X-transaction-ID has be to added to the header but I do not know how to find this variable.
 
Can someone help please ?
If you need more info, please let me know.

 

Thank You for Any Help You May Provide.

2 REPLIES 2
mchouaha
Regular Visitor

Re: API Validation Error

Problem solved !

The issue was the date format which was wrong.
I was using a past date:
2019-08-21T12:15:39

Instead I used today date and it works fine 😉
2023-08-04T12:15:39

Today date is 4 Aug 2023.

Thanks. Problem solved.
API_Products
Visa Developer Support Specialist

Re: API Validation Error

Hi @mchouaha,

 

Thanks for sharing the solution with us. Excellent job 😀 




Thanks,

Diana



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