#stevie_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/1369845595178799114
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! gimme a while to look through your question!
Just going to add details of my second question here:
I'm trying to get the tax rate that has been applied in a checkout session. I can't see a tax rate object or id in the documentation for a checkout session or its line items, or in the associated charge, payment intent or balance transaction.
I can see a tax amount, but we need to know the actual Stripe tax rate object that has been applied - is this possible?
I'm looking at pi_3RJTMjIRkshBsWgA1KnVOutR as an example - in the Stripe UI I can see that GST has been applied, but can I get this info via the API?
hmmm, for your first question, can you share an example balance transaction which doesn't have the invoice id? Remember to redact any sensitive information
Yep, here is an example: txn_3QCyRXIRkshBsWgA1841EBB3
I can track it to charge ch_3QCyRXIRkshBsWgA1TVDYlEK -> payment_intent pi_3QCyRXIRkshBsWgA1lPud4we, but then the payment intent's invoice field is null.
aha, so we have a testmode subscription data retention policy, and that specific invoice and subscription has already been deleted : https://support.stripe.com/questions/test-mode-subscription-data-retention
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ahhhh that does explain some things
Ok, no problem! So, in live mode, I should expect this to work the way it is currently working for my recent payouts, where the data still exists?
yep! it should, but just a heads up - right now, your Stripe account is on API version 2024-09-30.acacia. On the latest API version 2025-03-31.basil, there are many breaking changes, one of which is that the PaymentIntent object no longer has the Invoice field : https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices
No worries, that is also on our radar
alright!
moving on to your tax question then
there's isn't a rate id as far as I can tell, but there is a tax amount which you can retrieve
Ok, looks like we'll have to work around that somehow
The amount is good but we need to know the actual rate that's been used
looks like some backward calculations may be necessary unfortunately