#nicolas-result-order
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I believe all list functions return results from newest to oldest, but am running a couple tests on the side to confirm. Does that match what you're seeing?
I was guessing created descending
but as the code I got from an old app is sorting on it's own, server side, by created, I wanted to be sure before doing some cleanup
Ah gotcha, yeah, so far all of my results are being returned in descending order based on created.
I found something in the docs (https://stripe.com/docs/api/pagination?lang=curl) but not sure if the second sentence, in the second paragraph, applies to all queries, or restricted to queries with ending_before and starting_after ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Both parameters take an existing object ID value (see below) and return objects in reverse chronological order
Yeah, all of the list functions will return their results in descending order based on the created property.