#tomis8300_api

1 messages ยท Page 1 of 1 (latest)

celest quarryBOT
#

๐Ÿ‘‹ 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.

umbral timber
outer mauve
#

our proces:

umbral timber
#

Then no, that isn't sufficient As I said, the guide above is how you collect tax automatically

outer mauve
#
  • when customer fill vatId we create TaxId resource The Tax ID object | Stripe API Reference with type: eu_vat
  • when new invoice is created:
  1. Customer TaxId object is retrieved from Stripe and we retrieve country from it.
  2. Than we retrieve TaxRate for customer country:
  3. 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
  4. 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
  5. 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?

umbral timber
#

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

outer mauve
#

yes the goal is to display correct vat currency no matter how it was created

umbral timber
#

Then have you tried using it?

outer mauve
#

and we dont want to set tax rate manually ideally

umbral timber
#

But where can we get the list of currencies? Can I get it from stripe?
No we don't have an API for that

umbral timber
outer mauve
#

so what is your propose final solution:

#
  1. set Stripe Tax
#
  1. stop using taxID
#
  1. add tax_filing currency for creating invoices
umbral timber
#

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

outer mauve
#

yes but again based on regulations we need to display VAT in local curency, so what is the best way to achieve it?

umbral timber
#

That parameter is probably your best option then. Otherwise we charge taxes in the invoice currency

#

Did you try to use it yet?

outer mauve
#

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?

umbral timber
outer mauve
#

and what is the format of tax_filing_currency. I dont see any sample data

umbral timber
#

I'd imagine currency code (.e.g 'eur', 'gbp')

outer mauve
umbral timber
#

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

outer mauve
#

so the only option is to create our own list of currencies?

umbral timber
#

Yes that'd be a more accurate list of that currencies you expect to be able to support

outer mauve
#

ok

#

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?

umbral timber
umbral timber