#phillip_api

1 messages ยท Page 1 of 1 (latest)

proud coralBOT
#

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

rich stump
#

2nd question: Now I do have a couple wrong invoices without the taxes. Is it possible to correct this afterwards?

undone sand
#

hi there!

#

how do you create the Subscriptions with the API? Checkout Session, or directly the Subscriptions API?

rich stump
#

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"
});
undone sand
rich stump
#

Okay, so simply by passing

automatic_tax: { enabled: true }
``` correct?
undone sand
#

assuming you set up Tax registrations and everything (as mentioned in the link I shared above), yes.

rich stump
#

Got it. And now I do have a couple false invoices without the tax. Is there a way to correct these? :/

undone sand
#

yes you can update existing Subscriptions with automatic tax. but that will only work if the customer have a valid address.

rich stump
#

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?

undone sand
#

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

rich stump
#

alright. Last question: Is there a bulk edit for subscriptions so I can activate "Collect taxes automatically" for all subscriptions?

undone sand
#

nope

rich stump
#

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

undone sand
#

option 2 should be possible yes.

rich stump
#

Is the correct way:

  1. Issuing a credit note which and refund the amount and then
  2. Issuing an invoice with the correct amount including taxes and select "Autocharge"?
undone sand
#

there's no "correct way". but yes what you described can work!

proud coralBOT