# Connect fibre service status and cancellation

> Supply dated network evidence, acknowledge cost-control requests and confirm public cancellation receipts for a fibre operator.


The customer portal reads one account's subscriptions, service observations and receipts from contractd. Its customer credential determines the account. A missing observation means the service has no status to display. A selective block request, an arrears warning and a confirmed network restriction have separate identities.

## Confirm a selective block

1. The customer sends a PUT to `/selfcare/subscriptions/{id}/blocks/{request}` with a fresh request UUID and a body such as `{"category":"premium","blocked":true}`. The response acknowledges receipt.
2. Poll `GET /selfcare/block-requests` with operator credentials. Follow the `next` cursor using `?after=` until the page is exhausted. Poll from the beginning on the next pass. The reference adapter supports premium-number and international-call restrictions. Offer only capabilities supported by the actual access line.
3. Apply the network command idempotently using its UUID. Once the network confirms it, PUT the following envelope to `/selfcare/subscriptions/{id}/facts/{request}`, replacing the UUID and date with the original request and confirmation day.

```json
{"date":"2026-11-09","fact":{"kind":"selective-block","request":"019ab9cb-f501-7000-8000-000000000001"}}
```

A fact UUID is bound to the submitted content, effective date, subscription and named sender. Set the optional envelope fields `next_step` (customer-facing text) and `expected_on` (an ISO date) when the responsible service has confirmed what happens next. Independent switch and porting facts carry a status of `requested`, `scheduled`, `delayed`, `completed` or `cancelled`. The customer sees the effective date. Submit a correction as a new dated fact. Wire dates are Europe/Berlin business dates.

## Resolve a total fibre outage

A managed case joins the fault desk’s report to a subscriber’s claim, a support decision and its journal receipt. A managed case covers a consumer fibre connection with a constant, attributable gross monthly fee. The fault desk remains responsible for acknowledging the original report, repairing the fault and delivering the required progress notices. [TKG § 58](https://www.gesetze-im-internet.de/tkg_2021/__58.html) · [Bundesnetzagentur guidance](https://www.bundesnetzagentur.de/DE/Vportal/TK/InternetTelefon/Stoerung/artikel.html)

1. With the fault system’s named `fault-desk` credential, PUT the following report to `/selfcare/subscriptions/{id}/facts/{request}` on contractd. Retain the incident UUID across channels. Record repair with a new fact ID, the same incident and original `reported_on`, status `fixed`, repair date and timezone-qualified repair instant.

   ```json
   {"date":"2026-11-02","fact":{"kind":"outage","incident":"019ab9cb-f501-7000-8000-000000000002","status":"reported","reported_on":"2026-11-02","observed_at":"2026-11-02T12:00:00+01:00"}}
   ```

2. Record the claim when it arrives, including before repair. Keep the request UUID and reuse it with the original body after a timeout.

   - **Subscriber.** PUT `{}` to `/api/v1/portal/subscriptions/{id}/outages/{case}/claims/{request}` on portald. GET that URI to recover the exact receipt, even outside the displayed history. GET the parent case for the current assessment and booking status.
   - **Manual intake.** A named operator sends the channel, original offset-qualified timestamp and evidence reference to `PUT /outage-cases/{case}/claims/{request}` on contractd. The response’s `claim` field identifies the intake.
   - **Support call.** Enter the saved **Eingangsbeleg** UUID in **Störungsfälle**, or use the operator’s `GET /outage-claims/{request}`. The result includes the original receipt and its `case_id`.

3. Review the retained fault and repair evidence, contract fee, usable replacement, exclusions, prior settlements and same-outage reductions. For a report on 2 November and repair at the start of 8 November, the qualifying dates are 5, 6 and 7 November. A €60 fee gives €6 + €6 + €12. A verified €4 reduction leaves €20. A disputed partial day, variable fee or interim payment request needs individual assessment. For an earlier settlement, enter the amount and receipt reference in the Desk. Confirm full settlement only when the evidence covers the entire claim. A partial payment keeps the case open for reconciliation.
4. Approve the reviewed revision. The subscriber sees the approved value while delivery is pending. Once accounting confirms the matching entry, the same case shows the posted value and journal reference. A zero award creates no posting. A changed decision on a posted case needs a separately referenced correction.

Set `TELCO_SOURCE_TOKEN` on billd to its contractd `billing-source` credential. billd posts through its existing accounting `booking` credential. For journal confirmation, set `TELCO_ACCOUNTINGD_URL` and `TELCO_ACCOUNTINGD_TOKEN` (or `TELCO_ACCOUNTINGD_TOKEN_FILE`) on contractd, using a dedicated accountingd `outage-receipt` credential. If the posting is pending, the detail returns `booking_status: "pending"`. If accounting is unreachable or its receipt disagrees with the award, the customer can recover the claim and approval with `booking_status: "unavailable"`.

Date-only observations support operators that handle compensation in their own case system. When transferring an incident, reconcile any settlement already reported before approval. The managed case takes its financial state from its review and journal. The [contractd API](../schemas/contract.openapi.yaml) defines the operator commands.

## Show arrears status

For arrears, submit the current status (`warned`, `restricted` or `lifted`), the notice reference, the overdue amount after payments and the portion of it still disputed, both in cents. The disputed portion cannot exceed the overdue amount. The financial owner applies the relevant exclusions when deciding whether a restriction is permissible. This observation displays the decision to the customer. [TKG § 61](https://www.gesetze-im-internet.de/tkg_2021/__61.html)

## Process public cancellations

Place the **Verträge hier kündigen** link on the operator's public website. Its target `/kuendigen` must be reachable while signed out. A visitor can submit an ordinary or extraordinary cancellation and save the resulting plain-text receipt using **Beleg als Text speichern** on the confirmation page. An omitted end date requests the earliest possible end. The response records what the visitor declared without looking up or disclosing customer data. [BGB § 312k](https://www.gesetze-im-internet.de/bgb/__312k.html)

Set `TELCO_CONFIRMATION_URL` on contractd to the operator's transactional mail adapter. Configure its bearer with `TELCO_CONFIRMATION_TOKEN` or `TELCO_CONFIRMATION_TOKEN_FILE`. Use HTTPS outside local development. The adapter receives a POST with the destination `to`, `subject`, `text` and declaration `id`; deduplicate on that UUID and return `{"reference":"your-dispatch-reference"}` after accepting the message durably. After a failed attempt the receipt remains queued. The worker retries automatically. Check the oldest pending receipt when monitoring delivery.

Operators read `GET /selfcare/cancellations` to review declarations. Verify identity, contract and any extraordinary grounds before POSTing the decision to `/selfcare/cancellations/{id}/decision`. Supply `accepted`, a `verification` reference and the verified `contract` UUID. An accepted extraordinary termination also requires its assessed `effective_on`. For an unidentifiable declaration, decline with a reason and omit the contract. A matched customer's mailbox records the outcome. Opening it sets a separate read date.

### Place an issued notice in the mailbox

Submit a dated `notice` fact with the issuer's `sender`, document `title` and accessible plain `text`. A `dispatch_reference` identifies the sender's delivery evidence when available. The fact UUID is also the mailbox document ID. Record each issued document once, with a new ID for a correction. Reading a notice records a separate date. A due renewal reminder alone has no issued document or dispatch evidence.
