We are pulling interaction metrics using the Genesys Cloud Analytics API via the .NET SDK. The goal is to fetch all records in a single pass using the paging object. We set pageSize to 1000 and pageNumber to 1. The first call returns 1000 records as expected. The response includes a pageCount of 5. We loop through the pages by incrementing pageNumber. The issue appears on the second iteration. We send pageNumber 2. The API returns 200 OK. The data array is empty. We check the total count in the response. It shows 0. We try setting pageSize to 100. The same behavior happens. The first page works. Subsequent pages return empty arrays even though pageCount indicates more data exists. We have verified the date range and query filters. They are correct. The first page always has data.
The code uses GetAnalyticsInteractionsSummaryAsync with the paging options. We pass the Paging object with Size and Number properties. We log the request URL. It looks correct. We see the page number change in the query string. The response headers are standard. No error codes. Just empty data. We tried using the cursor-based paging. It works for some endpoints. This endpoint does not support cursors. We need the offset-based paging. We are stuck on why pageNumber 2 returns nothing. The documentation says to use pageNumber for offset paging. We are doing that. We suspect a bug in the SDK serialization. Or maybe the API ignores pageNumber after the first call. We need to know if we are missing a header. Or if the paging object structure is wrong. Here is the snippet we use.