#daniel-nissenbaum_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1237055945268269148
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
You want the Subscription to actually be created in the future? Or you want the billing anchor to be in the future but it start now?
Not sure about the nuance there
Have small (~100 or so) users still being billed in our old subscriptions method. They are coming up for renewal in a couple of weeks so i would like those renewals to happen on stripe
https://docs.stripe.com/billing/subscriptions/import-subscriptions-toolkit
I would love to do this CSV method if possible but it seems like its in beta
Gotcha, the best way to do this is to just create the Subscription today and put it on trial using trial_end: https://docs.stripe.com/api/subscriptions/create#create_subscription-trial_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then it will start billing at the end of the trial period
In terms of the PaymentMethod, yes if you set a PaymentMethod as the default for the Customer using invoice_settings.default_payment_method then that will be charged
I'd recommend going through this in test mode using a Test Clock (https://docs.stripe.com/billing/testing/test-clocks) and you can make sure things will behave exactly as you want
ok sounds great
stripe subscriptions create --customer=cus_Q2a86NpRjjy142 -d "items[0][price]"=price_1NC4wPJmq474uon8gtcPKlDJ --trial_end=1715007994
does that command look right to you?
is there anything i am missing?
Looks fine afaict, but always recommend testing it out in test mode
yep, def going to run it in test mode!
๐
unknown flag: --trial_end