#hy1989_code
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/1375033252733255742
๐ 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.
- hy1989_api, 2 days ago, 9 messages
Hi, can you share a request id from what you're trying to achieve? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Is your ideal state to show the reversed tax on the invoice receipt? Or, something else?
Request Id: req_85FtQzL7e2Dp03
https://dashboard.stripe.com/test/workbench/logs?selected=req_85FtQzL7e2Dp03
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Adding response as well
You can't edit a finalized invoice. Can you confirm what you're really trying to accomplish so I can think of solutions?
We want to implement reverse charge VAT handling based on the customer's country selection.
Our business and Stripe account are both based in Switzerland.
If the customer is from Switzerland, we charge Swiss VAT and show it clearly on the invoice.
If the customer is outside Switzerland, we do not charge VAT. Instead, we want to display the following note in the invoice footer:
"Reverse Charge: VAT to be accounted for by the recipient as per applicable tax law."
How can we achieve this behavior using Stripe?
attaching our sample invoice
Hey! Taking over for my colleague. Let me catch up.
You should make this request: req_85FtQzL7e2Dp03, before the invoice got finalized
usually you have one hour window to update the generated invoice from Subscription
The idea is to listen to the webhook event invoice.created and do your check (add footer or not, add VAT or not...) and update the invoice as it will remain in draft status for ~1hour.
after adding the few changes we are getting below error
You can only enable invoice creation when mode is set to payment. Invoices are created automatically when mode is set to subscription, and are unsupported when set to setup.
https://dashboard.stripe.com/test/workbench/logs/req_SWt5az6n1lcuBn
Request Id: req_SWt5az6n1lcuBn
I have set this before creating the invoice
InvoiceCreation = new SessionInvoiceCreationOptions(){ Enabled = true, InvoiceData = new SessionInvoiceCreationInvoiceDataOptions() { Footer = paymentCheckoutRequest.Metadata["reverse_charge_note"], },},
No you can't do that. What you can do instead is to set the invoice footer at the Customer level:
https://docs.stripe.com/api/customers/create#create_customer-invoice_settings-footer
And then create the Checkout Session for them.