#pareil_api

1 messages · Page 1 of 1 (latest)

turbid brambleBOT
#

đź‘‹ 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/1382273262460993596

📝 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.

sage ledge
vague cedar
#

hello! taking a look at this now

sage ledge
#

The result only gives me a total price and doesn't distinguish between a net price (excl. tax) and a gross price (incl. tax).
For your information, I generate two invoices: one from the Stripe Connect account, and another from the main Stripe account — billed by me on behalf of the Stripe Connect account.

vague cedar
#

can you share an example invoice ID?

sage ledge
#

Yes! I’m generating two invoices:

  • in_1RYjk8Q6CzUXVBhG84wqhz4D for the Stripe Connect account,
  • in_1RYjqPQ6DHd3VBoM8yRR2Ihl for the master Stripe account (billed by me on behalf of the connected account).
#

On invoice in_1RYjk8Q6CzUXVBhG84wqhz4D, I can see the tax fees correctly applied.
However, I had to manually enable something in the connected Stripe account's dashboard.
The issue is that I can't seem to enable this automatically via the API for the connected account.

#

For example, before enabling this option in the dashboard, the invoice in_1RYjRcQ6CzUXVBhGHAwQrGvb didn’t display any tax-related details.

#

Ideally, I’d like the result to include tax (e.g. VAT) by default — either by configuring tax collection on the connected Stripe account in advance, or by ensuring that VAT is shown directly on the invoice.
However, I haven’t been able to figure out how to enable this automatically via the API.

#

To summarize, the event that enabled tax collection was evt_1RYjiKQ6CzUXVBhGFvDCbzO4, which occurred when I manually activated tax settings from the dashboard while logged into the connected Stripe account.
This event updated the tax settings and allowed VAT to be shown correctly on the invoice.

I’ve tried to reproduce this behavior via the API for new Stripe Connect accounts, but it doesn’t seem to trigger tax collection automatically. New connected accounts still don’t show tax on their invoices by default.

vague cedar
#

gotcha - so the issue is related to you not being able to change this setting on connected accounts via the API

#

let me see if that's possible

sage ledge
#

I don't create prices because my prices are highly variable and defined by the user. The price is directly set in the invoice item with "tax_behavior" set to "inclusive".

To create the invoice, there's nothing more than the code I already sent, as it's already paid — it's just to generate the associated fiscal document.

vague cedar
#

gotcha - i'm fairly certain that exclusive results in the tax appearing separately in the invoice PDF. have you tried that?

sage ledge
#

Should I use exclusive instead of inclusive? If that’s the case, I’m really sorry. I’ll try that.

vague cedar
#

i'm fairly certain that the dashboard setting you found just sets that same property by default for all prices, but you can control it on a price by price level using that tax_behavior property

#

it's been a while since i've looked at this so my memory is a little hazy

#

but based on my testing that should fix it

sage ledge
#

I just made the change on my invoice items, and it doesn’t seem to have any impact.
I recreated a Stripe Connect account to start fresh, but the invoices still don’t show the VAT-inclusive / VAT-exclusive indication.

The invoice on the "master" side: in_1RYkJ1Q6DHd3VBoMe1WjzPnD
The invoice on the Stripe Connect account side: in_1RYkIwPorqt8lZuo3S6khcPE

On the invoice from the Stripe Connect account side, I do see “Automatic tax calculation completed”, but there is a note on the field “Taxation: Not registered”, which is probably causing the issue because when I go to “Configure your tax registrations”, it seems to work for the other invoices (from what I remember).
But I can’t automate this configuration via the API, right?

#

When I retrieve my invoice information via the Stripe API, I get that the tax is not collected as the reason.

vague cedar
sage ledge
#

Hmm, no, that doesn’t ring a bell—I didn’t have that information. So normally, if I create a tax registration via the API, it should then work for tax collection and therefore display both tax-exclusive and tax-inclusive amounts on the invoices, if I understand correctly?

vague cedar
#

i think so - let me double check some things real quick

#

ok yep that step should be necessary. if connected accounts have dashboard access they can also register themselves

sage ledge
#

Perfect, thanks! I’ll try that and get back to you quickly to let you know if it works or not.
Thanks for your help!

vague cedar
#

yep of course! best of luck 🙂

turbid brambleBOT
sage ledge
#

t works @vague cedar , thank you very much for your help and your patience 🙂 !
All the best,