Skip to main content

Overview

This page documents the Mustache variables that appear in the usage report document Zenskar generates for organizations with usage reporting enabled.
Unlike Invoice, Credit Note, Payment Receipt, Refund Receipt, and Contract, the usage report is not a template you can create or edit from Communications > Document Templates. It isn’t one of the selectable types there, and it can’t be attached to an email template either. Usage report generation is a separate, feature-flagged pipeline. This page is a reference for understanding what data a usage report contains, not a how-to for customizing it.
For how Mustache syntax itself works ({{variable}}, sections, inverted sections) and the data type conventions used in the tables below, see the Templating guide.

1. Global and header variables


2. Party information

2.1 Customer

2.2 Seller


3. Document lines and entitlement deduction

Array: {{#document_lines}}...{{/document_lines}} Within a line item, an entitlement-deduction wrapper is present when that line involves a deduction from a prepaid balance: Wrapper: {{#templating_data.deduct-entitlement}}...{{/templating_data.deduct-entitlement}}

4. Usage details table (aggregate_logs)

The detailed usage log table is built from nested arrays rather than a flat list of objects: Iterate the headers and each row’s cells with {{.}}, which refers to the current string in that array rather than a named field: