#foodsafe_39500
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.
- foodsafe_39500, 1 day ago, 11 messages
- foodsafe_39500, 1 day ago, 18 messages
- foodsafe_39500, 1 day ago, 10 messages
oh and hello 😄
Hello! Can you give me a bit more detail about why you're trying to do that? Could you instead use add_invoice_items (https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items), which will automatically add those invoice items to the first Invoice of the Subscription
hello, yes i tried doing it that way, but that way was having me create a product/price. and with stripe.invoiceItems.create i didn't have to do those extra steps
Gotcha
So there's a few different ways you could get around the first invoice not being editable:
- You could create the Subscription with a super brief (few seconds) trial, so that the first Invoice is the $0 one you don't care about, and then once the trial is over it'll create the full period invoice that is editable
- You could create your Subscription using a Subscription Schedule with
start_date: now. It'll immediatley create the Subscription, but the first Invoice will still be a draft so you'll be able to edit it
mate..you are next level
could you point me in the direction of either one of those
Here's the API ref for trial_end (which is what I'd recommend for setting a trial on a subscription): https://stripe.com/docs/api/subscriptions/create#create_subscription-trial_end - basically you'd just set it to a few seconds after your current timestamp
And here are some examples for Subscription Schedules (https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases)
Subscription Schedules are a bit tricky to understand, but are technically the more correct workaround to use here if you don't want to deal with that brief trial period and have the extra $0 invoice