Skip to main content

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.

1. Basic credit note information

1.1 Header information

1.2 Credit note information

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.

2. Party information

2.1 Customer information

2.2 Seller information


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.