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

Party Document Rule Schema

ID del esquema
party_document_rule
Colección
party_document_rules
Permisos
  • Leerparty_document_rule_view
  • Crearparty_document_rule_create
  • Modificarparty_document_rule_edit
  • Eliminarparty_document_rule_delete

Campos

Party Document Rule Schema

party_document_rules4 permisos

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

documentTypeIduuidobligatorio

FK to dms_document_type — the kind of document required.

documentTypeNamestringobligatorio

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 caracteres
scopeobjectobligatorio
kindstringobligatorio
ALL_CUSTOMERSPARTY_TAGPARTY
tagstringopcional

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

máx. 100 caracteresadmite null
partyIduuidopcional

Required when kind='PARTY'.

admite null
mandatorybooleanopcional

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

Valor por defecto: true
renewalIntervalMonthsintegeropcional

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

1 – 240admite null
validFromdateopcional

Optional: rule only takes effect from this date.

admite null
validTodateopcional

Optional: rule expires on this date.

admite null
descriptionstringopcional

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

máx. 1000 caracteresadmite null

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

Búsqueda