Skip to main content
The Contract in Veles represents the durable commercial state of a customer relationship. It is not a transaction and it is not a document. It is the accumulated result of every executed Order applied over time — the authoritative record of what a customer is entitled to right now. When a New Business Order activates, the Contract is created. When an Amendment Order adds seats, the Contract is incrementally updated. When a Renewal Order extends the term, the Contract reflects the new commitment. The Contract is never overwritten wholesale. It is mutated prospectively, preserving the history of every prior commitment. This page covers the Contract object model, how Orders affect Contracts, and the rules that govern amendments and renewals.

The object model

The Contract mirrors the same three-level structure as Quotes and Orders:
LayerQuoteOrderContract
HeaderQuoteOrderContract
Time segmentsQuotePhaseOrderPhaseContractPhase
Line itemsQuoteLineOrderLineContractLine
This structural parity is intentional. Every commitment interval and line item is tracked from the moment it’s modeled on a quote, through its execution as an order, to its durable state on the contract. Nothing is lost in translation between layers.

Contract

The top-level record representing the full commercial relationship with a customer. It stores the account association, overall term, activation state, and references to all Orders that have affected it.

Contract Phases

Each Contract Phase represents a contiguous time period during which a specific set of commercial terms applies. Phases are sequential and non-overlapping. They correspond to the Phases defined on the originating Quotes and Orders. For a simple annual deal, there may be a single Phase. For a multi-year ramp deal, there will be one Phase per commitment interval (e.g., Year 1, Year 2, Year 3), each with its own pricing and quantity structure.

Contract Lines

Contract Lines define the product-level entitlements within each Phase: the active quantity, contracted price, billing cadence, and service boundaries for each SKU. Contract Lines are the system of record for what the customer is paying for and what they’re entitled to receive.

How Orders affect Contracts

When an Order is activated, the system evaluates how each Order Line should affect the associated Contract. The behavior depends on the Order’s commercial classification.

New Business

If no prior Contract exists for the customer, Order activation creates a new Contract. Each Order Line produces one or more Contract Lines that define the initial entitlement: active quantity, contracted price, service start and end, billing cadence, and renewal behavior. The Contract becomes the system of record for this customer’s commercial relationship from this point forward.

Amendment

If the Order references an existing Contract, the system applies mutation logic rather than creating a new baseline. The Contract is incrementally modified to reflect the change. Amendment Orders can instruct the system to:
  • Increase or decrease quantity of an existing Contract Line
  • Add new products as new Contract Lines
  • Adjust service periods
  • Extend the term
  • Introduce new Phases for future commitment windows
The Contract mutation engine resolves any conflicts that arise: co-termination of add-on products with the master term, proration of mid-term changes, alignment of new Phases with existing ones, and preservation of previously contracted pricing.
Amendments modify the Contract prospectively. They do not rewrite history. Existing executed segments remain intact — only future commitment windows are affected.

Renewal

In renewal scenarios, the system either extends the existing Contract term in place or creates a successor Contract and migrates active lines forward. Renewal Orders often replace expiring Contract Lines with new ones that contain updated pricing, quantities, or terms. The historical record of prior pricing remains intact in previous Contract Phases, maintaining a full audit trail of the commercial relationship over time.

Contracted price preservation

This is one of the most important concepts in contract management: amendments do not reprice history. When an amendment Quote is created, it references the active Contract. That Contract contains the authoritative commercial state from all prior Orders: active quantities, service intervals, contracted unit prices, and any negotiated discounts or uplifts. The amendment uses the contracted price as the baseline — not the current list price and not the pricing rules that were in effect during the original negotiation. Example: A product was originally contracted at 4.25/unit(afternegotiationanddiscounting).Ifthecustomeraddsseatsmidtermviaanamendment,theincrementalseatsarepricedrelativetothat4.25/unit (after negotiation and discounting). If the customer adds seats mid-term via an amendment, the incremental seats are priced relative to that 4.25 contracted rate unless explicitly overridden. The system does not recompute pricing from the current price book or reapply the discount logic from the original deal. This preserves three critical properties:
  1. Commercial integrity — negotiated pricing remains stable and enforceable across the life of the contract.
  2. Auditability — historical pricing logic does not need to be re-derived. The contracted price is authoritative.
  3. Predictability — amendments modify state; they do not reinterpret it. Both the customer and the finance team know what to expect.
At promotion of an amendment Quote, new or modified Phases become new Order Phases, new or modified Quote Lines become new Order Lines, and the Contract is updated by appending or adjusting future commitment segments. Existing executed segments remain untouched. In practical terms, an amendment behaves as a forward-looking delta against the current Contract state, not as a recalculation of the entire commercial relationship.

Activation vs. creation

It’s important to distinguish between when an Order is created and when it’s activated, because these are different events with different downstream effects. Order creation may happen immediately when a quote is accepted. But the Order can remain in a pending state while additional steps are completed: signature confirmation, finance approval, payment processing, or compliance review. Order activation is what actually triggers contract mutation, billing orchestration, and provisioning. Until the Order is activated, the Contract is unchanged.
Quote accepted → Order created (pending)

              Signature / Finance / Payment gates

              Order activated → Contract updated + Billing triggered
This separation ensures that commercial commitments are not recorded in the Contract until all required approvals and confirmations are complete.

What each layer is authoritative for

After a deal moves through the full lifecycle, each object serves a specific purpose:
ObjectAuthoritative forMutability
QuoteHistorical negotiation artifact. What was proposed and how pricing was modeled.Locked after promotion.
OrderTransactional history. What was committed, when, and by whom.Immutable after activation.
ContractCurrent entitlement state. What the customer is entitled to right now.Updated only through new Orders.
Edits to a Quote after promotion do not cascade to Orders or Contracts. Any changes to an executed deal require a new Order through the amendment process. This separation preserves auditability and financial integrity.

System integrity

The architecture enforces a deliberate separation of concerns:
  • Quotes are mutable and computational. The pricing engine operates here.
  • Orders are authoritative and transactional. They contain fully resolved commercial values independent of future pricing model changes.
  • Contracts are stateful and cumulative. They reflect the current reality of the customer relationship.
This design ensures that pricing experimentation on quotes never affects entitlements, that financial systems operate on immutable commitments, that amendments preserve historical integrity, and that revenue recognition aligns with executed Orders rather than draft Quotes.

What’s next

Quote Overview

Understand how quotes are built, including Phases and the Promotion workflow.

Renewals and Amendments

Deep dive into amendment logic, renewal workflows, and price preservation.

Proration Logic

How Veles calculates prorated charges for mid-term changes.

Rules & Approvals

Configure the guardrails that govern amendments and renewals.