#MarceloOlandim
1 messages · Page 1 of 1 (latest)
Can you share some object IDs please? sub_xxx, promo_xxx?
sure.. this is the promoId promo_1Ml9ufC6SiKqhq3NQ25HkpvO
This is the subscription: sub_1Mlr4RC6SiKqhq3NavjXJdcj
Ok, so you used the coupon parameter directly: https://dashboard.stripe.com/test/logs/req_2FmmUGlJ4uWLE9
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Not the promotion_code param
So technically true – the promo_1Ml9ufC6SiKqhq3NQ25HkpvO hasn't been redeemed. If you want to use that and log the redemption, pass it via promotion_code: https://stripe.com/docs/api/subscriptions/create#create_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.
Using the parent Coupon won't flag as a redemption against the promotion code
Ok, thanks ! That was super useful!
but I would need to apply the promocode id on instead of the promo code directly on the subscription creation right?
Yes, exactly. Pass promotion_code: 'promo_1Ml9ufC6SiKqhq3NQ25HkpvO' when you create your subscription
And omit coupon.
sorry.. omit coupon? So where should I apply the promoId if not inside the coupon?
Ops.. promo_code I guess
Yes. just pass promotion_code and remove coupon
np!