Below is an example of a policy object as well as a table showing the information (including the additional fields) available to each email template.

Using these fields and moustache templating, access your policy holders credentials and create dynamic templates like the example bellow.

Hi {{proposer.first_names}},

The payment for your policy {{policy_reference}} was sucessfully.

Amount charged: {{payments[0].payment_amount}}

    "policy": {
        "compulsory_excess": 100,
        "voluntary_excess": 100,
        "address": {
            "line_1": "Flat 1, 11 The Street",
            "line_2": "Little Hampton",
            "line_3": "Burton-on-the-water",
            "city": "Stroud",
            "county": "",
            "country": "GB",
            "postcode": "N22 7XN"
        },
        "usage": "SDP",
        "cover": "Comprehensive",
        "auto_renew": true,
        "start_date": 1625241142,
        "end_date": 1656777142,
        "billing_day_date": 30,
        "underwriter_reference": "Zurich",
        "underwriter_policy_reference": "AXABM000001",
        "product_reference": "by_bits_usage",
        "policy_year": 2020,
        "inception_date": 1625241142,
        "subscription_frequency": 28,
        "effective_date": 1625241142
    },
    "proposer": {
        "title": "003",
        "first_names": "Chuen",
        "last_names": "L",
        "email": "chuen+423bf@bybits.co.uk",
        "phone_number": "+447999000011",
        "children": 1,
        "has_medical_conditions": true,
        "has_informed_dvla_medical_conditions": false,
        "ncd": 4,
        "dob": "1981-07-02",
        "licence_type": "F",
        "employment": "E",
        "occupation": "51D",
        "business": "077",
        "licence_issued_date": "2000-12-31",
        "residency_date": "2000-12-31",
        "has_criminal_conviction": false,
        "convictions": [
            {
                "code": "AC10",
                "date": "2018-01-01",
                "points": 3,
                "ban": 0
            }
        ],
        "claims": [
            {
                "code": "A",
                "date": "2016-01-01",
                "at_fault": false,
                "ncd_lost": false
            }
        ]
    },
    "vehicle": {
        "modifications": [],
        "type": "4DH",
        "reg": "GF08WWW",
        "abi_code": "17569602",
        "manufacture_date": "2018-03-17",
        "make": "Tesla",
        "model": "S",
        "engine": 1798,
        "body_type": "5DH",
        "seats": 5,
        "fuel": "002",
        "current_value": 40000,
        "purchase_date": "2017-03-22",
        "vin": "YV1UZ25UCK1337428",
        "colour": "black",
        "group_rating_50": 21,
        "group_rating_20": 10,
        "owner": "1",
        "keeper": "E",
        "estimated_yearly_mileage": 2000,
        "is_rhd": true,
        "is_parked_home": true,
        "is_import": true
    },
    "additional_drivers": [],
    "pricing": {
        "upfront_rate": 252.78,
        "subscription_rate": 20,
        "usage_rate": 0.073,
        "subscription_installments": 12,
        "withhold_fee": 50,
        "deposit_fee": 50,
        "admin_fee": 60,
        "mta_fee": 20,
        "cancel_fee": 50,
        "quote_reference": "ed138966-9ce1-4b2c-ab7f-7bfcf08028e4",
        "quote_version_reference": "a6cda154-685c-4ec4-b2a4-763c0afef188",
        "quote_model_reference": "60813ebe-28cb-4f54-88da-ae2aa1e68b83",
        "estimated_distance": 2000,
        "yearly_premium_estimate": 399.41,
        "usage_premium": 0,
        "base_premium": 0,
        "upfront_premium": 252.78,
        "subscription_premium": 20
    },
    "payment": {
        "amount": 252.78,
        "provider_payment_reference": "pi_1J8ofAErCACt4akx5hZaMclK",
        "provider_customer_reference": "cus_JmNQUGMLYEAcg3",
        "provider": "stripe",
        "payment_method_id": "pm_1J8ofBErCACt4akxUxpql8SL"
    },
    "policy_reference": "factor-tractor-quiz",
    "policy_version_reference": "6014b8e3-1b7e-40e7-a5fa-8183ab4cc6ea",
    "versions": [
        {
            "version_type": "nb",
            "policy_reference": "factor-tractor-quiz",
            "policy_version_reference": "6014b8e3-1b7e-40e7-a5fa-8183ab4cc6ea",
            "quote_reference": "ed138966-9ce1-4b2c-ab7f-7bfcf08028e4",
            "quote_version_reference": "a6cda154-685c-4ec4-b2a4-763c0afef188",
            "quote_model_reference": "60813ebe-28cb-4f54-88da-ae2aa1e68b83",
            "usage": "SDP",
            "email": "chuen+423bf@bybits.co.uk",
            "vehicle_reg": "GF08WWW",
            "address_postcode": "N22 7XN",
            "proposer_first_names": "Chuen",
            "proposer_last_names": "L",
            "inception_date": "2021-07-02T15:52:22.000Z",
            "effective_date": "2021-07-02T15:52:22.000Z",
            "start_date": "2021-07-02T15:52:22.000Z",
            "end_date": "2022-07-02T15:52:22.000Z",
            "upfront_rate": 252.78,
            "subscription_rate": 20,
            "usage_rate": 0.073,
            "upfront_premium": 252.78,
            "subscription_premium": 20,
            "usage_premium": 0,
            "ipt_rate": 0,
            "commission_rate": 0
        }
    ],
    "payments": [
        {
            "payment_provider": "stripe",
            "payment_provider_transaction_ref": "pi_1J8ofAErCACt4akx5hZaMclK",
            "payment_amount": "252.78",
            "policy_reference": "factor-tractor-quiz",
            "policy_version_reference": "6014b8e3-1b7e-40e7-a5fa-8183ab4cc6ea",
            "company_reference": "098ae4f2-3af8-4740-8760-5d312e46742c",
            "payment_provider_customer_ref": "cus_JmNQUGMLYEAcg3",
            "payment_method_id": "pm_1J8ofBErCACt4akxUxpql8SL"
        }
    ]
}```

Below are the list of the email templates that are implemented including the additional fields available to each.