#Chhay Toch
1 messages · Page 1 of 1 (latest)
Actually, I want to get the latest period_end_at of the subscription from CustomerID.
you would use https://stripe.com/docs/api/subscriptions/list#list_subscriptions-customer to get all the subscriptions for a given customer ID and can then read the current_period_end of all the subscriptions returned, that should help!
Is it sort from the latest period_end if there are many "active" subscription?
it's sorted by the created date of the subscriptions, most recently first