#romain_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/1434860920160522313
π Have more to share? Add more details, code, screenshots, videos, etc. below.
π Hi there! Let me take a look
A Balance Transaction is not linked directly to an Invoice, so you won't see it in the API: https://docs.stripe.com/api/balance_transactions/object
What are you trying to do? Retrieve the Balance Transaction for a certain Payment Intent, or something else?
My balance transaction has a source of type "charge"
And I normally have an invoice linked to the charge. But I don't see it in the API
Invoice is null in the API, whereas my charge should be linked to an invoice
Depending on which API version you're using, you might not see the invoice value in a Charge anymore: https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices
So there are two options:
- You can retrieve Balance Transactions using an API version older than 2025-03-31.basil.
- You take the
payment_intentID from thesourceon the Balance Transaction, and use it to retrieve associated Invoice Payments, which will contain theinvoice: https://docs.stripe.com/api/invoice-payment/list#list_invoice_payments-payment-payment_intent
I'm not sure it's related to this breaking change, because I still use 2023-10-16 version
π taking over for my colleague. Let me catch up.
Ok!
basically the charge is still pending and the invoice is yet to be paid. so you won't be able to see the invoice on the charge object
But when I retrieve the charge from the charges API, the invoice is there.
It's only with the Balance Transactions API that I don't have it.
I had it before. It seems like a breaking change have been done
oh you mean, when you expand the source in the balance transaction you don't have it, but if you directly fetch the charge it has the invoice on it?
hmmm interesting. I would have to try and reproduce this and basically reach out to the internal team to try and figure out a solution
for this to happen we would need to take this asynchronously and out of discord
if you agree, you will receive a DM with a link to open a ticket with our team. add as much details as possible. and once you do please let me know
we would then update you asynchronously (via email) once we know more about the issue
Okay!
Hello @dapper yacht, we have sent you a direct message, please check it at https://discord.com/channels/@me/1434881411910729791
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
It's done
thanks π