#Webdew-coupon
1 messages · Page 1 of 1 (latest)
it is a coupon
Did you try? I don't think you can
there is no option for edit
but i want to do so bcos i have sent the promocodes in that coupon to 100 users
but when they use it the subscription is to discounted on forever basis
I'd recommend just deleting it then and re-creating the Coupon with the same code for the actual rules you want
can i create them using excel ?
Excel?
You'd have to use the API
can i do something like coupon is applied only for first month on subscription
Yup! You'd do
If you do Duration: 'Once' it'll apply to the full billing period, which could be a year if an annual Price object
ok so when iam creating subscription i will pass duration as 1 in api
will that solve my issue
or i have to gnerate coupons again ?
No, you'll want duration: 'repeating' and then also pass duration_in_months: 1: https://stripe.com/docs/api/coupons/create#create_coupon-duration_in_months
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.