#mac-subscription-items

1 messages · Page 1 of 1 (latest)

valid tundraBOT
plush salmon
#

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

tiny egret
#

How can i get the price that the user is actively on ?

plush salmon
#

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

tiny egret
#

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 ?

plush salmon
#

that's unfortunately not at all how it works

#

so it depends a lot how you're building your integration overall

tiny egret
#

okay, I believe that is the desired behavior I was looking for . thanks for the help!