#waldeedle_invoice-lines
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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1215068206465810444
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
this is the UI ordering for line items that I am asking about
Hi, we document there depending on the stage of the line items:
lines is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
Can you confirm which part you need clarificaiton on?
invoiceitem in reverse chronological order
what field is being used for that order?
and if the time is the same is there a secondary sort as well or no?
I basically want to match what your UI is showing for my custom invoice but the line items are coming from stripe in an order I don't fully understand (looking at the event JSON)
I think it's the line item created date, but I recommend that you thoroughly test this on your end in test mode.
im not seeing a line item created date in the JSON object, hence my confusion lol
For invoice items, this is the time at which the invoice item was created or the period of the item.
ah ok so the lines.data.period.start is the creation date?
https://docs.stripe.com/api/invoices/object#invoice_object-lines-data-period
I think so, I recommend that you test and confirm.
thanks, will do