> 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.

# Mediation code editors

> Zuora's mediation engine supports custom code for three meter components, the Advanced Transformer, Aggregator, and Accumulator processors. Each operator is designed for a distinct purpose within the event processing pipeline.

Zuora's mediation engine supports custom code for three meter components, the Advanced Transformer, Aggregator, and Accumulator processors. Each operator is designed for a distinct purpose within the event processing pipeline.

For the Accumulator and Aggregator processors, the code editor option is available under **Advanced Accumulation** and **Advanced Aggregation**.

<table>
  <tr>
    <th>
      Type
    </th>

    <th>
      Usage
    </th>
  </tr>

  <tr>
    <td>
      Advanced Transformer code editor
    </td>

    <td>
      * You need to transform or validate individual records.
      * Operations are stateless and lightweight.
      * You want to enrich or convert data on the fly.
    </td>
  </tr>

  <tr>
    <td>
      Advanced Accumulator code editor
    </td>

    <td>
      * You need time-based summaries or grouped aggregates.
      * Calculating totals, averages, or counts.
      * Processing batch or windowed data streams.
    </td>
  </tr>

  <tr>
    <td>
      Advanced Aggregator code editor
    </td>

    <td>
      * You require persistent state management.
      * Logic involves thresholds or custom release rules.
      * Event emission depends on business triggers rather than time.
    </td>
  </tr>
</table>