#vamsi_api

1 messages ¡ Page 1 of 1 (latest)

magic skyBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255039677229174845

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

eternal dagger
astral perch
#

7 th day of every week

#

pay shall kickin every 7th day of week as part of subscription

echo moss
astral perch
#

No according to the documentation - Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurence of the day_of_month at the hour, minute, and second UTC.

#

billing_cycle_anchor_config-day_of_month - this seems to be only for monthly and yearly

#

which i have taken care using the same but I'm looking for DAILY/WEEKLY/BIWEEKLY subscriptions with a specific billing day

echo moss
#

I'm afraid thre's no param for day_of_week, you need to calculate the epoch timestamp for the next 7th day of the week, and set it to billing_cycle_anchor.

astral perch
#

calculation of timestamp for next 7th day of the week => how would this translate after 1 cycle

#

i want this tobe a recurrent payment on 7th day of week

echo moss
astral perch
#

i got that but the question is on creation of subscription if we set the timestamp for next 7 th day, would that be carry forwarded to next payments as part of the subscription ?

echo moss
#

You mean will the subscription automatically renew 1 week after the billing_cycle_anchor ? Yes

#

You should use test clocks to test it out

astral perch
#

if my scubescription is for 10 weeks

#

then every 7th day the payment shall take place

#

is that the right understanding

#

?

echo moss
#

It sounds right to me.

astral perch
#

all i was not clear was if i'm setting the timestamp for 1st recurrence in the subscription how would that translate to further payments

#

if the api guarantees for every 7th day payment on first recurrane ts setting at billing_cycle_anchor then thats great.