#jonas-reif_api

1 messages ¡ Page 1 of 1 (latest)

woven waveBOT
#

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

elfin raptor
#

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

slate solstice
#

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

elfin raptor
#

The endpoint i gave you earlier will give you the payments for each Invoice

#

And the status as well

slate solstice
#

ok.
so you would call this endpoint for every invoice and then see how many payments an invoice has?

elfin raptor
#

Alternatively, you can call the List all Invoices and expand the['data.payments']field to see all the Invoice payments related to that Invoice

woven waveBOT
slate solstice
#

mhm ok.
I'll try it

agile gust
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

slate solstice
#

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.

agile gust
slate solstice
#

But does not seem to work in my cli:
stripe invoices retrieve in_1S7dGBAHqm7DWpwQL624P9DA

I dont see the amounts_due array there

agile gust
#

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

#

Checking it...

agile gust
#

This won't be returned/available using the Stripe CLI

#

Try adding --stripe-version 2025-08-27.preview in your call and see

slate solstice
#

Still with --stripe-version 2025-08-27.preview not working

agile gust
#

I think that's expected as the CLI maps only public fields (and not private ones)