telco

Run the operator services

Start the services, configure credentials, and inspect their HTTP APIs, events and error codes.

On this page

Each domain service owns a PostgreSQL schema and exposes an HTTP API. The customer gateway composes account views on demand. The Desk reads those APIs, and signed events carry contract changes between services.

ServicePortOwnsYou can replace it with
contractd9401Customers, billing accounts, contracts, subscriptions, identifiers; the renewal and ending passes; the renewal noticeYour CRM or order system
billd9402Price books, usage, the open bill, sealed bills and their documents, Stornorechnungen and staged booking commandsAnother billing engine
usaged9403Outbound voice classification, switch receipts, itemisation and its retentionYour mediation platform
accountingd9404Invoice balances, bank receipts and journalYour ERP
chargingd9405Network quota, settlement and session evidenceYour charging function
portald9406Customer API, combined overview and mailboxA compatible customer gateway
agentd (optional)9408Read-only investigations and their local run journalAn operator assistant

Commands and queries are REST. Facts cross as CloudEvents over Standard Webhooks: contractd delivers each event, signed and in order, to billd's /inbox; billd reads the resource's current state from contractd and bills from its own copy. A late fact is corrected by the next bill, never by re-opening a sealed one.

Run them

just demo         # Docker Compose: the estate from one image, a year of bills, the Desk on :9400
just dev          # Local services and the Desk on port 5179, with PostgreSQL in Docker
just seed         # a year of bills into just dev
just listen       # every event as it happens
just conformance contractd http://127.0.0.1:9401

Compose binds the Desk to loopback on port 9400 and the headless customer API on 9406. The service binaries in the Compose demo support the healthcheck command for container probes.

Use GET /health/live for liveness and GET /health/ready for readiness. A domain service returns 503 when its database is unavailable. Its GET /health endpoint reports service-specific status.

Service configuration:

VariableMeaning
TELCO_LISTENDefault 127.0.0.1:9401 (contractd), 127.0.0.1:9402 (billd), 127.0.0.1:9403 (usaged), 127.0.0.1:9404 (accountingd), 127.0.0.1:9405 (chargingd), 127.0.0.1:9406 (portald). agentd reads AGENTD_LISTEN (default 127.0.0.1:9408)
TELCO_DATABASE_URLThe runtime role's connection: contractd_app, billd_app, usaged_app, accountingd_app or chargingd_app, DML on its own schema only
TELCO_MIGRATION_URLThe owner's connection (contractd_owner, billd_owner, usaged_owner, accountingd_owner, chargingd_owner). When set, the schema is applied and the runtime role granted
TELCO_RUNTIME_ROLEDefaults to the service name plus _app
TELCO_API_KEYS / TELCO_API_KEYS_FILENamed keys, ;- or line-separated: name role secret [patterns]. Use secrets of at least 16 characters. Optional patterns limit visible events. See Keys and roles
TELCO_WEBHOOK_KEYThe master key webhook secrets are derived from (≥ 32 bytes); webhooks need it
TELCO_CLOCKsystem (the Europe/Berlin date) or test:YYYY-MM-DD
TELCO_ENVIRONMENTproduction (the default: refuses a test clock and plain-http links), development or test. usaged requires named API credentials in every environment
TELCO_PASS_INTERVAL_SECSDefault 3600
TELCO_OPERATORRequired. A TOML file with the operator every document names (example); a field § 62 TKG or § 14 UStG requires that is missing stops the start
TELCO_PUBLIC_PLANSExact pinned tariffs served by billd’s anonymous /mcp/public checker, comma-separated. Empty by default.
TELCO_MCPon enables the authenticated read tools and billd’s scoped proposal tools. Defaults to off.

contractd also reads:

VariableMeaning
TELCO_RENEWAL_NOTICE_LEAD_DAYSDefault 30
TELCO_SUBSCRIBERSWhere events go: billd=https://billd.example/inbox,crm=…
TELCO_SUBSCRIBER_<NAME>_SECRET (or …_SECRET_FILE)The signing secret per subscriber: whsec_ + base64, or at least 32 bytes
TELCO_SUBSCRIBER_<NAME>_TYPESOptional type patterns, e.g. de.telco.contract.*

billd also reads:

VariableMeaning
TELCO_SOURCE_URLWhere contract facts are read: contractd, or what stands in its place
TELCO_SOURCE_TOKEN (or …_FILE)billd's own token for those reads
TELCO_INBOX_SECRETS (or …_FILE)The secrets a delivery may be signed with, comma-separated (rotation: list old and new)
TELCO_PRICEBOOKSA directory of price-book directories; a plan assignment pins id@version
TELCO_ACCOUNTING_URLAccounting service or ERP base URL
TELCO_BOOKING_TOKEN (or …_FILE)Dedicated booking credential for that service

usaged reads TELCO_VOICE_PLAN, TELCO_BILLD_URL and TELCO_MEDIATION_TOKEN. For subscriber itemisation it also reads TELCO_EVN_PROTECTED_FILE. Configure switch intake · Configure itemisation

For the standalone OpenAPI contract and mailbox read receipts, see Build on the customer portal API. For customer sign-in, scoped service credentials, the cancellation form and verification links, see Host the fibre customer portal.

For chargingd peer URLs, named network clients, quota and operator routes, see Online charging.

accountingd configuration and operations are described in Reconcile bank payments.

VariableMeaning
TELCO_LEDGER_IDThe ledger's id (default telco.local/books); the ledger lives in schema ledger

Outside development, every URL must be https (loopback excepted). Each service checks its configuration before starting and lists every problem at once, never a secret.

Guarantees

  • Each domain service owns its data. One schema and one role pair per domain service; a runtime role has no right on the other's schema, so a cross-service query is a permission error, not a convention.
  • One transaction per change. Every state change commits with an append-only fact and its event, or none of them does — the event is the outbox.
  • History is append-only. Facts, events, bills, their charges and files, and the inbox refuse UPDATE and DELETE, even to the owner.
  • Nothing lost, nothing applied twice. A subscriber's cursor moves only after a 2xx; billd takes each event id once, in the transaction of its effect.
  • No full IBAN in billd. contractd's reads serve it masked; billd stores and prints only DE…3000.
  • No overlaps. The database refuses overlapping plan assignments and an identifier held twice, also when two requests race.
  • One clock. Business dates come from the injected clock; a guard refuses now()/current_date in the services' SQL.

Replace a service

Domain services publish their HTTP operations in OpenAPI. Event producers also publish a catalogue with each event’s meaning and source. To stand where contractd stands, a CRM:

  1. emits the contract facts — de.telco.customer.*, de.telco.billing-account.*, de.telco.contract.*, de.telco.subscription.* — as signed CloudEvents to billd's /inbox, subject contract/{id} and so on;
  2. serves four reads billd calls with its own token: GET /customers/{id}, /billing-accounts/{id} (IBAN masked), /contracts/{id}, /subscriptions/{id} (with the plan assignments).

Then hold it to the boundary:

just conformance contractd https://crm.example --ids <customer>,<account>,<contract>,<subscription>
just conformance billd https://billd.example --secret "$TELCO_INBOX_SECRET"

Every check prints ✓ or ✗ with what was expected. The reference services pass the same kit in just test-db. To skip a service altogether, embed the crates (telco-core, telco-render, telco-events) and call the domain directly.

Delivery and the inbox

A delivery is POST <subscriber> with content-type: application/cloudevents+json and the headers webhook-id (the event id), webhook-timestamp and webhook-signature (v1, + base64 HMAC-SHA256 of {id}.{timestamp}.{body}).

The receiver answerscontractd does
2xxMoves the cursor past the event
410Pauses the subscriber (health shows it)
anything else, or no answerStops that subscriber and retries after 1 s, doubling to 5 min

Events reach a subscriber in sequence order; a type filter skips but still moves on. contractd's GET /health shows each subscriber's pending events, attempts and last error.

billd's POST /inbox refuses a body over 64 KiB, then a signature that does not verify or a timestamp more than five minutes off (401 inbox.unauthenticated) — before reading or writing anything. A subject other than customer|billing-account|contract| subscription + / + a UUID is taken as ignored and never requested. It answers {"outcome": "applied" | "ignored" | "gone" | "duplicate"}, or 503 inbox.source-unavailable when the source cannot be read, so the sender tries again.

The test clock

Advance the test clocks in service order. Set contractd first with PUT /clock. Its response reports the events it delivered and lists any subscribers still behind. Set accountingd next to reevaluate prepaid month boundaries. Advance chargingd to expire outstanding grants. Advance billd to seal invoices with the delivered facts, then usaged for traffic-data retention. Zeitreise, telco demo and just demo-signup advance all five clocks.

API

Private routes require Authorization: Bearer <key>. Each domain service documents its public and signed-ingress routes. portald publishes its contract at /api/v1/portal/openapi.yaml. Bodies refuse unknown fields. Each service's OpenAPI 3.1 document is services/<service>/openapi.yaml; a test keeps it equal to the router's route table and to every problem code the service can return.

Keys and roles

Each caller has its own named key, so the log, the webhooks and a revocation name who:

TELCO_API_KEYS="desk operator $DESK_KEY; crm integration $CRM_KEY contract,customer; bi read $BI_KEY"
RoleMay
operatorThe Desk, carrier order registration and oversight, every webhook, the test clock, credit notes and sealed rating case exports
integrationRead, and the business operations an integration performs (sign-up, approval, termination, usage, its own webhooks) — not PUT /clock, not POST /bills/{id}/credit-note
fieldSubmit field evidence on assigned appointment cases
bookingSubmit accounting bookings, statutory credits, validated prepaid enrollments and rated charge revisions. Read the account receivable and reviewed credit basis. Execute approved goodwill and tariff changes.
fault-deskSupply timestamped outage and repair observations. Each managed incident binds to the original sender.
investigatorRead the paired invoice evidence from billd for the private Desk investigator.
billing-sourceRead the four contract resources and approved appointment and outage awards from contractd as billd.
outage-receiptRead the posted outage receipt from accountingd as contractd.
readGeneral read APIs and MCP's read-only tools
financePreview, issue, list and retrieve DATEV batches on accountingd. A separate credential on billd reads the period’s pending booking count. Finance export
mediationDeliver classified fixed-line batches to billd and read the frozen invoice facts needed for itemisation and deletion.
switchImport mobile batches at billd or outbound voice CSV and JSON at usaged as the named source. Read its voice receipts. Mobile usage · Voice imports
bill-reader:<account-uuid>List and retrieve sealed bills for the account through TMF678. Partner bills
usage-reader:<account-uuid>List and retrieve accepted mobile traffic records for the account through TMF635. Partner usage
reviewerInspect the queue and approve or reject a proposal under a personal identity.
proposer:<account-uuid>Capture evidence, draft checked answers and propose remedies for one account.
reply-deliveryPoll approved customer replies and acknowledge delivery.
prepaid-ossPoll prepaid network proposals and acknowledge one revision. Network controls
customer:<account-uuid>Access the account’s portal, invoices, eligible itemisation, prepaid wallet and mobile meters. The authenticated customer portal holds the credential. Customer meter
carrierRead its own orders and submit S/PRI messages. The two carrier routes are restricted to the permissions described in Open-access provisioning.

A missing or invalid bearer token receives 401 auth.missing with a Bearer challenge. A valid key with insufficient permissions receives 403 auth.forbidden, identifying the configured key name, its role and the route. The optional patterns (contract,customer.moved; a bare aggregate means all its types) limit which events the key sees — on GET /events and on every webhook it owns. Keys are compared in constant time and never logged. A test holds the role table against every route in the contract, billing and accounting services.

Rotate an API credential

Keep the caller name when replacing a secret. For example, during a CRM rotation the following command adds a replacement to an existing inline configuration. It assumes that the current CRM entry uses the role and patterns shown above:

export TELCO_API_KEYS="${TELCO_API_KEYS:?existing entries required}; crm integration ${CRM_NEW:?replacement required} contract,customer"
  1. Add the replacement entry alongside the existing entries in your deployment. Roll out the configuration to every contractd and billd replica that accepts this caller. Both secrets authenticate as crm.
  2. Switch clients to the replacement secret. Check a protected request such as GET /webhooks on each service. Existing subscriptions still belong to crm, and retrying a POST with its original idempotency key returns its original response.
  3. Remove the old entry and roll out the configuration again. A replica rejects the retired secret with 401 auth.missing once it has restarted with the new configuration.

The same procedure works with one entry per line in TELCO_API_KEYS_FILE. Put the actual secret values in that file. The inline and file entries are validated together. Each secret must be unique. Entries sharing a name must have the same role and event patterns after shorthand expansion, sorting and deduplication. Empty entries inside a comma-separated pattern list are refused. Omitting the pattern field grants all events.

Retrying safely

On contractd and billd, a retriable business POST may carry Idempotency-Key: <1–255 visible characters>. A retry with the same key gets the first answer again, with Idempotent-Replayed: true — never a second customer, contract or credit note. Keys belong to the caller (two callers may use the same string) and to the request: the same key with another method, path or body is 422 idempotency.mismatch; a retry while the first is still running is 409 idempotency.in-progress. A 5xx answer is not kept, so it can be retried; everything else is kept 24 hours.

Webhooks

POST /webhooks, GET /webhooks, GET|DELETE /webhooks/{name}, POST /webhooks/{name}/test, GET /webhooks/{name}/deliveries, POST /webhooks/{name}/replay — an integration registers and runs its own subscriber; see Webhooks.

For resource paths, parameters and response schemas, open the service’s GET /openapi.yaml. The sales guide covers signup and quotes. The billing guide covers invoice holds, sealing and usage.

MCP

With TELCO_MCP=on, contractd and billd expose stateless read tools at /mcp on their own ports. Each uses the same service function as its REST counterpart. billd also exposes propose_credit, propose_plan_switch and propose_dispute_answer at /agent/mcp. These tools create Desk items for human review. Review a proposal

The anonymous /mcp/public endpoint exposes only quotes and receipt checks over the configured public catalog. Publish a tariff

ServiceTools
contractdget_customer, get_contract, get_contract_dates (the § 4 block and when a termination arriving on a day would take effect, with the rule), get_subscription
billdget_bill, explain_bill (every line with its „Warum?" — quote it, never recompute it), list_bills, get_open_bill, list_price_books, quote_plan (what a plan will cost from a day)

Problems

Errors are application/problem+json (RFC 9457) with code, detail, and rule and fix where they apply, and pointer — a JSON pointer into the request (/account/iban) — where the problem is about one part of it. Each problem's type links to its row here. They never echo personal data from the request.

CodeStatusMeaning
auth.missing401No token, or a wrong one
auth.forbidden403The key's role may not do this (Keys and roles)
request.invalid422Unknown field, wrong type, missing reference, or a value out of range
request.too-large413Body over 64 KiB
not-found404No such resource
internal500Something failed that the request did not cause; the log has the detail
idempotency.invalid422An Idempotency-Key that is not 1–255 visible ASCII characters
idempotency.mismatch422The key was used for another request; use a new key
idempotency.in-progress409The first request with this key is still running; retry in a moment
webhook.url-forbidden422Not https, credentials in the URL, or a host that is not public
webhook.exists409A webhook or configured subscriber has this name
webhook.configured409A configured subscriber is changed in the configuration, not the API
webhook.limit409A key owns at most 20 webhooks
webhook.unconfigured503The service has no TELCO_WEBHOOK_KEY
webhook.orphaned409The key that owns the webhook is not configured
signup.conflict409The order reference was already signed up with another request; the same request again answers the first answer
contract.term-too-long422§ 56 Abs. 1 TKG
contract.notice-too-long422§ 309 Nr. 9 lit. c BGB
contract.invalid-terms422Out of range
contract.awaiting-approval409§ 54 Abs. 3 TKG: activation before approval
contract.state409The contract's state does not allow this
contract.not-effective409Not an effective contract
contract.already-terminated409A termination is already recorded
contract.no-transparency-block404A business contract, or a term of one month or less
contract.addon-extends-term409§ 66 Abs. 3 TKG
subscription.transition409A lifecycle step that is not allowed
subscription.plan-overlap409The database refused an overlapping assignment
identifier.taken409Another subscription holds this identifier in that period
account.parent-mismatch422The parent account must belong to the same customer
account.customer-mismatch422The billing account must belong to the customer
account.invalid-iban422The IBAN fails its check digits or national format
account.mandate-incomplete422A direct debit without mandate reference, signature date or IBAN
account.no-creditor-id409The operator has no creditor id, so it cannot collect by direct debit
letter.not-applicable409No renewal notice: business, non-renewing or terminated contract, or past the last day to cancel
voice.delivery-pending503Retry the same batch identity and bytes after billing recovers.
evn.preference422Record the subscriber’s choice and required declaration evidence.
evn.timestamp422Supply an offset-aware answer time.
evn.billing-unavailable503Restore access to the sealed invoice facts at billd and retry.
evn.protection-unavailable503Load the confidential current-quarter list in usaged before retrying.
evn.render500Retry the itemisation PDF and inspect the service logs if rendering continues to fail.
bill.replay-expired410Underlying fixed-line call evidence has expired. Use the sealed invoice and its line-level explanation.
bill.dispatch-conflict409A different dispatch receipt already exists. Check the original delivery evidence.
voice.batch-conflict409Retry with the original batch UUID, source credential and bytes. Use a fresh UUID for a corrected export
online.source-unavailable503Retry the grant after the authoritative contract service is reachable.
online.entitlement409Check the active prepaid subscription, service date and prior offline activity in the month.
online.conflict409An online report or observation already uses this identifier with different facts. Compare the original receipt.
usage.conflict409A known usage id arrived with other content
usage.period-closed409The record's month is already billed
usage.unknown-subscription422No such subscription
input.invalid422A value the core cannot read: a plan reference that is not book@version/plan, a date that is not YYYY-MM-DD
rate.unknown-plan422The book has no such plan
bill.unknown-book422The open bill needs a price-book version that is not loaded
bill.mixed-prices422Gross and net books on one account
bill.already-credited409The bill already has a credit note
bill.not-creditable409A credit note cannot be credited
bill.no-einvoice409A consumer bill has no e-invoice
bill.einvoice-invalid422A credit note's e-invoice would not validate (a seal is held instead)
document.issuer-invalid, document.payment-invalid422The document could not be built
quote.busy503Both anonymous tariff calculation slots are busy. Retry the tool call.
render.busy503Every typesetting slot is busy; retry
render.failed500Typesetting failed
agent.evidence-stale409The wallet snapshot has changed. Capture fresh evidence and verify a new answer before approval or dispatch.
datev.selection422Supply the booking month, journal, adviser and client. Use a page size between 1 and 100.
datev.cursor422Continue with the cursor and fiscal scope from the preceding page, or restart the list.
datev.month422Select the current or a past month in YYYY-MM format.
datev.unconfigured503Install an approved fiscal profile and configure the billing-close peer.
datev.peer-unavailable503Check billing readiness, its origin and the finance read credential.
datev.reconciliation409Check the currency, precision and source entries against the EUR journal.
datev.stale409Journal or profile changed. Review a fresh preview.
datev.not-found404Check the issued batch UUID and one-based file number.
datev.pending409Resolve pending bookings or finish opening-balance reconciliation.
datev.limit422Selected journal exceeds the supported position limit. Contact the deployment owner.
datev.busy409A close operation is running. Retry the preview.
datev.digest422Use the SHA-256 digest returned by the preview.
datev.conflict409Retrieve the receipt for this UUID or issue a new reviewed command.
datev.empty409All eligible entries are already issued or the month has no postings.
datev.tax422Obtain adviser approval for the gross prepaid tax treatment.
datev.mapping422Check the journal entry against the client’s approved account mappings.
datev.control409Reconcile the mapped rows against both sides of the original posting.
datev.format422A posted entry or date cannot be represented by the selected DATEV format.
ledger.unavailable503The ledger cannot be read
inbox.unauthenticated401A delivery whose signature, headers or timestamp do not verify
inbox.source-unavailable503billd cannot read the source; deliver again later

Events

Poll GET /events on contractd and billd, and GET /usage/events on usaged. Keep a cursor per service. Deduplicate by event ID and order by sequence within each source. See Events for payloads, filtering and signed deliveries.

Passes

Every hour, and whenever the test clock is set:

  • contractd — renewals: emits the renewal notice once on its due date (§ 56 Abs. 3 TKG), and records the renewal once after the initial term ends without a termination.
  • contractd — endings: ends contracts whose termination took effect, and non-renewing contracts after their term, together with their subscriptions.
  • billd — seal: seals every due month of every billing account, in order (Bills).
  • billd — posting: sends staged documents to accountingd, idempotently.

Each pass runs behind an advisory lock, so a second instance skips. Each change carries a dedup key, so re-running inserts nothing. Due dates are compared as "on or before today", so a missed day is caught up.

Carrier provisioning problems

An unknown carrier principal or invalid S/PRI order identifier returns carrier.binding (422). An incompatible binding, out-of-order milestone or conflicting service date returns carrier.conflict (409). An unsupported payload returns carrier.message (422). Send the operation body with media type application/xml (415 for other types).

Mobile usage and billing holds

CodeResultOperator action
mobile.roaming-control409A serving-network control conflicts with its earlier approval or starts before its approval date.
mobile.coverage-conflict409A different completion receipt already covers this subscription and service day. Check the source controls.
mobile.usage-heldBilling heldReview the affected account’s held mobile measurements before sealing the usage period.
mobile.warning-conflict409Compare the delivery reference and outcome with the warning’s recorded attempts before retrying.

Accounting refusals

CodeHTTPOperator action
bank.body400 or 413Send readable UTF-8 XML within the 2 MiB limit.
bank.invalid422Check the message version, individual EUR amount, booking date and bank reference.
bank.account422Select the statement for the configured receiving IBAN.
bank.conflict409Compare both bank records for the same account-servicer reference. The import rolled back.
booking.invalid422Inspect the staged invoice booking, including balanced legs and document identity.
booking.conflict409Reconcile the conflicting document identity with the producer.
booking.original-pending503billd retries the credit after accounting receives its original invoice.
outage.asserted-money422Submit timing and service evidence for the managed incident. Finance supplies the posting.
outage.invalid422Check the report and repair timestamps, review evidence and settlement basis.
outage.conflict409Reopen the case and inspect the current evidence revision or original request.
outage.invalid-credit422Verify the positive award, approval date and outage rule.
outage.credit-refused409Compare the frozen award with the retained accounting record before retrying.
outage.credit-conflict409Finance already has a different booking for this incident. Reconcile the original receipt.
appointment.invalid-credit422Check the approved amount, date and rule in the case record.
appointment.credit-conflict409Compare the existing journal receipt with the approved case. A case can fund one credit.
migration.pending503Accounting is reconciling the opening journal. Resume the approved cutover before retrying the financial command.
appointment.credit-refused409The accounting service refused the approval. Reconcile the case with its journal receipt before replaying delivery.

Prepaid refusals and holds

CodeResultOperator action
agent.contact-not-found404Check the account scope and open the contact first.
agent.customer-confirmation403Use the credential of the customer who received the answer.
agent.answer-mismatch422Confirm the retained answer for this contact.
agent.contact-open422Only a confirmed contact can be reopened.
agent.invalid422Check the proposed effect, reason and evidence.
agent.stale409Refresh the source and submit a new proposal.
agent.unavailable503Retry when the source service is available.
agent.proposal-conflict409Reuse a proposal ID only for the original request.
agent.already-decided409Read the recorded decision and receipt.
agent.command-conflict409Reconcile the command with the retained execution.
agent.credit-stale409Check the remaining invoice and line amounts.
agent.switch-stale409Refresh the subscription and quote before review.
prepaid.online-budget409Recheck available funds, monthly headroom and outstanding holds.
prepaid.online-conflict409Compare the posting identity, revisions and original receipt.
prepaid.invalid422Check identifiers, EUR cents, service month, effective date and required reason.
prepaid.not-found404Check the wallet account and the portal credential mapped to it.
prepaid.conflict409Compare the immutable command with its receipt or enrollment. Verify the settlement reference before crediting funds.
prepaid.revision409Deliver the missing predecessor for this subscription and service month, then replay.
prepaid.ineligible409Verify that the account owns every active subscription and the enrollment window is open.
prepaid.future422Verify the service date against the configured business date.
prepaid.amount422Review the cumulative rated charge and its EUR cent range.
prepaid.pendingBilling heldResolve pending enrollment or charge delivery and repeat the billing pass.
prepaid.stale-proposal409Poll again and apply the latest revision for the account.
prepaid.confirmed-proposal409The network already confirmed this revision. Check the acknowledgement receipt.
prepaid.dispute-conflict409Reconcile the dispute identifier with the account that first reported it.
prepaid.invalid-month422Request the first calendar day of a current or past Berlin business month.

Appointment case refusals

CodeHTTPMeaning
appointment.cancelled422A cancelled visit is not evidence; support decides on the case whether it counts as missed.
appointment.conflict409The visit binding, report identity or proposed decision conflicts with the recorded evidence.
appointment.dataschema422Send dataschema urn:open-utility-stack:appointment:1 with appointment@1 data.
appointment.ineligible422The workflow covers consumer contracts with a verified fixed monthly fee.
appointment.invalid422Check the binding, tariff reference, or the appointment@1 member the pointer names.
appointment.sender403The reporting credential is assigned to a different visit.
appointment.subject422subject and data.client_reference must both be the case ID in the path.
appointment.zone422Give the visit day in Europe/Berlin.

Online quota refusals

CodeHTTPOperator action
charging.invalid422Check the unit type, group, container and sequence fields.
charging.binding409Verify the named gateway and subscription mapping.
charging.sequence409Compare the sequence and body with the retained invocation.
charging.tariff409Check the pinned price book and effective service period.
charging.ineligible409Check enrollment, current subscription status and ownership of the service month.
charging.budget409Refresh wallet headroom and outstanding holds.
charging.quota403Honor the refusal and inspect the wallet or session discrepancy.
charging.unavailable503Retry the original invocation when the peer is available.

Customer documents, service status and cancellation

CodeHTTPCustomer or operator action
method-not-allowed405Use the HTTP method declared for the resource.
portal.account-mismatch403Correct the customer credential mapping at the two owners before retrying.
portal.unavailable503Retry the customer resource after the relevant source recovers.
portal.invalid422Use the operation and parameters in the portal OpenAPI contract.
auth.required401Sign in or supply the bearer for the current account.
selfcare.invalid422Check the invoice line, reason, plan, date, financial evidence or reviewed contract.
selfcare.conflict409Use the retained receipt identifier only for an identical submission.
selfcare.busy429Retry verification after a short wait.
selfcare.replay-format422Open the original document or request a supported replay format.
selfcare.intake-limit429Retry the declaration after the ten-minute intake window. An identical accepted submission still returns its receipt.

Download Markdown