API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · complaints

Complaint Schema

ID del esquema
complaint
Colección
complaints
Permisos
  • Leercomplaint_view
  • Crearcomplaint_create
  • Modificarcomplaint_edit
  • Eliminarcomplaint_delete

Campos

Complaint Schema

complaints4 permisos

Schema for validating Reklamationen (complaint/claim) entities

titlestringobligatorio

Complaint title

1–300 caracteres
statusstringobligatorio

Workflow status (tenant-configurable)

categorystringopcional

Complaint category (tenant-configurable)

máx. 100 caracteresadmite null
directionstringopcional

INCOMING = customer to us, OUTGOING = us to supplier

INCOMINGOUTGOING
Valor por defecto: "INCOMING"admite null
prioritystringopcional

Complaint priority

LOWMEDIUMHIGHCRITICAL
Valor por defecto: "MEDIUM"admite null
sourcestringopcional

How the complaint was received

EMAILPHONEPORTALIN_PERSONLETTERSYSTEM_ALERTOTHER
admite null
descriptionstringopcional

Detailed complaint description (plain text)

máx. 10000 caracteresadmite null
descriptionHtmlstringopcional

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

admite null
customerStatementstringopcional

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

máx. 5000 caracteresadmite null
internalNotestringopcional

Internal-only note

máx. 5000 caracteresadmite null
partyIduuidopcional

Customer/supplier party UUID

admite null
partyAddressIduuidopcional

Specific site/address of the associated party

Valor por defecto: nulladmite null
contactPartyIduuidopcional

Contact person UUID

admite null
assignedToIduuidopcional

Assigned employee user UUID

admite null
orgUnitIduuidopcional

Responsible department UUID

admite null
supplierPartyIduuidopcional

Supplier party UUID (from the CRM)

admite null
manufacturerstringopcional

Manufacturer name (tenant-configurable list complaint_manufacturers)

máx. 100 caracteresadmite null
orderNumberstringopcional

Our purchase order number at the supplier

máx. 100 caracteresadmite null
proposedSolutionstringopcional

Solution proposed by the person entering the complaint

máx. 5000 caracteresadmite null
linkedTicketIduuidopcional

Linked ticket UUID

admite null
linkedOrderIduuidopcional

Linked sales order UUID

admite null
linkedContractIduuidopcional

Linked contract UUID

admite null
linkedAssetIduuidopcional

Linked asset UUID

admite null
linkedInvoiceIduuidopcional

Linked invoice UUID

admite null
articleIduuidopcional

Related article/product UUID

admite null
responseDeadlinedateopcional

Response deadline (YYYY-MM-DD)

admite null
resolutionDeadlinedateopcional

Resolution deadline (YYYY-MM-DD)

admite null
claimedAmountstringopcional

Claimed amount (Decimal128 as string)

Patrónadmite null
creditNoteAmountstringopcional

Credit note amount (Decimal128 as string)

Patrónadmite null
replacementCoststringopcional

Replacement cost (Decimal128 as string)

Patrónadmite null
currencyCodestringopcional

ISO 4217 currency code

máx. 3 caracteresValor por defecto: "EUR"
estimatedCoststringopcional

Estimated total cost (Decimal128 as string)

Patrónadmite null
actualCoststringopcional

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.

Patrónadmite null
damageAmountstringopcional

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

Patrónadmite null
resolutionNotestringopcional

How the complaint was resolved

máx. 5000 caracteresadmite null
rootCauseCategorystringopcional

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

máx. 100 caracteresadmite null
rootCausestringopcional

Root cause analysis

máx. 3000 caracteresadmite null
correctiveActionstringopcional

Corrective action taken

máx. 3000 caracteresadmite null
preventiveActionstringopcional

Preventive action for future

máx. 3000 caracteresadmite null
isAcceptedbooleanopcional

Whether the complaint was accepted as valid

admite null
rejectionReasonstringopcional

Reason for rejection

máx. 2000 caracteresadmite null
customerSatisfactionRatingnumberopcional

Post-resolution customer satisfaction (1-5)

1 – 5admite null
mergedIntoComplaintIduuidopcional

If set, this complaint was merged into the referenced complaint

admite null
mergedIntoComplaintNumberstringopcional

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

admite null
receivedAtdatetimeopcional
admite null
acknowledgedAtdatetimeopcional
admite null
acceptedAtdatetimeopcional
admite null
rejectedAtdatetimeopcional
admite null
resolvedAtdatetimeopcional
admite null
closedAtdatetimeopcional
admite null
inboundReplyAckedAtdatetimeopcional

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.

admite null
inboundReplyAckedBystringopcional

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

admite null
awaitingReplyPinnedAtdate-time[]opcional

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).

admite null
tagsstring[]opcional

Tags

Valor por defecto: []admite null
attachmentsobject[]opcional
Valor por defecto: []admite null
s3Keystringobligatorio
fileNamestringobligatorio
mimeTypestringobligatorio
sizeBytesnumberobligatorio
uploadedAtdatetimeobligatorio
uploadedByuuidobligatorio
isInternalbooleanobligatorio
linkedEntitiesobject[]opcional
Valor por defecto: []admite null
entityTypestringobligatorio
partyassetticketprojectuseropportunitysales_orderinvoicecontract
entityIduuidobligatorio
rolestringobligatorio
convertedToobjectopcional

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.

solo lecturaadmite null
entityTypestringobligatorio
ticketopportunitycomplaint
entityIduuidobligatorio
convertedAtdatetimeopcional
admite null
convertedBystringopcional
admite null
convertedFromobjectopcional

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

solo lecturaadmite null
entityTypestringobligatorio
ticketopportunitycomplaint
entityIduuidobligatorio
convertedAtdatetimeopcional
admite null
convertedBystringopcional
admite null
statusChangedAtdatetimeopcional

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

admite null
respondedAtdatetimeopcional

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

admite null
targetsobject[]opcional

Denormalized active service targets (ADR 0117a)

admite null
stageIdstringobligatorio
stageKindstringobligatorio
time_to_first_responsetime_in_statustime_to_statustime_to_close
stageStatusstringopcional
admite null
stageLabelstringopcional
admite null
bindingnessstringobligatorio
contractualinternal
deadlinedatetimeobligatorio
breachedAtdatetimeopcional
admite null
completedAtdatetimeopcional
admite null
profileIduuidobligatorio

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/complaints — Lista, paginada y filtrable
  • GET /api/v1/complaints/<id> — Una entidad
  • POST /api/v1/complaints — Crear
  • PATCH /api/v1/complaints/<id> — Actualización parcial
  • DELETE /api/v1/complaints/<id> — Eliminación lógica
  • GET /api/v1/complaints/<id>/timeline — Auditoría y actividades

Búsqueda