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

Party Document Rule Schema

Schema-ID
party_document_rule
Collection
party_document_rules
Permissions
  • Lezenparty_document_rule_view
  • Aanmakenparty_document_rule_create
  • Wijzigenparty_document_rule_edit
  • Verwijderenparty_document_rule_delete

Velden

Party Document Rule Schema

party_document_rules4 permissions

Customer-scoped declaration of a document that must be on file for a party (ADR 0349)

documentTypeIduuidvereist

FK to dms_document_type — the kind of document required.

documentTypeNamestringvereist

Snapshot of dms_document_type.name at rule creation time. Cached for display so a deleted document type does not blank-out the UI.

1–200 tekens
scopeobjectvereist
kindstringvereist
ALL_CUSTOMERSPARTY_TAGPARTY
tagstringoptioneel

Required when kind='PARTY_TAG' — matched against party.tags.

max. 100 tekensnullable
partyIduuidoptioneel

Required when kind='PARTY'.

nullable
mandatorybooleanoptioneel

When true, a missing document flags the customer red. False = nice-to-have, surfaced but not counted as a gap.

Default: true
renewalIntervalMonthsintegeroptioneel

Document must be renewed after this many months (evaluated against the matched document’s expiresAt, else its createdAt). Null = once, no renewal.

1 – 240nullable
validFromdateoptioneel

Optional: rule only takes effect from this date.

nullable
validTodateoptioneel

Optional: rule expires on this date.

nullable
descriptionstringoptioneel

Free-text note for admins, shown in the rule editor.

max. 1000 tekensnullable

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

Zoeken