#josula_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/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.
- josula_api, 1 hour ago, 3 messages
Hi ๐
Can you share an example Invoice ID?
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
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.
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
here you see it correctly from our shop:
- cart fee without tax
- delivery fee without tax
- cart fee plus delivery fee without tax
- Total tax (19% on 3.)
- Total including tax
Yeah, I'm trying to understand why we didn't compute taxes on the shipping rate.
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
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.
I know my tax rate. Its always 19% for both products and shipping.
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.
well ok... whats the point in paying for "Stripe Invoice" if I cannot issue a correctly taxed invoice without paying for "Stripe Tax"?
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.
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...
I can certainly file feedback for our teams expressing your interest in seeing Tax Rates supported for Shipping Rates.
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?
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
Find help and support for Stripe. Our support site 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.
thanks!
so the answer is I cannot use stripe invoicing to create a proper invoice then?
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.
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?
If you need to include custom information on Invoices, you can use custom fields for that:
https://docs.stripe.com/invoicing/customize#custom-fields
You can't insert data into the total/subtotal breakdowns.
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?
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.
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...
Can you add your shipping as an Invoice Item then? Which do allow you to pass a Tax Rate to them.