#josula_api

1 messages ยท Page 1 of 1 (latest)

torn urchinBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

frail rover
#

Hi ๐Ÿ‘‹

Can you share an example Invoice ID?

vocal quiver
#

e.g. in_1QpacHQWc5EeQut9MgfxeI1q

#

tax is around 8 EUR but should be 10.73 EUR if you include the 12 EUR shipping cost and apply 19% tax to irt

frail rover
#

Okay. But the 12 EUR is the shipping cost. The tax being applied to that amount is something else, right? It would be a tax calculated on the 12 EUR.

vocal quiver
#

correct!

#

so it should be 12 * 1.19 => the total shipping amount INCL. tax

frail rover
#

More likely that the total tax should be line_item.tax + shipping.tax

#

But I also don't see that behavior.

#

The tax total is 8.45, which is what is computed for the line item

vocal quiver
#

here you see it correctly from our shop:

  1. cart fee without tax
  2. delivery fee without tax
  3. cart fee plus delivery fee without tax
  4. Total tax (19% on 3.)
  5. Total including tax
frail rover
#

Yeah, I'm trying to understand why we didn't compute taxes on the shipping rate.

torn urchinBOT
vocal quiver
#
    const invoice = await stripe.invoices.create({
      customer: stripeCustomer.id,
      collection_method: "send_invoice",
      default_tax_rates: ["txr_1QpaUnQWc5EeQut9qU55xUqO"],
      auto_advance: false,
      currency: "eur",
      days_until_due: new Decimal(30).toNumber(),
      shipping_cost: {
        shipping_rate_data: {
          tax_behavior: "exclusive",
          tax_code: "txcd_92010001",
          display_name: cart.shipping_methods?.[0]?.name || "Versand",
          type: "fixed_amount",
          fixed_amount: {
            amount: new Decimal(cart.shipping_methods?.[0]?.amount as number)
              .times(100)
              .toNumber(),
            currency: "eur",
          },
        },
      },
....

This is my code currently. I followed the docs to add a tax_code here for shipping. Still the same result

#

Could it be that it doesnt work because I have not turned on "Stripe Tax"? I dont quite see how that relates though

sand mist
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. Yes, tax_codes are used with Stripe Tax. You tell us what you're selling, and we'll do the tax calculations for you. If you already know the tax percentage to use, you can use a Tax Rate instead.

Let me take a closer look at the shared Invoice.

vocal quiver
#

I know my tax rate. Its always 19% for both products and shipping.

sand mist
#

Hm, looking at the shipping_cost hash, it doesn't look like that supports the use of Tax Rates actually, and that you'd have to use Stripe Tax instead. Let me look a moment longer and make sure I'm not overlooking something.

vocal quiver
#

well ok... whats the point in paying for "Stripe Invoice" if I cannot issue a correctly taxed invoice without paying for "Stripe Tax"?

sand mist
#

It does look like you'd have to use Stripe Tax for that, and like that is currently not enabled on the Invoice you shared.

vocal quiver
#

well that would cost me 0.4% on top of stripe invoice on top of normal stripe fee... thats kind of insane to calculate a tax rate number...

sand mist
#

I can certainly file feedback for our teams expressing your interest in seeing Tax Rates supported for Shipping Rates.

vocal quiver
#

well I am the first customer who is calculating tax on shipping rates? That doesnt make any sense

#

I mean by just using "Stripe Invoicing" without "Stripe Tax"? Why is this a standalone product then. Anyways, not the right thread for this discussion but thats kind of a rip off. will just calculate it myself then

#

extremely frustrating experience tbh

#

we might have to ditch stripe after all. doesnt seem to be a correct invoice if we do not show both shipping rates with and without tax

#

In the EU we are required to show both net and tax including prices... So that means in turn that no one in the EU can use Stripe Invoicing without Stripe tax or what?

sand mist
#

I can't help with questions about legal compliance.
I can help with the technical questions about how our products work, but questions about compliance are best directed to your legal counsel and our Support team:
https://support.stripe.com/?contact=true

vocal quiver
#

thanks!

#

so the answer is I cannot use stripe invoicing to create a proper invoice then?

sand mist
#

That's a compliance question, as "proper invoice" seems to be indicating an invoice that satisfies all the legal and regulatory requirements for your country and industry.

#

You cannot use a Tax Rate with a Shipping Rate, if that's what you're trying to ask.

vocal quiver
#

I am trying to show my shipping rate once net, e.g. 12 euros and then once with the tax rate of 19% applied, so around 14.x euros...

#

How could this be done using the stripe invoices?

sand mist
vocal quiver
#

ok man that doesnt make any sense... then I have a shipping fee somewhere on the top left as a custom field and then down in the subtotal section something else...

#

anyways

#

thanks

#

extremely frustrating. worked on this integration for 2 weeks now all for nothing because of that detail

#

I dont understand then why I can apply tax at all in the invoice feature? Why can I apply taxes to all line items but not my shipping fee?

sand mist
#

I don't know why that parity wasn't built yet.

#

But I've filed feedback that this is something you'd be interested in seeing added in the future.

vocal quiver
#

im not "interested in it": You cannot issue a correct invoice wihtout explicitly pointing out net and tax including prices in the EU. The invoices are therefore simply wrong...

sand mist
#

Can you add your shipping as an Invoice Item then? Which do allow you to pass a Tax Rate to them.