#DevJoseph55
1 messages · Page 1 of 1 (latest)
Hi there, can you tell me more about your use case? btw you don't need to specify a date when creating a coupon or promo code.
@dim river Say we wanted to create a coupon that will apply to a bunch of products for a 'winter sale' but don't want it to start until December 10th, but we want to create it on the 5th, is there a way to define a future sale via coupons?
and this is not for subscriptions, this is for individual products in a checkout session
OK, if it's a code for you customer to enter during a checkout session, it's promo code, not coupon.
Yes you can create the promo code upfront, and set its active (https://stripe.com/docs/api/promotion_codes/create#create_promotion_code) to false first. Later you can update the promo code and set active to true to reactive it when the winter sale starts.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is there a way to do it for coupons though as well, not just promo codes? @dim river
@dim river because we might have cases where a seller creates a 'coupon' which is a sale on all their products, then additionally has promo codes
There's no active property in a coupon. But coupons are merchant facing codes, only merchant can apply coupons, the customers can't apply coupons in checkout sessions