#coachleyton

1 messages · Page 1 of 1 (latest)

quiet birchBOT
median tree
uneven valve
#

Please read the full question

#

This relates to the usage of the API

median tree
#

I will but I'm gonna take a minute, you ptu a lot of text in there and I'm helping multiple people

uneven valve
#

No problem

median tree
#

How do you want the customers to be billed during the change to the subscription? Do you want to apply prorations but still bill on the earlier schedule or cut new invoices when they make a change?

uneven valve
#

Invoice for prorations immediately, but allow the earlier schedule to apply (i.e., don't move the billing period start and end)

median tree
#

In that case the invoice will fire and you can reset your max characters counter when you get invoice.payment_succeeded

uneven valve
#

What if it's a down-grade? User has paid £10 at the start of the billing period, but then they move to a £5 tier? I don't plan on refunding the customer immediately, rather, it will remain in their customer balance. Considering that they aren't paying for the down-grade, does it generate an invoice?

median tree
#

I just tested this on my own test account. An Invoice was created for 0 amount. The Invoice item contained information about the prorated amount that is added to the customer balance.

#

For my test case this is what I saw in my invoice.created event

"amount": -18368,
"amount_excluding_tax": -18368,
"currency": "usd",
"description": "Unused time on Premium Wombat after 15 Jun 2023",
uneven valve
#

Well that's good news. Alrighty, thank you for the help

#

I'm happy for you to close this thread 🙂