#sejo
1 messages · Page 1 of 1 (latest)
Hello, I have a question, where do I get the subscription_ID that points to the documentation code?
Well that depends mostly
You can load the Subscription in your Dashboard to get the ID
Or you can list Subscriptions via https://stripe.com/docs/api/subscriptions/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Are you trying to retrieve a Subscription ID or a Subscription Item ID?
Those are different things
subscription ID
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you very much I will implement the code and if I have doubts I will come back, have a good day