#xqprtzcv

1 messages · Page 1 of 1 (latest)

lusty oceanBOT
#

Hello! We'll be with you shortly. 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.

pallid reef
final hollow
#

Hey, in the second request, I have already created a subscription that has a trial.

#

I can try adding it again during the upgrade request though

pallid reef
#

I think the issue is that the upcoming Invoice request you're making changes the Price and nullifies the existing trial.

final hollow
#

Yes, I am changing the price ID

#

Here is the request, it still doesn't seem to be giving me amount_due 0 even when I add trial_end:

{
"expand[0]": "customer",
"expand[1]": "total_tax_amounts.tax_rate",
"automatic_tax[enabled]": true,
"subscription": "sub_1OegxFHtzQiUYLb0KyBHJSII",
"subscription_cancel_at_period_end": false,
"subscription_proration_behavior": "always_invoice",
"subscription_items[0][id]": "si_PTeFGsXx0pH4Qy",
"subscription_items[0][price]": "price_1OWi2NHtzQiUYLb0ZI5CcZUM",
"subscription_billing_cycle_anchor": "unchanged",
"subscription_trial_end": 1707929284
}

pallid reef
#

What amount is it charging?

final hollow
#

It is charging the amount for the full year (which is the correct amount that should be due after then end of the trial)

pallid reef
final hollow
#

req_EIdzmQAaZtEQJH

pallid reef
#

Ah... when is the date of the upcoming Invoice?

final hollow
#

Looks like this is at the end of the trial: "created": 1707929284,

pallid reef
#

That makes sense. The arguments you're passing would not result in an immediate Invoice. The next Invoice would be the one at the end of the trial period.

final hollow
#

Ok, and so it is not possible to create an invoice at that point with amount_due=0?

pallid reef
#

I think you can, but you would need to adjust something to trigger an Invoice. If you changesubscription_billing_cycle_anchor to now does that do it?

final hollow
#

I get this: "Trial end (1707929284) cannot be after billing_cycle_anchor (1707670061). Consider ending the trial (trial_end=now)."

pallid reef
#

Oh, yep, I forgot about that. 😅

final hollow
#

No worries

pallid reef
#

So I guess no, what you want to do doesn't seem possible. The Invoice you see is always going to be after the trial.

final hollow
#

Ok, thank you