API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · complaints

Complaint Schema

Schema-ID
complaint
Collection
complaints
Permissions
  • Lezencomplaint_view
  • Aanmakencomplaint_create
  • Wijzigencomplaint_edit
  • Verwijderencomplaint_delete

Velden

Complaint Schema

complaints4 permissions

Schema for validating Reklamationen (complaint/claim) entities

titlestringvereist

Complaint title

1–300 tekens
statusstringvereist

Workflow status (tenant-configurable)

categorystringoptioneel

Complaint category (tenant-configurable)

max. 100 tekensnullable
directionstringoptioneel

INCOMING = customer to us, OUTGOING = us to supplier

INCOMINGOUTGOING
Default: "INCOMING"nullable
prioritystringoptioneel

Complaint priority

LOWMEDIUMHIGHCRITICAL
Default: "MEDIUM"nullable
sourcestringoptioneel

How the complaint was received

EMAILPHONEPORTALIN_PERSONLETTERSYSTEM_ALERTOTHER
nullable
descriptionstringoptioneel

Detailed complaint description (plain text)

max. 10000 tekensnullable
descriptionHtmlstringoptioneel

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

nullable
customerStatementstringoptioneel

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

max. 5000 tekensnullable
internalNotestringoptioneel

Internal-only note

max. 5000 tekensnullable
partyIduuidoptioneel

Customer/supplier party UUID

nullable
partyAddressIduuidoptioneel

Specific site/address of the associated party

Default: nullnullable
contactPartyIduuidoptioneel

Contact person UUID

nullable
assignedToIduuidoptioneel

Assigned employee user UUID

nullable
orgUnitIduuidoptioneel

Responsible department UUID

nullable
supplierPartyIduuidoptioneel

Supplier party UUID (from the CRM)

nullable
manufacturerstringoptioneel

Manufacturer name (tenant-configurable list complaint_manufacturers)

max. 100 tekensnullable
orderNumberstringoptioneel

Our purchase order number at the supplier

max. 100 tekensnullable
proposedSolutionstringoptioneel

Solution proposed by the person entering the complaint

max. 5000 tekensnullable
linkedTicketIduuidoptioneel

Linked ticket UUID

nullable
linkedOrderIduuidoptioneel

Linked sales order UUID

nullable
linkedContractIduuidoptioneel

Linked contract UUID

nullable
linkedAssetIduuidoptioneel

Linked asset UUID

nullable
linkedInvoiceIduuidoptioneel

Linked invoice UUID

nullable
articleIduuidoptioneel

Related article/product UUID

nullable
responseDeadlinedateoptioneel

Response deadline (YYYY-MM-DD)

nullable
resolutionDeadlinedateoptioneel

Resolution deadline (YYYY-MM-DD)

nullable
claimedAmountstringoptioneel

Claimed amount (Decimal128 as string)

Patternnullable
creditNoteAmountstringoptioneel

Credit note amount (Decimal128 as string)

Patternnullable
replacementCoststringoptioneel

Replacement cost (Decimal128 as string)

Patternnullable
currencyCodestringoptioneel

ISO 4217 currency code

max. 3 tekensDefault: "EUR"
estimatedCoststringoptioneel

Estimated total cost (Decimal128 as string)

Patternnullable
actualCoststringoptioneel

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
damageAmountstringoptioneel

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

Patternnullable
resolutionNotestringoptioneel

How the complaint was resolved

max. 5000 tekensnullable
rootCauseCategorystringoptioneel

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

max. 100 tekensnullable
rootCausestringoptioneel

Root cause analysis

max. 3000 tekensnullable
correctiveActionstringoptioneel

Corrective action taken

max. 3000 tekensnullable
preventiveActionstringoptioneel

Preventive action for future

max. 3000 tekensnullable
isAcceptedbooleanoptioneel

Whether the complaint was accepted as valid

nullable
rejectionReasonstringoptioneel

Reason for rejection

max. 2000 tekensnullable
customerSatisfactionRatingnumberoptioneel

Post-resolution customer satisfaction (1-5)

1 – 5nullable
mergedIntoComplaintIduuidoptioneel

If set, this complaint was merged into the referenced complaint

nullable
mergedIntoComplaintNumberstringoptioneel

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

nullable
receivedAtdatetimeoptioneel
nullable
acknowledgedAtdatetimeoptioneel
nullable
acceptedAtdatetimeoptioneel
nullable
rejectedAtdatetimeoptioneel
nullable
resolvedAtdatetimeoptioneel
nullable
closedAtdatetimeoptioneel
nullable
inboundReplyAckedAtdatetimeoptioneel

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
inboundReplyAckedBystringoptioneel

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

nullable
awaitingReplyPinnedAtdate-time[]optioneel

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[]optioneel

Tags

Default: []nullable
attachmentsobject[]optioneel
Default: []nullable
s3Keystringvereist
fileNamestringvereist
mimeTypestringvereist
sizeBytesnumbervereist
uploadedAtdatetimevereist
uploadedByuuidvereist
isInternalbooleanvereist
linkedEntitiesobject[]optioneel
Default: []nullable
entityTypestringvereist
partyassetticketprojectuseropportunitysales_orderinvoicecontract
entityIduuidvereist
rolestringvereist
convertedToobjectoptioneel

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
entityTypestringvereist
ticketopportunitycomplaint
entityIduuidvereist
convertedAtdatetimeoptioneel
nullable
convertedBystringoptioneel
nullable
convertedFromobjectoptioneel

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

read-onlynullable
entityTypestringvereist
ticketopportunitycomplaint
entityIduuidvereist
convertedAtdatetimeoptioneel
nullable
convertedBystringoptioneel
nullable
statusChangedAtdatetimeoptioneel

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

nullable
respondedAtdatetimeoptioneel

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

nullable
targetsobject[]optioneel

Denormalized active service targets (ADR 0117a)

nullable
stageIdstringvereist
stageKindstringvereist
time_to_first_responsetime_in_statustime_to_statustime_to_close
stageStatusstringoptioneel
nullable
stageLabelstringoptioneel
nullable
bindingnessstringvereist
contractualinternal
deadlinedatetimevereist
breachedAtdatetimeoptioneel
nullable
completedAtdatetimeoptioneel
nullable
profileIduuidvereist

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/complaints — Lijst, gepagineerd + filterbaar
  • GET /api/v1/complaints/<id> — Enkele entity
  • POST /api/v1/complaints — Aanmaken
  • PATCH /api/v1/complaints/<id> — Gedeeltelijke update
  • DELETE /api/v1/complaints/<id> — Soft-delete
  • GET /api/v1/complaints/<id>/timeline — Audit + activiteiten

Zoeken