Resolve a missed appointment
Record field evidence, resolve responsibility, approve compensation and trace the credit to the account journal.
A customer pays a fixed €60 per month. The installation firm confirms it missed an agreed visit. In Terminfälle, support can see the agreement and the failed visit, review the €12 proposal and follow the approved credit into the account journal.
Open and review a case
From the consumer’s subscription in Konto, choose Terminfall eröffnen. Use one stable visit ID per appointment and select the reporting credential. Enter the fixed monthly charge agreed for the incident date and the reference to the contract or tariff document that establishes it. A bill total can include setup charges, usage and prorated days.
Record the agreed visit date and the outcome. A report can arrive before the agreement. A proposal requires evidence linking the failure to an agreed visit day. Review disputed responsibility under Verantwortung klären and record the reason for your finding. When reports disagree on the date, select a day supported by both an agreement and a failure report. New evidence before approval requires reassessing any earlier decision. Keep the underlying customer and field correspondence under the cited references.
For an eligible missed appointment, the rule compares €10 with 20% of the fixed contractual monthly charge and takes the higher amount, rounded once to cents. The workflow covers agreed installation and service appointments on consumer contracts with an evidenced fixed monthly fee. Individual outage days, other damages and eligibility of additional customer groups require separate assessment. § 58 Abs. 4 TKG
From approval to the account
Approval freezes the amount, rule, business date and approving principal. contractd emits a signed event containing the subscription and case IDs. billd reads the immutable award from the configured contract source and submits it to accountingd. The case shows the journal reference once the expense and receivable credit have posted. If delivery is interrupted, the case stays approved and delivery can retry with the same identity.
For the €60 example, the account receivable decreases by €12 and compensation expense increases by €12. The original invoice retains its charges, VAT and document number. If the account has no receivable yet, the entry produces a credit balance. No funds are transferred by this workflow.
Connect a field system
Any field-service system reports a visit in the stack's shared profile appointment@1, a profile of TMF646 Appointment. contractd routes by dataschema, never by the event type, so each sender keeps its own type names.
Assign a named field credential in contractd and bind that name to the visit. In the local demo, the name is fieldlink. Use one name per sender and keep it when the credential rotates. Send CloudEvents 1.0 JSON to POST /appointment-cases/{id}/evidence:
| Envelope | Value |
|---|---|
type | Your own, for example de.fieldlink.visit.failed. It is kept as provenance. |
subject | The case ID from the path. |
dataschema | urn:open-utility-stack:appointment:1 |
data | appointment@1, with client_reference set to the case ID |
data.status | Recorded as | Rules |
|---|---|---|
confirmed | Termin vereinbart | on.date is the agreed day. Add from and until (local HH:MM) when a slot exists. No reason, responsible or disputed. |
failed | Besuch ausgefallen | The day the visit failed, not after today. Name the side it fell on in responsible: customer, firm, client or nobody (for example severe weather). Set disputed when the two sides tell it differently. |
completed | Arbeit erledigt | The day the work was done. Job acceptance or an agreed appointment alone does not establish completion. |
cancelled | Refused | § 58 Abs. 4 TKG compensates an agreed appointment the provider missed. Whether a cancellation counts as missed is support's call on the case, so contractd does not take it from a sender. |
on.zone is Europe/Berlin. performer names the firm, and appointment.id your own ID for the visit; both appear on the case. extensions are accepted and not stored. Send only the fields the case needs.
{
"specversion": "1.0",
"id": "dispatch-5182",
"source": "urn:fieldlink:regional-office",
"type": "de.fieldlink.visit.failed",
"subject": "019aa810-0000-7000-8000-000000000001",
"dataschema": "urn:open-utility-stack:appointment:1",
"data": {
"profile": "appointment@1",
"client_reference": "019aa810-0000-7000-8000-000000000001",
"appointment": { "id": "visit-3301" },
"status": "failed",
"on": { "date": "2026-11-20", "zone": "Europe/Berlin" },
"performer": "Glasbau Nord GmbH",
"responsible": "firm",
"disputed": true,
"reason": "Kunde und Disposition schildern den Termin unterschiedlich."
}
}Keep the same source and id on retry. An identical retry returns the same receipt. Changed content under the same identity returns HTTP 409 appointment.conflict. A field credential receives an acknowledgement and has no access to the case list or approval. Each refusal is an RFC 9457 problem with a pointer to the member and a fix:
code | Meaning |
|---|---|
appointment.dataschema | dataschema is missing or names another profile. |
appointment.subject | subject, data.client_reference and the case in the path differ. |
appointment.zone | on.zone is not Europe/Berlin. |
appointment.cancelled | A cancellation; see above. |
appointment.sender | HTTP 403: the case is bound to another field credential. |
appointment.invalid | Anything else the profile forbids, or a visit result dated after today. |
GET /event-types lists the profile under consumes. The profile, its example and the definitions it references are published with these docs; validate a payload with any JSON Schema 2020-12 validator that loads all three, or with the stack's own contracts/check.py appointment@1 visit.json.
Replace a service
The contract source must expose the approved award at GET /appointment-cases/{id}/award to billd’s dedicated billing-source credential. The accounting interface accepts POST /appointment-credits with the private booking key. A retry of the same award has one financial effect. A different award under the same ID returns a conflict. A posted credit can be read at GET /appointment-credits/{id}. Contract API · Accounting API