#taviksha-akar_code

1 messages ยท Page 1 of 1 (latest)

stiff cedarBOT
#

๐Ÿ‘‹ 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.

bleak prism
#

hi there!

#

so you have an existing Subscriptoin, and want to update its start date?

#

no that's not possible.

grim latch
#

and if the subscription is scheduled subscription and start date is in future then?

bleak prism
#

then yes it should be possible. have you tried?

grim latch
#

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

bleak prism
grim latch
bleak prism
#

this is a GET request. I'm asking for the request when you tried to change the Schedule.

stiff cedarBOT
grim latch
#

Is there a way to update the first phase start date so that the other phases start date after first phase updated according?

elder hare
#

๐Ÿ‘‹ stepping in here

#

If you are using iterations then you shouldn't need to change anything

#

Other than the start date for phase 0

grim latch
#

So how can I update first phase start date?

elder hare
grim latch
#

Ok let me try this approach.

#

Thanks

elder hare
#

Sure

grim latch
#

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.

elder hare
#

Please share the request ID from your test

grim latch
elder hare
#

That is not an update request

#

That is a GET request