How Contracts work
The Plan defines the reusable offer. The Contract identifies the customer, applies the offer and sets when billing starts.
Usage events identify the Contract through
external_contract_id, which matches its external_id, not its contract_code. See Ingest usage.
Before you start
Create the customer and Plan. A Contract requires a Plan. Applying it to a Contract locks the Plan’s configuration; see Manage plan changes. Prepare these fields:
For optional fields and the complete schema, see Create a Contract.
Set the start and billing dates
Setstarted_at to choose when the Contract starts. Omitting it starts the Contract now. A future timestamp creates a pending Contract.
Use billing_anchor_date to define the end of its first billing cycle. Each applied Rate Card then follows its configured billing interval and phase sequence. See Billing timeline for cycle boundaries and phases.
The scheduling diagrams and Rate-change example are now in Billing timeline.
Create a Contract
- Dashboard
- API
- From the customer’s page or the Contract list, click Create contract.
- Check the
Customer, review theAffiliated entityand select thePlan. - Under Contract settings, click Add an external id and enter your Contract identifier.
- Enter the required
Codeto identify this specific Contract. - Optionally, click Add a contract name and enter a name.
- Set the start date.
- Optionally, set an end date.
- Set the
Billing anchor dateto define when the first billing period ends. - Click Create contract.

Create a Contract in the Dashboard
Check the Contract
Retrieve the Contract by itsexternal_id and contract_code, including its applied Rate Cards. Check the code, customer, Plan, status and start date. Then check the fixed quantities, phase sequence and any overrides.
Retrieve it with its applied rate cards
contract_code to retrieve this Contract after it ends, even if another Contract now uses its external_id. See Contract lifecycle.
Use Current usage for provisional amounts and invoices and fees for billed results. Check invoice and payment status separately.
You can edit applied Rate Cards and phases while the Contract is pending. Once it is active, these settings are locked. Inherited Rate prices can still change; see Billing timeline.
Billing timeline
Understand billing cycles, phases and Rate changes.
Contract overrides
Adjust one customer’s pricing before the start.
Create a contract (API)
POST /contractsRetrieve a contract (API)
GET /contracts/{external_id}