#adambutler

1 messages · Page 1 of 1 (latest)

hasty pagodaBOT
lofty horizon
#

Hi! Let me help you with this.

#

Could you please share the Subscription ID?

bitter bone
#

Test mode ID: sub_1NIpqvBlsszCFRQ0ZnS7rFOM

lofty horizon
#

It seems like the Price is in the plans field. This might be because you're using an older API version.

#

Could you try sending these with a newer version and see if this is the case?

#

Plans is a deprecated concept now, but this might be how it used to work before.

bitter bone
#

Ahh I see in 2020-08-27

On subscription schedules, phases.plans has been renamed to phases.items. This applies for the subscription schedule object as well as create and update requests.

I have the API docs set to my correct version 2019-12-03 and it says items so I think this might just be an issue with the docs then.

lofty horizon
#

Where do you see the docs for 2019?
Stripe only shows the latest docs

bitter bone
#

Ah, I see. I thought this setting gave you version specific docs.

lofty horizon
#

No, docs are always the latest.

bitter bone
#

I'd expect to see a warning panel (like this one) on this propery though right?

lofty horizon
#

I've never noticed this before actually. Yes, probably it would make sense.

bitter bone
#

Thanks for your help. After using 2020-08-27 the key I expected to see Stripe::SubscriptionSchedule.retrieve(id).phases[0].items is now present.

hasty pagodaBOT
lofty horizon
#

Happy to help!

hybrid jackal
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!