#bipin6343
1 messages · Page 1 of 1 (latest)
Preview upcoming invoice API can be used to check the units that have been set and will be charged in the next invoice: https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
my plan Starts at $0.00 per unit + $2,880.00 / year upto x units and after x units will charge y per unit. Now i need to track unit usage
Is your pricing model usage billing such as the usage on regular basis? Or do you update the amount of the subscription item manually?
I have used graduated pricing
which is exprected to charge flat pricing for some unit and charge another per unit pricing for rest
In this case, the quantity will not be changed unless the it is updated. Subscription Retrieval API can be used to check the quantity of the items: https://stripe.com/docs/api/subscriptions/retrieve