#Malik Asif

1 messages · Page 1 of 1 (latest)

exotic tideBOT
lapis patrol
#

Subscription Schedule is indeed the API you need for defining number of cycles. How didn't it work? Have you tried using Test clock to advance?

livid swallow
#

Ho Orakaro, thanks for your quick response

#

after the subscription starts, i used subscription id to create a schedule using 'from_subscription' => 'sub_1NGFypLoTp48kcFwdsgDDEbY' param then updated this schedule with a phase having same price id (as subscription) in it and set
'start_date' => 'now' in schedule update API call

error when start date set : You can not modify the start date of the current phase.

error when start_date param removed: The subscription schedule update is missing at least one phase with a start_date to anchor end dates to.

lapis patrol
#

So the Subscription has 1 ongoing phase already, which you can't change its start date. You would need to specify that ongoing phase, then the next phase with your desired cycle numbers

livid swallow
#

means when a subscription starts by checkout, it has a schedule by default ? if yes then i need to update that schedule rather than a new schedule

lapis patrol
#

No I meant theoretically it has 1 phase already, and when you take a schedule from it, you can Retrieve the Subscription Schedule to see its current state