#piq9117

1 messages ยท Page 1 of 1 (latest)

austere lotusBOT
rapid forum
#

Hello! Unfortunately the upcoming Invoice API is not supported when using Subscription Schedules, so the behavior you're seeing is expected.

#

We're aware of this limitation and I'll flag your interest in this working internally.

civic fossil
#

gotcha. thank you for the response

rapid forum
#

Are you still around? I've been looking into this more and what you're doing might be supported. Can you provide more details about exactly what you're doing?

#

Specifically I'm wondering what the date of the upcoming Invoice is set to, and what the Price ID shown in the line items is?

civic fossil
#

yeah. still around.

#

not sure if you can view this but the subscription id is sub_1MMxusGJhtMpdHF8nTupF6rM

i have this in the dashboard

#

this is the upcoming invoice from the dashboard

rapid forum
#

Ah, so you're not using the API? I don't know much about how the Dashboard generates upcoming Invoices at a granular level.

civic fossil
#

I'm using the api. but i was expecting the upcoming invoice will automatically get generated for the update

#

i'm using the update subscription schedule api for this

rapid forum
#

Upcoming Invoices are generated on demand when you hit the upcoming Invoice API, they aren't created ahead of time.

#

And the upcoming Invoice you get depends on the parameters passed to that endpoint.

civic fossil
#

i pass in customer id and subscription id for getting the upcoming invoice.

rapid forum
civic fossil
#

let me try that

#

i'm still getting the same thing unfortunately

rapid forum
#

Hm. I think this might be an issue with the Subscription Schedule's dates.

#

The end_date of the first phase of the Subscription Schedule is set to 1675275116 which is 2023-02-01T18:11:56+00:00. Can you try setting that to UTC midnight and see if that changes anything?

civic fossil
#

yes, sir. trying it now

#

that worked!

rapid forum
#

Ah, good!

civic fossil
#

i just need to see what i can do with that proration ๐Ÿ˜…

#

thank you!

rapid forum
#

Happy to help! Sorry about the confusion in the beginning!

civic fossil
#

all good ๐Ÿค