#andrew-schedule-update

1 messages · Page 1 of 1 (latest)

drifting laurelBOT
grim shell
#
      proration_behavior: 'none',
      items: [
        {
          id: subscriptionItemId,
          price: priceId,
          quantity: 0,
          deleted: true,
        },
        {
          price: updatedPricedIdKey[priceId],
          quantity: 1,
        },
      ]
    }
#

this was my original code , while it works,I did not realize i can set a schedule

mint prairie
#

Actually I just tested this myself. Good timing

#

So you are trying to create a Subscription Schedule? Or just update the existing Subscription?

grim shell
#

I was trying to replicate the UI and saw that there was a end of the current period option on it. So which ever can do that?

#

It seems like setting a schedule would make more sense

mint prairie
#

I was trying to replicate the UI
What UI are you referring to here?

grim shell
#

I got here from updating a subscription by clicking schedule update

mint prairie
#

fjsa

#

Sorry, keyboard issues

#

Okay so you mean the Dashboard UI

grim shell
#

oh yes, sorry for the confusion

mint prairie
#

Yes the Dashboard is taking advantage of Subscription Schedules in this case.

grim shell
#

@mint prairie I wouldn't want to cancel the subscription

mint prairie
#

Okay in that case you would set the end_behavior to release. This would end the Schedule but continue the subscription with the same price as in the last phase of the schedule.