I’m already familiar with the ability to get the Stripe Subscription detail (Subscription_id, Status, etc) on behalf of a specified user.
What I’m having trouble with is how to get the subscription detail for a user when the subscription is being paid for by a different user.
My application has Team Leads and Team Members. Team Leads buy subscriptions on behalf of Team Members.
For the examples below, the specific detail I’m looking for is Subscription_id.
User A buys subscriptions for users B, C, and D.
Now User C is logged in and I want to query their Subscription_id.
Current User’s Stripe Customer subscription’s Subscription_id returns a value, but it’s returning the same value no matter which team member account I log in with.
What I need is to get not only a unique value based on which user I’m logged in as, but the same value that corresponds with the Subscription_id that was returned when the subscription was initially purchased.
Ideally I will supply the subscription ID and I’ll get back the subscription status.
Does anyone know how to do this?
It seems the detail being returned is relevant to the most recent subscription purchased by the Team Lead, which when I think about it, kind of makes sense.