#Lenin
1 messages ยท Page 1 of 1 (latest)
Hi there!
Pasting your other message here:
I can see the number of items which can be returned in the api can be configured, with 5 being default. Anyway we can configure it in expansion also? What is the default there?
I think both option should be similar.
It's not possible to configure the number of results returned when using expand. So that can be one reason to make an API call directly to the line_items endpoint.
do we know the default number of items it returns?the expansion response
That's a good question, I don't know. Give me a few minutes to look into this.
sure
It's 10
So if you think you'll have more than 10, then calling the line_items separately makes more sense
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
thank you
i am good
for over 10 items, does i tprovide the pagination url also?
in the expand items
all our list APIs have the ability to be auto-paginated https://stripe.com/docs/api/pagination
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
No this is not direct list api call. This is me using the expand_items in the get_checkout call
hence not sure if it is supported
that's what my colleague explained, the expand will only get you 10items
if you have more you need to use https://stripe.com/docs/api/checkout/sessions/line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.