#brian_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/1398002195747835924
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! What ID do you have as a starting point?
Hi! We're doing a list on balance transactions - so we have the balance transaction ID + the charge ID
We'll do a separate list of invoices, but we're looking to bind the balance_transaction import of the charge to the invoice (partial payments / overpayments OK for us, as introduced in Basil)
For example, for an A/R Aging Report where we have the Invoice (receivable) and the Payment, linking them together in the General Ledger
The source should reference what it relates to; is that not working for you?
The Source is a Charge, I think (unless I've made a mistake in my understanding), and Invoice was removed from Charge in Basil
The walk I think I am doing is BalanceTransaction -> Charge -> Invoice
(however, please correct me if I have a misunderstanding here!)
You're right. There's a workaround but I need to find it again. One sec.
๐ taking over for timebox, just getting caught up.
It's best to approach this in the other direction
Invoice -> Invoice Payments-> Charge.
Basically Invoices can now have multiple partial payments associated with them (hence the removal of the PI property)
What you can do is list all Invoice Payments for a given invoice with : https://docs.stripe.com/api/invoice-payment/list
Each Invoice Payment will have a charge property https://docs.stripe.com/api/invoice-payment/object#invoice_payment_object-payment-charge
Any time!