#blank0000
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- blank0000, 2 days ago, 6 messages
Is the discount to be applied once ?
Ok, you can set the coupon's duration to once https://stripe.com/docs/api/coupons/create#create_coupon-duration, and the discount will be automatically removed for the subsequent invoices
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I understand, however we want to remove the discount if it's unused by a certain time
Ok, you can set it to null https://stripe.com/docs/api/subscriptions/update#update_subscription-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.
Yes, but what we want is the automated removal, the question is if Stripe can automatically remove a discount applied to a customer. Like how you can with Subscription Schedules, just with the Customer instead.
Sure you can use subscription schedule to remove a coupon. Have you tried?
Yes that works, but I think you might be misunderstanding me. We want to apply the discount to the customer, not the subscription.
that's unfortuantely not possible other than directly calling the API to set coupon:"" on the Customer object at the time you want that to happen
okay, so the only way is for us to manage the removal through our own automation?