#devangbhuva97
1 messages · Page 1 of 1 (latest)
HI there, did you check the error message? The shipping tax code txcd_92010001 cannot be used on a line item. Use the `shipping_cost` param to calculate tax on shipping charges.
Yes.. not able to get this. I'm passing address source as billing & not specified txcd_92010001 code anywhere from myside. So from where that code is coming?
As here mentioned - https://stripe.com/docs/api/tax/calculations/create#calculate_tax-line_items-tax_code
If we won't pass tax code, it will take from product. But I haven't specify product as well
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
& in tax settings, I won't able to see anything
And you didn't specify any product in the line_items. Can you tell me what you want to achieve?
I want to calculate tax for custom payment flow by directly passing amount in line items
I'm taking reference from here https://stripe.com/docs/tax/custom
https://stripe.com/docs/api/tax/calculations/create#calculate_tax-line_items-tax_code
so this explains the txcd_92010001
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If it's not the tax code you want to use, I'd suggest you to specify one
But where I can specify? Because not able to load tax settings. I want to understand from where this code is coming - txcd_92010001?
Reason for asking these questions are - we are adding tax support for customers & they are connected with our platform account using Standard Connection. So we need to guide them as well
It depends on the type product in the line_items, you can't calculate tax without a tax code
Do you want to take code from above list?
This is a question for you.
Now I think - i'm able to get..
We need to collect product category from customer & map with stripe tax code... right?
Yes you are right
Another question i have for if our customer opted for 1 onetime product & 1 recurring product?
Can you suggest how we can use custom tax in that flow?
For above case, currently we are using invoice items & subscription api to charge. First we are creating invoice items & then create subscription.
You can just pass the products to the line_items when call the tax calculation API
Will it collect tax in every invoice of subscription?
If you want to specify tax_rates when creating a subscription, you can set them here: https://stripe.com/docs/api/subscriptions/create#create_subscription-items-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.
For this, we need to create rate again in stripe & that ids we need pass? Is there any way we can directly pass tax code - https://stripe.com/docs/tax/tax-categories for subscription?
tax rate and tax code are different. Alternatively you might want to enable Stripe Tax (https://stripe.com/docs/tax/set-up) and let Stripe automatically create tax rates based on tax codes.