Overview

As an extension of Policy Validation, you can also use Templates to simplify Rule configuration in your application. Instead of manually storing the list of rules, you can define them once and let Axle handle rule maintenance and policy validation.

Example Template

{
  "id": "tem_jsK9vrCIfABlCW7PqIknc",
  "rules": [
    {
      "rule": "collision-coverage-meets-requirements",
      "input": {
        "deductible": {
          "source": "deductibleFromIgnitionMetadata", // Key of dynamic value from Ignition metadata
          "default": "500" // Optional default input value, will be overridden by dynamic value if provided
        }
      }
    }
  ],
  "createdAt": "2025-06-10T13:57:22.300Z",
  "modifiedAt": "2025-06-10T13:57:22.300Z"
}

Usage

1

Create or modify Validation Template

Start by identifying the rules you want to use. Then, either create a new template or modify an existing one.If your application is a platform, you can create shareable template across all of your destination clients. If you are existing Axle for Platforms customer, please reach out to Axle team for more information.
2

Provide dynamic inputs to Ignition metadata (optional)

Include metadata in Start Ignition to serve as dynamic Rule inputs. Ensure the metadata object is formatted correctly with the keys specified in your Template and the values conforming to the associated Rule input(s).
3

Retrieve Validation Templates

After creating a template, you can store its Template identifier in your application. Using this identifier, you can retrieve specific template and all of its details or get all the available Templates for your Axle client or destination client.
4

Request Policy Validation with Template

Use the Template identifier to make a request to Validate Policy with Template. Ensure the request object is formatted correctly with the keys specified in your Template and the values conforming to the associated Rule input(s).
Providing inputs to the Validate Policy endpoint will overwrite any metadata provided via Start Ignition.