Event templates

Event templates help determine what elements and attributes should be present in the output XML of an event. For events raised, see the relevant transactions in the Javadocs.

To see which events take output templates, see the files in the INSTALL_DIR/repository/xapi/template/merged/event/ directory. These templates can be overridden by files you place in the INSTALL_DIR/extensions/global/template/ directory.

The naming convention for templates is BaseTxnName.eventName.xml. For example, the on_success event of the createOrder() API uses the ORDER_CREATE.ON_SUCCESS.xml event template. You can also use BaseTxnName.eventName.documentType.xml as naming convention. For example, ORDER_CHANGE.ON_SUCCESS.0001.xml

Note: Templates are not supported for user exits.