#taviksha-akar_code
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/1283768067503165541
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- taviksha-akar_api, 4 hours ago, 13 messages
- taviksha-akar_api, 6 days ago, 38 messages
hi there!
so you have an existing Subscriptoin, and want to update its start date?
no that's not possible.
and if the subscription is scheduled subscription and start date is in future then?
then yes it should be possible. have you tried?
Yes I have tried like this
$startDate = strtotime($request['collection_date']);
$dataToUpdate = [
'billing_cycle_anchor' => $startDate,
// 'proration_behavior' => 'create_prorations',
];
$updatedSubscription = $this->stripe->subscriptionSchedules->update(
$subscriptionId,
$dataToUpdate
);
But it is not updating start date
can you share the request ID (req_xxx)? you can find it here 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.
this is a GET request. I'm asking for the request when you tried to change the Schedule.
Is there a way to update the first phase start date so that the other phases start date after first phase updated according?
๐ stepping in here
If you are using iterations then you shouldn't need to change anything
Other than the start date for phase 0
So how can I update first phase start date?
You update the start_date of phase 0 using https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-phases-start_date
Sure
No its not updating phase 1st start date
$dataToUpdate = [
'phases[0]' => ['start_date' => $startDate],
];
$updatedSubscription = $this->stripe->subscriptionSchedules->update(
$subscription_scheduled_id,
$dataToUpdate
);
This is my code.
Please share the request ID from your test
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.