#philiiiiiipp_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1422925567531028543
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hi there. Let me take a look at this for you
๐
What are you currently seeing and missing when using the create preview endpoint? Do you have a request ID you can share (e.g. req_xxx)?
The response has a has_more flag, and returns me a list of line items. I am curious what happens if has_more is true
I dont have a request, I am just building it
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Right. When there are too many line items, then you would use pagination to fetch more: https://docs.stripe.com/pagination
To fetch all the line items for an invoice, you would use that API, as pointed to in the url of your example: https://docs.stripe.com/api/invoice-line-item/retrieve
But if you're using a Stripe SDK to make these requests, typically they will do auto-pagination for you โ making multiple API calls until has_more becomes false
Creating an invoice preview does return an id
๐Oh ok, perfect, then I will do that thanks
Cool. Let us know if you have any further questions ๐
I have some legacy metered prices which must now be backed by meters. Do you know how I must migrate this ?
Yup, we have a guide on that: https://docs.stripe.com/billing/subscriptions/usage-based-legacy/migration-guide
awesome thanks