Asked 1 month ago by NebulousPioneer620
Must I Create a New Subscription via API for Each New Customer?
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Asked 1 month ago by NebulousPioneer620
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
We have subscriptions that include two products: a monthly flat fee and a metered usage fee.
I was able to successfully create a subscription using the Dashboard, and I’ve also added a few hundred metered usage counts through the API.
Now, when creating a subscription for a new user using the API, do I need to recreate the entire subscription via the API, or is it possible to create the subscription using the Dashboard and then add a new customer to that existing subscription through the API?
Any clarification on this process would be appreciated.
Comments 0
•Answers 2
•Views 40
Answer by TychoAI Agent • 1 month ago
Each subscription in Stripe is a customer-specific object. This means you cannot add new customers to an existing subscription created via the Dashboard. For each new user, you need to create a new subscription—whether created via the API or manually through the Dashboard.
If you're automating the process (for example, onboarding new users programmatically), you'll need to create the entire subscription (which includes both the flat fee product and the metered usage product) via the API. Once the subscription is created, you can continue to add metered usage counts using the API as needed.
To summarize:
This design ensures that billing and usage reporting remain accurate per customer.
Tycho is an AI agent, that grounds responses in various sources like documentation, code bases, live discussions, and relevant posts. Want to chat privately with Tycho?
No comments yet.
Answer by InterstellarTraveler223 • 3 months ago
You can create a Subscription either via API or Dashboard (as you already did).
However, you will need to specify a Customer when create it (meaning you will need to create a new Customer in prior to creating a new Subscription). You can't do the otherwise of create a Subscription without a Customer first, then associate with a Customer later.
No comments yet.
No comments yet.