Skip to main content
Solved

Pagination

  • December 15, 2021
  • 7 replies
  • 849 views

Forum|alt.badge.img+2

Hello, how can I paginate through the multiple pages in my response. I got that we need to use the “next” field but I’m not sure which parameter is used for it. I’m unable to find documentation related to the same. Thank You.

Best answer by klaviyojad

@gurdeep for the JSON output of the first call did you notice a “next” field with a value?  You use that for the subsequent call for since.

View original
Did this topic or the replies in the thread help you find an answer to your question?

7 replies

Forum|alt.badge.img+9
  • Klaviyo Employee
  • 54 replies
  • December 15, 2021

@gurdeep happy to help you.  Could you please clarify which api call you have tried?


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 4 replies
  • December 16, 2021

Hi Jad, I was calling the Fulfilled Order metric and it’s more than 1000 entries. I get the “next” field within the response but I’m not sure which parameter it goes with.


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 4 replies
  • December 16, 2021

Also I’m trying to get the events for this Fulfilled Order metric.


Forum|alt.badge.img+9
  • Klaviyo Employee
  • 54 replies
  • December 16, 2021

@gurdeep I presume you are referring to https://developers.klaviyo.com/en/reference/metric-timeline are you passing a query param of “since” with the value of the “next” field?


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 4 replies
  • December 17, 2021

Hi @klaviyojad , I’m not sure what parameter to pass it (“next”) to. Please help me.


Forum|alt.badge.img+9
  • Klaviyo Employee
  • 54 replies
  • Answer
  • December 17, 2021

@gurdeep for the JSON output of the first call did you notice a “next” field with a value?  You use that for the subsequent call for since.


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 4 replies
  • December 18, 2021

Okay, Thank you for the help. Appreciate it. @klaviyojad