Internal tooling & spend-aware billing transitions

Flat CPM Billing Controls

Internal controls and backend conversion logic for fixed-CPM billing without disrupting active budget schedules.

Business problem

The challenge

Changing billing settings during a campaign required accurate treatment of prior spend and remaining budgets.

Technical solution

Our approach

Command Center configuration, audited billing changes and core-flight splitting.

  1. 01

    Expose controlled configuration

    Built the Command Center toggle and validated target CPM, including permission-aware controls and hotel-portfolio support.

  2. 02

    Apply billing changes correctly

    Built GaryQL helper/conversion logic to split core flights at billing changes, reconcile prior spend and remaining budget, and assign the appropriate billing types.

  3. 03

    Keep transitions observable

    Added billing audit records, batched audit lookups and flight-billing scenario tests.

Results & impact

Project outcomes

Internal controls and backend conversion logic for fixed-CPM billing without disrupting active budget schedules.

Audited

Billing changes

Configuration changes remain traceable through flight conversion.

Spend-aware

Remaining-budget treatment

Transitions account for amounts already spent before new billing takes effect.

Visual assets

How the workflow fits together

Flat CPM Billing Controls

flowchart TD
  A["Internal CPM controls"] --> B["Validate and audit"]
  B --> C["Reconcile prior spend"]
  C --> D["Split core flights"]
  D --> E["Apply billing type"]
01 Command Center configuration, audited billing changes and core-flight splitting.

Tech stack

Technology and ownership.

Built both the internal frontend controls and backend flight/billing behavior.

ReactTypeScriptGraphQLPostgreSQLDataLoaderCommand Center