#mac-subscription-items
1 messages · Page 1 of 1 (latest)
mac-subscription-items
Hey @tiny egret, the Subscription API can have more than one Price at a time
so the items.data property is an array of each SubscriptionItem
How can i get the price that the user is actively on ?
and each SubscriptionItem has a Price associated with it
that's not what I am explaining
the user (which we call a Customer) has a Subscription (he can have multiple). And that Subscription can have multiple SubscriptionItems because they can be subscribed to multiple Prices at the same time
that part is up to you/your integration. But yes items.data[0].price will exist since a Subscription has at least one Price
For our services they can only subscribe to one price at a time. When they schedule a subscription to change, will it append into items.data ? Or the array is a representation of all active prices they have ?
that's unfortunately not at all how it works
there's no "schedule the change" on that API. It'd be a completely separate API called SubscriptionSchedule https://stripe.com/docs/api/subscription_schedules
so it depends a lot how you're building your integration overall
okay, I believe that is the desired behavior I was looking for . thanks for the help!