#zonos-dustin_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/1272615405722013747
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
The docs show that I can run this command, "stripe invoice_line_items list in_1NpHok2eZvKYlo2CyeiBref0", however my CLI does not show that as a valid resource command.
So the CLI has it's own docs that show what can and can't be used: https://docs.stripe.com/cli/get
As you've already found out, you can't list Invoice Line Items
Are you saying the only way to retreive this data is by the API and paginating?
Yes, though you can specify a limit of 100 if you use the List All Invoice Items API: https://docs.stripe.com/api/invoiceitems/list#list_invoiceitems-limit
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm trying to associate InvoiceLineItemIds with the originating InvoiceItemId. I don't believe that api will give me the associated InvoiceLine that the InvoiceItem ended up on.
Got it, so in that case you would need to retrieve the Invoice's Line Items (https://docs.stripe.com/api/invoice-line_item/retrieve) and iterate through them to get their associated Invoice Item IDs (https://docs.stripe.com/api/invoice-line_item/object#invoice_line_item_object-invoice_item)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And just to be clear, that is not available through the CLI. Correct?
Correct.