Billing schedules (auto-invoicing and auto-payouts)
Create payout statements and draft invoices automatically for every closed weekly, two-weekly or monthly period, with a delay for late approvals and a minimum threshold.
Last updated 3 min read
On this page
Billing schedules run the same Generate payouts and Generate invoices logic as the manual dialogs, on a calendar. For each closed period they create pending payout statements and draft invoices — you still review, approve, send and pay them.
Set up a schedule#
-
Open Billing → Schedules (
/app/billing/schedules). There are two cards: Partner payouts and Advertiser invoices. -
Click Add payout schedule or Add invoice schedule.
-
Fill in:
-
Click Save schedule.
The table shows Applies to, Period, Threshold, Next run and Last run. Deleting a schedule keeps the statements it already created.
Periods#
Days are calendar days in the workspace time zone.
When a schedule runs#
The worker checks schedules every 15 minutes. A period is due once its end date + 1 day + Delay has been reached — a monthly schedule for October with a 3-day delay runs on 4 November. Each period is run once: the schedule remembers the last period it billed, and a skipped day is caught up at the next check. Schedules of suspended workspaces do not run.
Which entities a run covers:
- Default schedule: every active partner or advertiser of the workspace that has no override of its own.
- Override: that one partner or advertiser.
Payout runs#
- The preview of Generate payouts is computed for the period.
- A partner is included when at least one of its currencies reaches the Threshold; partners below it carry over to the next period.
- The usual rules still apply: the partner's own Minimum payout and, when required, a verified tax form.
- Pending statements are created; each partner is notified "Payout statement <from> – <to>", and staff get "N payout statements created".
Invoice runs#
For each advertiser:
- If its last invoice ended before the period started (an earlier period was below the threshold), the run starts the day after that last invoice, so carried-over click revenue is billed now.
- An advertiser already invoiced up to the period end is skipped.
- If every currency's amount is below the Threshold, nothing is created and the amount carries over.
- Otherwise draft invoices are created. Staff get "N invoices created — Review the drafts and send them."
Invoices are never sent automatically: mark them sent after review (see Advertiser invoices).
Example setups#
Permissions#
Viewing needs a manager role; creating, editing and deleting schedules needs an admin or owner.