Skip to main content
GET
Get Contract Details

Get Contract Details

Retrieves a single plan contract for the currently authenticated customer. Contracts represent the customer’s active plan subscription, including pricing, billing cycle, renewal dates, and pause/cancellation state.

Authentication

This endpoint requires an authenticated customer session. The contract must belong to the current customer or to a team the customer manages.

Path Parameters

number
required
The unique identifier of the contract to retrieve.

Query Parameters

string
Comma-separated list of field paths to include in the response. When provided, only the specified fields are returned — useful for reducing payload size. Supports nested paths using dot notation. Example: _shape=Tariff.Name,Price,PriceFormatted,Active,StartDate,RenewalDate.

Response

Returns a CoworkerContract object.

Plan & Pricing

number
ID of the plan associated with this contract.
string
Display name of the plan.
number
Current monthly (or per-cycle) price.
string
Pre-formatted price string (e.g. "$199.00").
number
Price that will be charged from the next renewal.
string
Pre-formatted next renewal price.
string
ISO 4217 currency code.
number
Number of units (e.g., desks) covered by this contract.

Dates & Billing

string
ISO 8601 date the contract started.
string
ISO 8601 date of the next billing renewal.
string
UTC version of the renewal date.
number
Day of the month on which the contract is billed.
string
The earliest date the contract can be cancelled without penalty.
string
ISO 8601 date when the contract was cancelled (if applicable).
string
The absolute final date the contract will end (if applicable).

Status Flags

boolean
Whether the contract is currently active.
boolean
Whether the contract has been cancelled.
boolean
Whether this is the customer’s primary contract.
boolean
Whether the contract is in a paused state.
boolean
Whether the contract is actively paused at the current moment.
boolean
Whether the contract is eligible to be paused right now.
boolean
Whether the current date falls within a scheduled pause period.
string
UTC datetime from which the pause period begins.
string
UTC datetime at which the pause period ends.

Terms & Deposits

boolean
Whether the customer has accepted the plan’s terms and conditions.
string
ISO 8601 datetime when terms were accepted.
number
Total deposit amount held against this contract.
string
Pre-formatted deposit amount string.

System Fields

number
Unique identifier of the contract.
string
Globally unique identifier of the contract.
string
ISO 8601 datetime when the contract was created (local time).
string
ISO 8601 datetime when the contract was last updated (local time).

Example Response

Usage in Portal

This endpoint is used in the My Plans section to display full contract details.
  • File: src/views/user/plans/useContractData.ts

Typical integration pattern

  • GET /api/public/billing/coworkerContracts/{contractId}/pause/meta – Get pause eligibility metadata
  • PUT /api/public/billing/coworkerContracts/v2/{contractId}/pause – Pause a contract
  • PUT /api/public/billing/coworkerContracts/v2/{contractId}/resume – Resume a paused contract

Error Responses

error
The current user is not authenticated or the contract is not accessible to them.
error
Contract with the specified ID does not exist.