#Iliyan
1 messages · Page 1 of 1 (latest)
hi! that would be expected since you're not using the PromoCode in the API, you're just passing a coupon to an invoice. The PromoCode counter would be updated when it's actually used, for example when it's entered successfully into the input box in our Checkout hosted page. I don't think you can increment it yourself.
thanks for the quick response!
yeah it makes sense, the invoice is not aware of the promotion code at any point
is it possible to apply the promotion code rather than the coupon?
or is that restricted just for the Checkout hosted page?
the latter as far as I know, that's really what they're aimed at for the moment, being used on our hosted pages like that. If you have a direct integration then you have to apply the coupon directly and it wouldn't really be connected with out concept of PromoCodes
it definitely makes sense and I know we had plans at some point to let you pass a PromoCode into the Subscription/Invoice APIs directly but I don't think it's been prioritised
ah damn, I'll probably go ahead and implement that using the meta properties
I think the whole separation between the hosted pages and SDK is a bit blurred. For instance, nowhere in the docs it's pointed out that the promotion codes can't be used in a custom implementation. I found it a bit confusing, but that might be just me