#kado-kaelan
1 messages ยท Page 1 of 1 (latest)
Do you mean events?
There is a list of events that trigger webhooks related to subscriptions here: https://stripe.com/docs/billing/subscriptions/webhooks
Let me know if that gets you oriented in the right direction
okay yeah this makes sense
I'm wondering tho are there absolutely necessary events?
just wanna make sure im not duplicating efforts
seems like i really only need customer.subscription.created and customer.subscription.updated ?
Also, is there a good way to do team based billing? One user that purchases a plan and the cost depends on how many seats
Those are the most important, I'd say. If you're going for a bare-bones approach, I think you can get by with just those.
You would just adjust the quantity on the Invoice Item: https://stripe.com/docs/api/invoiceitems/update#update_invoiceitem-quantity
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay. I already have a subscription product for indivdual users where i have store the customer object and subscription object in my database which is synced with stripe via the webhooks. To charge teams a subscription i would create a separate product and update the invoice item unit amount and thatll adjust the overall price of the subscription
i set the price which would be on a per unit basis
or said another way each "seat" would be an invoice item "unit"
Correct. And you would adjust the Line Item's quantity on the Invoice that your Subscription generates each month, depending on the number of seats you sell.
is this seperate from adjusting the quantity on the invoice item?
or is this another step
Sorry, I meant Invoice Item (not Line Item). You would have to make a separate update call to the API to update the Invoice at some point after you know how many seats you've sold: https://stripe.com/docs/api/invoiceitems/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
gotcha! thanks you've answered all of my questions
very helpful, i appreciate you!
๐
Sure thing! Happy to help