Same cursor being repeatedly sent in the response of the 'v2/labor/shifts/search' and the ‘v2/team-members/search’ endpoints

The issue you’re encountering is due to the incorrect placement of the cursor. In the Square API, the cursor should be included in the request body, not as a query parameter in the URL.

Here’s how you should structure your second POST request:

URL: https://connect.squareup.com/v2/labor/shifts/search
Body:
{
“limit”: 1,
“cursor”: “value-I-got-from-previous-response”
}

This way, the API will understand that you’re requesting the next set of results.

This answer was reviewed by @Bryan-Square.