Ga naar hoofdinhoud

ZGW API Compliance

Procest implements the Dutch ZGW (Zaakgericht Werken) API suite, enabling interoperability with other ZGW-compliant systems (OpenZaak, Dimpact ZAC, XXLLnc Zaken) and passing the VNG Newman test suite.

ZGW APIs Implemented

APIVersionDescriptionStatus
Zaken API (ZRC)1.xCase lifecycle managementImplemented
Catalogi API (ZTC)1.xCase type catalogueImplemented
Documenten API (DRC)1.xDocument management with binary uploadImplemented
Besluiten API (BRC)1.xDecision registrationImplemented
Autorisaties API (AC)1.xAPI client and JWT authorizationImplemented
Notificaties API (NRC)1.xWebhook-based event notificationsImplemented

Autorisaties API (AC)

Manages API client (applicatie) registration and authorization:

  • JWT token generation and validation
  • Scope-based access control per ZGW API
  • Maps to OpenRegister's Consumer entity and AuthorizationService
  • Required by VNG Newman OAS tests for all ZGW API test runs

Documenten API (DRC)

Full document management with binary file I/O:

  • enkelvoudiginformatieobject: document metadata + file content
  • Binary upload via inhoud field (base64 or multipart)
  • File content stored in Nextcloud filesystem
  • Linked to cases via zaakinformatieobject resources
  • indicatieGebruiksrecht lifecycle enforcement on zaak close

Notificaties API (NRC)

Webhook-based event publishing for ZGW resource changes:

  • Channel subscriptions: zaken, documenten, besluiten, catalogi
  • Abonnement (subscription) registration and management
  • Event dispatch on create/update/delete of ZGW objects
  • n8n workflow automation via webhook triggers

Business Rules Compliance

VNG ZGW business rules compliance (tracked against the 353-assertion Newman test suite):

RuleDescriptionStatus
ZRC-007aSet einddatum on eindstatus creationFixed
ZRC-007bSet indicatieGebruiksrecht on all docs when zaak closesFixed
ZRC-007qValidate all docs have indicatieGebruiksrecht before eindstatusFixed
ZRC-008cCheck zaken.heropenen scope before reopening closed zaakFixed
ZRC-010communicatiekanaal validation error codesFixed
ZRC-013ahoofdzaak not-found error codeFixed
ZRC-015Validate productenOfDiensten subsetFixed

Newman Test Suite

Automated ZGW compliance testing via VNG Postman collections:

  • ZGW OAS tests: validates all 6 ZGW APIs against their OpenAPI specs
  • ZGW business rules: validates business logic, edge cases, and authorization
  • Newman runs locally and in CI via make test:zgw
  • Test environment configuration in data/newman-environment.json

Standards References