---
title: "Service cession — API v1 and MCP | Nodea documentation"
description: "Reference of the Service cession module: REST API v1 endpoints (list, details, cancel, service eligibility), account:read and account:write scopes, statuses, error codes and MCP tools."
url: "https://nodea.io/en/api-docs/cessions"
lang: "en"
updated: "2026-11-18"
---

# Service cession — API v1 and MCP | Nodea documentation

> Reference of the Service cession module — reading the cessions of the current account, checking whether a service can be assigned and cancelling your own cession through API v1 and MCP. Filing, accepting and approving happen in the panel.

The **Service cession** module moves selected services (with their resources and — if the requester chooses so — their unpaid charges) from one customer account to another. The owner of the account handing the services over (the assignor) files the cession in the panel, the person taking them over confirms it from the e-mail link and accepts the assignment terms, and finally a Nodea administrator approves it. API v1 and MCP expose only **reading**, **checking whether a service can be assigned** and **cancelling** your own cession. Filing, accepting and approving are declarations of will with the acceptance of the terms, a fresh password and a second factor — an API token cannot provide that, so they happen in the panel only (`/app/cessions`).

## Availability

The module is rolled out gradually. The endpoints and MCP tools work only when the module is enabled for the token user **and** the assignment terms are published. Otherwise every endpoint answers `404`, and the MCP tools are missing from `tools/list` and calling them fails with “Tool \[...\] not found.”.

## Authentication and scopes

A Passport personal access token in the `Authorization: Bearer <token>` header. Required scopes:

- `account:read` — list and details of cessions, eligibility check of a service.
- `account:write` — cancelling a cession.

Rate limit: `throttle:api-v1`. In MCP every tool also needs the transport scope `mcp:use`. The module adds no new scopes.

## Customer account and visibility

A request acts in the current account (token pin → `X-Account-Id` header → default account; see [Customer accounts](https://nodea.io/en/api-docs/accounts)). A member needs the `manageproducts` account permission (the owner has all). Visible are the cessions the current account is a party of:

- `outgoing` — the account hands services over (assignor);
- `incoming` — the account took services over as the assignee (visible once the person taking them over accepted).

A cession the current account is not a party of, and a service outside the current account, return `404` — existence is never confirmed.

**Security:** responses never contain the invitation link token or its hash. The receiving side sees neither administrator notes nor the e-mail address typed by the assignor, and the assignor sees the assignee account name only after the acceptance.

## Flow and statuses

Statuses: `awaiting_recipient` | `awaiting_admin` | `approved` | `executing` | `completed` | `failed` | `declined` | `rejected` | `cancelled` | `expired`.

- `awaiting_recipient` — waits for the person taking the services over (the link is valid for 7 days, then `expired`).
- `awaiting_admin` — accepted, waits for an administrator (14 days, then `expired`).
- `approved`, `executing` — approved, being executed; from now on it cannot be cancelled.
- `completed` — executed: the services are on the assignee account.
- `failed` — the execution failed and nothing was moved; an administrator decides what next.
- `declined` (declined by the person taking over), `rejected` (rejected by an administrator, with a reason), `cancelled`, `expired` — final states.

## API v1 — endpoints

| Method | Path | Scope | Description |
| --- | --- | --- | --- |
| GET | /api/v1/cessions | account:read | Cessions of the current account (both sides), newest first. Parameters: `status` (optional, one of the status values), `direction` (optional: `outgoing` \| `incoming`), `per_page` (1–100, default 20), `page`. |
| GET | /api/v1/cessions/{public\_id} | account:read | One cession. `public_id` is the 26-character identifier from the `id` field. |
| POST | /api/v1/cessions/{public\_id}/cancel | account:write | Cancels an outgoing cession by the **owner** of the assignor account while it waits for the person taking over or for an administrator. Body (optional): `{"reason": "…"}` (up to 500 characters, shown to the other party). Response: the cession with status `cancelled`. |
| GET | /api/v1/services/{id}/cession-eligibility | account:read | Whether a service of the current account can be assigned now and, if not, why (reason key). |

### Response — cession

- `id` — public identifier (26 characters); `direction` — `outgoing` | `incoming`; `kind` — `customer` (filed by the customer) | `admin_assisted` (carried out by an administrator with the parties’ consent) | `reversal` (return cession).
- `status` (as above), `status_label` (label in the request language), `status_tone` — `neutral` | `info` | `success` | `danger`.
- `currency` (e.g. `PLN`), `transfer_debt` (bool — whether the unpaid charges move to the assignee), `debt_cents` (the debt that moves: accepted by the assignee, before the acceptance — computed at filing), `debt_cents_executed` (the amount actually moved, after the execution; otherwise null).
- `from_account` — `{ name }`; `to_account` — `{ name }` or null (for the assignor until the acceptance).
- `recipient_email` — the address typed by the assignor (`outgoing` only, null for `incoming`); `cedent_note` — the assignor’s note; `rejection_reason` — why an administrator rejected it.
- Dates (ISO 8601, nullable): `submitted_at`, `token_expires_at` (validity of the invitation link — the token itself is never returned), `recipient_accepted_at`, `admin_due_at`, `approved_at`, `rejected_at`, `cancelled_at`, `expired_at`, `executed_at`; `failed` (bool).
- `items` — the assigned services: `[{ service_id, label, is_addon, debt_cents, resources: [{ type, label }] }]` (`service_id` is null when the service no longer exists; add-ons move with their parent service).
- `debt_lines` — debt lines: `[{ kind, state, amount_cents }]`; `kind` — `uninvoiced` (moves with `transfer_debt`) | `invoiced` (already invoiced — stays with the assignor); `state` — `snapshot` | `transferred` | `dropped_paid` | `dropped_void`.

The list returns `{ data: [...], meta: { current_page, per_page, total, last_page } }`, details and cancel return `{ data: {...} }`. MCP tools and the panel return the same shape (one serializer).

### Response — service eligibility

- `service_id`, `eligible` (bool).
- `reason` — reason key or null, `message` — the reason in the request language or null. Keys: `service_not_nodea` | `service_status` | `billing_hold` | `addon` | `domain` | `in_open_cession` | `deletion_request_open` | `upgrade_pending` | `foreign_resource` | `not_on_cedent_account` | `hourly_negative_balance` | `cedent_account_inactive`.
- `requires_debt_transfer` (bool) — a suspended service: it can be assigned only together with its unpaid charges.

Domains are not assignable (`domain`) — the registrant of a domain is changed at the registrar. An add-on (e.g. an additional IP address) moves together with the service it belongs to (`addon`).

### Error codes

- `401` — missing/invalid token.
- `403` — missing scope (e.g. `account:read` without `account:write` on cancel), no account context (`no_account_context`), missing `manageproducts` permission (`account_permission_denied`) or a cancel by anyone but the owner of the assignor account (`account_owner_required` — the receiving side included).
- `404` — module unavailable, unknown cession, or a cession / service outside the current account.
- `409` — `state_changed`: the cession state can no longer be changed (e.g. cancelling an approved cession) or changed in the meantime.
- `422` — invalid parameters (`status`, `direction`, `per_page`, `reason` longer than 500 characters).
- `423` — `locked`: the object is part of an open cession; other operations on the service (e.g. deletion or plan change) answer this while the cession is open.

## Examples — API

### Outgoing cessions waiting for an administrator

**REST API · curl**

```bash
curl -s "https://app.nodea.io/api/v1/cessions?direction=outgoing&status=awaiting_admin" \
  -H "Authorization: Bearer $NODEA_TOKEN" \
  -H "Accept: application/json"
```

### Can the service be assigned

**REST API · curl**

```bash
curl -s https://app.nodea.io/api/v1/services/971/cession-eligibility \
  -H "Authorization: Bearer $NODEA_TOKEN" \
  -H "Accept: application/json"
```

### Cancel a cession

**REST API · curl**

```bash
curl -s -X POST https://app.nodea.io/api/v1/cessions/01jcz7k3m9q2w8e4r6t0y5u1i3/cancel \
  -H "Authorization: Bearer $NODEA_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"reason": "Change of plans"}'
```

## MCP — tools

MCP tools share the authentication, scope and account model with API v1 and return the same fields. A cession or service outside the current account returns the same error as a missing one. Refusals end with a machine suffix, e.g. `(code: state_changed)` or `(code: account_owner_required)`.

| Tool | Scope | Mode | Description |
| --- | --- | --- | --- |
| cessions-list | account:read | read-only | Cessions of the current account; `status`, `direction` (optional), `page`, `per_page` (max 50). Fields as in the API response, plus pagination `meta`. |
| cession-get | account:read | read-only | One cession; `id` (public identifier, required). |
| cession-cancel | account:write | destructive | Cancels an outgoing cession by the account owner; `id`, `confirm: true` (required), `reason` (optional). |
| service-cession-eligibility | account:read | read-only | Eligibility of a service; `service_id` (required). Fields as in the API response. |

### Example — MCP (JSON-RPC)

**MCP · JSON-RPC**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "service-cession-eligibility",
    "arguments": { "service_id": 971 }
  }
}
```

## Related

- [Customer accounts — API v1 and MCP | Nodea Documentation](https://nodea.io/en/api-docs/accounts)
- [Billing — API v1 and MCP | Nodea Documentation](https://nodea.io/en/api-docs/billing)
- [Legal documents — API v1 | Nodea Documentation](https://nodea.io/en/api-docs/legal)

---

Languages: [pl](https://nodea.pl/pl/dokumentacja-api/cessions.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
