Bold Advanced v1 pagination

Comments

4 comments

  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Bryan Carroll I'm not seeing docs for the v2 endpoint, but I noticed the v1 endpoint has a next page cursor. Are you able to use v1 for this or need v2 In the meantime? I'll also play around a bit to see if I can come up with a solution here. Since I can't find the v2 docs, do you know if that endpoint has a way to sort the results?

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Bryan Carroll the reason I ask if you can sort is we have an object available for last record within the response. So assuming it's sorted, then you can utilize that for subsequent calls. You would need to set your "Path to records in HTTP response body" under "non-standard api response paterns" to "subscriptions".

    0
  • Bryan Carroll

    Hey Tyler Lamparter, thanks for the quick reply.  You need to use the v1 docs, https://developer.boldcommerce.com/default/guides/archive/subscriptions_v1_integration#subscriptions.  The endpoint URI in my submission references v2 of the thirdparty endpoint, but we're using v1 of the Bold Advanced API.  The v1 docs are buried in their developer portal and I'm sure you're looking at the v2 version.  There is no pagination offered in the v1 platform outside of the since_id url param.

    re: sorting:  from what I've seen the results consistently come back sorted by id so the last id in the collection should have the greatest integer id.

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Bryan Carroll in that case it sounds like the last_record path would work for you. Let me know how it goes.

    0

Please sign in to leave a comment.