#whip7

1 messages · Page 1 of 1 (latest)

odd oarBOT
honest vapor
oblique nova
#

I'm confused. I'm using this api https://stripe.com/docs/api/subscriptions/update. It has a property called promotion_code. I'm setting it to '20Poff'. This is the code of the coupon that already exists in my account. It was created from the dashboard long time ago.

Does promotion_code need to be an array?

honest vapor
#

a Coupon is not a PromotionCode

#

you can't pass the coupon ID to promotion_code

oblique nova
#

Oh I see. Which should I use if I want to give a discount to a customer with a running subscription?

#

The subs is created without a coupon. I want to give a discount on the next payment

honest vapor
#

well a coupon

#

a Coupon is what applies a discount to the subscription. A PromotionCode is a separate object for a different use case(it's a way to let an end-customer enter a code and then you can look up the corresponding Coupon object and call the API to apply that Coupon to the subscription to do the actual discount).