#matty-schedule-past

1 messages ยท Page 1 of 1 (latest)

royal burrow
frozen ocean
#

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.

royal burrow
#

use backdate_start_date and billing_cycle_anchor

#

that should do what you want I think

frozen ocean
#

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?

royal burrow
#

let me try it quickly on my end

frozen ocean
#

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

royal burrow
#

ack let me try for a sec on my end, I don't use this API as much as the others :p

frozen ocean
#

๐Ÿ™‚

royal burrow
#

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

frozen ocean
#

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.

royal burrow
#

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

frozen ocean
#

Ah..

royal burrow
#

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

frozen ocean
#

OK. That makes sense.

royal burrow
#

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 ๐Ÿ˜ฆ

frozen ocean
#

Thank you for that! I appreciate the help. Have a great weekend.