#olli-meterd-billing
1 messages · Page 1 of 1 (latest)
Hi there! Is the customer accruing "entries" over the course of the month. Or would this occur as a one-time thing at renewal?
good afternoon :)
yes they would be. the thing that makes it complicated is that usage should be based on actual consumption. if the user holds and entry for 5 days then deletes it, they should only be charged for those 5 days
Okay so yeah there are two routes you can go here... you can either use a standard licensed billing pricing where you keep track of the quantity on your side and then update Subscriptions as they cycle, or you can use a metered billing approach, where you send usage to the API throughout the month and then the customer will be billed based on the usage of the previous period. Both those options are described here: https://stripe.com/docs/products-prices/pricing-models#usage-based-pricing
okay. should be able to maybe make a cron trigger that runs daily to bill for entries. when an entry is deleted, i can just update the database entry to say its deleted. the cron trigger can then go ahead and properly delete it after updating billing on stripe's end
or, we could just do it all at the end of the month like you said, but this would cause very delayed billing metrics for our customers, so we should probably avoid it
thanks for your advice and have a nice day :)