report API - getting response 400 bad request invalid Parameter

dragonflycustom
Occasional Visitor

report API - getting response 400 bad request invalid Parameter

Hello,

 

I started working with the Visa API, I would like to use API for getting a list of payments for specific dates , I understand the API for that is the Report API.

when I run a GET query to sandbox from postman  I get "InvalidParameters"

 the URL I send is https://sandbox.api.visa.com/visadirect/reports/v1/transactiondata?startDate=2024-01-01&endDate=2024...

 

Authorization used is Basic Auth.

 

in the API reference there is no example to a AI query including the parameters :

https://developer.visa.com/capabilities/visa_direct/reference#tag/Reports-API/operation/TransactionD...

 

Thanks.

2 REPLIES 2
SyedSa
Community Moderator

Re: report API - getting response 400 bad request invalid Parameter

Hi @dragonflycustom, Thank you for reaching out. An agent will look into this and get back to you soon. Until then, if any community member knows a solution, feel free to reply in this thread. 

dragonflycustom
Occasional Visitor

Re: report API - getting response 400 bad request invalid Parameter

Hi,

 

Thank you, meanwhile I was able to change the date format in the query to this:

https://sandbox.api.visa.com/visadirect/reports/v1/transactiondata?fromDate=27102024&toDate=30102024

and now I am getting 'No data found'

 

I want to know what dates should I enter to get some data , in addition it seems the date range is limited to 5 days , just want to be sure the limitation exists only in the sandbox env and not in production.