#yelseW
1 messages · Page 1 of 1 (latest)
It says phases expects an array. You seem to be passing in an object
So if I want all the items in a subscription to have the same iteration, will that be multiple "phase" objects?
Or is it still 1 "phase" object, but an array of "phase.items"?
I've converted it to an array, but now getting:
The subscription schedule update is missing at least one phase with a
start_dateto anchor end dates to.
And when I set start_date: "now" it gives:
You can not modify the start date of the current phase.
What should I be sending through?
Yeah what happens here is you already have an ongoing phase (the "current phase") for this Subscription
So you can only modify its end_date, since its start_date has already happened
I only want to determine its end date through the iteration passed in, is that possible?
The correct way is find the current start_date, then pass it in as start_date instead of now
How to find it: Retrieve the Subscription Schedule and look at phases[0].start_date
Can I view the schedule anywhere in the dashboard? I've successfully modified the schedule but I can't see its end date defined
You have the Sub Sche Id, you can do a Retrieve API
I know we can get it from the API, but I want to know if we can do it from the dashboard
https://dashboard.stripe.com/test/subscription_schedules do you see it here?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Nope
Just to give a little more context which might help, I've created a subscription X , and I've created a subscription schedule from subscription X. This was so that the first cycle gets charged on creation
Now I want to modify the schedule such that it will end after a fixed number of iteration
Oh that page is only for scheduled in the future
So yes you can only see the schedule related information form the subscription X page itself: https://dashboard.stripe.com/test/subscriptions/sub_1NE3RwDBF4LGcRTgc6NePGW3
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I can't find any info relating to the subscription schedule on that page
It's on the Logs or Events if you scrolled down ie. https://dashboard.stripe.com/test/events/evt_1NE3S9DBF4LGcRTgfxPHFWFD
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah but they don't give anything else besides what was changed, is there nowhere else to visualise the change?
So in my update I've updated the iteration, but it doesn't show it on the actual subscription itself, just that an event has occurred
they don't give anything else besides what was changed, is there nowhere else to visualise the change?
Sorry don't follow this. The event https://dashboard.stripe.com/test/events/evt_1NENCkDBF4LGcRTgBXBduznl should outline what has changed.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
From the previous_attributes
The event represents the update, I want to see the effect on the subscription itself, not from previous_attributes and its changes from an event
In other words, is there a way for a non-tech person to see the changes without browsing a json object
Yeah that's something we haven't supported, sorry! I agree a non-Tech person would find it difficult to understand the flow
Ah ok, so what does the "iterations" actually do? I thought it would reflect the end date of a subscription
I think I'm using it incorrectly (I want to set the end date to after x iterations)
iterations is the number of billing cycles as you said. Yes you can use iterations to avoid time calculation
So.. if my end_behaviour is cancel, after the number of billing cycles the subscription will be cancelled?
Yep
Alright cool that works, if the end_behaviour is "cancel" we do get a visual indicator on the dashboard (cancels <date>)