#sejo

1 messages · Page 1 of 1 (latest)

obtuse monolithBOT
torpid wagon
#

Hello

#

How can I help?

sage elk
#

Hello, I have a question, where do I get the subscription_ID that points to the documentation code?

torpid wagon
#

Well that depends mostly

#

You can load the Subscription in your Dashboard to get the ID

sage elk
#

Is it possible to retrieve a subscription id by email?

#

I think it could be this, but just passing the user's email as a parameter is it okay?

torpid wagon
#

Are you trying to retrieve a Subscription ID or a Subscription Item ID?

#

Those are different things

sage elk
#

subscription ID

torpid wagon
#

Okay well the above is retrieving a Subscription Item. You can't retrieve a Subscription ID via email directly. You would retrieve a Customer via Email using: https://stripe.com/docs/api/customers/list#list_customers-email and then list Subscriptions for that Customer: https://stripe.com/docs/api/subscriptions/list#list_subscriptions-customer

sage elk
#

Thank you very much I will implement the code and if I have doubts I will come back, have a good day