#eoghanobrien
1 messages · Page 1 of 1 (latest)
hrm, i think the only way to go about this is to create a promo code limited to the specific customer and can only be redeemed once
https://stripe.com/docs/api/promotion_codes/create#create_promotion_code-customer
https://stripe.com/docs/api/promotion_codes/create#create_promotion_code-max_redemptions
so you would have to loop and create one for each customer
Yeah, if you don't have a customer ID you're hosed - if I knew the email addresses, I'd have to create the customer object beforehand via the API or something and then programmatically add slightly separate promo codes per customer?
The only problem I'm really trying to solve is that I don't want the same customer to use the same promo code twice
But I don't think the "Eligible for first-time orders only" covers that, that's literally their first order ever, right?
if I knew the email addresses, I'd have to create the customer object beforehand via the API or something and then programmatically add slightly separate promo codes per customer?
Sounds about right
yes, that's for their first order ever
💩 so no option to limit to max one use per customer?
only via the way i mentioned afaik
if you really want to, you can create X number of promo codes, and then email one to each customer
It's not quite the same thing though, since that's limit to one customer, rather than no limit but single use
it wouldn't prevent customer A from emailing customer B their promo code
but i think the possibility of a leak would be pretty low
yeah, that we could handle with expiration date though
the biggest risk to us is the same customer re-using the same code over and over, which would be easy with the types of products we have
ah, then you can create one promo code with redemption as max one time for each promo code
would that work?
technically yes, but we just push the burden on our customer support to create those promo codes, these often happen ad-hoc in groups of 25-50 people
i would suggest writing a script then, we don't really have any batch feature for coupon creation unfortunately
There's no webhook sent out when a customer attempts to use a promo code to allow for dynamic verification I assume
nope, no webhook sent out
okay, thanks for your help