# Auto-Billing

How does auto-billing work?
A service runs nightly to generate rent invoices. It finds all active leases with auto-billing enabled, calculates which billing periods have completed, and creates a Pending invoice for each one.

Is it safe to run auto-billing multiple times?
Yes. It checks for existing invoices before creating new ones, so duplicates are never created.
