#DY

1 messages · Page 1 of 1 (latest)

azure lindenBOT
broken hull
frigid socket
#

Thanks! Read this. I can apply coupon when user starts subscription. And am I correct, that when subscription renews, I will receive a webhook with event invoice.created and in handler of this webhook event add applying coupon to this created invoice?

broken hull
#

hmm, you don't need to add it manually really

#

you'd add the coupon when creating the subscription and based on the duration you have on the coupon, it can apply for mutliple invoices/billing cycles

frigid socket
#

Yes, but user's amount of tokens is system (which used for discount) can be changed, it can be increased or it can be zero, so I need to check and find a appropriate coupon for each invoice

#

And it looks like I always need to create a new coupon for each new invoice to control this behaviour

maiden nymph
#

Hi there 👋 I"m jumping in as my teammate needed to step away. Please let me know if there are any unanswered questions that I can help with.