Store Email Templates
List Store Email Templates (DataTable)
Returns a paginated DataTable listing of store email templates.
Create Store Email Template
Creates a new store email template (always non-system).
Bulk Delete Store Email Templates
Bulk deletes multiple store email templates by ID array or current DataTable filters.
List User Templates
Returns only non-system (user-created) email templates. Excludes system templates that are managed by the application.
List Template Contexts
Returns the email-template context catalog: for each context (bound entity) its label, available events (automatic/manual), merge variables, and attachable documents. The editor and send dialogs use this as the single source of truth for what a template can contain.
Get Store Email Template
Returns a single store email template with its HTML body.
Update Store Email Template
Updates an existing store email template.
Delete Store Email Template
Deletes a single store email template.
Archive Store Email Template
Archives a single store email template. Idempotent — returns a warning if already archived.
Unarchive Store Email Template
Unarchives a single store email template.
Bulk Archive Store Email Templates
Bulk archives multiple store email templates by ID array or current DataTable filters.
Bulk Unarchive Store Email Templates
Bulk unarchives multiple store email templates by ID array or current DataTable filters.
Check Deletable
Checks whether each provided store email template ID can be safely deleted.
Preview Template
Previews a template with rendered variable substitutions. For bulk_purchase_order type, uses the bulk preview renderer.
Send Email
Sends a customized email for a record (manual send) to its customer/supplier.