4 posts / 0 new
Last post
sandygani4642
Events API

RE: events API (https://developer.payeezy.com/searchforevents/apis/get/events).

Using the default parameters on the page and changing the dates to 2014-09-01 and 2014-09-30, why is it when I set the limit to 10, I get a response as expected, but when I set the limit to 100, I get a 404 error code?

Thanks,
Sandy


rohitrajagopal3402
Re: Events API

Hi Sandy,

Please try with Offset=1.

Offset is the page number from the result set that you want to fetch.  In your query, there probably was no data for the page number you selected.

Regards,

Payeezy Team


sandygani4642
Re: Events API

I'm seeing this happen with offset = 0.

Copying and pasting from the boxes at the bottom:
Request - GET /v1/events?eventType=TRANSACTION_STATUS&from=2014-09-01&to=2014-09-30&offset=0&limit=10 HTTP/1.1
Response - HTTP/1.1 200 OK

Request - GET /v1/events?eventType=TRANSACTION_STATUS&from=2014-09-01&to=2014-09-30&offset=0&limit=100 HTTP/1.1
Response - HTTP/1.1 404 Not Found

I would expect the 2nd call to return at least the same data set as the 1st call, even if I'm requesting a bigger page size, no?

Thanks,
Sandy


rohitrajagopal3402
Re: Events API

Hi Sandy,

I am checking with my team on this. I will let you know soon.

Regards,

Rohit