Skip to content
Sonic AI

Sync usage from your warehouse instead of a monthly export.

Each sync pulls new rows from a read replica and updates the period's draft invoice.

Sync rules

Sonic counts every usage row once.

  • Incremental pulls

    Each pull starts from the stored marker.

  • Idempotent re-runs

    Running the same sync twice adds nothing.

  • Rated by the engine

    The billing engine prices usage at the contract rate.

How it works

How new rows reach the draft invoice.

  1. 01

    Pull

    Sonic pulls rows newer than the stored marker.

  2. 02

    Map

    The usage template maps them, as it does a CSV.

  3. 03

    Update

    New events land on the open draft.

  4. 04

    Hold

    Late events wait, because sent invoices never change.

Setup

Build the template on a sample first.

A sample shows you the columns before the first sync.

  • A reachable replica

    Sonic gets a role limited to the usage tables.

  • An indexed marker

    Indexing the marker keeps syncs fast as the table grows.

FAQ

Questions about the PostgreSQL sync.

Does Sonic need write access to our database?

No. Sonic reads a replica, with SELECT on the usage tables only.

Is this different from uploading usage files?

Only in how the rows arrive. Both go through the same usage template.

See Sonic run on one of your contracts.

A 30-minute call with the team, using your own contract.

Book a demo