#Mustafa
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
The request didn't fail.
I did all the actions via the Dashboard
Shall I share the coupon ID?
Yeah I mean the ID of the request where it didn't work as expected
Sure
Coupon ID - 3mUfK38r
Payment ID - pi_3Ng0t3JIX39BcHBW0kaxBsdq
The coupon dashboard shows that this is redeemed whereas it is not reflecting anywhere in the payments dashboard
There was no discount applied to the Invoice/Subscription: https://dashboard.stripe.com/test/invoices/in_1Ng0t3JIX39BcHBWsSNKKDWT
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
What is your expectation here?
But if you see the dashboard for coupon , it shows redeemed
https://dashboard.stripe.com/test/coupons/3mUfK38r
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
My expectation is this coupon should be applied to the product that I have limited it to but still it shows redeemed
That's not how that works unfortunately. Although we won't apply a discount, it will still be redeemed
Okay, got it
This means the coupon is wasted, right?
Is there some way we can throw error to the user at the time of applying the coupon?
Something like "You can't use this coupon on this product"
Also, I am seeing things like
myProduct for 15$ and unNamed customer (Created by Stripe CLI)
I am not creating these. Is this something Stripe is doing through some API?
For reference, this is one of the customer id - cus_OSx25RmlNo3bEN and this is the product id - prod_OSx2TJLAPyLRIy
You'd need to check the validity of it yourself. This is where Promotion Codes are better to use in this instance
If you're using stripe trigger in the CLI then the fixtures for each event will create the necessary objects. I'd guess this is related
- Is there a difference between promotion code and coupon? If I use Promotion Code, will that achieve my objective?
- I haven't setup
stripe trigger, how can check for it?
They're meant to be user facing: https://stripe.com/docs/billing/subscriptions/coupons#promotion-codes