API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · complaints

Complaint Schema

Schema ID
complaint
Collection
complaints
Permissions
  • Readcomplaint_view
  • Createcomplaint_create
  • Editcomplaint_edit
  • Deletecomplaint_delete

Fields

Complaint Schema

complaints4 permissions

Schema for validating Reklamationen (complaint/claim) entities

titlestringrequired

Complaint title

1–300 characters
statusstringrequired

Workflow status (tenant-configurable)

categorystringoptional

Complaint category (tenant-configurable)

max 100 charactersnullable
directionstringoptional

INCOMING = customer to us, OUTGOING = us to supplier

INCOMINGOUTGOING
Default: "INCOMING"nullable
prioritystringoptional

Complaint priority

LOWMEDIUMHIGHCRITICAL
Default: "MEDIUM"nullable
sourcestringoptional

How the complaint was received

EMAILPHONEPORTALIN_PERSONLETTERSYSTEM_ALERTOTHER
nullable
descriptionstringoptional

Detailed complaint description (plain text)

max 10000 charactersnullable
descriptionHtmlstringoptional

Rich text HTML version of the description. Older complaints have none and fall back to `description`.

nullable
customerStatementstringoptional

Legacy: separate customer statement. The customer account now lives in `description`; existing values stay readable.

max 5000 charactersnullable
internalNotestringoptional

Internal-only note

max 5000 charactersnullable
partyIduuidoptional

Customer/supplier party UUID

nullable
partyAddressIduuidoptional

Specific site/address of the associated party

Default: nullnullable
contactPartyIduuidoptional

Contact person UUID

nullable
assignedToIduuidoptional

Assigned employee user UUID

nullable
orgUnitIduuidoptional

Responsible department UUID

nullable
supplierPartyIduuidoptional

Supplier party UUID (from the CRM)

nullable
manufacturerstringoptional

Manufacturer name (tenant-configurable list complaint_manufacturers)

max 100 charactersnullable
orderNumberstringoptional

Our purchase order number at the supplier

max 100 charactersnullable
proposedSolutionstringoptional

Solution proposed by the person entering the complaint

max 5000 charactersnullable
linkedTicketIduuidoptional

Linked ticket UUID

nullable
linkedOrderIduuidoptional

Linked sales order UUID

nullable
linkedContractIduuidoptional

Linked contract UUID

nullable
linkedAssetIduuidoptional

Linked asset UUID

nullable
linkedInvoiceIduuidoptional

Linked invoice UUID

nullable
articleIduuidoptional

Related article/product UUID

nullable
responseDeadlinedateoptional

Response deadline (YYYY-MM-DD)

nullable
resolutionDeadlinedateoptional

Resolution deadline (YYYY-MM-DD)

nullable
claimedAmountstringoptional

Claimed amount (Decimal128 as string)

Patternnullable
creditNoteAmountstringoptional

Credit note amount (Decimal128 as string)

Patternnullable
replacementCoststringoptional

Replacement cost (Decimal128 as string)

Patternnullable
currencyCodestringoptional

ISO 4217 currency code

max 3 charactersDefault: "EUR"
estimatedCoststringoptional

Estimated total cost (Decimal128 as string)

Patternnullable
actualCoststringoptional

Legacy: manually entered actual cost. Since ADR 1170 the actual cost is computed on read (`costSummary`); an existing value stays readable as „bisher erfasst" and is not part of the computed total.

Patternnullable
damageAmountstringoptional

ADR 1170: other damage amount (Schadensbetrag) — part of the computed actual cost together with unbilled Leistungen and replacementCost (Hardwarekosten).

Patternnullable
resolutionNotestringoptional

How the complaint was resolved

max 5000 charactersnullable
rootCauseCategorystringoptional

Legacy: replaced by `category`; existing values serve as its fallback.

max 100 charactersnullable
rootCausestringoptional

Root cause analysis

max 3000 charactersnullable
correctiveActionstringoptional

Corrective action taken

max 3000 charactersnullable
preventiveActionstringoptional

Preventive action for future

max 3000 charactersnullable
isAcceptedbooleanoptional

Whether the complaint was accepted as valid

nullable
rejectionReasonstringoptional

Reason for rejection

max 2000 charactersnullable
customerSatisfactionRatingnumberoptional

Post-resolution customer satisfaction (1-5)

1 – 5nullable
mergedIntoComplaintIduuidoptional

If set, this complaint was merged into the referenced complaint

nullable
mergedIntoComplaintNumberstringoptional

Complaint number of the complaint this was merged into (denormalized for display)

nullable
receivedAtdatetimeoptional
nullable
acknowledgedAtdatetimeoptional
nullable
acceptedAtdatetimeoptional
nullable
rejectedAtdatetimeoptional
nullable
resolvedAtdatetimeoptional
nullable
closedAtdatetimeoptional
nullable
inboundReplyAckedAtdatetimeoptional

Timestamp at which the latest inbound customer email on this complaint was acknowledged as "handled, no reply needed". Clears the awaiting-reply badge when >= the last inbound email time; a newer inbound email re-arms it. Independent of resolvedAt/closedAt — the badge is shown regardless of workflow state. Mirrors opportunity.inboundReplyAckedAt.

nullable
inboundReplyAckedBystringoptional

User who acknowledged the latest inbound customer email (see inboundReplyAckedAt).

nullable
awaitingReplyPinnedAtdate-time[]optional

Timestamps of unanswered inbound customer emails that were carried over by a merge and that the standard computation can no longer see. The awaiting-reply badge derives from "inbound emails newer than the last OUTBOUND email of the record" — after a merge that comparison spans two formerly independent conversations, so a reply in one thread silently marks an open question in the other as answered. The merge therefore pins the affected timestamps here; the badge counts them in addition to the computed ones. Cleared by ack-inbound-reply. Server-managed (see merge.service.ts).

nullable
tagsstring[]optional

Tags

Default: []nullable
attachmentsobject[]optional
Default: []nullable
s3Keystringrequired
fileNamestringrequired
mimeTypestringrequired
sizeBytesnumberrequired
uploadedAtdatetimerequired
uploadedByuuidrequired
isInternalbooleanrequired
linkedEntitiesobject[]optional
Default: []nullable
entityTypestringrequired
partyassetticketprojectuseropportunitysales_orderinvoicecontract
entityIduuidrequired
rolestringrequired
convertedToobjectoptional

Set when this complaint was converted to another entity (ticket). The complaint is kept — not deleted — so linked records stay reachable. Written only by the conversion routes.

read-onlynullable
entityTypestringrequired
ticketopportunitycomplaint
entityIduuidrequired
convertedAtdatetimeoptional
nullable
convertedBystringoptional
nullable
convertedFromobjectoptional

Set when this complaint was created by converting another entity (ticket). Written only by the conversion routes.

read-onlynullable
entityTypestringrequired
ticketopportunitycomplaint
entityIduuidrequired
convertedAtdatetimeoptional
nullable
convertedBystringoptional
nullable
statusChangedAtdatetimeoptional

Timestamp of the last status change (drives time_in_status / time_to_status targets, ADR 0117a)

nullable
respondedAtdatetimeoptional

Timestamp of the first agent response to the complaint (drives time_to_first_response targets, ADR 0117a)

nullable
targetsobject[]optional

Denormalized active service targets (ADR 0117a)

nullable
stageIdstringrequired
stageKindstringrequired
time_to_first_responsetime_in_statustime_to_statustime_to_close
stageStatusstringoptional
nullable
stageLabelstringoptional
nullable
bindingnessstringrequired
contractualinternal
deadlinedatetimerequired
breachedAtdatetimeoptional
nullable
completedAtdatetimeoptional
nullable
profileIduuidrequired

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/complaints — List, paginated + filterable
  • GET /api/v1/complaints/<id> — Single entity
  • POST /api/v1/complaints — Create
  • PATCH /api/v1/complaints/<id> — Partial update
  • DELETE /api/v1/complaints/<id> — Soft delete
  • GET /api/v1/complaints/<id>/timeline — Audit + activities

Search