#wim_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/1324371323685830696
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! you could add an extra 9euro invoice item : https://docs.stripe.com/billing/invoices/subscription#adding-upcoming-invoice-items that will be charged in their next invoice, for example.
but the customers are able to cancel the subscription, so no new invoice will be triggered
is that the only way? if so, we would take it also
it's not the only way, you can generate a one-off invoice immediately as well (https://docs.stripe.com/billing/invoices/subscription#generating-invoices) , there are various options
will this automatically charge the customers payment method or does the customer have to take action, e.g. pay the invoice himself?
by default it's a collection_method:"send_invoice" Invoice but you could create it as collection_method:"charge_automatically" instead if that better suits the use case
alright perfect
so with one api call on one subscription I can adjust the price (so that in february it will charge 58โฌ) and trigger the "manuel" invoice of 9โฌ to charge automatically now?
you can do an update call (https://docs.stripe.com/billing/subscriptions/upgrade-downgrade) to change the recurring Price and also supply a one-off item via https://docs.stripe.com/api/subscriptions/create#create_subscription-add_invoice_items and I think it would do what you want, make sure to test it in test mode to see that it does what you expect
thanks a lot, will test it out first! ๐
though if you do it that way it won't charge the 9euro immediately, it will add it as an item for the next invoice like I said in my first reply
so if you really want that 9euro now, you'd need to create and charge a manual invoice
ohh okay, i see
is the manual invoice only possible through dashboard or also via api?
it's all possible in the API
https://docs.stripe.com/invoicing/integration for instance, using the pre-existing Customer ID
alright, thanks alot
i think your input will help me