#jonas-reif_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/1417768034734571612
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Are you looking to export all the Invoice Payments related to an Invoice? If so then this is the endpoint you might be interested in
Under each Invoice payments, you can also find the Payment Intent tied to it
Hi Teddy,
Basically I need in the end something like
- Invoice_x
Payment 1: YYYY-MM-dd, status: paid
Payment 2: YYYY-MM-dd, status: x - invoice_y
Payment 1: YYYY-MM-dd, status: paid
Payment 2: YYYY-MM-dd, status: x
Payment 3: YYYY-MM-dd, status: x
And I really need only all the invoices where we used a payment_plan
The endpoint i gave you earlier will give you the payments for each Invoice
And the status as well
ok.
so you would call this endpoint for every invoice and then see how many payments an invoice has?
Alternatively, you can call the List all Invoices and expand the['data.payments']field to see all the Invoice payments related to that Invoice
mhm ok.
I'll try it
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
hi,
unfortunately this is not working
When fetching an invoice with expanding payments, I just see the open/paid ones. All scheduled ones for the future are not returned
maybe I found it
amounts_due
nullable array of hashes
Preview feature
List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
The upcoming invoices aren't generated yet, that's why they aren't returned
But does not seem to work in my cli:
stripe invoices retrieve in_1S7dGBAHqm7DWpwQL624P9DA
I dont see the amounts_due array there
I dont see the amounts_due array there
Can you share the link to this field in the public API to make sure that we are looking at both
Between this is a private feature:
We are using Stripe Invoices with Payment Plans (https://docs.stripe.com/invoicing/payment-plans)
Checking it...
I think you are referring to this field:
https://docs.stripe.com/api/invoices/object?api-version=2025-08-27.preview&rds=1#invoice_object-amounts_due
This won't be returned/available using the Stripe CLI
Try adding --stripe-version 2025-08-27.preview in your call and see
I think that's expected as the CLI maps only public fields (and not private ones)