#kirb-subs-coupons

1 messages ยท Page 1 of 1 (latest)

raw stratus
#

Hi there! Reading!

zealous zealot
#

thank you! ๐Ÿ™‚

raw stratus
#

Hmm okay let me check on this.

#

I think it is dependent on how you are handling usage

zealous zealot
#

makes sense

raw stratus
#

How are you charging for usage? Total amount at end of period?

zealous zealot
#

yes, updated daily via a set

raw stratus
#

But is it last usage sent during billing period?

#

Or Sum or Max?

#

There are a few options that could influence things here.

zealous zealot
#

Aggregation mode: Last value during period
Price per unit: Depends on quantity, see tiers below

#

does that help?

raw stratus
#

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.

zealous zealot
#

i see

raw stratus
#

There could be some ways around this.

zealous zealot
#

Oooh ๐Ÿค“

raw stratus
#

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?

zealous zealot
#

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

trail pond
#

๐Ÿ‘‹ I'm hopping in since bismark has to head out

zealous zealot
#

sure thing, thanks for your help bismark!

trail pond
#

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?

zealous zealot
#

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

heady karma
#

what isn't working the way you expect to?

zealous zealot
#

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?

heady karma
zealous zealot
#

sweet!

heady karma
#

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

zealous zealot
#

thank you for your help

heady karma
#

Did that make enough sense?