> This page is for Docs.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# Data source merge fields

> Most events that email or callout templates relate to are mapped to a data source. You can use fields from the data source as merge fields in email and callout templates to customize your notification emails and callouts.

Most events that email or callout templates relate to are mapped to a data source. You can use fields from the data source as merge fields in email and callout templates to customize your notification emails and callouts.

The following list shows the data source related to each event category. To find out the available fields of each data source, see [Data source reference](/docs/platform/data/reporting/data-sources-and-exports/data-source-reference).

<table>
  <tr>
    <th>
      Event Category
    </th>

    <th>
      Data Source
    </th>
  </tr>

  <tr>
    <td>
      Account
    </td>

    <td>
      Account
    </td>
  </tr>

  <tr>
    <td>
      Amendment
    </td>

    <td>
      Subscription

      For notifications triggered by custom events, merge fields are rendered for only amendment completed events where `Amendment.Status == 'Completed'`.
    </td>
  </tr>

  <tr>
    <td>
      AmendmentProcessed
    </td>

    <td>
      Subscription
    </td>
  </tr>

  <tr>
    <td>
      Aqua
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Bill Run
    </td>

    <td>
      Bill Run
    </td>
  </tr>

  <tr>
    <td>
      Bill Run Completion
    </td>

    <td>
      Bill Run
    </td>
  </tr>

  <tr>
    <td>
      Credit Balance Refund Processed
    </td>

    <td>
      Refund
    </td>
  </tr>

  <tr>
    <td>
      Datasource
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Gateway Reconciliation Job Completion
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Import
    </td>

    <td>
      Import
    </td>
  </tr>

  <tr>
    <td>
      ImportProcessed
    </td>

    <td>
      Import
    </td>
  </tr>

  <tr>
    <td>
      Invoice
    </td>

    <td>
      Invoice
    </td>
  </tr>

  <tr>
    <td>
      Invoice Due
    </td>

    <td>
      Invoice
    </td>
  </tr>

  <tr>
    <td>
      Invoice Posted
    </td>

    <td>
      Invoice
    </td>
  </tr>

  <tr>
    <td>
      Invoices Past Due, Account Summary
    </td>

    <td>
      Account
    </td>
  </tr>

  <tr>
    <td>
      Journal Run Completion
    </td>

    <td>
      Journal Run
    </td>
  </tr>

  <tr>
    <td>
      Key Dates
    </td>

    <td>
      Subscription
    </td>
  </tr>

  <tr>
    <td>
      Manual Email For Invoice
    </td>

    <td>
      Invoice
    </td>
  </tr>

  <tr>
    <td>
      Manual Email for Payment
    </td>

    <td>
      Payment
    </td>
  </tr>

  <tr>
    <td>
      New Subscription Created
    </td>

    <td>
      Subscription
    </td>
  </tr>

  <tr>
    <td>
      Payment
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Payment Declined
    </td>

    <td>
      Payment
    </td>
  </tr>

  <tr>
    <td>
      Payment Method
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Payment Method Closed
    </td>

    <td>
      PaymentMethod
    </td>
  </tr>

  <tr>
    <td>
      Payment Method Expiration
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Payment Method Updated
    </td>

    <td>
      PaymentMethod
    </td>
  </tr>

  <tr>
    <td>
      Payment Method Updater
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Payment Method Updater Completed
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Payment Method Updater Started
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Payment Processed
    </td>

    <td>
      Payment
    </td>
  </tr>

  <tr>
    <td>
      Payment Refund Processed
    </td>

    <td>
      Refund
    </td>
  </tr>

  <tr>
    <td>
      Payment Run Completion
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Refund
    </td>

    <td>
      Refund
    </td>
  </tr>

  <tr>
    <td>
      Subscription
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    <td>
      Trial Balance Completion
    </td>

    <td>
      Accounting Period
    </td>
  </tr>

  <tr>
    <td>
      Upcoming Renewal
    </td>

    <td>
      Legacy merge fields are used for this event category.
    </td>
  </tr>

  <tr>
    Credit memo and debit memo event categories

    > **Note**
    >
    > This feature is only available if you have the Invoice Settlement feature enabled.
  </tr>

  <tr>
    <td>
      Credit Memo Created
    </td>

    <td>
      Credit Memo
    </td>
  </tr>

  <tr>
    <td>
      Credit Memo Posted
    </td>

    <td>
      Credit Memo
    </td>
  </tr>

  <tr>
    <td>
      Debit Memo Created
    </td>

    <td>
      Debit Memo
    </td>
  </tr>

  <tr>
    <td>
      Debit Memo Posted
    </td>

    <td>
      Debit Memo
    </td>
  </tr>

  <tr>
    <td>
      Email Credit Memo
    </td>

    <td>
      Credit Memo
    </td>
  </tr>

  <tr>
    <td>
      Email Debit Memo
    </td>

    <td>
      Debit Memo
    </td>
  </tr>
</table>