#superfedz

1 messages · Page 1 of 1 (latest)

sharp ospreyBOT
glacial osprey
#

👋 happy to help

#

you want the Susbcription to start in the future?

whole spoke
#

Perfect. I'll take a look

#

Your code example isn't loading

glacial osprey
#

hmmm that's interesting

#

let me take a look

#

could you please try to change the coding language?

whole spoke
#

Working on other languages, just not .net. Ill figure it out

glacial osprey
#

var options = new SubscriptionScheduleCreateOptions
{
  Customer = "cus_xxx",
  StartDate = 1688120729,
  EndBehavior = "release",
  Phases = new List<SubscriptionSchedulePhaseOptions>
  {
    new SubscriptionSchedulePhaseOptions
    {
      Items = new List<SubscriptionSchedulePhaseItemOptions>
      {
        new SubscriptionSchedulePhaseItemOptions
        {
          Price = "price_xxx",
          Quantity = 1,
        },
      },
      Iterations = 12,
    },
  },
};
var service = new SubscriptionScheduleService();
service.Create(options);```
whole spoke
#

Nice one.

whole spoke
glacial osprey
#

before the Phases

whole spoke
#

Still struggling to understand where it goes. Can't see Payment Behaviour on the documentation either

glacial osprey
#

oh sorry I missed it's a Subscription Schedule

#

you can't really change the payment behavior of a subscription schedule

sharp ospreyBOT
whole spoke
#

Yeah, thats going to be an issue for me. How does the "from subscription" attribute work?

glacial osprey
#

you need to start by creating a Subcription

#

and then you can use the from_subscription parameter to create a schedule from a subscription

#

then you would update the Subscription Schedule

whole spoke
#

perfect. i'll give that a go.

glacial osprey
whole spoke
glacial osprey
#

depending on your needs

whole spoke
#

Makes sense.

glacial osprey
#

if you don't

#

oh but wait

#

the reason why we chose to go with Subscription Schedules is becasue you wanted to start the Subscription in the future 🤦

#

you can't use this approach then

whole spoke
#

Yeah. haha.

glacial osprey
#

what you can do instead is create the Subscription Schedule

#

in that case, I think the only other solution would be to use trials