#alecpope
1 messages · Page 1 of 1 (latest)
hello! are you trying to apply a discount/coupon to a Subscription for a specific product?
I think you can refer to this guide if that's the case : https://stripe.com/docs/billing/subscriptions/coupons?dashboard-or-api=api
I mean more like "product XY can be bought for 5€ less this week" (automatically). So you don't need to insert a coupon first
No, I have the separate charges and transfers flow. (so invoices?)
then you would either create a new Price for that amount to use when creating that Invoice, or alternatively, apply the coupon on the Invoice for the customer : https://stripe.com/docs/api/invoices/create#create_invoice-discounts-coupon
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alright, thanks!