API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · complaints

Complaint Schema

ID du schéma
complaint
Collection
complaints
Autorisations
  • Lirecomplaint_view
  • Créercomplaint_create
  • Modifiercomplaint_edit
  • Supprimercomplaint_delete

Champs

Complaint Schema

complaints4 autorisations

Schema for validating Reklamationen (complaint/claim) entities

titlestringobligatoire

Complaint title

1–300 caractères
statusstringobligatoire

Workflow status (tenant-configurable)

categorystringfacultatif

Complaint category (tenant-configurable)

max. 100 caractèresnullable
directionstringfacultatif

INCOMING = customer to us, OUTGOING = us to supplier

INCOMINGOUTGOING
Par défaut : "INCOMING"nullable
prioritystringfacultatif

Complaint priority

LOWMEDIUMHIGHCRITICAL
Par défaut : "MEDIUM"nullable
sourcestringfacultatif

How the complaint was received

EMAILPHONEPORTALIN_PERSONLETTERSYSTEM_ALERTOTHER
nullable
descriptionstringfacultatif

Detailed complaint description (plain text)

max. 10000 caractèresnullable
descriptionHtmlstringfacultatif

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

nullable
customerStatementstringfacultatif

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

max. 5000 caractèresnullable
internalNotestringfacultatif

Internal-only note

max. 5000 caractèresnullable
partyIduuidfacultatif

Customer/supplier party UUID

nullable
partyAddressIduuidfacultatif

Specific site/address of the associated party

Par défaut : nullnullable
contactPartyIduuidfacultatif

Contact person UUID

nullable
assignedToIduuidfacultatif

Assigned employee user UUID

nullable
orgUnitIduuidfacultatif

Responsible department UUID

nullable
supplierPartyIduuidfacultatif

Supplier party UUID (from the CRM)

nullable
manufacturerstringfacultatif

Manufacturer name (tenant-configurable list complaint_manufacturers)

max. 100 caractèresnullable
orderNumberstringfacultatif

Our purchase order number at the supplier

max. 100 caractèresnullable
proposedSolutionstringfacultatif

Solution proposed by the person entering the complaint

max. 5000 caractèresnullable
linkedTicketIduuidfacultatif

Linked ticket UUID

nullable
linkedOrderIduuidfacultatif

Linked sales order UUID

nullable
linkedContractIduuidfacultatif

Linked contract UUID

nullable
linkedAssetIduuidfacultatif

Linked asset UUID

nullable
linkedInvoiceIduuidfacultatif

Linked invoice UUID

nullable
articleIduuidfacultatif

Related article/product UUID

nullable
responseDeadlinedatefacultatif

Response deadline (YYYY-MM-DD)

nullable
resolutionDeadlinedatefacultatif

Resolution deadline (YYYY-MM-DD)

nullable
claimedAmountstringfacultatif

Claimed amount (Decimal128 as string)

Motifnullable
creditNoteAmountstringfacultatif

Credit note amount (Decimal128 as string)

Motifnullable
replacementCoststringfacultatif

Replacement cost (Decimal128 as string)

Motifnullable
currencyCodestringfacultatif

ISO 4217 currency code

max. 3 caractèresPar défaut : "EUR"
estimatedCoststringfacultatif

Estimated total cost (Decimal128 as string)

Motifnullable
actualCoststringfacultatif

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.

Motifnullable
damageAmountstringfacultatif

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

Motifnullable
resolutionNotestringfacultatif

How the complaint was resolved

max. 5000 caractèresnullable
rootCauseCategorystringfacultatif

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

max. 100 caractèresnullable
rootCausestringfacultatif

Root cause analysis

max. 3000 caractèresnullable
correctiveActionstringfacultatif

Corrective action taken

max. 3000 caractèresnullable
preventiveActionstringfacultatif

Preventive action for future

max. 3000 caractèresnullable
isAcceptedbooleanfacultatif

Whether the complaint was accepted as valid

nullable
rejectionReasonstringfacultatif

Reason for rejection

max. 2000 caractèresnullable
customerSatisfactionRatingnumberfacultatif

Post-resolution customer satisfaction (1-5)

1 – 5nullable
mergedIntoComplaintIduuidfacultatif

If set, this complaint was merged into the referenced complaint

nullable
mergedIntoComplaintNumberstringfacultatif

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

nullable
receivedAtdatetimefacultatif
nullable
acknowledgedAtdatetimefacultatif
nullable
acceptedAtdatetimefacultatif
nullable
rejectedAtdatetimefacultatif
nullable
resolvedAtdatetimefacultatif
nullable
closedAtdatetimefacultatif
nullable
inboundReplyAckedAtdatetimefacultatif

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
inboundReplyAckedBystringfacultatif

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

nullable
awaitingReplyPinnedAtdate-time[]facultatif

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

Tags

Par défaut : []nullable
attachmentsobject[]facultatif
Par défaut : []nullable
s3Keystringobligatoire
fileNamestringobligatoire
mimeTypestringobligatoire
sizeBytesnumberobligatoire
uploadedAtdatetimeobligatoire
uploadedByuuidobligatoire
isInternalbooleanobligatoire
linkedEntitiesobject[]facultatif
Par défaut : []nullable
entityTypestringobligatoire
partyassetticketprojectuseropportunitysales_orderinvoicecontract
entityIduuidobligatoire
rolestringobligatoire
convertedToobjectfacultatif

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.

lecture seulenullable
entityTypestringobligatoire
ticketopportunitycomplaint
entityIduuidobligatoire
convertedAtdatetimefacultatif
nullable
convertedBystringfacultatif
nullable
convertedFromobjectfacultatif

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

lecture seulenullable
entityTypestringobligatoire
ticketopportunitycomplaint
entityIduuidobligatoire
convertedAtdatetimefacultatif
nullable
convertedBystringfacultatif
nullable
statusChangedAtdatetimefacultatif

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

nullable
respondedAtdatetimefacultatif

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

nullable
targetsobject[]facultatif

Denormalized active service targets (ADR 0117a)

nullable
stageIdstringobligatoire
stageKindstringobligatoire
time_to_first_responsetime_in_statustime_to_statustime_to_close
stageStatusstringfacultatif
nullable
stageLabelstringfacultatif
nullable
bindingnessstringobligatoire
contractualinternal
deadlinedatetimeobligatoire
breachedAtdatetimefacultatif
nullable
completedAtdatetimefacultatif
nullable
profileIduuidobligatoire

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/complaints — Liste, paginée et filtrable
  • GET /api/v1/complaints/<id> — Une entité
  • POST /api/v1/complaints — Créer
  • PATCH /api/v1/complaints/<id> — Mise à jour partielle
  • DELETE /api/v1/complaints/<id> — Suppression logique
  • GET /api/v1/complaints/<id>/timeline — Audit et activités

Recherche