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

Party Document Rule Schema

ID du schéma
party_document_rule
Collection
party_document_rules
Autorisations
  • Lireparty_document_rule_view
  • Créerparty_document_rule_create
  • Modifierparty_document_rule_edit
  • Supprimerparty_document_rule_delete

Champs

Party Document Rule Schema

party_document_rules4 autorisations

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

documentTypeIduuidobligatoire

FK to dms_document_type — the kind of document required.

documentTypeNamestringobligatoire

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 caractères
scopeobjectobligatoire
kindstringobligatoire
ALL_CUSTOMERSPARTY_TAGPARTY
tagstringfacultatif

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

max. 100 caractèresnullable
partyIduuidfacultatif

Required when kind='PARTY'.

nullable
mandatorybooleanfacultatif

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

Par défaut : true
renewalIntervalMonthsintegerfacultatif

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

1 – 240nullable
validFromdatefacultatif

Optional: rule only takes effect from this date.

nullable
validTodatefacultatif

Optional: rule expires on this date.

nullable
descriptionstringfacultatif

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

max. 1000 caractèresnullable

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

Recherche