#clive-clio_upcoming-invoice-line-items
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/1266395880337182802
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! that's expected, embedded lists in objects always just return max 10 and then set has_more if there's more. You should paginate with
https://docs.stripe.com/api/invoices/upcoming_invoice_lines
https://docs.stripe.com/api/pagination/auto
to get everything.
But for the Invoice.upcoming call, is there a parameter to pass to provide more lines?
no
So for the invoice lines we would have to make a seperate call to retrieve more than 10? A call to the Stripe::Invoice.list_upcoming_line_items
yes
So after a subscription has 10 invoice lines, the Stripe Invoice that is passed back from the Stripe::Upcoming call does not contain all the lines, and you are unable to do this through the upcoming call and need to make a seperate call to the list_upcoming_line_items
yes
Oh boy