Skip to main content
GET
Get Contract Pause Metadata

Get Contract Pause Metadata

Returns metadata about the pause eligibility and state of a given contract. Use this endpoint before presenting the pause flow to the customer to determine whether pausing is possible, what the earliest pause date is, available pause-until options, and any applicable terms and conditions.

Authentication

This endpoint requires an authenticated customer session.

Path Parameters

number
required
The unique identifier of the contract.

Response

Returns a PauseContractMeta object.
boolean
Whether the contract is currently eligible to be paused.
boolean
Whether the contract is already actively paused.
boolean
Whether the current date falls within an existing scheduled pause period.
string
Local datetime from which the current pause period starts (if in one).
string
UTC datetime from which the current pause period starts.
string
Local datetime at which the current pause period ends.
string
UTC datetime at which the current pause period ends.
string
ISO 8601 date for the start of the current billing period.
string
UTC version of the current billing period start.
boolean
Whether the contract is currently within a pro-rata period (affects pause timing).
string
ISO 8601 date of the next scheduled renewal.
number
Maximum number of billing cycles that can be paused (if restricted). null means unlimited.
number
Maximum number of months that can be paused per year (if restricted). null means unlimited.
number
Number of pause periods already used by this contract.
number
Number of days before the renewal where pro-rata charges apply.
array
Array of ISO 8601 date strings representing the available pause end dates the customer can select from.
string
HTML or plain text for the pause terms and conditions that should be shown to and accepted by the customer before pausing.

Example Response

Usage in Portal

Fetched at the start of the pause flow to determine UI state and options presented to the customer.
  • File: src/views/user/plans/useContractPauseMeta.ts
  • Used by: src/views/user/plans/components/PauseContractModal.tsx

Typical integration pattern

  • GET /api/public/billing/coworkerContracts/{contractId} – Get full contract details
  • PUT /api/public/billing/coworkerContracts/v2/{contractId}/pause – Submit a pause request
  • GET /api/public/billing/coworkerContracts/pause/bookings – Check bookings affected by the pause period

Error Responses

error
The current user is not authenticated or does not have access to this contract.
error
Contract with the specified ID does not exist.