#jairo094215_webhooks
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. Thank you for your patience!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
๐ 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/1214523825308569611
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
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.
- jairo094215_api, 5 days ago, 11 messages
Hello @safe lark ๐
Hi
You can find the tax percent at lines.data[0].tax_rates[0].percentage
which is 21 in your invoice
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
Yes, I've seen it, but I would like to give you more context about our problem
sure
We've started using Stripe Checkout recently. Before that we created the subscriptions manually from the API and indicated the tax rate for the invoices using the 'default_tax_rates' parameter on Subscription's creation request
you can still pass the same parameter here https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-default_tax_rates
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Before using Stripe checkout the tax percent field of the invoice.created event did have the correct tax value, but since we used Checkout this value is null
Aha!! I hadn't seen that it accepts the same parameter!
Using it, the invoices generated through this Checkout session will have the given tax rate, right?
yes exactly the same as when you were passing the parameter directly on the subscription creation
sure let me know if you need any more help