#zonos-dustin_api

1 messages ¡ Page 1 of 1 (latest)

hushed prismBOT
#

👋 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.

bleak spire
#

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

glad rapids
#

Are you saying the only way to retreive this data is by the API and paginating?

bleak spire
glad rapids
#

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.

bleak spire
#

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)

glad rapids
#

And just to be clear, that is not available through the CLI. Correct?

bleak spire
#

Correct.