6 posts / 0 new
Last post
johndantonio20862
First Data Payeezy Gateway Search and Reporting API

I am trying to connect to the First Data Payeezy Gateway Search and Reporting API:

https://support.payeezy.com/hc/en-us/articles/203731129-First-Data-Payeezy-Gateway-Search-and-Reporting-API

Every time i attempt to connect (either in code or using a tool such as Postman), i am getting 404 errors (Unauthorized).

I am specifying the username and password of a Merchant role user (valid password, not expired) in the header and submitting a GET request, and from what i can tell i shouldn't need to pass any other parameters because it should use default values for everything else.

We log in and manage our accounts (live and demo) through the global gateway (https://demo.globalgatewaye4.firstdata.com), which seems to be set up differently than the Payeezy Developers site (https://developer.payeezy.com), do i need to have both and link them somehow?

Is there anything else that i should look at to get this to work?


christopherlord730
Re: First Data Payeezy Gateway Search and Reporting API

Make sure that you're not specifying the content type of application/json with the Webservice search API.


johndantonio20862
Re: First Data Payeezy Gateway Search and Reporting API

Thanks for the response! Unfortunately, it doesn't work whether i specify a content type or not.

This is a snippet of code that i'm using to my connection:

var url = "https://api.demo.globalgatewaye4.firstdata.com/transaction/search?start_date=2007%2F01%2F24&end_date=2007%2F01%2F24&search=123676";
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
string autorization = USERNAME + ":" + PASSWORD;
byte[] binaryAuthorization = System.Text.Encoding.UTF8.GetBytes(autorization);
autorization = Convert.ToBase64String(binaryAuthorization);
autorization = "Basic " + autorization;
var webRequest = (HttpWebRequest)WebRequest.Create(url);
webRequest.Method = "GET";
webRequest.Headers.Add("Authorization", autorization);
var webResponse = (HttpWebResponse)webRequest.GetResponse();


johndantonio20862
Re: First Data Payeezy Gateway Search and Reporting API

I verified that i am not specifying the content type, and i am still getting the error.


christopherlord730
Re: First Data Payeezy Gateway Search and Reporting API

The date range has me concerned since it shows 2007 as the year; start_date=2007%2F01%2F24&end_date=2007%2F01%2F24&search=123676

Try something for the URL like:

https://api.demo.globalgatewaye4.firstdata.com/transaction/search?start_date=2018-04-14 00:00:00.000&end_date=2018-04-26 00:00:00.000


johndantonio20862
Re: First Data Payeezy Gateway Search and Reporting API

It's working now! Thanks!