#arvindkgs - Metered Billing

1 messages ยท Page 1 of 1 (latest)

midnight forge
willow turtle
#

Correct me if I am wrong, but this looks to add an additional charge to the first invoice. I don't want the charge to be part of the invoice

#

For example:
I would like to charge the customer a prepayment amount of $100,000 on the start of the billing cycle (say first of the month)

#

This is a metered subscription. With 90 monthly users for the first month charged at $100. An invoice is generated at the end of the first month - $9000

#

Now the invoice amount due is adjusted to 0$ because of the prepayment of $100,000

#

So remaining balance is $100,000 - $9000 = $91,000

midnight forge
#

Hm. You could generate a one-off Invoice and then add to the Customer credit balance... yeah, was about to link you to that. ๐Ÿ™‚

willow turtle
#

When do I generate the one-off invoice? Before the start of the metered subscription?

#

Or can it be after the metered subscription has started?

#

Will the one-off invoice end up being added to the upcoming invoice of the metered subscription for the customer?

midnight forge
#

You can generate it whenever you want, it's not connected to the Subscription in any way. It will not be added to the upcoming Invoice for the Subscription.

willow turtle
#

Awesome. That is exactly what I want

midnight forge
#

Once the Invoice is paid you can adjust the Customer's credit balance accordingly.

willow turtle
#

Thanks. That works.

#

I have one more question regarding reporting monthly metered usage if you don't mind

#

@midnight forge As usage records are rate limited, I wanted to send the aggregated usage records at the end of the current billing period. Looks like that is not possible. I cannot use invoice.upcoming event, because minimum is 3 days before monthly bill is generated. 3 days will be missed. Does my application need to have a monthly scheduled job set to send aggregated usage before the current billing period ends? Or is there anyway around this?

midnight forge
#

Let's continue here. ๐Ÿ™‚

As usage records are rate limited, I wanted to send the aggregated usage records at the end of the current billing period. Looks like that is not possible. I cannot use invoice.upcoming event, because minimum is 3 days before monthly bill is generated. 3 days will be missed. Does my application need to have a monthly scheduled job set to send aggregated usage before the current billing period ends? Or is there anyway around this?

willow turtle
#

Sure

midnight forge
#

Yeah, you would need to handle the timing on your end if the invoice.upcoming event won't suffice. Some people roll usage up into daily or hourly updates, for example.

willow turtle
#

Got it thanks

willow turtle
#

@midnight forge Is it possible to have fixed price subscription (not metered) but still be charged at the end of the month?

#

Similar to metered subscription

midnight forge
#

What's your use case exactly? If you're charging at the end of the month that implies you're charging based on use, which means metered is probably the best fit, but maybe I'm misunderstanding?

willow turtle
#

We have usage based and fixed pricing options. Prepayment (like I explained earlier) exists for both.
So with usage based prepayment can be done in a separate invoice, and I can add credits

#

But with fixed pricing, invoice is generated for upcoming month. This does not allow me to add the prepayment to the invoice during the start of the month

#

How can the first invoice charge the prepayment and adjust the customers balance based on the prepayment in case of first invoice?

midnight forge
#

Adjusting the Customer's balance is something you would need to do after the Invoice is paid.

willow turtle
#

Got it. So for metered billing I would create a one-off invoice during the start of the billing month, and then adjust the customer's balance. Then at the end of the month the metered billing invoice is generated

#

However that will not work in case of fixed price option

#

As an invoice is generated at the beginning of the month.

#

How can I also add the prepayment to this?

#

I want the prepayment amount to be used to adjust the monthly invoice amount

midnight forge
#

If you're not using metered billing you can use the technique I mentioned above to add a fee to the first Invoice.

#

So, for example, if you wanted the credit balance to start with $1,000 and the first month costs $50 you could do a $950 invoice item on the first Invoice so the total comes out to $1,000, then when it's paid you adjust the credit balance to be $950.

#

Does that make sense?

willow turtle
#

Yes, that makes sense

#

Thank you

#

You have been very patient and helpful.

#

Appreciate the help

midnight forge
#

Happy to help!