Scheduled Usage Metering and Billing Sync
Automate hourly usage metering and billing synchronization with TrigRun. Keep Stripe, Paddle, or custom billing systems accurate.
Sync usage data to your billing provider every hour. TrigRun calls your metering endpoint, which aggregates consumption (API calls, storage, compute minutes) and reports it to Stripe, Paddle, or your own billing system.
The problem
Your SaaS charges based on usage — API calls, storage, seats, compute minutes. Usage data accumulates in your database, but your billing provider (Stripe Metering, Paddle) needs regular updates to generate accurate invoices. A missed sync means under-billing (lost revenue) or delayed invoicing (cash flow issues).
How it works with TrigRun
Create via API
Note: 5 * * * * runs at minute 5 of every hour — offset from the top of the hour to avoid contention with other hourly jobs.
Expected results
Successful sync:
| Field | Example value |
|---|---|
| Status | 200 OK |
| Duration | 12,450 ms |
| Response | {"accounts_synced": 142, "usage_events_reported": 8340, "total_billable": "$3,247.50", "period": "2026-03-16T04:00:00Z/2026-03-16T05:00:00Z"} |
Your metering endpoint
Common schedules
| Pattern | Expression | Use case |
|---|---|---|
| Hourly (offset) | 5 * * * * | Real-time metered billing |
| Every 15 min | */15 * * * * | Near-real-time usage dashboards |
| Daily summary | 0 1 * * * | End-of-day billing reconciliation |
| Monthly close | 0 2 1 * * | Monthly invoice generation |