#Victor Agnez
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I believe this endpoint can be used to do so:
https://stripe.com/docs/api/tax/calculations/create
Larger guide for using that approach:
https://stripe.com/docs/tax/custom
thanks but i don't need an amount but a rate. Do you think it's possible to get it ?
Is the value provided in the tax_breakdown.tax_rate_details.percentage_decimal field what you're looking for?
https://stripe.com/docs/api/tax/calculations/object#tax_calculation_object-tax_breakdown-tax_rate_details-percentage_decimal
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes but i have to give a clientId and an item even if the client is not yet created. That is my pb
Are you having problems using customer_details instead of customer? You need to know where the payment is going to happen to be able to calculate tax amounts for it, and similarly the Product needs to be defined so our system knows what tax categories to check.
$this->stripe->tax->calculations->create([ 'currency' => 'eur', 'customer_details' => [ 'address' => [ 'country' => 'DE', ], 'address_source' => 'billing', ], 'line_items' => [ [ 'amount' => 10000, 'reference' => 'taxtestrefrence', ], ],
i used this and the response is 0 tax and a taxrate of 0 too
Alright, that gives me the impression the default tax category set for your account isn't taxable in that jurisdiction.
ok, how do i change that ?
Change what?
it is a test account
"the default tax category set for your account isn't taxable in that jurisdiction" that
So you want to change the default tax category for your products? That's done in your Stripe dashbaord:
https://dashboard.stripe.com/test/settings/tax
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I changed all the parameter and the tax amount is always at 0. Do you have an example of conf where the tax is not 0 please ?
I don't, it's dependent on tax laws for the category you're selecting and jurisdiction you're doing the calculations for. I'm not familiar enough with tax rules to know an example offhand that will generate a non-zero amount for your region.
If you think our tax calculations are incorrect and have supporting evidence for that, please reach out to our Support team with that information so they can investigate:
https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center 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.