#tomis8300_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/1302985283817705523
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Not sure what that tax_filing_currency is you're refering to? But if you want us to calculate and collect tax automatically then you need to follow this: https://docs.stripe.com/tax/invoicing?dashboard-or-api=api
I mean this from your docs as it was recomended by your support https://docs.stripe.com/api/invoices/create#create_invoice-tax_filing_currency
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
our proces:
Then no, that isn't sufficient As I said, the guide above is how you collect tax automatically
- when customer fill vatId we create TaxId resource The Tax ID object | Stripe API Reference with type: eu_vat
- when new invoice is created:
- Customer TaxId object is retrieved from Stripe and we retrieve country from it.
- Than we retrieve TaxRate for customer country:
- when country is EU we retrieve TaxRate object Retrieve a tax rate | Stripe API Reference by id which was previously created by us in stripe
- when country is outside of EU we retrieve another TaxRate object Retrieve a tax rate | Stripe API Reference by id which was previously created by us in stripe
- Than we create invoice with tax_rates = TaxRate (we are setting customer price quantity and discounts)
So you suggest to drop our logic and enable collecting tax automatically by stripe and set tax-filling_currency when creating invoice?
No, you can continue to use Tax Rates if you want to manually set the rates yourselves according to customer country. But I'm not sure what it is you're trying to do exactly. Sounds like that tax_filing_currency just sets which currency the tax amounts on the invoice are displayed in, not necessarily what we'll charge the customer
yes the goal is to display correct vat currency no matter how it was created
Then have you tried using it?
and we dont want to set tax rate manually ideally
But where can we get the list of currencies? Can I get it from stripe?
No we don't have an API for that
Then use Stripe Tax
so what is your propose final solution:
- set Stripe Tax
- stop using taxID
- add tax_filing currency for creating invoices
We don't really know much about tax_filing_currency ultimately โ it's a private feature that your account must have access to. But if you want to calculate tax automatically according to customer location then use Stripe Tax
yes but again based on regulations we need to display VAT in local curency, so what is the best way to achieve it?
That parameter is probably your best option then. Otherwise we charge taxes in the invoice currency
Did you try to use it yet?
no havent tried yet, just wanted to confirm from you before starting with dev work
can you check if we have enabled tax_filing_currency?
when I turn on Stripe Tax is there something what can go wrong?
BTW: we are using api version 2020-08-27. should we upgrade it or it doesnt matter?
If you can see the parameter documented in the API reference (https://docs.stripe.com/api/invoices/create#create_invoice-tax_filing_currency) then you have access
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Should be fine
and what is the format of tax_filing_currency. I dont see any sample data
I'd imagine currency code (.e.g 'eur', 'gbp')
I found this, can this be used for currencies retrieval? you said you dont have a list but you do https://docs.stripe.com/api/country_specs/object#country_spec_object-supported_payment_currencies
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That won't retrieves all currencies though no. It retrieves the supported currencies for a Stripe account dependent on country and is likely irrelevant for your use case
so the only option is to create our own list of currencies?
Yes that'd be a more accurate list of that currencies you expect to be able to support
ok
and what about type: eu_vat when creating TaxId resource https://docs.stripe.com/api/tax_ids/object. what it is eu_vat for?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and we can also drop retrieving TaxRate from stripe to create invoice because we will just call invoice API and all will be calculated automatically ok?
It's a tax ID type: https://docs.stripe.com/billing/customer/tax-ids
Yes if you're using Stripe Tax then Tax Rates are redundant now