#kieran_2
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.
- kieran-sub-schedules, 3 days ago, 5 messages
Hello, can you describe your usecase a bit more? It is possible to get a preview with the invoice amount and such fully calculated. But it will just be a preview, it would not be payable https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If you want something payable, I think you would need to create a one-off invoice, charge for it, and schedule the subscription to have a $0 price for one cycle before switching back
I want to do the following:
- Create a subscription, that will create an invoice to the customer, but the billing/plan cycle needs to start i the future
I have clients with set contract start dates, but we want to set up their account and invoice/subscription to they have some time to pay over ACH
What is this bill yearly starting? Is that the schedule subscription at work?
From what I read is that there needs to be a subscription before an invoice, is that correct?
is the bill yearly starting the billing_cycle_anchor?
Yes, that "Bill yearly starting" option will create a subscription schedule and set the start date to the time you selected
Billing cycle anchor will be set to when the subscription is created, so that will also be that time, but you don't have to set that yourself when creating the schedule
ok cool!
When I create a SubscriptionSchedule, will that create a Subscription object in the interface?
Where do I find those? And can I fetch the upcoming Incode for that one as well?
Not until the start date that you set for the subscription. It will populate this property when the subscription is createdhttps://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok!
You can provide the schedule ID to the upcoming invoice endpoint https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-schedule
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
customer=stripe_customer_id,
start_date=contract.start_date,
end_behavior="release",
phases=[{"items": subscription_items, "iterations": 1}],
This would release it then correctly right?
Though that preview will not be payable. To allow time to pay in advance you would need to create a one off invoice and logic to prepay a bit of the actual subscription if it is paid
Yep, looks good to me but I would reccommend testing in test mode to make sure it works how you would expect
Ok, so the only way to get an invoice before is to
- create manual invoice
- prepay the subscription (with what mechanism?)
Hi there 👋 taking over, as my colleague needs to step away
Give me a few minutes to get caught up.
let me know if you need more information
If I understand the situation correctly, you should check if the one-off invoice gets paid, then set a $0 Price for the first cycle of the Subscription Schedule.
yeah, that is what your collegue suggested to do
and I should not send an invoice for that first cycle
since it was already paid by another one
Makes sense. Is there an outstanding question that I missed?
How do I prepay a subscriptions first incoice?
is that done in the ScheduleSubscription?
or how Do I not send th efirst invoice?
I'm not sure I understand. What do you mean prepay?
That is what your college said. That’s why I’m asking
From him: Though that preview will not be payable. To allow time to pay in advance you would need to create a one off invoice and logic to prepay a bit of the actual subscription if it is paid
How do I do that in the subscription schedule?
Maybe you can connect me with someone else
Yeah, I asked them what they meant and they said they didn't mean to use the term prepay, so I'm asking you what you mean when you say prepay.
Help me help you
It laterally says it in their text above
If that is not correct, how else would I solve my problem?
Otherwise I’ll just contact my account manager maybe that’s better
I can get ahold of them for you if you like. What's your Account ID?
If that is not correct, how else would I solve my problem?
They said the term "prepay" was perhaps not the best word to use. This was what they sent to me during handover:
Prepaying was actually bad phrasing on my part. My recommendation would be that if that one-off invoice gets paid, they set a $0 price for the first cycle of the scheduled subscription.
The implementation is the same though