Service Request Schema
Felder
Service Request Schema
A concrete service-catalog request from a customer portal user. Carries the formData payload, an embedded resolved approval chain and a status machine.
requestNumber
Sequence-generated number like "SR-2026-00042". Server-assigned.
catalogItemTitleSnapshot
Title copied at submission so audit reflects the item state at that time.
requesterPersonPartyId
PERSON party of the submitter (always set).
requesterUserId
Convenience cache: better-auth user-id of the requester. May be null for offline-created records.
beneficiaryPersonPartyId
When the request is on behalf of another colleague. null = requester is the beneficiary.
formData
Form payload, validated against the catalog item's formSchema at submit time.
status
draftpending_approvalapprovedin_fulfillmentdonerejectedcancelledapprovalSteps
Embedded resolved approval steps, snapshot from the catalog item at submission. Index-aligned with currentApprovalStepIndex.
index
approverDsl
mode
one_ofall_ofconditions
addressedUserIds
status
waiting_resolutionpendingapprovedrejectedskippedescalatedresolvedAt
slaDeadline
skipReason
currentApprovalStepIndex
-1 when no approval is in flight (draft, approved+, terminal states).
currentStepSlaDeadline
Top-level mirror of approvalSteps[currentApprovalStepIndex].slaDeadline. Exists so the generic escalation engine (ADR 0085) can filter on a plain field. Server-maintained; clients must not write it.
fulfillmentLog
State-machine audit trail (timestamp + actor + transition + note).
actorUserId
transition
note
rejectionReason
cancelledReason
costCenter
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/service_requests— Liste, paginiert + filterbarGET /api/v1/service_requests/<id>— Einzelne EntityPOST /api/v1/service_requests— AnlegenPATCH /api/v1/service_requests/<id>— Teil-UpdateDELETE /api/v1/service_requests/<id>— Soft-DeleteGET /api/v1/service_requests/<id>/timeline— Audit + Aktivitäten