Welcome to Zuora Product Documentation

Explore our rich library of product information

Create an e-invoice file template for a pre-integrated country

Learn how to create and customize e-invoice file templates for pre-integrated countries.

Zuora provides default e-invoice file templates for pre-integrated countries such as Australia and Mexico. For a complete list of pre-integrated countries, see Pre-integrated countries.

To create an e-invoice file template for a pre-integrated country in Zuora UI, perform the following steps:

  1. Perform steps 1 to 4 in Create and preview e-invoice file templates for billing documents through the Zuora UI . Make sure to click Save And Edit Content in the last step.
  2. Customize the template as needed. If the mandate for a business category of a particular country differs from another business category of the same country in Avalara, you must customize the template to make it comply with all mandates you enabled in Avalara. For more information about the business category configuration, see Configure e-invoicing profile for customer accounts . You can use merge fields in e-invoicing file templates. The merge field syntax is the same as HTML templates, including supported objects, fields, and functions. For more information, see Merge field syntax for HTML templates . For example, the following code sample returns different tags for B2B, B2C, and other accounts by using an Expression :
    {{#Wp_Eval}}
        "{{Invoice.Account.EInvoiceProfile.BusinessCategory}}" == "B2B" ? "<B2BTag>Available for B2B accounts</B2BTag>" : "{{Invoice.Account.EInvoiceProfile.BusinessCategory}}" == "B2C" ? "<B2CTag>Available for B2C accounts</B2CTag>" : "<GeneralTag>Available for other accounts</GeneralTag>"
    {{/Wp_Eval}
  3. Click Save in the upper right to save the e-invoice file template.

    Alternatively, you can use the Create an e-invoice file template API operation.