#El_Chapalero-sub-schedules
1 messages · Page 1 of 1 (latest)
Yes, you can generate a subscription schedule from an existing subscription by passing it in to from_subscription https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-from_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, I did read that. But it specifies that you cant pass in phases if you do that, and recommends you do that in 2 API calls. This is what I tried but I am getting the following error when doing so Error: You cannot migrate a subscription that is already attached to a schedule
You would only pass in from_subscription when you first create the schedule from the subscription - once it's been created, the next request would be an update request using the schedule ID that was just created
Thats what I thought I did. Hmm, let me just double check
If you have a request ID I can also take a look
ok, where do I find the request id?
You can find that in the dashboard https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Thank you
actually before I do that, I just noticed that its actually my call to create the subscription schedule with the from_subscription field.
That must mean the subscription already has a schedule attached to it when created by default?
No, a subscription wouldn't have a schedule created by default. If it already has a schedule that means you must have added it as some point earlier
Yeah, you already generated a schedule for that subscription using from_subscription an hour earlier (see https://dashboard.stripe.com/test/logs/req_PWVNhNmhymQo1C)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hi @plain tangle I'm taking over, give me a sec to catch up
Sure, let me know if you need any help!
Ok, so basically what im trying to do is add a subscription schedule to an existing subscription. Right now, I am getting an error when I included a start_date on my first phase saying Error: You can not modify the start date of the current phase. but when I remove it, I get an error saying I need a start date.
can you send me the request IDs?
OK, you need to specify the start_date of the 2nd phase, which should equals to the end_date of the 1st phase.
ah....
you know, that makes a lot of sense
let me see
Ok, I seem to be doing it now, but I am still getting an error for not setting the start_date
req_QIZBSmjVY7hCUl
Are you able to take a look at that one?
can you include start_date=1651195672 in phase 0?
Sure, what does that timestamp signify?
This is the existing start_date timestamp for phase 0
Ok, that seemed to work
I guess I do need to include the existing start date?
Ok I got it
Thank you for the help!
No problem, happy to help!