#yelseW

1 messages · Page 1 of 1 (latest)

flat harnessBOT
thick lichen
#

It says phases expects an array. You seem to be passing in an object

graceful raptor
#

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_date to 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?

thick lichen
#

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

graceful raptor
#

I only want to determine its end date through the iteration passed in, is that possible?

thick lichen
#

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

graceful raptor
#

Can I view the schedule anywhere in the dashboard? I've successfully modified the schedule but I can't see its end date defined

thick lichen
#

You have the Sub Sche Id, you can do a Retrieve API

graceful raptor
#

I know we can get it from the API, but I want to know if we can do it from the dashboard

thick lichen
graceful raptor
#

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

thick lichen
#

Oh that page is only for scheduled in the future

graceful raptor
#

I can't find any info relating to the subscription schedule on that page

thick lichen
graceful raptor
#

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

thick lichen
#

From the previous_attributes

graceful raptor
#

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

thick lichen
#

Yeah that's something we haven't supported, sorry! I agree a non-Tech person would find it difficult to understand the flow

graceful raptor
#

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)

thick lichen
#

iterations is the number of billing cycles as you said. Yes you can use iterations to avoid time calculation

graceful raptor
#

So.. if my end_behaviour is cancel, after the number of billing cycles the subscription will be cancelled?

thick lichen
#

Yep

graceful raptor
#

Alright cool that works, if the end_behaviour is "cancel" we do get a visual indicator on the dashboard (cancels <date>)