← Back to product·Simulmedia VAMOS® Docs·Concepts / The price-clearance invariant
Concepts

The price-clearance invariant

Price and availability are independent axes, validated independently per unit. Every order carries rate_version; every line carries locked_rate_id, the rate row priced at order time. The invariant does not depend on how the price was disclosed: the card may be open, scoped to your agreement, or a quote minted for your campaign.

  • With a version-current card, rate match passes. The only legitimate rejection is availability.
  • A stale card returns STALE_RATE_CARD with a per-line rate_drift diff (your cost vs current cost): refresh and resubmit.
  • An expired quote is a stale card: same STALE_RATE_CARD; re-request a quote.
  • A rate mismatch when versions agree is a platform defect and is alarmed as one, not surfaced as a business rejection.
"error": { "error_code": "STALE_RATE_CARD", "recoverable": true },
"rate_drift": [ { "unit_id": "u-0001", "locked_rate_id": "lr_88c1",
    "your_cost": 405.00, "current_cost": 418.00 } ]

The failure surfaces on the order as a failed status with the error attached; error shapes are cataloged in Errors.

Price-at-order-time lock

An accepted price travels with the unit, even across mutually approved week moves. Later card changes do not invalidate an accepted order.