#mathan
1 messages · Page 1 of 1 (latest)
Hi there, did you see the error message in the response?
yes but i don't understand
You cannot migrate a subscription that is already attached to a schedule: sub_sched_1MOap8SF6Qh6F24iJ5kA2LQc.
The subscription that you specified in the request is already attached to another schedule.
That's why you can't use the same subscription to create a new schedule.
but that previous schedule is completed
No, the schedule is still active.
cus_N8cJd33g9QWFid there no schedule for this customer but error comes!!
It's not about customer, it's about the schedule. You can retrieve the schedule sub_sched_1MOap8SF6Qh6F24iJ5kA2LQc (https://stripe.com/docs/api/subscription_schedules/retrieve#retrieve_subscription_schedule) and see its released_at is not yet set, which means this schedule is still attached to a 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.
I scheduled for a plan update and finally its updated, then why it's still alive how can i solve this problem?
You can release the earlier schedule before creating a schedule on the same subscription (https://stripe.com/docs/api/subscription_schedules/release#release_subscription_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.
To get the list of schedules, you can call list schedules API (https://stripe.com/docs/api/subscription_schedules/list#list_subscription_schedules-customer) and pass in the customer ID.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.