#pbj
1 messages ยท Page 1 of 1 (latest)
Hello ๐
You can list the subscriptions by customer to check their existing subscriptions
https://stripe.com/docs/api/subscriptions/list?lang=node#list_subscriptions-customer
hot dog! This is awesome thank you, @mossy topaz i must've missed this when reviewing the docs
NP! ๐ Happy to help
@mossy topaz sorry to add to this!
So this endpoint works like a charm but I'm noticing we can't really match up a price item to a subscription item. Is there any where within the listsubscriptions endpoint to know that a customer has an active Subscription x and not an active subscription y?
The subscription should have a list of subscription items
https://stripe.com/docs/api/subscriptions/object#subscription_object-items
Each object in the list should have an associated price too
https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price
All good ๐ Happy to help