#pawan_38614
1 messages · Page 1 of 1 (latest)
Hello 👋
What do you mean by "count(10)" exactly?
are you talking about quantity?
just i want to user my service 10 times base on their plan. if they visit my website and user my service . it means they 9 times to more to user my service.
Yes i am talking about qualtity
How exactly is stripe involved when you say "using your service"? I mean what Stripe APIs do you call when the user visits your website and uses your service?
Trying to understand your current flow so I can make my recommendation.
i have provide sending mail functionality base on subscription plan .. suppose they send 5 mail in one day they can only send 5 email in remaining 6 day if they have subcription weekly plan
Gotcha. In this case, you should be tracking the email sent on your end right?
You can check what sort of subscription the customer has by listing their subscriptions
https://stripe.com/docs/api/subscriptions/list
and handle it accordingly.
Thank you. it is multiple subscription on particular one customer .. I think this is not fulfill my requirement becuase we have implemented only one subscription should active at same time on particualar customer.
That's the only endpoint that let's you list subscriptions for a customer.
If you want, you can track the active subscription IDs in your Database (with webhooks)
Then you can just use the retrieve subscription API
https://stripe.com/docs/api/subscriptions/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.