#King Of Web Devs-coupons

1 messages · Page 1 of 1 (latest)

gusty viper
#

Hello! I can try and help - what's the problem?

rancid glen
#

Hi Karbi

#

do you need account details?

#

basically ive applied a coupon to all subscriptions back in Septemeber

#

some are now for renewal and customers are paying

#

the subscription renewal is paid via an invoice generated by the stripe system

#

the invoice shows the discount code text but has an amount of zero

gusty viper
#

Do you have the ID of a specific invoice?

rancid glen
#

in_1K1wAwBV2H1qTFlLnSACTQbl

gusty viper
#

The coupon that's been applied to that Invoice only applies to one specific product that is not included in the Invoice - that's why there is no discount being taken off

rancid glen
#

The coupon was setup for product Gold_pro

#

The client should be on Gold_pro

#

And why would that coupon text appear on invoices that aren't for that specific product anyway

gusty viper
#

The coupon is tied to product prod_JnUiY922PJVDww, but the subscription is on price price_1HYxSGBV2H1qTFlLRSNd8dtI which is tied to product prod_FMERhDRcjflsVE

rancid glen
#

But when i created the coupon, i tied it to the product prod_FMERhDRcjflsVE and specifically the Gold_pro price

#

The logs show the creation but no link to any product at all

gusty viper
rancid glen
#

Right, ok, so to resolve this issue can i remove that product from the coupon and add the intended product?

#

Failing that i presume i will have to create a new coupon and apply that to the correct product? If this is the case can i use that previous coupon ID?

gusty viper
#

You'd definitely have to create a new coupon since we don't allow you to update applies_to once the coupon has been created. Let me just check a couple things for using the provious coupon ID

rancid glen
#

thanks

gusty viper
#

So I'd recommend that you don't use the same coupon ID - the existing subscriptions will still be tied to the original coupon (that I assume you'll delete), and won't automatically see that there's a new coupon with a different set of applies_to products

rancid glen
#

ok so ill have to write a script and get the API to update all existing users.

gusty viper
#

Yeah unfortunately that's the most foolproof way of doing this - I know it's a hassle 😦

rancid glen
#

no worries at least i have an answer

#

thanks for your help

#

wish the chat service knew their stuff