#nicolas_code
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/1446526609715630223
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nicolas_api, 3 days ago, 19 messages
hey there, can you share an example request ID where you encounter this error please?
I was browsing the logs, but I couldn't see the request in the logs
The reqeust are made from the checkout session created with the API.
Can you share an example checkout session ID then?
Is-it one valid ID ? cs_live_b1ImOypmBzDsKL7d5jZ3qeXTHTdjj8YYD6fvpMd8oJ1rC5LPtBigg72dni
Some product can use a 100% coupon, some not.
This product prod_Nf1rXSrbC7BNH8 can
This product prod_TY04ppfz0En6Bc can not
Ah, its because your sessions are being created with an older 2020 API version: https://dashboard.stripe.com/acct_1I9CNIEJmTgeBswZ/logs/req_roWfP17N6jJcqO
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
https://docs.stripe.com/payments/checkout/no-cost-orders
Note
You must be on API version 2023-08-16 or later to process no-cost orders using the Checkout Sessions API.
But why do some products can ? using the same API ?
Can you share an example session with that product that was able to use the coupon?
sure let me find one
Here is one session ID req_Ope4eZpyejzoyT
I've used product prod_Nf1rXSrbC7BNH8
And this coupon promo_1NAwmeEJmTgeBswZxjqXCQU0
Ah, its because that's a subscription/recurring price
those work with 100% off already
the limitation for no-cost orders by API version is related to payment mode only (one time payments)
The working session is mode=subscription while the not working one is mode=payment
That's the difference here
So for the payment mode ones, you need to use the newer API version in order for the 100% off promo code to be allowed
Thanks @autumn sentinel