#mayhul_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/1290747027939922013
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mayhul_api, 6 days ago, 3 messages
Do you have an example charge you're looking at?
~~I think you can retrieve it from BalanceTransaction > fee_details iirc - https://docs.stripe.com/api/balance_transactions/object~~
Uh actually, how are you using Stripe Tax? are you using Stripe checkout?
We use the stripe payment element
Also this is for charges in connected accounts if that’s relevant
With PaymentElement, are you using Tax API directly? https://docs.stripe.com/tax/custom#calculate-tax
We're using Stripe Tax with subscriptions. Setting automatic_tax: { enabled: true } while creating the subscription
Gotcha. Give me a moment
Subscriptions create an invoice under the hood.. You'd be able to find tax amount on the invoice the subscription creates -> https://docs.stripe.com/api/invoices/object#invoice_object-tax
If you're navigating from charge object, it should have an invoice parameter which you can expand and look at tax -> https://docs.stripe.com/api/charges/object#charge_object-invoice
https://docs.stripe.com/api/expanding_objects
Gotcha, so it looks like the "total_excluding_tax" field in the invoice is what i could use?
Yup