#theglobe

1 messages · Page 1 of 1 (latest)

random stormBOT
remote wind
#

Hello! You'd get the most recently created 100 items that would match the conditions you've set

#

Also want to ask - how much do you know about pagination?

patent gazelle
#

that's the thing. I've been trying to use pagination, but I don't think it's working properly.

remote wind
#

We don't let you pass an "end_date" or "cancel_at" but we do let you filter based on current_period_end or created

patent gazelle
#

yeah, that's not going to work because I want to get the canceled subscriptions of a specific date.

#

how can i use the pagination?

remote wind
#

You want subscriptions that have already been cancelled? Or the ones that are currently active and will cancel in the future?

patent gazelle
#

already canceled

remote wind
patent gazelle
#

i am using super blocks and making a rest api call to the subscriptions

remote wind
patent gazelle
#

so then I have to check if has_more and use what exactly as a starting_after? an ID?

remote wind
#

Yes it'd be the ID of the last object from your previous request - if you read the https://stripe.com/docs/api/pagination link I sent you we talk about all of this and also link to example videos on how this works

patent gazelle
#

ok I will take a look at it thank you