---
title: "Get a contractual entity's headrooms"
method: GET
path: "/ops/contractual_entities/{entity}/headrooms"
tags: ["ops", "ops-contractual-entities"]
---

# Get a contractual entity's headrooms

`GET /ops/contractual_entities/{entity}/headrooms`

## Request

- Base URL: `https://api.topi-staging.eu`
- URL: `https://api.topi-staging.eu/ops/contractual_entities/{entity}/headrooms`
- Auth: OAuth 2
  - Authorization code: `/oauth2/authorize`
  - Token URL: `/oauth2/token` scopes: `ops-pricing-category:read`

Fetch every pricing category with the external contractual entity's coverage and headrooms

## Path parameters

- `entity` string, required: Contractual entity code

## Response `200`

OK response.

- ContractualEntityHeadroomsResult
  - `categories` ContractualEntityCategoryCoverage[], required: Every pricing category, covered or not, ordered by identifier
    - `applied_at` string, date-time: When that import was applied; absent when uncovered
    - `applied_by` string: Who applied that import; absent when uncovered
    - `coverage_state` 'uncovered' | 'available' | 'disabled', required: uncovered: no rows for the entity; available: at least one enabled tenure; disabled: covered but every tenure disabled
    - `description` string: Pricing category description
    - `headrooms` ContractualEntityHeadroom[], required: One entry per supported tenure when covered; empty when uncovered
      - `expected_residual_value_ratio` number, double: Expected residual value ratio; absent when unspecified, which only a disabled tenure may be
      - `headroom_ratio` number, double: Headroom ratio; absent when the tenure is disabled
      - `is_default` boolean, required: Whether this is the default tenure of the category
      - `tenure` integer, required: Tenure in months
    - `id` string, regexp, required: Pricing category ID
    - `identifier` string, required: Pricing category identifier
    - `source_import_id` string: Import that wrote the rows; absent when uncovered
  - `contractual_entity` string, required: Contractual entity code
  - `tenures` integer[], required: Supported tenures in months; every covered category has one headroom per tenure

## Other responses

- `400`: BadRequest: The entity is internal and uses the base headrooms
- `401`: Unauthorized: Unauthorized response.
- `403`: InvalidScopes: Forbidden response.
- `404`: NotFound: Unknown contractual entity

## Changes

- **2026-10-27** `ac6979514123`: 1 info
  - api operation id `pricing-category.contractual_entity_headrooms` removed and replaced with `pricing-category#contractual_entity_headrooms`
- **2026-10-26** `7ff7ee94b30e`: 2 info
  - api operation id `pricing-category#contractual_entity_headrooms` removed and replaced with `pricing-category.contractual_entity_headrooms`
  - api tag `ops-contractual-entities` added
- **2026-10-08** `994b1f8ff2bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/topi/apis/topi-public-api/changes/ops/contractual_entities/:entity/headrooms/get.md)

---

[API](https://skmtc.dev/topi/apis/topi-public-api.md) - [All operations](https://skmtc.dev/topi/apis/topi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/topi/apis/topi-public-api/revisions/d279d1eb37dd?raw)
