#ledev-fou-fou-fou_docs
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1288863110698107063
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐
"Discount vouchers" are not a thing in our API, can you be more specific here with what you are doing/asking?
Is it due to a date or a number of promo codes so that the oldest ones no longer work?
No idea
Are you seeing an error?
Do you have a request ID that you can share?
I need way more details to be able to help you here
no error... response in stripe log valid = true but in my application, response false
It's limit number of voucher
Can you provide a specific example for me to look at and tell me specifically what is unexspected that is happening?
I noticed from which code it no longer worked... if I create a new code, the last one that worked no longer works, if I delete the one I just created, it works again
What no longer works?
the last promo code in the list
What does "doesn't work" mean?
Is there an error?
Please be way more specific or otherwise I can't help you
the promo code is expired
in the list of promo codes, the oldest ones appear expired or invalid when I want to use them, while in stripe, they are still active... I noticed from which promo code this was happening. the last one that is active in the list becomes expired or invalid on my site if I create a new promo code, if I delete the promo code that I just created, the last code in the list becomes active again and I can use it , there must be a maximum number of promo codes that can be used, right?
Can you provide the specific promotion code ID that you are talking about?
jflsmd doesn't work
if I delete 2, this one will work again
it works now, because i delete another discount code before this
limit of code is 100
The promo code ID looks like promo_xxxx
If you can provide that ID and tell me what is unexpected that is happening with that promotion code then I'd be happy to look
Otherwise I can't help
code promo ID is : ssg20 it doesn't work because this range is 101, the 100 code : ssc20 works
for use this code, you must take a year subscription
That is not the ID
As i noted above the ID is promo_xxx
What you are providing is the code: https://docs.stripe.com/api/promotion_codes/object#promotion_code_object-code
I can't look anything up based on that code
That is a coupon that you are looking at, right? Not a Promotion code
Coupons and Promotion Codes are completely different things in our API
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
These are different things
Stepping in as bismarck has to step away
ok coupon is limited to 100 active coupon ?
What do you mean?
my old code no longer works
if I delete some newer coupons in the list they work again, I noticed that this happens from the hundredth
how to increase this limit of 100 active coupons
You can create how many coupons you want
There's no limit
What error are you getting in the code?
non error api respond coupon is no valid
if this range is 101 of the list
if I delete one, and this code is now in range 100, coupon code is valid
I test in the same page of my website without refresh,
range 101 return false, I delete on stripe a coupon code, I retest, coupon is valid
well I will delete all the coupons which are no longer active or which have never worked with customers, I think this will be the best solution
I had already read somewhere in your doc, a few years ago that the number was limited, but I can't find the source
$details = $stripe->coupons->retrieve($coupon, []);
if($details->valid == TRUE) :
// my code
else :
// return msg coupon expired
endif;
Are you listing all coupons via our api?
If so that makes sense
You can only return up to 100: https://docs.stripe.com/api/coupons/list#list_coupons-limit
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But you're allowed to have more than 100
I recommend storing coupons on your end to avoid this restriction