#geoffdgeorge

1 messages · Page 1 of 1 (latest)

sly cedarBOT
viscid girder
#

That sounds right -- can you share more details about when/where that error surfaces?

#

If you're controlling application of this with your own API calls (vs in Checkout) then the amount restriction seems unnecessary (you can check your own rules) and not something you want with a trial

teal galleon
#

Yes, we're controlling the application through API calls, and it's coming back from the subscription-create call.

viscid girder
#

But this is a restriction at the promo code level not the underlying coupon, so you can implement the rules via your own logic in your create engine

teal galleon
#

I guess I just wanted to make sure I understood correctly, before making any further decisions, that what's happening is, because of our trial, we're still at a $0 balance at time of subscription creation, meaning any minimum-amount requirement built into the promo code is always going to reject there.

#

Because we're creating the subscription with a price ID submitted, but it seems like the promo_code minimum_amount check is not looking at what the price will be at time of the trial's end, if we're getting an error that we're not meeting the minimum amount.

viscid girder
#

If you create the subscription via the API directly, you should be able to apply the coupon (rather than the promo code) and expect the discount to apply to the paid invoice followingthe trial end

teal galleon
#

Well, the reason we need to use the promo code on subscription create is because many of our promo codes are single-use redemptions, so if we apply the coupon rather than the promo code, that redemption of the promo code never gets carried out.

#

When we apply a promo code without a minimum-amount restriction, it carries through just fine, and the promo code is redeemed.

#

But it seems there's no option for redeeming a promo code with a minimum-amount restriction if you also have a trial period set at the beginning.

viscid girder
#

Sure, so it sounds like you need to omit the minimum amount restriction, since you're starting with a trial