#DevJoseph55

1 messages · Page 1 of 1 (latest)

dapper emberBOT
dim river
#

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.

random ivy
#

@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

dim river
#

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.

random ivy
#

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

dim river
#

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