#nathanahoy_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/1364078133443039264
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! That change that you're referring to is covered in https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices . So you would probably want to use https://docs.stripe.com/api/invoice-payment/list
The InvoicePayment Object will contain the Charge ID : https://docs.stripe.com/api/invoice-payment/object#invoice_payment_object-payment-charge
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.
Yes - we knew about that, but you can only query based on invoiceID or payment_intent - we are starting with the charge. There was previously an "invoice" attrbiute on the charge what we could use to relate the two, but this has been removed.
How can you get from a payout to an invoice now?
Unfortunately, I don't think there's any great workaround for this if you're doing this on a per Charge basis. You're going to need to make a request to find the PaymentIntent from the Charge object, then make another request to find the corresponding Invoice by listing the InvoicePayments for that PaymentIntent.
If you use the itemized payout reconcillation report, I believe the Charge id and corresponding Invoice id can be included in the report : https://docs.stripe.com/reports/report-types/payout-reconciliation
https://docs.stripe.com/api/reporting/report_run/create#create_reporting_report_run-parameters-columns - you can specify what parameters you want, and I do see invoice_id as a column that can be specified. You'll probably want to test it out to be sure though
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Cool - thanks @livid scroll - will take a deeper dive