Skip to main content
PUT
Update plan instance

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

id
string<uuid>
required

The unique identifier of the plan instance in our system.

Body

application/json

Schema for overriding the pricing of a plan instance. The provided charges replace the instance's full charge set and a new plan instance version is created.

planCharges
object[]
required

The full set of charges the plan instance will bill from now on, keyed by category. Replaces the existing charges entirely.

A fixed charge: bills a flat amount every cycle.

Response

Schema representing a plan instance: a plan sold on a contract. The instance keeps its own versioned copy of the plan's charges, so its pricing can be overridden without affecting the plan or other contracts.

id
string<uuid>
required

The unique identifier of the plan instance in our system.

contractId
string<uuid>
required

The unique identifier of the contract the plan instance belongs to.

planId
string<uuid>
required

The unique identifier of the plan this instance was created from.

activePlanInstanceVersionId
string<uuid>
required

The unique identifier of the plan instance version currently used for billing.

activePlanVersionId
string<uuid>
required

The unique identifier of the plan version the active plan instance version derives from.

activePlanInstanceVersionReason
enum<string>
required

Why the active plan instance version exists: created_from_plan_version (instantiated from the plan's version), duplicated_from_contract (copied when the contract was duplicated), manual_override (pricing overridden manually or through the API), readjustment (a percentage rate adjustment was applied), or rollback (rolled back to a previous version).

Available options:
created_from_plan_version,
duplicated_from_contract,
manual_override,
readjustment,
rollback
status
enum<string>
required

Current status of the plan instance: active (billed on the contract's cycles), canceled (interrupted before its end; no longer billed), or completed (ran through its end).

Available options:
active,
canceled,
completed
plan
object
required

Base properties of the plan this instance was created from.

activePlanInstanceVersion
object
required

The plan instance version currently used for billing, including its plan charges.