#kado-kaelan

1 messages ยท Page 1 of 1 (latest)

night kayakBOT
fierce jungle
#

Let me know if that gets you oriented in the right direction

void escarp
#

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

fierce jungle
fierce jungle
void escarp
#

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"

fierce jungle
#

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.

void escarp
#

or is this another step

fierce jungle
# void escarp is this seperate from adjusting the quantity on the invoice item?

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

void escarp
#

gotcha! thanks you've answered all of my questions

#

very helpful, i appreciate you!

#

๐Ÿš€

fierce jungle
#

Sure thing! Happy to help