#stellarloony-promotion
1 messages · Page 1 of 1 (latest)
sub_1LciSoDQGCm5RFTJgrLxn0W6
it's the SALE-REPEATING discount right?
yes
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
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
first time transaction means - https://stripe.com/docs/api/promotion_codes/create#create_promotion_code-restrictions-first_time_transaction
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
okay
but see, that customer has two invoices, both paid, and discount was applied to both too
👋 stepping in and catching up
hello?
Yep I am looking into this. You mean both Invoices in_1LciThDQGCm5RFTJRX3X8UNu and in_1LciSoDQGCm5RFTJHiMGEFBt correct?
Yeah
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Well that promo code is applied to the Subscription, so it affects all Invoices generated
oh
so all the recurring invoices will have that discount as well?
i just checked, discount was not applied to the next recurring invoice
please explain this a bit more
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