#phillip_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/1326167277498011658
๐ 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.
- phillip_api, 4 days ago, 35 messages
2nd question: Now I do have a couple wrong invoices without the taxes. Is it possible to correct this afterwards?
hi there!
how do you create the Subscriptions with the API? Checkout Session, or directly the Subscriptions API?
Hi ๐ Directly with the Subscription API
Like so:
const subscription = await stripe.subscriptions.create({
customer: customerId,
items: [{ price }],
trial_period_days: trialPeriodDays,
default_payment_method: paymentMethod,
coupon: couponId,
collection_method: "charge_automatically"
});
you can use Automatic Tax: https://docs.stripe.com/api/subscriptions/create?lang=node#create_subscription-automatic_tax
I recommend reading our docs about this: https://docs.stripe.com/tax
Okay, so simply by passing
automatic_tax: { enabled: true }
``` correct?
assuming you set up Tax registrations and everything (as mentioned in the link I shared above), yes.
Got it. And now I do have a couple false invoices without the tax. Is there a way to correct these? :/
yes you can update existing Subscriptions with automatic tax. but that will only work if the customer have a valid address.
we have a doc specifically about this: https://docs.stripe.com/tax/subscriptions/update
This will update existing subscriptions which is good but unfortunately it wont correct invoices that have already been finalized I assume?
How can we correct already finalized invoices with tax?
How can we correct already finalized invoices with tax?
no I don't think that's possible. you would need to create new Invoices to correct the mistakes
alright. Last question: Is there a bulk edit for subscriptions so I can activate "Collect taxes automatically" for all subscriptions?
nope
And regarding the new invoices: Option 1) This would mean I would need to create a new corrected invoice manually, send them to the user and ask him to transfer the amount? Option 2) Or is there also a way I can refund the incorrect amount without taxes and automatically charge the correct amount including taxes off his credit card? If possible I would like to avoid that the user has to do anything
option 2 should be possible yes.
Is the correct way:
- Issuing a credit note which and refund the amount and then
- Issuing an invoice with the correct amount including taxes and select "Autocharge"?
there's no "correct way". but yes what you described can work!