Plans and Contracts

Plan types, contract terms, extend, renew, and PATCH contract rules

Contract and plan information appears on customers at creation and can be changed later via PATCH /customers/{customerID}/contract.

Plan values

API value planProduct
standardPhoneLine+
officePhoneLine+ Office
anywherePhoneLine+ Anywhere
hardware_onlyPhoneLine+ Hardware Only
hardware_only_cpPhoneLine+ Hardware Only (CP)

On GET /customers and GET /customers/{customerID}, the current plan is returned in the plan field, along with contractLength and contractStartDate.

Contract term

Set the term on POST /customers → contract.term.

termContract
1Rolling monthly
12, 24, 36Fixed term of that many months

type is optional. Omit it. Provisioning sends every new contract as type Fixed with unit Month.

Rolling monthly

A rolling monthly contract is term: 1. That is the PhoneLine+ offering term described as a 1-month rolling contract, and it is the contract the original partner API creates for every new customer.

"contract": {
    "term": 1,
    "plan": "standard"
}

type: "Rolling" together with term: 1 creates the same contract. type: "Rolling" with term 12, 24, or 36 returns 400: A rolling monthly contract is term 1. type Rolling is only valid with term 1. Use type Fixed, or omit type, for a 12, 24, or 36 month term.

Once the customer exists, contractLength is 0. GET /customers and GET /customers/{customerID} return 0 for a rolling monthly contract.

Fixed term

"contract": {
    "term": 36,
    "plan": "standard"
}

type: "Fixed" may be sent with term 12, 24, or 36. The stored contractLength is that same number of months.

Update contract — PATCH /customers/{customerID}/contract

This endpoint is asynchronous — it returns { "jobID": "..." } with HTTP 202.

Term values on this endpoint are the fixed lengths 12, 24, and 36. Sending one moves the customer onto that fixed term, including a customer that is currently rolling monthly (contractLength 0). A rolling monthly contract is created with term: 1 on POST /customers and is not set here.

One change per request

You cannot send term and plan in the same request.
The API validates the body and returns 400 with message: Cannot update both term and plan at the same time.

Send exactly one of the following:

Request bodyEffect
{ "term": 24 }Move onto a 24-month fixed term (extend)
{ "term": 24, "renew": true }Renew onto a 24-month fixed term
{ "plan": "anywhere" }Change plan type
{ "plan": "standard", "users": [...] }Leave Hardware Only and set a login email for every existing user

To change both plan and term, make two sequential requests and track both jobID values.

users is only valid together with plan. Sending it with term, or on its own, returns 400: users can only be sent with a plan change.

An empty body (neither term nor plan) returns 400: No contract updates provided.

Examples

Extend term to 24 months:

PATCH /v2/customers/550e8400-e29b-41d4-a716-446655440000/contract
Content-Type: application/json
Authorization: Bearer <token>

{
  "term": 24
}

Renew with a 36-month term:

{
    "term": 36,
    "renew": true
}

Change plan:

{
    "plan": "office"
}

Leaving Hardware Only

standard, office, and anywhere need a login email for every user. Hardware Only customers are often created without one, and there is no later call that adds an email to an existing user.

When the current plan is hardware_only or hardware_only_cp and the new plan is standard, office, or anywhere, users is required. Include every existing user exactly once. The same rule applies to all three target plans.

The first email in users is the customer admin email. There is no separate admin-email field, and PATCH /customers/{customerID}/users/USERID cannot set an email later.

{
    "plan": "standard",
    "users": [{ "userID": "770e8400-e29b-41d4-a716-446655440002", "email": "[email protected]" }]
}

Use "plan": "office" or "plan": "anywhere" with the same users list to leave Hardware Only for those plans.

Get the user IDs from GET /customers/{customerID}/users first. A missing user, an unknown userID, a duplicate userID, or a duplicate email returns 400.

A plan change that does not leave Hardware Only, including Hardware Only to Hardware Only (CP) and Standard to Office, must not include users.

Poll for completion

GET /v2/jobs/{jobID}

Or listen for the contract_updated webhook — see Webhooks.

Create-time contract

When creating a customer (POST /customers), the contract object includes:

FieldDescription
term1 for rolling monthly, or 12, 24, or 36 for a fixed term
typeOptional. Omit it. Rolling is valid only with term: 1
planOne of the plan values above

See Onboarding a customer.

What PATCH customer does not do

PATCH /customers/{customerID} only updates company contact details. It does not change plan, contractLength, or contractStartDate.

Reference

OpenAPI operation: Update customer contract — includes field-level descriptions and constraints.


Did this page help you?