#vipul-kapoor_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/1280369111842689085
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! Is this for a one-off invoice or a subscription?
If it's for a one-off invoice, can you also share more on why you want to only charge the customer on a certain date only and not immediately?
My business is a subscription model and users can be on a monthly or annual plan. For monthly subs, I can add the charge to the upcoming invoice but for annual subs, upcoming invoice can be 10 months away.
This charge is for a add on item that the customer has requested to be sent to them in their next box (sent monthly). I don't want to charge them immediately because I want to give them an option to cancel the item before we send it.
For annual subscription as an example, when do you expect the add-on item to be invoiced? Is this add-on item one-time only or recurring?
For example, if the customer signs up an annual subscription on Sep 1 and adds add-on item in Oct 5, when do you expect the customer to be charged?
The boxes are sent monthly in either case. If they signup on Sep 1, they'll get the box on the first of each month. So if they add an item on Oct 5, it should be billed on Nov 1. I can provide this date to the API
This is a one time charge
One way I can think of is to use pending_invoice_item_interval to define how often to invoice the customer for one-time invoice: https://docs.stripe.com/billing/invoices/subscription#pending-items-frequently
For example, the one-time invoice will be added to the customer. When the pending invoice item interval is met such as monthly, an invoice will be created outside of the regular subscription cycle
Alternatively, you can create one-time invoice directly: https://docs.stripe.com/invoicing/integration
Let me see if I got this right.
I set the pending_invoice_item_interval to 1 month, the annual subscription will still get billed on yearly intervals but if I add a invoiceitem to upcoming invoice, it will get charged in a month?
It will charge on a monthly basis with reference to the billing_cycle_anchor timestamp. If customer signs up on Sep 1 (billing cycle anchor) and add an item on Oct 5, customer will be billed on Nov 1.
I'd recommend using test clock to give it a try: https://docs.stripe.com/billing/testing/test-clocks