# telco > Telecom billing for German operators. Manage contracts, rate calls, and issue traceable invoices with open-source Rust services and an operator Desk. Every page also exists as Markdown at the same address with `.md`. ## Docs - [Getting started](docs/getting-started.md): Install the crate, compile a price book, rate a month and print the bill lines with their explanations. - [Write a price book](docs/pricebook.md): Define recurring charges, one-off fees, usage, allowances and discounts in a versioned TOML tariff. - [Rate a month](docs/rating.md): Apply a price book to a subscription and carry allowance and tier usage across batches. - [Lines, totals and VAT](docs/totals.md): How charges become bill lines rounded once, and how VAT is extracted from gross totals or added to net totals so the bill matches what the customer was promised. - [Charge explanations](docs/explanations.md): Read the tariff version, measured units, rounding and usage IDs behind a customer’s bill line. - [Golden tests](docs/golden-tests.md): A tariff author's statement of the bill lines a case must produce — checked on every change, failing on the first cent. - [CLI reference](docs/cli.md): Check and compare price books, explain a bill, inspect event schemas or listen for signed deliveries. - [Refusals](docs/refusals.md): Every stable refusal code: when it happens and what to do. - [Contract law](docs/contracts.md): End of term, last day to cancel, termination dates, renewal and the bill's contract block — computed from the terms, each naming the rule that decided. - [Monthly billing](docs/billing.md): Trace advance charges, usage and corrections through invoice sealing and ledger posting. - [Invoice documents](docs/documents.md): Retrieve the sealed invoice as accessible HTML, PDF, XRechnung or ZUGFeRD. - [Design principles](docs/design.md): Why the crate is pure, exact and deterministic, and what it deliberately leaves to other layers. - [Build on the customer portal API](docs/portal-api.md): Use one account-scoped API to show a bill, submit a line objection, retrieve the answer and acknowledge the document. - [TMF678 customer bills](docs/tmf-bills.md): Use an account-scoped credential to retrieve a partner’s sealed invoices and credits. - [Open-access provisioning](docs/open-access.md): Follow a carrier's S/PRI new-line order through to its first wholesale bill. - [Fixed-line voice imports](docs/voice-imports.md): Reconcile outbound switch calls against sealed invoices. - [Host the fibre customer portal](docs/selfcare.md): Embed accessible account components, let customers check a sealed invoice and provide a public cancellation form with a durable receipt. - [Quotes and signup](docs/selling.md): Quote a plan, submit an order once, and follow the contract events using the original order reference. - [Fixed-line itemisation](docs/voice-itemisation.md): Issue a private Einzelverbindungsnachweis for a sealed voice bill and expire call details after dispatch. - [Reconcile mobile usage](docs/mobile-usage.md): Import measured mobile sessions, resolve held rating groups, check the customer’s data allowance and reconcile TMF635 product usage with a sealed invoice. - [Run the operator services](docs/services.md): Start the services, configure credentials, and inspect their HTTP APIs, events and error codes. - [Billing, contract and usage events](docs/events.md): Subscribe to signed CloudEvents and decode each payload with the event schemas or Rust types. - [Operate prepaid accounts](docs/prepaid.md): Enroll metered subscriptions, fund a EUR wallet from settled bank credits and reconcile monthly spend controls with the ledger and network. - [Rate roaming and verify spending controls](docs/mobile-roaming.md): Classify mobile service at the event date, assess roaming fair use and commission the serving network’s data spending limit. - [Reconcile bank payments](docs/payments.md): Match booked EUR transfers to invoices, explain an outstanding balance and investigate unapplied receipts. - [Reconcile invoice dispatch](docs/invoice-dispatch.md): Find missing, extra or conflicting transport receipts for every original and final invoice sealed in a month. - [Export a month to DATEV](docs/finance-export.md): Reconcile every original and supplemental DATEV batch against the adviser’s posted turnover and retain the evidence for month close. - [Investigate bills and review proposals](docs/agent-assistance.md): Explain a charge from retained evidence, approve a credit or tariff change in the Desk, and follow the execution or delivery receipt. - [Reserve and settle online quota](docs/online-charging.md): Connect a network client to chargingd, reserve prepaid bytes or API calls, settle usage and reconcile mediation copies in the Desk. - [Resolve a missed appointment](docs/appointments.md): Record field evidence, resolve responsibility, approve compensation and trace the credit to the account journal. - [Webhook delivery](docs/webhooks.md): Register an endpoint, verify signatures, inspect delivery attempts and replay missed events. - [Operator Desk](docs/desk.md): Find accounts, review invoices, reconcile payments and resolve missed service appointments in the operator Desk. - [Rehearse a recovery](docs/recovery.md): Restore a closed billing month in isolation, reconcile the journal and check which call details a customer can still retrieve. - [Connect fibre service status and cancellation](docs/service-status.md): Supply dated network evidence, acknowledge cost-control requests and confirm public cancellation receipts for a fibre operator. - [Migration package v1](docs/migration-format.md): Map legacy account, tariff, invoice and finance records into a versioned EUR billing rehearsal. - [Prepare a complaint procedure](docs/complaint-procedure.md): Review complaint coverage across case owners, calculate four average handling times and prepare a German HTML draft. - [Review metered billing accuracy](docs/billing-assurance.md): Prepare, sign and independently verify a fixed-line billing evidence pack across a change of tariff, collector or billing system. - [Validate sample invoices](docs/proof.md): Check sample invoices with veraPDF, KoSIT and Mustang, and reproduce the document hashes. - [Rehearse a billing migration](docs/migration.md): Validate a legacy export, re-bill closed cycles locally and trace differences between legacy invoices and telco in the Desk. - [Check a public tariff receipt](docs/public-checks.md): Quote published telecom prices and verify the first two bills against a pinned tariff using billd’s anonymous MCP endpoint. - [Cut over to the first live invoice](docs/cutover.md): Approve a rehearsed legacy snapshot, import opening receivables once, continue invoice numbers and resume safely after interruption. ## Optional - [Source](https://github.com/hupe1980/telco): crates, services, price books