#farzin-nasiri_unexpected
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/1291300895107186758
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share the request you created the coupon?
we create them via the UI
Okie can you share the Checkout Sesison ID you created? cs_xxx
as you can see this customer has used the promotion code twice although the code should be one-time usable. here the session id of his second checkout:
cs_test_b1my99L6zHHHjGnJpzqnvKNtCCj6O21nqpE4Mf1O4B3oCpNdO72crl8BCs
That redepmtion: 10 means you allowed it to be used 10 times?
no that is the number of times it has used until now
Okie let me look closer...
ok so that first-time order only means for every customer, anyone can use it once.
But different customers can still use it
Did you have a same Customer Id using it twice?
Ah I see that's cus_QxeS0rBofxja4X
yes exactly, as you can see the same customer with id:
cus_QxeS0rBofxja4X
has used it twice
here are his session ids"
cs_test_b1l7Bv30wsB3a4qSWEtbKjdbfXn8gZFMaiyOF10oU3YNLlmz1o7ETnlgal
cs_test_b1my99L6zHHHjGnJpzqnvKNtCCj6O21nqpE4Mf1O4B3oCpNdO72crl8BCs
Umm that's weird.
I guess because both transactions became $0, so it doesn't count as successful payments or invoices
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices
from API Reference https://docs.stripe.com/api/promotion_codes/create#create_promotion_code-restrictions-first_time_transaction