PaginationMeta

Object

The PaginationMeta object contains cursor-based pagination information for navigating through paginated responses.

Fields

FieldTypeDescription
nextCursorstring | nullCursor for the next page. Use this in the cursor query parameter to fetch the next page. Will be null if there are no more pages.
prevCursorstring | nullCursor for the previous page. Use this in the cursor query parameter to fetch the previous page. Will be null if this is the first page.
hasMorebooleanWhether more pages are available. This is true when nextCursor is not null.
Pagination usage:
  • Start by making a request without a cursor parameter
  • Use the nextCursor from the response to fetch the next page
  • Use the prevCursor to navigate backwards
  • Check hasMore to determine if there are additional pages
Related: This object is returned by the Get product with variants endpoint.