#ebin-chandy_usage-billing-discounts
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1229398078122098748
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Likely want to leverage the customer balance for this: https://docs.stripe.com/billing/customer/balance
You can apply credit via API to discount their invoice(s) according to their usage in your app
Thanks for the quick response.
But can we place the usage in the invoice, if we are using the credit balance.
If you want to track usage in Stripe directly then that is something else entirely: https://docs.stripe.com/billing/subscriptions/usage-based
But you can't use usage based records to automatically apply discounts, so you'd need to combine the two concepts stil
ebin-chandy_usage-billing-discounts
Is there another option available, such as establishing a product based on usage, monitoring daily usage, and deducting the calculated amount from the invoice at the end of the billing cycle?
hi! I'm taking over this thread.
create a usage based subscription to track usage: https://docs.stripe.com/billing/subscriptions/usage-based
and then manually add dicounts to the invoice when needed
in this case the usage will be shown in the invoice. I will like to explain more the scenario
Consider this scenario: I have a subscription encompassing three products (Product 1, Product 2, Product 3), all configured with usage-based pricing. Upon generating an invoice, the usage cost is $100 for Product 1 and $150 for Product 2. The calculated value for Product 3 needs to be deducted from the invoice without indicating any unit price. In the description column of the invoice, it should state "rebate for the usage of Product 3," and in the Amount column, the value should be displayed with a negative sign, indicating that the calculated amount is discounted from the invoice. Consequently, in the final invoice, the total amount will be the sum of Product 1 and Product 2, reduced by the amount of Product 3.
we don't support this. you would need a Subscription with 2 products: Product 1 and Product 2. and then apply a discount on the Invoice.
Got it. Thanks
one more thing. can we add a new line item to the existing generated invoice.
if the invoice is in Draft, then yes.
otherwise you can use Credit Notes: https://docs.stripe.com/invoicing/dashboard/credit-notes
what about the invoice is in Open status
then you can't add new line items, but you can use Credit Notes
ok make sense