#skammerens-datter_api

1 messages ยท Page 1 of 1 (latest)

mossy bloomBOT
#

๐Ÿ‘‹ 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/1264897608724254762

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

potent spearBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

mossy bloomBOT
patent jay
#

Well you'd just update the schedule to remove the downgrade phase

tropic stream
#

FYI: so far, api-wise, I don't create schedules for the subscriptions, rather just a schedule if "downgrading" to ensure it happens when the cycle ends, instead of immediately.
What you suggest is that i remove the phase pertinent to "downgrading", so that the schedule exists, but has no effect on the subscription?

patent jay
#

Well releasing the subscription from the schedule will also prevent the downgrade, but I don't really understand your concern about that approach

jolly shadow
#

You can just release and then create new schedule when next downgrade happens.
At least this is what I implemented for same issue

tropic stream
# patent jay Well releasing the subscription from the schedule will also prevent the downgrad...

My customer can upgrade as they see fit, proration happens and the upgrade is immediate. If they however decide to downgrade, the downgrade should happen when the billing cycle ends, since they paid for e.g. a month, which we don't want to refund. The issue is, that if the customer regrets their scheduled downgrade, they should be able to "cancel" the downgrade. Does that make more sense? ๐Ÿ™‚

tropic stream
patent jay
#

Then just release the subscription from the schedule and the pending phases will no longer apply. Otherwise just update the schedule to remove the downgrade phase

jolly shadow
tropic stream
#

actually never mind; is there instead a way to list all schedules and filter by status?

patent jay
#

It would depend on the other phase(s) on the schedule. A basic schedule would run indefinitely unless you have a limited number of iterationbs set or there's an end date

tropic stream
#

so I guess my confusion is; how would I best undo that change?

#

especially since I would like to reuse the schedule, if a new downgrade (or something else to be scheduled) happens

patent jay
#

So in that example the schedule would release after 1 iteration of the last phase, and the subscription would just continue to cycle

patent jay
tropic stream
#

We might be getting our signals crossed; I'll try to implement it, run some tests, and return if need by ๐Ÿ˜„

#

maybe I'll be able to further explain my issue

patent jay
#

Yeah I mean some examples objects that demonstrate the issue would help clarify things

#

In most cases, using the API with test clocks to simulate the advancement of time help explain these use cases

tropic stream
#

Understood. Also, is there a way to delete a released schedule?

patent jay
#

No they can't be deleted. Why do you care about that?

tropic stream
#

I am trying to determine if a downgrade is scheduled, so that I can update it with the a new phase for other downgrades to update the schedule. In the cases where the schedule has reached its end, I can no longer use the api call to update it. Since I cannot retrieve schedules by customer AND its status as "active", it's a bit confusing to determine if a schedule exists, especially if the api call has a return limit. If hundreds of upgrades and downgrades happen over time, I would have a hard time determining if a schedule exists, or at the very least have a very slow api call to stripe to locally determine the active schedule

patent jay
#

That'll give you the sub_sched_xxx that you can retrieve (or exand directly)

tropic stream
#

very nice; can only one schedule be active for a subscription?

patent jay
#

Yes

tropic stream
#

okay, thank you - that makes much more sense ๐Ÿ˜„

#

I got everything working now, thank you very much for your patience!