Bulk Send Gestoria Template
gestoria_template_bulk_sendSend a document request template to multiple client workspaces in a single call, respecting opt-out preferences and using period overrides to customize template variables.
Instructions
Send the same document request template to up to 500 client workspaces in one call. Each spawned request triggers the per-client notification handler (email + in-app). Honours allowGestoriaCommunications=false on the client user doc (opt-out). Uses periodOverrides to plug runtime values (quarter/year/month) into template variables. Returns a per-client outcome with success count, failures, and total wall-clock duration. Trust Area: RGPD — recipients must already have granted accountant access. Example: templateId='tpl_iva_q', clientWorkspaceIds=['ws_a','ws_b','ws_c'], periodOverrides={quarter:3, year:2026}. / Envia la misma plantilla a hasta 500 espacios cliente en una sola operacion. Respeta opt-out allowGestoriaCommunications=false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | Template ID (from `gestoria_template_create`) / ID de la plantilla | |
| periodOverrides | No | Override template period variables in the bulk send / Sobrescribir variables de periodo (trimestre, ano, mes) | |
| clientWorkspaceIds | Yes | Target client workspace IDs (1-500) / IDs de espacios cliente destino |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failed | Yes | ||
| success | Yes | ||
| totalDuration | No | Wall-clock duration in ms |