#kirb-subs-coupons
1 messages ยท Page 1 of 1 (latest)
thank you! ๐
Hmm okay let me check on this.
I think it is dependent on how you are handling usage
makes sense
How are you charging for usage? Total amount at end of period?
yes, updated daily via a set
But is it last usage sent during billing period?
Or Sum or Max?
There are a few options that could influence things here.
Aggregation mode: Last value during period
Price per unit: Depends on quantity, see tiers below
does that help?
Yep thanks
One sec, thinking a moment
So yeah okay the coupon will only apply when the invoice is generated/finalized.
So if that happens outside the coupon window, then it will no longer apply.
i see
There could be some ways around this.
Oooh ๐ค
Actually let's back up one sec.
How are you showing the customer the amount they would be charged?
Are you using the invoice amount? Or are you using the retrieve an upcoming invoice endpoint?
we push folks to your premade invoice page via a call to billingPortal.sessions.create and i believe we have stripe email invoices to them every month as well
๐ I'm hopping in since bismark has to head out
sure thing, thanks for your help bismark!
I don't think I'm fully understanding - exactly what you're trying to accomplish. Can you tell me specifically, what behavior are you trying to accomplish when you add a 100% coupon for x months?
sue. i'm trying to provide a window of time where folks can see what their usage is, and what the cost would be, but not actually get charged for it
what isn't working the way you expect to?
i was wondering what the exact behavior for this interaction is. It was unclear to me what the user would be charged for when the billing period extends beyond the coupon's duration. it's also hard to test manually, because i'd have to wait 30 days for a coupon's duration to expire to confirm the interaction.
bismark helped out by letting me know that they would be charged for the full amount of usage for the entire billing period.
As a follow up question, is it possible to provide 100% off for exactly x days while retaining the itemized usage + cost on the invoice? I would be using the createUsageRecord API as described above. Maybe a trial period would be better?
We have Test Clocks to advance time https://stripe.com/docs/billing/testing/test-clocks
sweet!
but the Coupon really just applies on a per invoice basis
so we don't "prorate"
like if you have a monthly subcription with 100% off that expires on June 15, the Invoice on June 1st will be 100% off and the one on July 1st won't have the coupon at all
thank you for your help
Did that make enough sense?