#matty-schedule-past
1 messages ยท Page 1 of 1 (latest)
You don't need schedules for that. You can use https://stripe.com/docs/api/subscriptions/create#create_subscription-backdate_start_date
The issue I was seeing with that is "If set, the first invoice will contain a proration for the timespan between the start date and the current time. " We would want to charge them for the full amount.
We have products that ship out vs. providing a pro-ratable service. When we charge the customer, it needs to be for the full amount each time.
use backdate_start_date and billing_cycle_anchor
that should do what you want I think
Thanks. We'll try that out. We've been staying away from the subscription endpoint because the schedule has the ability to set the number of iterations in the phases vs. calculating the dates. I assume the back_start_date param isn't available to schedule subscriptions?
we do have https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-start_date that might meet your needs. I assumed you were using schedule just for that reason but if you are already on schedules then using that parameter should be what you're after
let me try it quickly on my end
I created this one with those options... still appears to offset the next invoice based on the date it's setup. sub_1KKWYKBBamLIIR3ZxrTzOHTW
sub_sched_1KKWYKBBamLIIR3Z5LUsXb0C
ack let me try for a sec on my end, I don't use this API as much as the others :p
๐
what even lol
I create a schedule today that starts on January 15 2022. And I get a schedule whose phase is Jan 15 - Feb 15 but the corresponding Subscription is on Jan 22 - Feb 22.
Let me dig into this further
OK. I tried to pass the following to the phase:
start_date
billing_cycle_anchor
proration_behavior
Exception: Received unknown parameter: phases[0][start_date] If I remove start_date from the params, the schedule works, but the outcome is the same as I mentioned above.
yeah you can't set start date on the first phase
I think it boils down to "you can't backdate schedules even though it seems you can" but still digging into it
Ah..
yeah unfortunately this is impossible
so I think you're going to have to create a Subscription first with backdate_start_date + billing_cycle_anchor and then turn it into a schedule. But that's not great
OK. That makes sense.
I did file a bug report as I think start_date should do what you wanted it to but it's clearly not compatible yet ๐ฆ
Thank you for that! I appreciate the help. Have a great weekend.