#sugam1469_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/1242761999340015688
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi
In that case you create a Subscription that starts at the 1st of the month using backdate
billing_cycle_anchor doesn't allow to create subscription in backdate
What do you mean by "doesn't allow" exactly?
billing_cycle_anchor cannot be the timestamp of past date
Yes, because these are 2 different fields, billing_cycle_anchor that has to be in the future, and backdate_start_date, with a past date.
thank you it worked and is there any document to handle credit?
Is this a separate question?
Yes
What kind of credit?
Like if user subscribe in the middle of the month suppose in 20th may
We are charing the full amount i.e 300
As user has subscribed at 20th may he will have the 100 as credit ie (200 for 20 days and 100 credit).
And this credit amount should be reducted from the next billing date which I have set to the 1st date of next month>
In next billing cycle he need to pay (300 - his credit amount)
Let me check...
If you just use billing_cycle_anchor, it will charge just for the prorated amount, this way you won't need to handle the credit.
the requirement is to handle credit so
You can adjust the customer balance and it will automatically be applied to the next invoice: https://docs.stripe.com/billing/customer/balance