#ledev-fou-fou-fou_docs

1 messages ยท Page 1 of 1 (latest)

crystal rivetBOT
#

๐Ÿ‘‹ 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.

raw pasture
#

๐Ÿ‘‹

#

"Discount vouchers" are not a thing in our API, can you be more specific here with what you are doing/asking?

zealous flower
#

Is it due to a date or a number of promo codes so that the oldest ones no longer work?

raw pasture
#

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

zealous flower
#

no error... response in stripe log valid = true but in my application, response false

#

It's limit number of voucher

raw pasture
#

Can you provide a specific example for me to look at and tell me specifically what is unexspected that is happening?

zealous flower
#

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

raw pasture
#

What no longer works?

zealous flower
#

the last promo code in the list

raw pasture
#

What does "doesn't work" mean?

#

Is there an error?

#

Please be way more specific or otherwise I can't help you

zealous flower
#

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?

crystal rivetBOT
raw pasture
#

Can you provide the specific promotion code ID that you are talking about?

zealous flower
#

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

raw pasture
#

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

zealous flower
#

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

raw pasture
#

That is not the ID

#

As i noted above the ID is promo_xxx

zealous flower
raw pasture
#

I can't look anything up based on that code

#

That is a coupon that you are looking at, right? Not a Promotion code

zealous flower
#

yes is it

#

in french it's the same

raw pasture
#

Coupons and Promotion Codes are completely different things in our API

native cedar
#

These are different things

#

Stepping in as bismarck has to step away

zealous flower
#

ok coupon is limited to 100 active coupon ?

native cedar
#

What do you mean?

zealous flower
#

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

native cedar
#

You can create how many coupons you want

#

There's no limit

#

What error are you getting in the code?

zealous flower
#

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;

native cedar
#

Are you listing all coupons via our api?

#

If so that makes sense

#

But you're allowed to have more than 100

#

I recommend storing coupons on your end to avoid this restriction