Skip to main content
POST
Add contract line items

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-ACCOUNT-ID
string

Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.

X-ENVIRONMENT-ID
string

Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).

Path Parameters

id
string
required

The unique identifier of the entity

Required string length: 1 - 255

Body

application/json

Input for appending priced line items to a contract. Additive — items already on the contract are left untouched.

lineItems
ContractItem · object[]
required
Minimum array length: 1
currency
string

Currency for the added items. Defaults to the contract currency

Maximum string length: 255

Legal entity the added items invoice from

Maximum string length: 255
activationStartDate
string<date-time>

Activation period start for the added items. Defaults to the contract's existing period

activationEndDate
string<date-time>

Activation period end for the added items. Defaults as above

Response

The contract's recomputed totals, including total contract value.

Response object

data
ContractSummary · object
required

A contract's pre-publish totals, with a per line item breakdown — read this before publishing, since after publishing these are the figures the customer is invoiced.