#stevie_api

1 messages ¡ Page 1 of 1 (latest)

delicate stratusBOT
#

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

ripe zenith
#

hello! gimme a while to look through your question!

gaunt shuttle
#

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?

ripe zenith
#

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

gaunt shuttle
#

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.

ripe zenith
#

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

gaunt shuttle
#

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?

ripe zenith
gaunt shuttle
#

No worries, that is also on our radar

ripe zenith
#

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

gaunt shuttle
#

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

ripe zenith
#

looks like some backward calculations may be necessary unfortunately

gaunt shuttle
#

Yeah - not sure how that would work in places with multiple tax rates

#

But thanks for confirming!