← Back to product·Simulmedia VAMOS® Docs·Operate / Reconciliation
Operate

Reconciliation

Snapshots are authoritative. The record of an order is its create request, the platform's create-time facts, and an append-only event log; every snapshot is the platform's fold of that log. A webhook delivery can be dropped or delayed, so reconcile against snapshots on a schedule, whether or not webhooks arrived.

The sweep

Run it on a timer, and again after any deploy or outage:

Delivery actuals

Aired counts and delivered impressions come from the seller as delivery_post artifacts on the order: per-unit, per-week actuals in the declared currency, source-tagged. Audience guarantees reconcile against them; the platform carries the numbers and does not compute them.

Posting policy

A shortfall is arithmetic; whether it owes a make-good is policy. A product may state that policy, and then both sides compute the same answer. posting_policy carries aggregation_weeks (the window delivery totals over before shortfall is computed), threshold_pct (delivery at or above this percentage of the guarantee owes no make-good), and exclusions (the product_id references the policy does not cover: the tentpole carve-out). An agreement may override it, resolving as override(product_id) ?? override("*") ?? product.posting_policy ?? unstated. That chain is evaluated once, per line, at order create, and the result is frozen by value with the order, like cancellation_terms and the locked price. The frozen value reads back on both order reads as line_items[].posting_policy ({aggregation_weeks, threshold_pct, exclusions?}; absent when the resolution was unstated), derived at create and not accepted on a write. A later change to the product's policy or the agreement's overrides applies to the next order, not to a booked one, and a revision, being a new order, re-resolves at its own create. What a post reconciles under is what both sides agreed to when the buy was made, and both can read it off the snapshot after the live records have moved on.

Evaluation is per line, not order-wide. One order may carry lines from products with different windows, thresholds, and exclusions. Mixed-policy orders are legal. For each audience_guaranteed line, independently:

  1. Resolve the effective policy for that line's product_id.
  2. If that line's product sits in the policy's exclusions, the line is excluded: no automatic determination, and its shortfall goes to the parties. Undecided is reported as undecided, not as "no make-good owed".
  3. Total delivered impressions for that line from the order's delivery_post artifacts over that policy's aggregation_weeks, in the line's declared audience currency.
  4. Compare against that line's goal. On a catalog line the goal is the booked guarantee, the locked rate entry's guaranteed_impressions times the line's booked units, the same figure the order's totals.impressions sums; on a proposal or document line it is the buyer-named impressions_goal. Satisfied when delivered >= goal * (threshold_pct / 100), inclusive at the edge. Satisfied owes no make-good; not satisfied populates the line's shortfall and the make-good path runs as it does today.

Worked once: a line guaranteeing 1,280,000 hh impressions under {"aggregation_weeks": 4, "threshold_pct": 90} needs 1,152,000 across its four posted weeks. 1,200,000 delivered is satisfied and owes nothing; 1,151,999 is not. Results report per line, as unit acceptance does: the order is not satisfied or unsatisfied as a whole. Where no policy is stated, the shortfall is reported and the decision stays with the parties.

Every delivered figure is the seller's, carried as posted; the platform applies only the arithmetic both parties agreed to.

Files and EDI

Sellers who live in traffic systems return actuals as station-generated EDI invoices and as-run log times. These land through the file interface and reconcile against orders, so billing stays in the systems both sides already use.