Overview
This page documents every Mustache variable used in the credit note HTML template, organized by functional section, with its type and whether it is always present. For how Mustache syntax itself works ({{variable}}, sections, inverted sections) and the data type conventions used in the tables below, see the Templating guide.
pre_tax_amount and tax are only present when the credit note has a tax breakdown; gate them with {{#credit_note.tax}}...{{/credit_note.tax}}. When absent, {{credit_note.amount}} already represents the total, so use it directly rather than summing pre_tax_amount and tax yourself.
3. Custom attributes
Customer custom attributes are available under customer.custom_data, keyed by the attribute’s name:
Wrap each custom attribute in a section, as shown above, since a customer may not have every attribute set.