#stellarloony-promotion

1 messages · Page 1 of 1 (latest)

small glen
#

hello! can you share the subscription id?

coral forge
#

sub_1LciSoDQGCm5RFTJgrLxn0W6

small glen
#

it's the SALE-REPEATING discount right?

coral forge
#

yes

small glen
#

that particular discount has a duration of 1 month - so it'll apply to all transactions for that subscription until that 1 month is up -> "end": 1664511821,

"duration": "repeating",
      "duration_in_months": 1,
#

if you want it to only apply once, then try duration:once

coral forge
#

but the promotionCode created for that coupon REPEATING250 has the first time transactions restriction. and this promotion code was used not the SALE-REPEATING coupon

#

I thought the promotion code's restriction would take precedent

small glen
#

so the coupon can be applied if the Customer has never had any successful payments or invoices

#

the duration of the coupon is an entirely separate matter

coral forge
#

okay

#

but see, that customer has two invoices, both paid, and discount was applied to both too

cunning patrol
#

👋 stepping in and catching up

coral forge
#

hello?

cunning patrol
#

Yep I am looking into this. You mean both Invoices in_1LciThDQGCm5RFTJRX3X8UNu and in_1LciSoDQGCm5RFTJHiMGEFBt correct?

coral forge
#

Yeah

cunning patrol
#

Well that promo code is applied to the Subscription, so it affects all Invoices generated

coral forge
#

oh

#

so all the recurring invoices will have that discount as well?

#

i just checked, discount was not applied to the next recurring invoice

cunning patrol
#

Hmm you are right. It should only apply to the first Invoice. I was looking at the definition on the API reference that "The API ID of a promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription."

#

I think the first 2 Invoices mentioned earlier, frankly they were created almost at the same time, that could trigger this behavior

coral forge
#

yeah they have test clock so their time's frozen

#

i'll test this without test-clock

#

yep it was because of test-clock

#

i would suggest adding this in docs

#

thanks for your help

cunning patrol
#

Like when the time frozen and you both creating and making a proration, theoretically at the same time?

#

Interesting, let me feedback to the team

#

thanks for your report, too!