#raxraj-sub-promo
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.
Hey!
I can share that, or I can simply tell you the case
So let us say my coupon code is YHBB97h
and I created front facing promotional code
INSIAFREE10
Now I try to update the Subscription object
You will need to share some object IDs
Or just the req_xxx for the failed API call
Check this text file it contains the returned response by the stripe server on failed request
You're using the wrong parameter. That's not a coupon, that's a promotion code: https://stripe.com/docs/api/subscriptions/update#update_subscription-promotion_code
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yeah Exactly
So is there a way to directly apply this to a subscription
Oh! Gotcha
Damn! Man
I was missing the simple point
Got it thanks
I just showed you: use the promotion_code parameter, no coupon