Skip to main content
A Contract connects a customer to a Plan and defines when their billing starts. It brings the Plan’s applied Rate Cards, quantities and phases into that customer’s agreement. Use a Contract to start a customer’s offer. If the customer needs different terms, configure Contract overrides before the Contract starts.

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

Set started_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

  1. From the customer’s page or the Contract list, click Create contract.
  2. Check the Customer, review the Affiliated entity and select the Plan.
  3. Under Contract settings, click Add an external id and enter your Contract identifier.
  4. Enter the required Code to identify this specific Contract.
  5. Optionally, click Add a contract name and enter a name.
  6. Set the start date.
  7. Optionally, set an end date.
  8. Set the Billing anchor date to define when the first billing period ends.
  9. Click Create contract.
Create contract form showing customer, affiliated entity, Plan, Contract identifiers, start and end dates, and billing anchor date

Create a Contract in the Dashboard

For a complete billing walkthrough, see Your first invoice.

Check the Contract

Retrieve the Contract by its external_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
Use the same 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 /contracts

Retrieve a contract (API)

GET /contracts/{external_id}