Transactional API payload example

Here is an example Postman collection of a Transactional API payload.

This can be used along with the Transactional API HTML examples in your account for testing purposes.

{
    "info": {
        "_postman_id": "5459d187-828e-47b1-9bdb-9d23f016793b",
        "name": "Ometria Transactional Examples",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Order Confirmation",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{  \n  \"sandbox\" : false,\n  \"subject\" : \"Email for Order Confirmation\",\n  \"template_id\" : 1567,\n  \"transactional\" : true,\n  \"from\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"reply_to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"John\"\n  },\n   \"data\":{\n   \t\"contact\":\n   \t  {\n         \"firstname\":\"John\",\n         \"surname\":\"Doe\",\n         \"title\":\"Mr\",\n         \"accountUrl\":\"www.ometria.com/myaccount/12345\",\n         \"email\":\"[email protected]\"\n   \t   },\n      \"details\":\n      {  \n         \"orderID\":\"00002501\",\n         \"creationDate\":\"01/16/2019 9:50 am\",\n         \"email\":\"[email protected]\",\n         \"status\":\"NEW\",\n         \"orderDetailsUrl\":\"/s/brand/orders\",\n         \"coupons\":\"Welcome10\"\n      },\n      \"totals\":\n      {  \n         \"subTotal\":\"£1,530\",\n         \"totalShippingCost\":\"£5\",\n         \"grandTotal\":\"£1,535\",\n         \"totalTax\":\"£139.55\"\n      },\n      \"shipping\":\n      {  \n         \"firstname\":\"John\",\n         \"surname\":\"Doe\",\n         \"phone\":\"1231231234\",\n         \"address1\":\"1 The Street\",\n         \"address2\":\"Town\",\n         \"address3\":null,\n         \"county\":\"Greater London\",\n         \"city\":\"London\",\n         \"postalCode\":\"06980\",\n         \"trackingID\":1223,\n         \"trackingURL\":\"www.ometria.com/tracking/1223\"\n      },\n      \"billing\":\n      {  \n         \"firstname\":\"John\",\n         \"surname\":\"Doe\",\n         \"phone\":\"1231231234\",\n         \"address1\":\"1 The Street\",\n         \"address2\":\"Town\",\n         \"address3\":null,\n         \"county\":\"Greater London\",\n         \"city\":\"London\",\n         \"postalCode\":\"06980\"\n      },\n      \"payment\":  \n      {  \n         \"paymentMethod\":\"CREDIT_CARD\",\n         \"amount\":1535,\n         \"lastFour\":\"1111\"\n      },\n      \"items\":\n      [ \n      \t{\n\t      \"imgUrl\" : \"https://www.ometria.com/img/12243563.jpg\",\n\t      \"productID\" : \"12243563\",\n\t      \"colour\" : \"Grey\",\n\t      \"url\" : \"https://www.ometria.com/product/12243563.html\",\n\t      \"quantity\" : 1,\n\t      \"sizeName\" : \"12\",\n\t      \"sizeDescription\" : \"UK size 12 Trousers\",\n\t      \"price\" : \"25.00\",\n\t      \"length\" : \"\",\n\t      \"productname\" : \"Grey Trousers\",\n\t      \"sku\" : \"grey_troursers\"\n    \t}, \n    \t{\n\t      \"imgUrl\" : \"https://www.ometria.com/img/45454564356.jpg\",\n\t      \"productID\" : \"45454564356\",\n\t      \"colour\" : \"Blue\",\n\t      \"link\" : \"https://www.ometria.com/product/45454564356.html\",\n\t      \"quantity\" : 1,\n\t      \"sizeName\" : \"8\",\n\t      \"sizeDescription\" : \"UK size 8 Trousers\",\n\t      \"price\" : \"25.00\",\n\t      \"length\" : \"\",\n\t      \"productName\" : \"Blue Trousers\",\n\t      \"sku\" : \"blue_troursers\"\n    \t} \n    ]\n   }\n}\n"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Order Shipping",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{  \n  \"sandbox\" : false,\n  \"subject\" : \"Email for Order Confirmation\",\n  \"template_id\" : 1567,\n  \"transactional\" : true,\n  \"from\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"reply_to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"John\"\n  },\n   \"data\":{\n   \t\"contact\":\n   \t  {\n         \"firstname\":\"John\",\n         \"surname\":\"Doe\",\n         \"title\":\"Mr\",\n         \"accountUrl\":\"www.ometria.com/myaccount/12345\",\n         \"email\":\"[email protected]\"\n   \t   },\n      \"details\":\n      {  \n         \"orderID\":\"00002501\",\n         \"creationDate\":\"01/16/2019 9:50 am\",\n         \"email\":\"[email protected]\",\n         \"status\":\"NEW\",\n         \"orderDetailsUrl\":\"/s/brand/orders\",\n         \"coupons\":\"Welcome10\"\n      },\n      \"totals\":\n      {  \n         \"subTotal\":\"£1,530\",\n         \"totalShippingCost\":\"£5\",\n         \"grandTotal\":\"£1,535\",\n         \"totalTax\":\"£139.55\"\n      },\n      \"shipping\":\n      {  \n         \"firstname\":\"John\",\n         \"surname\":\"Doe\",\n         \"phone\":\"1231231234\",\n         \"address1\":\"1 The Street\",\n         \"address2\":\"Town\",\n         \"address3\":null,\n         \"county\":\"Greater London\",\n         \"city\":\"London\",\n         \"postalCode\":\"06980\",\n         \"trackingID\":1223,\n         \"trackingURL\":\"www.ometria.com/tracking/1223\"\n      },\n      \"billing\":\n      {  \n         \"firstname\":\"John\",\n         \"surname\":\"Doe\",\n         \"phone\":\"1231231234\",\n         \"address1\":\"1 The Street\",\n         \"address2\":\"Town\",\n         \"address3\":null,\n         \"county\":\"Greater London\",\n         \"city\":\"London\",\n         \"postalCode\":\"06980\"\n      },\n      \"payment\":  \n      {  \n         \"paymentMethod\":\"CREDIT_CARD\",\n         \"amount\":1535,\n         \"lastFour\":\"1111\"\n      },\n      \"items\":\n      [ \n      \t{\n\t      \"imgUrl\" : \"https://www.ometria.com/img/12243563.jpg\",\n\t      \"productID\" : \"12243563\",\n\t      \"colour\" : \"Grey\",\n\t      \"url\" : \"https://www.ometria.com/product/12243563.html\",\n\t      \"quantity\" : 1,\n\t      \"sizeName\" : \"12\",\n\t      \"sizeDescription\" : \"UK size 12 Trousers\",\n\t      \"price\" : \"25.00\",\n\t      \"length\" : \"\",\n\t      \"productname\" : \"Grey Trousers\",\n\t      \"sku\" : \"grey_troursers\"\n    \t}, \n    \t{\n\t      \"imgUrl\" : \"https://www.ometria.com/img/45454564356.jpg\",\n\t      \"productID\" : \"45454564356\",\n\t      \"colour\" : \"Blue\",\n\t      \"link\" : \"https://www.ometria.com/product/45454564356.html\",\n\t      \"quantity\" : 1,\n\t      \"sizeName\" : \"8\",\n\t      \"sizeDescription\" : \"UK size 8 Trousers\",\n\t      \"price\" : \"25.00\",\n\t      \"length\" : \"\",\n\t      \"productName\" : \"Blue Trousers\",\n\t      \"sku\" : \"blue_troursers\"\n    \t} \n    ]\n   }\n}\n"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Order Cancellation",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email For Order Cancellation\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"reply_to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"John\"\n\t  },\n  \"data\" : {\n  \"contact\":\n   \t  {\n         \"firstname\":\"John\",\n         \"surname\":\"Smith\",\n         \"title\":\"Mr\",\n         \"accountUrl\":\"www.ometria.com/myaccount/12345\",\n         \"email\":\"[email protected]\"\n   \t   },\n  \"details\":\n\t{  \n\t     \"orderID\":\"00002501\",\n\t     \"status\":\"Cancelled\",\n\t     \"orderDetailsUrl\":\"/s/brand/orders\"\n\t },\n  \"message\":\n  \t{\n  \t \"message\" : \"Your order has been cancelled\"\t\n  \t}\n  \n}\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Review Order",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email for Review Order\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"reply_to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"John\"\n  },\n  \"data\" : {\n  \t\"contact\":\n  \t{\n\t    \"firstname\" : \"John\",\n\t    \"website\" : \"https://www.ometria.com\"\n  \t},\n  \t\"review\":\n  \t{\t    \n  \t\t\"reviewUrl\" : \"https://www.ometria.com/reviewOrder/5345\",\n\t    \"reviewToken\" : \"345345-435345325-34535325-21342134\"\n  \t},\n  \t\"items\":\n      [ \n      \t{\n\t      \"imgUrl\" : \"https://www.ometria.com/img/12243563.jpg\",\n\t      \"productID\" : \"12243563\",\n\t      \"colour\" : \"Grey\",\n\t      \"url\" : \"https://www.ometria.com/product/12243563.html\",\n\t      \"quantity\" : 1,\n\t      \"sizeName\" : \"12\",\n\t      \"sizeDescription\" : \"UK size 12 Trousers\",\n\t      \"price\" : \"25.00\",\n\t      \"length\" : \"\",\n\t      \"productname\" : \"Grey Trousers\",\n\t      \"sku\" : \"grey_troursers\"\n    \t}, \n    \t{\n\t      \"imgUrl\" : \"https://www.ometria.com/img/45454564356.jpg\",\n\t      \"productID\" : \"45454564356\",\n\t      \"colour\" : \"Blue\",\n\t      \"link\" : \"https://www.ometria.com/product/45454564356.html\",\n\t      \"quantity\" : 1,\n\t      \"sizeName\" : \"8\",\n\t      \"sizeDescription\" : \"UK size 8 Trousers\",\n\t      \"price\" : \"25.00\",\n\t      \"length\" : \"\",\n\t      \"productName\" : \"Blue Trousers\",\n\t      \"sku\" : \"blue_troursers\"\n    \t} \n    ]\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Product Review Success",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Product Review Successfully Submitted\",\n  \"template_id\" : 459,\n  \"transactional\" : true,\n  \"from\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"reply_to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"John\"\n  },\n  \"data\" : {\n  \t\"contact\":\n    \t{\n    \t\t\"firstname\" : \"John\"\n    \t},\n    \"review\":\n    \t{\n    \t\t\"reviewUrl\" : \"https://www.ometria.com/review/234345\"\n    \t}\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                },
                "description": "Triggered after a product review has been successfully submitted."
            },
            "response": []
        },
        {
            "name": "Forgot Password",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email for Forgot Password\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"reply_to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"John\"\n  },\n    \"data\": {\n    \t\"contact\":\n    \t{\n\t        \"firstname\": \"John\",\n\t        \"email\": \"[email protected]\"\n    \t},\n    \t\"password\":\n    \t{\n    \t\t\"token\": \"https://www.ometria.com:9002/login/pw/change?token=342354342-3453453425-3454235243-324543523&redirectUrl=my-account\"\n    \t}\n    }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Update Password Success",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n \"sandbox\" : false,\n  \"subject\" : \"Email for Password Success\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"reply_to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"John\"\n  },\t\n  \"data\" : {\n  \t\"contact\":\n  \t{\n\t    \"website\" : \"https://www.ometria.com/\",\n\t    \"firstname\" : \"John\",\n\t    \"email\" : \"[email protected]\"\n  \t}\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Contact Us",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email For Contact Us\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"reply_to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"John\"\n\t  },\n  \"data\" : {\n  \t\"contact\":\n  \t{\n\t    \"countrycode\" : \"GB\",\n\t    \"website\" : \"https://www.ometria.com/\",\n\t    \"firstname\" : \"John\",\n\t    \"message\" : \"I having issues with my account\",\n\t    \"email\" : \"[email protected]\"\n  \t}\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Wishlist",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email for Wishlist Send\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"reply_to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Pete\"\n\t  },\n  \"data\" : {\n  \t\"contact\":\n  \t{\n\t    \"firstname\" : \"John\",\n\t    \"website\" : \"https://www.ometria.com/\",\n\t    \"email\" : \"[email protected]\"\n  \t},\n  \t\"referree\":\n  \t{\n\t  \t\"firstname\" : \"Pete\",\n\t    \"email\" : \"[email protected]\"\n  \t},\n  \t\"message\":\n  \t{\n  \t\t\"message\" : \"Hello your friend John has a wish list\"\t\n  \t},\n    \"items\":\n      [ \n      \t{\n\t      \"imgUrl\" : \"https://www.ometria.com/img/12243563.jpg\",\n\t      \"productID\" : \"12243563\",\n\t      \"colour\" : \"Grey\",\n\t      \"url\" : \"https://www.ometria.com/product/12243563.html\",\n\t      \"quantity\" : 1,\n\t      \"sizeName\" : \"12\",\n\t      \"sizeDescription\" : \"UK size 12 Trousers\",\n\t      \"price\" : \"25.00\",\n\t      \"length\" : \"\",\n\t      \"productname\" : \"Grey Trousers\",\n\t      \"sku\" : \"grey_troursers\"\n    \t}, \n    \t{\n\t      \"imgUrl\" : \"https://www.ometria.com/img/45454564356.jpg\",\n\t      \"productID\" : \"45454564356\",\n\t      \"colour\" : \"Blue\",\n\t      \"link\" : \"https://www.ometria.com/product/45454564356.html\",\n\t      \"quantity\" : 1,\n\t      \"sizeName\" : \"8\",\n\t      \"sizeDescription\" : \"UK size 8 Trousers\",\n\t      \"price\" : \"25.00\",\n\t      \"length\" : \"\",\n\t      \"productName\" : \"Blue Trousers\",\n\t      \"sku\" : \"blue_troursers\"\n    \t} \n    ]\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Wishlist Success",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email for Wishlist Success\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"reply_to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"Ometria\"\n  },\n  \"to\" : {\n    \"email\" : \"[email protected]\",\n    \"name\" : \"John\"\n  },\n  \"data\" : {\n  \t\"contact\":\n  \t{\n    \"firstname\" : \"John\",\n    \"website\" : \"https://www.ometria.com/\",\n    \"email\" : \"[email protected]\"\n  \t},\n  \t\"referree\":\n  \t{\n  \t\"firstname\" : \"Pete\",\n    \"email\" : \"[email protected]\"\n  \t},\n  \t\"message\":\n  \t{\n  \t \"message\" : \"Hello We Sent Your Wishlist\"\t\n  \t}\n  }\n  \n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Change Email To NEW",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email Change Email address to New\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"reply_to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Pete\"\n\t  },\n  \"data\" : \n  {\n  \t\"contact\":\n  \t\t{\n\t\t    \"firstname\" : \"Pete\",\n\t\t    \"email\" : \"[email protected]\",\n\t\t    \"oldemail\" : \"[email protected]\"\n\t\t}\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Change Email To OLD",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email Change Email address from Old\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"reply_to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"John\"\n\t  },\n   \"data\":\n\t{\n\t\t\"contact\":\n\t\t\t{\n\t\t\t    \"firstname\" : \"John\",\n\t\t\t    \"newemail\" : \"[email protected]\",\n\t\t\t    \"countrycode\" : \"GB\",\n\t\t\t    \"email\" : \"[email protected]\"\n\t\t\t}\n\t}\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Your Account",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email For Your Account\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"reply_to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"John\"\n\t  },\n  \"data\" : \n  {\n  \t\"contact\":\n  \t{\n\t    \"firstname\" : \"John\",\n\t    \"email\" : \"[email protected]\",\n\t    \"accountURL\" : \"www.ometria.com/myaccount/12345\"\n  \t}\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Account Registered",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email For Your Account\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"reply_to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"John\"\n\t  },\n  \"data\" : \n  {\n  \t\"contact\":\n  \t{\n\t    \"firstname\" : \"John\",\n\t    \"email\" : \"[email protected]\",\n\t    \"accountURL\" : \"www.ometria.com/myaccount/12345\"\n  \t}\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        },
        {
            "name": "Catalogue Request",
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "exec": [
                            "pm.test(\"Status code is 200\", function () {",
                            "    pm.response.to.have.status(200);",
                            "});"
                        ],
                        "type": "text/javascript"
                    }
                }
            ],
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-OMETRIA-AUTH",
                        "type": "text",
                        "value": "{{apikey}}"
                    },
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"sandbox\" : false,\n  \"subject\" : \"Email For Catalogue\",\n  \"template_id\" : 111,\n  \"transactional\" : true,\n  \"from\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"reply_to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"Ometria\"\n\t  },\n  \"to\" : \n\t  {\n\t    \"email\" : \"[email protected]\",\n\t    \"name\" : \"John\"\n\t  },\n  \"data\" : \n  {\n\t\"contact\":\n\t  {\n\t  \t     \"firstname\":\"John\",\n\t         \"surname\":\"Doe\",\n\t         \"title\":\"Mr\",\n\t         \"accountUrl\":\"www.ometria.com/myaccount/12345\",\n\t         \"email\":\"[email protected]\"\n\t  },\n\t\"shipping\":\n      {  \n         \"firstName\":\"John\",\n         \"lastName\":\"Doe\",\n         \"phone\":\"1231231234\",\n         \"address1\":\"1 The Street\",\n         \"address2\":\"Town\",\n         \"address3\":null,\n         \"county\":\"Greater London\",\n         \"city\":\"London\",\n         \"postalCode\":\"06980\",\n         \"trackingID\":1223,\n         \"trackingURL\":\"www.ometria.com/tracking/1223\"\n      }\n  }\n}"
                },
                "url": {
                    "raw": "https://api.ometria.com/v2/transactional-email/send",
                    "protocol": "https",
                    "host": [
                        "api",
                        "ometria",
                        "com"
                    ],
                    "path": [
                        "v2",
                        "transactional-email",
                        "send"
                    ]
                }
            },
            "response": []
        }
    ]
}

Did this page help you?