GuidesAPI ReferenceChangelogDiscussions
Back to 7shifts.comBecome a Partner
Discussions

Discussions

Ask a Question
Back to All

Pagination issues with GET Time Off and GET Time Punches

The current cursor record returns 'NULL' for the two endpoints List Time Off and List Time Punches and is breaking some queries that I am trying to run. The current cursor record properly returns a value for the List Locations. Is this expected behavior or is there a bug in how 7Shifts has implemented pagination across different endpoints?

"meta": {
    "cursor": {
      "current": "eyJsaW1pdCI6MTAwLCJvZmZzZXQiOjB9",
      "prev": null,
      "next": null,
      "count": 2
"meta": {
    "cursor": {
      "current": null,
      "prev": null,
      "next": "eyJpZCI6MjkyOTk0MjQsIm5leHQiOnRydWV9",
      "count": 2
  "meta": {
    "cursor": {
      "current": null,
      "prev": null,
      "next": null,
      "count": 2