#ian-goldberg_invoice-line-item-order
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/1294002503708573758
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
There currently is no way to order the line items in the Invoice object returned from the API. This is a known shortcoming of the API versus the Dashboard.
Yeah so you're looking for a way to group related Invoice Item lines like unused time and remaining time?
I usually see these invoice items grouped together in the API response. Do you have an example where they weren't?
Well they are grouped, but not always in order
because we have multiple quantities of a product on our invoice and we prorate them as the quantities change throughout the month
Can you provide an example Invoice ID?
in_1Q4tVqFNVbYFceRMjRtW6fCg
When I look at the Invoice in the API response for this request: https://dashboard.stripe.com/logs/req_LCicIicXxtz9cN
I see consistent "Unused Time" -> "Remaining Time" ordering in the items
What is the specific issue you have with the ordering of these invoice items?