Pagination troubleshooting

I’m using the payments v2 api to pull a list of payments from the start of this year. Using the python requests library to send the request and everything except for pagination is working fine.

The original url that I’m sending the request to is:

https://connect.squareup.com/v2/payments?begin_time=2020-11-01T00%3A00%3A00.000Z&end_time=2020-11-30T00%3A00%3A00.000Z&location_id=XXX&sort_order=DESC

Once that returns I take the response and add the cursor to my parameters. After I get the data i need from that page of results i send the request again adding the cursor to the request so that the request is:

https://connect.squareup.com/v2/payments?begin_time=2020-11-01T00%3A00%3A00.000Z&end_time=2020-11-30T00%3A00%3A00.000Z&location_id=XXX&sort_order=DESC&cursor=W1lFSUNSSWRiSEZUV2xwYWJIWmFNRXMwYlZCamVqSmtjamxSZehoTVJWWkhXbGtRc2J2bH2k22U

But the next page of data dosen’t come. The response just returns the same stuff I just got. I tried to send it with just the cursor as a parameter but that didn’t work either.

What am I missing?

Hi @storm, welcome to the forums!

That looks correct at first glance; can you provide your Square application id so I can take a look at our logs to see if something is going on?