#vamsi_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/1232193408974716928
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, how can I help?
Hello
I would like to understand if the subscription works on a dialy basis, how to set billing_cycle_anchor/billing_cycle_anchor_config values
You should set the price recurring's interval to day, that's the paramter that control the billing interval.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Get that how about billing_cycle_anchor ?
You don't need to use this param for daily billing.
what about for weekly and bi-weekly
Use the same param, check the API reference for more details https://docs.stripe.com/api/prices/create#create_price-recurring-interval
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
For bi-weekly, you can set interval to week and interval_count to 2
Can you tell me what make you think you need to use these params to configure the interval or recurring billings?
recurring billings
billing_cycle_anchor or billing_cycle_anchor_config is only used to set when you would like the cycle to be billed, e.g. every Monday
If you only want to bill at weekly or bi-weekly, creating price with the interval and interval_count should be sufficient
so both serve the same purpose ?
but billing_cycle_anchor_config is to specify a specific day
how to control the end of interval bill ?
through price or subscription
?
No, they are for different purpose. I'd highly recommend you to read the API reference for a better understanding.
Sure will do that
how to control the end of interval bill ?
through price or subscription
?
I'm not sure what you mean by "control the end of interval bill ", can you elaborate?
end of recurring bill
suppose if i want 12 recurriing bills on month interval
after end of 12 months subscription should end
OK, so you want to schedule an end for the subscription?
https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases you can achieve it with subscription schedule