#Markan97
1 messages ยท Page 1 of 1 (latest)
you'd want to use the thresholds feature :https://stripe.com/docs/products-prices/pricing-models#thresholds to force an invoice when a certain usage is hit
Yes, I have done that. And my subscription's sub_1MqCPDE4ldziAC9E5ohfveMX invoice is in Draft status. How to bill immediately?
it will charge in an hour(per https://stripe.com/docs/billing/invoices/subscription#subscription-renewal for all recurring invoices), or you can call https://stripe.com/docs/api/invoices/finalize to finalize it now
Ok, I have paid the next invoice, and increment records for the subscription item to the next package. I can't see the draft invoice. Only what I see is the preview of the upcoming invoice and it's said that will be charged for 2 packages...
Can u check again same subscription please?
what exactly am I looking for?
The invoice was paid for the first package 19.99, next package needs to be charged for 21 units. It's 21 and I can only see the upcoming invoice which included the first package. But I want to charge again for next package.
what is a package?
I don't really understand. You reported some usage, it hit the threshold, we generated the invoice
price_1MqBtCE4ldziAC9E4wXh8rI0
you haven't reported any new usage since then I think? so why would there be another invoice?
I want to charge for every package is reached.
I don't know what that means
That would mean that if he reached one unit in the first package, I would charge him $20. Next time I want to invoice him when he reaches 21, 41, 61 etc. More precisely, every time he "enters" a new package to charge him immediately. Was I clearer now?
I think so. I'm not sure you can really implement that though
any workaround you may know?
๐ taking over for my colleague. Let me catch up.
Thank you, and take your time!
I think you can use the https://stripe.com/docs/api/subscriptions/create#create_subscription-billing_thresholds-amount_gte to set it to whatever threshold you want for the invoicing to happen
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
in your case I guess $19.99
Yes, but the problem is that I don't want to charge when it reaches 19.99, but as soon as it enters the package. that would be 0.99. But it doesn't reset, but it triggers again when the next package arrives.
your price is 19.99 per 20 right?
Yes
I want when reach 0.99 to invoice whole package.
But for the system to know that there are 19 more units to trigger until I charge the next package. more precisely, when it reaches, for example, 21 units, I should invoice him again for 19.99
The current behavior is that he charges the invoice, but resets all my units and effectively I will charge him 19.99 for each unit. Instead of every 20th.
I don't think that's possible unless you don't really care about the recording the "per-package" usage in Stripe
in that case each unit in Stripe would be 19.99$ and you keep track of the actual usage in your own system and you only report usage when the threshold is passed (each 20 in this case)