#some1ataplace_best-practices
1 messages ¡ Page 1 of 1 (latest)
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.
- some1ataplace_api, 4 days ago, 23 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1274076948401885287
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I am using max_redemptions=1 which I think means that the promo code will only work for that 1 month. Just not sure what happens after.
Hi, I would need a bit more information. How did you configure the coupon etc.. However, in general if the coupon was not created to be applied lifetime, then a payment will be due on the next billing cycle.
I'm unable to use that link
Can you share the request id instead? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_LVhsfW5IJr4w2H
req_L02gQPrQ5uFuuf
I am wondering if there is a way to prevent the customer from getting charged after the first month?
So are you saying that you just want to offer a free price?
just for that 1 month, then cancel them or stop them from paying at all
Yes, you can pass that in when you create the subscription: https://docs.stripe.com/api/subscriptions/create#create_subscription-trial_settings-end_behavior. This allows you to cancel the subscription if no payment method was attached to the customer after the trial ends.
but this is not for a trial though
brb for a few minutes, go ahead and type i will come back in a bit
you're right, you're passing a 100% off coupon instead. I think the best way would be to track this on your end and before the billing period ends on those subscription that have 100% off coupon, you would make an API call to cancel the subscription.
using a webhook?
Yes, that works, You can listen to https://docs.stripe.com/api/events/types#event_types-customer.subscription.created and look at current_period_end. Then, you could actually make a rqeust to update the subscription, https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at_period_end to cancel the subscription at the end of the current period.
Can you try this?
sure, but i only want to apply this only to the 100% off promo code subscriptions, not my other subscriptions. Any way to do that?
You would inspect that subscription and it is has the price that has 100% off coupong, you would make these requests. Otherwise, you would not need to make this request.
okay, i will investigate. thanks