#rodan28
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
You can create a Coupon instead: https://stripe.com/docs/api/coupons
I don't want coupon. I want to give free 100 items in first month, so if user will buy 80 items, I want to add discount for 80 items and invoice will be 0.
But if user will buy 240, I want to create invoice with 240 items and discount for 100
You can create a coupon for a specific amount (cost of 100 items).
but what if user will buy smaller amount? I don't want to add additional balance for him
is it possible to automaticly apply coupon?
Coupon doesn't add additional balance, while negative invoice amounts might.
You can also dynamically create a coupon, e.g. if quantity < 100 -> create a -100% coupon
i am asking about something different. I want to add automatic coupon for drafted invoice
(coupon already exists)
What do you mean by "automatic coupon" exactly? Not have the customer type in the code?
yes, i want to add coupon by stripe
You can add a discount.coupon when creating an Invoice: https://stripe.com/docs/api/invoices/create#create_invoice-discounts-coupon
but I have to do it manually when I receive event invocie created?
stripe cannot do it?
Is it for a Subscription?
Yes, you will need to update the Invoice manually when you receive the event, but it's a normal practice. That's exactly the reason why we don't finalize it right away.
ok, thanks
Happy to help!