Party Document Rule Schema
Felder
Party Document Rule Schema
Customer-scoped declaration of a document that must be on file for a party (ADR 0349)
documentTypeId
FK to dms_document_type — the kind of document required.
documentTypeName
Snapshot of dms_document_type.name at rule creation time. Cached for display so a deleted document type does not blank-out the UI.
mandatory
When true, a missing document flags the customer red. False = nice-to-have, surfaced but not counted as a gap.
renewalIntervalMonths
Document must be renewed after this many months (evaluated against the matched document’s expiresAt, else its createdAt). Null = once, no renewal.
validFrom
Optional: rule only takes effect from this date.
validTo
Optional: rule expires on this date.
description
Free-text note for admins, shown in the rule editor.
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/party_document_rules— Liste, paginiert + filterbarGET /api/v1/party_document_rules/<id>— Einzelne EntityPOST /api/v1/party_document_rules— AnlegenPATCH /api/v1/party_document_rules/<id>— Teil-UpdateDELETE /api/v1/party_document_rules/<id>— Soft-DeleteGET /api/v1/party_document_rules/<id>/timeline— Audit + Aktivitäten