#elianbraja

1 messages · Page 1 of 1 (latest)

copper geyserBOT
sage oar
#

Hi there!

#

once means, if you add the coupon to a subscription, it will only apply to one invoice (and not the following ones)
if you limit the number of redemptions to 10 (for example), it means that this specific code can only be used in 10 subscriptions.

#

So it's two different things (but can be a little confusing I agree)

crude jackal
#

please recheck my question

#

I know that

#

I am asking if I create a coupon with the flag "once", why should I set the limit for a promo code?

#

it makes no sense

sage oar
#

please recheck my answer 🙂
If you want the coupon to apply only to the first invoice of the subscription, but you only want 10 users to use that coupon, then you would set: once and 10.

#

the first parameter: how many time within a subscription do you want the coupon to apply (once, repeating, etc). But the coupon can be used by an unlimited amount of users.

#

the second parameter: how many users in total can use that coupon.

crude jackal
#

the second parameter you are referring to promo code?

sage oar
#

second parameter = number of redemption that you mentioned

crude jackal
#

yes but I was talking for the promo code one

#

we can create promo codes inside a coupon code and there we can also set number of times the code can be redeemed

#

is confusing

sage oar
#

Did you understand how once work? It has nothing to do with the number of redemptions.

#

There are two completely different things.

crude jackal
#

For example what does it mean to have the configuration:
Coupon:
Duration: "once",
Limit number of times this coupon can be redeemed: 1

Promo code:
Limit number of times this code can be redeemed: 5

copper geyserBOT
crude jackal
#

The promo code is inside the coupon. Isn't the limit number on coupon code (1) conflicting with the limit number in the promo code (5)

#

This is the thing that confuses me. Can you please tell me what is supposed to happen in this situation

inner cairn
#

Well your promotion code can't have a limit greater than the max redemption limit set on the coupon:

If the coupon has specified a max_redemptions, then this value cannot be greater than the coupon’s max_redemptions.
https://stripe.com/docs/api/promotion_codes/create#create_promotion_code-max_redemptions

crude jackal
#

ah ok thanks. I am interested to implement coupon codes / promo codes for my subscriptions. The problem is that I don't know if I have to send my customer the COUPON NAME or the PROMO CODE CODE for them to apply and get the discount

inner cairn
#

I mean, it depends really. Promotion codes are generally user facing

crude jackal
#

but I cannot apply directly the code to a subscription create or update

#

the only way is to find all promo codes, find the one with that code and get the ID?

#

to then attach that ID to the subscription

inner cairn
crude jackal
#

yes

inner cairn
#

Yes what?

crude jackal
#

I am using create subscription API and I am using the coupon field passing the coupon ID

#

But the flow that I follow is, get the promo code code (user facing code). I get the list of all promo codes by stripe, find the promo code. Then I get the coupon from that promo code and apply it to the subscription

#

is there any faster way? My customers use PROMO CODE CODE ex(SALE23)

inner cairn
crude jackal
#

okay thanks. I have one last question regarding my previous question. I just created a coupon with** max redemption: 10**

added 2 promo codes one with **max redemption 5 ** and another with max redemption: 6. Why is this valid since the sum of both 2 promo codes max redemption is 11 and is grater than 10

#

Coupon ID: NulQ0Az9

inner cairn
#

I would guess that we don't compute the total of max_redemptions across all promotion codes on the Coupon

crude jackal
#

ok but for example if I have redempted 5 times for each promo codes I cannot redeem another time. So 6 is wrong in that case?

inner cairn
#

I'm not sure, maybe. Could be a bug

#

Like I said, I guess we don't check the total of redemption limits across all existing promos on creation. We're just concerned about the one you're creating not being > than the coupon limit

crude jackal
#

okay thank you