#radu-dumitru_api

1 messages ยท Page 1 of 1 (latest)

remote meteorBOT
#

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

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

golden hingeBOT
long lagoon
#

there is a typo in my question
specifying the VAT amount in another currency*

frosty bone
#

What's the error you get in your webhook endpoint?

#

When trying to update the invoice?

long lagoon
#

you cant edit a paid invoice

#

the webhook is triggered only when "Pay" is pressed and I think my modification reaches Stripe after the invoice is set on paid
this is my best guess

golden hingeBOT
woven glen
#

๐Ÿ‘‹ stepping in

long lagoon
#

hi there

woven glen
#

Yeah finalized Invoices are mostly immutable. This is due to regulatory restrictions.

long lagoon
#

yep, thought so ๐Ÿ˜„

#

I tried modifying after catching invoice.created btw

woven glen
#

You can modify things like custom fields while the Invoice is in draft

#

But you still won't know the tax amount at that point if you are using auto tax

long lagoon
#

yep
I depend on auto tax because I use one time payment, there are no accounts involved sadly

woven glen
#

Hmm actually

long lagoon
#

hmm I guess I can catch customer.created and query for upcoming invoice
I will give it a try, thank you

#

sadly it is not working because I can't find any upcoming invoices, I tried on multiple events
I guess Checkout just creates an invoice without an upcoming invoice?

woven glen
#

So basically you would need to mirror what you would actually do when you create the Invoice (or what you already did)