#meisei81-subscription
1 messages · Page 1 of 1 (latest)
Hi there, yes it is possible to create a subscription for the same product and price for the same customer, would you like to share your trouble please?
If you would like to avoid the same customer from subscribing to the same product, before a new subscription is created, you could check the subscription for the customer [0] and see if there is an existing subscription that shares the same subscription item [1].
[0] https://stripe.com/docs/api/customers/object#customer_object-subscriptions
[1] https://stripe.com/docs/api/subscription_items/retrieve
Hi. Few days ago, I create a same subscription twice for a customer, and the cycle date of these two subscription are the same. At first, I think create a same subscription twice means that the cycle date of the second one would be after the first one, but it's not what I think in fact.
Why does the stripe system not forbid this action? I can't image the scenario to keep the two same subscription.
Stripe allows a customer to have multiple subscriptions, there is no logic to check what is contained in the subscriptions, it is up to the users to determine what business logic they would like to define for their use cases.