#AJ95
1 messages · Page 1 of 1 (latest)
👋 Hi there, Happy to help!
A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer.
While, A Promotion Code represents a customer-redeemable code for a coupon.
Hello
But in order to apply a discount to a subscription by API, you need to update that subscription and add a Coupon not a promo code, correct? is there a way to apply the promo code through API other than through checkout?
No the promotion code is set by the customer via Checkout Session, the API.
You can get the coupon from the promotion code and set the related coupon to the subscription after:
https://stripe.com/docs/api/promotion_codes/object#promotion_code_object-coupon