{
    "componentChunkName": "component---src-templates-article-page-template-js",
    "path": "/how-to/edit-email-templates-with-flex-cli/",
    "result": {"data":{"markdownRemark":{"frontmatter":{"title":"Edit email templates with Flex CLI","slug":"edit-email-templates-with-flex-cli","updated":"2020-10-29T00:00:00.000Z","category":"how-to-messaging","ingress":"This tutorial shows you how to edit email templates using the Flex Command-line interface.","skills":"basic command line, text editing"},"htmlAst":{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Flex CLI (Command-line interface) is a tool for changing your\nmarketplace's advanced configurations such as transaction processes and\nemail templates."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This tutorial expects that you have already installed Flex CLI and are\nlogged in with your API key. If not, it's recommended to first read the\ntutorial\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/introduction/getting-started-with-flex-cli/"},"children":[{"type":"text","value":"Getting started with Flex CLI"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"We also recommend that you go through the\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/how-to/edit-transaction-process-with-flex-cli/"},"children":[{"type":"text","value":"Edit transaction process with Flex CLI"}]},{"type":"text","value":"\ntutorial to understand process pulling, editing, pushing, and alias\nhandling on a general level."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In this tutorial we make a change to an email template that is used in\nsending notifications to your marketplace users as part of your\ntransaction process. These transaction email template changes are also a\nform of process change, and they create a new version of your process.\nFor email templates not part of your transaction process, see the\n"},{"type":"element","tagName":"a","properties":{"href":"https://flex-console.sharetribe.com/email-templates","target":"_blank","rel":["noopener","noreferrer"]},"children":[{"type":"text","value":"Built-in email templates"}]},{"type":"text","value":"\npage in the Build section of Console."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"pull-existing-process","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#pull-existing-process","ariaLabel":"pull existing process permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Pull existing process"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To edit the transaction email templates, you need to pull an existing\nprocess with its templates. First, let's list all the processes of our\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"my-marketplace-dev"}]},{"type":"text","value":" marketplace:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli process list -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process list"}]},{"type":"text","value":" command prints out all the processes and their latest\nversions. You want to pick the correct process and version from this\nlist. In this tutorial we will use the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"preauth-with-nightly-booking"}]},{"type":"text","value":"\nprocess, version 1. You probably have different transaction processes in\nyour marketplace - so, you need to adjust this guide accordingly."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Let's pull that process version:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli process pull --process preauth-with-nightly-booking --version "},{"type":"element","tagName":"span","properties":{"className":["token","number"]},"children":[{"type":"text","value":"1"}]},{"type":"text","value":" --path process -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This will create a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process/"}]},{"type":"text","value":" directory that has all the process files\nin it:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process.edn"}]},{"type":"text","value":" file, which describes the transaction process"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"templates"}]},{"type":"text","value":" directory, which contains all the transaction email\ntemplates for this process"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"templates-directory","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#templates-directory","ariaLabel":"templates directory permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Templates directory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Let's see what we have in the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process/"}]},{"type":"text","value":" directory:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-wrapper"],"style":"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 635px; "},"children":[{"type":"text","value":"\n      "},{"type":"element","tagName":"a","properties":{"className":["gatsby-resp-image-link"],"href":"/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/66ebc/process-dir.png","style":"display: block","target":"_blank","rel":["noopener"]},"children":[{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-background-image"],"style":"padding-bottom: 91.82389937106919%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC10lEQVQ4y2WUjZKiMBCEff9XOxUFEfzBAEERhAABV0CPvpoRrN1bq1KmEtJ809Nh5p4CvQ/OiC/nIVcKZVn+GkVR8EiSBJ7nIQxDKKWQZRmu1yuklLxHz870V6cXMsOfuTH4QvCmDENEUYSmaXC/39G2LV6vF89vtxvPn88n+r5D13VIRzFanz27Tj+6Hr7wh+N+D887QQjBJPTv+z7TTYJKFej7noWUylFWFe8TMa3NurbVYXHHYrke1sYSpmlhY21grk1Y1oaJ40uMx+PBxNckGQVbLllrzWUTOa3P+q7T5b1FEMoh8P1PyXF8RRzHb49CibpuWJRoJkKa102Dsnx7/CE8Fw3mc2NYGwZWqzVWxgqbzWYUl0xBJdd1jSRJWZB8zbMMldZIkituWfYmJMFb/YAI5CBOHhNRKWma4nw+I5IRC71ez9FD9YOQbKC1j4dUsmpamGtrcJ0tTicBIXxc4hivv3+ZjASoq3R48orGO1YVbmmKPM8nwoeWRYPdUQzC83A4HHhkWc5l0Vtp0MMsOJZGa1VVfl7yESRC/dVi5+4G73iEbW9ZkCJzPB5ZeKKkkqeDE2FVaV6brHgTll8wbXc47HdwXRf7/R6O47B/5CdRUMnkJXk7NUXlOe/RLck+TRkJ/ZPg2IShRBD4oLnwfQRBwAfIzx/BbimHN07Ar2DL4g7DMAdna2O7dWBZFra2zeHm6MiID040RNu2U7BrJGMy+v5JhK0u7i3CMBoiKfkOU/boX5xOuFwuuJwvKIqSgz0RcslKsQ0/CbtWJ/qB+Xw5bO0NN8UyLbiOi8V8AcdxEQYhZ5Iov3tI3a2qioPNhM/nu+S4ukOMhJI9DLlU6l6e5fw1ISGiUd+unq6qT9jVdPXewX5gtVyxh0REHwXbtjk29NWh6NCPPCThyUO6VRTsNP2/y1WJSMqB/Jq6RhlTufp8UaYcfr96FBvytigUN4sy+Q9Itkif4KHwFwAAAABJRU5ErkJggg=='); background-size: cover; display: block;"},"children":[]},{"type":"text","value":"\n  "},{"type":"element","tagName":"picture","properties":{},"children":[{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/82e29/process-dir.webp 159w","/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/ef33f/process-dir.webp 318w","/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/f1837/process-dir.webp 635w","/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/0400b/process-dir.webp 639w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/webp"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/8b9b5/process-dir.png 159w","/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/fa108/process-dir.png 318w","/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/53fb6/process-dir.png 635w","/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/66ebc/process-dir.png 639w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/png"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"img","properties":{"className":["gatsby-resp-image-image"],"src":"/docs/legacy/static/108f6196aaf5ad50de8f2e6cf3484f6c/53fb6/process-dir.png","alt":"Process directory contents","title":"Process directory contents","loading":"lazy","decoding":"async","style":"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;"},"children":[]},{"type":"text","value":"\n        "}]},{"type":"text","value":"\n  "}]},{"type":"text","value":"\n    "}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If you look at the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":notifications"}]},{"type":"text","value":" key in the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process.edn"}]},{"type":"text","value":" file, you\nwill see that the template directories and file names match the\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":template"}]},{"type":"text","value":" values in the notifictions:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"clojure"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-clojure"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-clojure"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":notifications"}]},{"type":"text","value":"\n "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"["}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":name"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":notification/new-booking-request"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":on"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":transition/confirm-payment"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":to"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":actor.role/provider"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":template"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":new-booking-request"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":name"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":notification/booking-request-accepted"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":on"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":transition/accept"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":to"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":actor.role/customer"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":template"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":booking-request-accepted"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":name"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":notification/review-by-customer-second"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":on"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":transition/review-2-by-customer"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":to"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":actor.role/provider"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n   "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":template"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":review-by-other-party-published"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"]"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A template for a notification is a directory that is named after the\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":template"}]},{"type":"text","value":" value and contains two files:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"TEMPLATE_NAME-subject.txt"}]},{"type":"text","value":" - holds the mail Subject line template"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"TEMPLATE_NAME-html.html"}]},{"type":"text","value":" - contains the template for the HTML version\nof the mail"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Both parts are mandatory. All emails that are sent from the marketplace\ncontain both the HTML and plain text variants and the recipient's mail\nclient is free to choose which one to visualize and how. The text\nversion is automatically generated from the HTML template."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"example","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#example","ariaLabel":"example permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Example"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"For example, the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":notification/new-booking-request"}]},{"type":"text","value":" notifiction:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"clojure"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-clojure"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-clojure"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":name"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":notification/new-booking-request"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":on"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":transition/confirm-payment"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":to"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":actor.role/provider"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":template"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","symbol"]},"children":[{"type":"text","value":":new-booking-request"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"has the following template:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"text"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-text"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"new-booking-request/\n├── new-booking-request-html.html\n└── new-booking-request-subject.txt"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Note that the template name (e.g. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":new-booking-request"}]},{"type":"text","value":") doesn't have\nto match the notification name (e.g.\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":notification/new-booking-request"}]},{"type":"text","value":") as you can share a template with\nmultiple notifications."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"email-template-syntax","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#email-template-syntax","ariaLabel":"email template syntax permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Email template syntax"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Templates use "},{"type":"element","tagName":"a","properties":{"href":"http://handlebarsjs.com/","target":"_blank","rel":["noopener","noreferrer"]},"children":[{"type":"text","value":"Handlebars"}]},{"type":"text","value":" syntax."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Example HTML:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"handlebars"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-handlebars"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"~"}]},{"type":"element","tagName":"span","properties":{"className":["token","block","keyword"]},"children":[{"type":"text","value":"#*inline"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"format-date\""}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"~"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"date"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"date"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"format"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"="}]},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"MMM d, YYYY\""}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"~"}]},{"type":"element","tagName":"span","properties":{"className":["token","block","keyword"]},"children":[{"type":"text","value":"/inline"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"~"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":"\n\n"},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"text","value":"html"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"text","value":"body"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","block","keyword"]},"children":[{"type":"text","value":"#with"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"transaction"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"text","value":"h1"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"Please respond to a request by "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"customer"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"display-name"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"</"}]},{"type":"text","value":"h1"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n\n    "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"text","value":"p"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n      Good news! "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"customer"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"display-name"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":" just requested to book "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"listing"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"title"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":"\n      from "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"format-date"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"date"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"="}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"booking"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"start"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":" to "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"format-date"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"date"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"="}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"booking"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"end"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":".\n      Here's the breakdown.\n    "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"</"}]},{"type":"text","value":"p"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n\n    ...\n\n    "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","block","keyword"]},"children":[{"type":"text","value":"/with"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":"\n\n    "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"text","value":"hr"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"/>"}]}]},{"type":"text","value":"\n\n    "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"<"}]},{"type":"text","value":"p"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n      You have received this email notification because you are a member of "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"marketplace"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"name"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":".\n      If you no longer wish to receive these emails, please contact "},{"type":"element","tagName":"span","properties":{"className":["token","handlebars","language-handlebars"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"{{"}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"marketplace"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"."}]},{"type":"element","tagName":"span","properties":{"className":["token","variable"]},"children":[{"type":"text","value":"name"}]},{"type":"element","tagName":"span","properties":{"className":["token","delimiter","punctuation"]},"children":[{"type":"text","value":"}}"}]}]},{"type":"text","value":" team.\n    "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"</"}]},{"type":"text","value":"p"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"</"}]},{"type":"text","value":"body"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","tag"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"</"}]},{"type":"text","value":"html"}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":">"}]}]},{"type":"text","value":"\n"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Variables within "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"{{ }}"}]},{"type":"text","value":" are expanded and escaped, so that they are safe\nto place inside HTML content. As seen above, some variables have nested\nvalues, which can be accessed with dot "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"."}]},{"type":"text","value":" operator."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In the example above, the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"#with"}]},{"type":"text","value":" block helper is used to access\nproperties of the email context top level property "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"transaction"}]},{"type":"text","value":". So\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"customer.display-name"}]},{"type":"text","value":" within the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"{{#with transaction}}"}]},{"type":"text","value":" block will\nrefer to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"transaction.customer.display-name"}]},{"type":"text","value":" in the email\ncontext."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The template syntax supports conditionals, loops, helpers and other\nconstructs. For details on the Handlebars constructs and a full\ndescription of the email context, see the\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/references/email-templates/"},"children":[{"type":"text","value":"Email templates"}]},{"type":"text","value":" reference."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"change-a-template","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#change-a-template","ariaLabel":"change a template permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Change a template"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Let's change the email template for new booking requests."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Open the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"new-booking-request/new-booking-request-html.html"}]},{"type":"text","value":" file in a\ntext editor and make a simple change:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"diff"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-diff"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-diff"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","deleted-sign","deleted"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","prefix","deleted"]},"children":[{"type":"text","value":"-"}]},{"type":"text","value":" <h1>Please respond to a request by {{customer.display-name}}</h1>\n"}]},{"type":"element","tagName":"span","properties":{"className":["token","inserted-sign","inserted"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","prefix","inserted"]},"children":[{"type":"text","value":"+"}]},{"type":"text","value":" <h1>Please respond to a new booking request by {{customer.display-name}}</h1>"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When you've made the change, save the file."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"preview-your-changes","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#preview-your-changes","ariaLabel":"preview your changes permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Preview your changes"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can test your changes and templates by previewing or sending a test\nemail using your local template files. To preview the change above:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli notifications preview --template process/templates/new-booking-request -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The command will render the given template using\n"},{"type":"element","tagName":"a","properties":{"href":"#sample-email-context"},"children":[{"type":"text","value":"a sample data (context)"}]},{"type":"text","value":" and open a browser tab\nwith the output HTML:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-wrapper"],"style":"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 635px; "},"children":[{"type":"text","value":"\n      "},{"type":"element","tagName":"a","properties":{"className":["gatsby-resp-image-link"],"href":"/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/5f36c/preview-browser.png","style":"display: block","target":"_blank","rel":["noopener"]},"children":[{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-background-image"],"style":"padding-bottom: 59.11949685534591%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAACXBIWXMAAAsTAAALEwEAmpwYAAACR0lEQVQoz6WRzW7TQBSFDeqeDci8Au9AFxSJV2iaSJWgi1o8CFJ3PEJpgiqxyo/UJhKlSEiIXVPnv4nthtoe28nEYxMnlj2ei2ZI1ZQd4kqfzr3n2kcztvTp3fHGxY9vheag/dZ1p/ueN1EcxxN0B7py2R4oameoXHauFLVzpbS6QzG3e5rS6XP0/fZKz75+fyLt5d48RuY4mIU+ED8A1/VgMpnCYhnDjIQwnQUwI78EeDVjPwR3OgPHw4LJ1AfLduHz2fkLKbezLauqal1fX0O/309UVaW6btCRplHDMGi326G9Xo8OBgPBaDQUM8aYAgDNsizlmiQJbTQaW9Lu7q48Ho8RQgiQjTLLspjnusy2bYYQEuoghznOH1zHFb7neSxJEgYAHEjTFOr1+paUy23Ll80miqIIwiDIhsMRZDSDLMuAUiqUMfGO0Ft4AN+tBzYajZdSIb8jt1othPEMTNPMLMuGv2s96DZ8zb8fuLf3Wm5eNBFCDmgjLdM1A/6xRCC/zeqEBdkwNGRbN2Ca48yyforv43kThjFmhASMEMKC4E5ve47v+ywMQgjDEOo8MJ/Py4Y+tW5u5qDrfmIYfkoISX3fT6MoStcrSZK1/s6jlNI4junp6emWVCgUnpqmM8c4BEIiCMMlRNEClsulYLFYAP9h8/kc4jgWPfeEv9rx5/n85fz8lfR8c/NR8ejD+1Lp6LhaLRdrtWqpXC6XKpVKqVqtCnjPqdVq9/zVrlipVD6enJwcHhwcPJNW9UCSpI3/5CFP+g1jHvaZAwAMkAAAAABJRU5ErkJggg=='); background-size: cover; display: block;"},"children":[]},{"type":"text","value":"\n  "},{"type":"element","tagName":"picture","properties":{},"children":[{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/82e29/preview-browser.webp 159w","/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/ef33f/preview-browser.webp 318w","/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/f1837/preview-browser.webp 635w","/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/29549/preview-browser.webp 953w","/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/165dc/preview-browser.webp 1052w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/webp"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/8b9b5/preview-browser.png 159w","/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/fa108/preview-browser.png 318w","/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/53fb6/preview-browser.png 635w","/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/5a426/preview-browser.png 953w","/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/5f36c/preview-browser.png 1052w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/png"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"img","properties":{"className":["gatsby-resp-image-image"],"src":"/docs/legacy/static/a169c505dd0c146b99a334db462a1a04/53fb6/preview-browser.png","alt":"Email preview in a browser","title":"Email preview in a browser","loading":"lazy","decoding":"async","style":"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;"},"children":[]},{"type":"text","value":"\n        "}]},{"type":"text","value":"\n  "}]},{"type":"text","value":"\n    "}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Note the subject in the tab title. It will also output the rendered text\nversion to the terminal:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-wrapper"],"style":"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 635px; "},"children":[{"type":"text","value":"\n      "},{"type":"element","tagName":"a","properties":{"className":["gatsby-resp-image-link"],"href":"/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/50820/preview-terminal.png","style":"display: block","target":"_blank","rel":["noopener"]},"children":[{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-background-image"],"style":"padding-bottom: 64.77987421383648%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAABYlAAAWJQFJUiTwAAABLUlEQVQ4y6VTy26EMAyEfQAhgYSE8Ch0L1y6//+BU40p7PbQim4Po7Fkx/KMncT2FmEImOd3tG0L5xyqqkLTNGi8F/YhwHu/w1qLsixhjJH4fD4jSZIV4zBiepvQ970UqLJElmW4XC6Por9gnmfELqKuLVSpkKbpa402fNzvWJYF0zQhxijyKJ1Sv0k5irquxQcyGz77UxSFgBaQD02vtZYlKKXEt9Pp9JVMX5PP7Y7jKA3/5d0GejcMA2632+ubfQbN5xLon3ONyNfagFYYUwlrY8TXhx2/oG2jNAwhoOs6ifl4a0LQDuLQ1vkzOKXjj/AetbWoTLU347bl4I96zCabZMZk/hryI+4k5vlwyp8glnBCFnKaPM/323uOszzfb7FQSnIr1jrmyNfrFZ/OjxjO4sgQIQAAAABJRU5ErkJggg=='); background-size: cover; display: block;"},"children":[]},{"type":"text","value":"\n  "},{"type":"element","tagName":"picture","properties":{},"children":[{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/82e29/preview-terminal.webp 159w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/ef33f/preview-terminal.webp 318w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/f1837/preview-terminal.webp 635w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/29549/preview-terminal.webp 953w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/c5420/preview-terminal.webp 1270w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/93c29/preview-terminal.webp 1962w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/webp"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/8b9b5/preview-terminal.png 159w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/fa108/preview-terminal.png 318w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/53fb6/preview-terminal.png 635w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/5a426/preview-terminal.png 953w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/91155/preview-terminal.png 1270w","/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/50820/preview-terminal.png 1962w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/png"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"img","properties":{"className":["gatsby-resp-image-image"],"src":"/docs/legacy/static/f0669c7e53f14f160210b512d4be0579/53fb6/preview-terminal.png","alt":"Email preview in terminal","title":"Email preview in terminal","loading":"lazy","decoding":"async","style":"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;"},"children":[]},{"type":"text","value":"\n        "}]},{"type":"text","value":"\n  "}]},{"type":"text","value":"\n    "}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can now use your normal browser developer tooling to test changes to\nthe template and verify how the responsiveness of the content works.\nWhen you make changes to the template, you can just refresh the browser\nand see the updated preview."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"sending-a-preview-email","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#sending-a-preview-email","ariaLabel":"sending a preview email permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Sending a preview email"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If you want to verify the email in an email client software, you can\nalso send the test preview email:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli notifications send --template process/templates/new-booking-request -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The email is sent to the email address of the admin user that was used\nin logging in to the CLI:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-wrapper"],"style":"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 635px; "},"children":[{"type":"text","value":"\n      "},{"type":"element","tagName":"a","properties":{"className":["gatsby-resp-image-link"],"href":"/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/f112c/preview-inbox.png","style":"display: block","target":"_blank","rel":["noopener"]},"children":[{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-background-image"],"style":"padding-bottom: 55.34591194968554%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAABYlAAAWJQFJUiTwAAABN0lEQVQoz41Sy47CMBDL/3/d3vYAh5aGsrRNaPpM+vLKI6ItaAWMZE2amTr2JGppalhrURQFyrKEMQbOObRti6ZpJAc/wHsPxrZtAsY8z5imCcuySJ1Q/vsLjXPo+x4hBGl6F5GQZPwnknJfrQD0WSPLMqRpCq018jzH6XTC8XhEkiQ4HA5SI67X6wPpc6h1XWGNRV3XYvd2u4lV2ia6rhPbMbMvuoj291AsUsUwDKKK+ZWC/0geCKmQNquqkvzJDF+FEF4uOYypoLNMFHKPxBz0O7A34q5wQ1Ea6PMPbN2i7weM4yi3vgcP2q85U+bYy/lShFq3DaXtkBcOedGgdu0DAX98Jo978aL4bKJKRZlTCPB+RAheThTcHyoRpP73zfp+TevxwhQXLAz3AomYqYAnfhrxVfwCi/FZQrDoql0AAAAASUVORK5CYII='); background-size: cover; display: block;"},"children":[]},{"type":"text","value":"\n  "},{"type":"element","tagName":"picture","properties":{},"children":[{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/82e29/preview-inbox.webp 159w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/ef33f/preview-inbox.webp 318w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/f1837/preview-inbox.webp 635w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/29549/preview-inbox.webp 953w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/c5420/preview-inbox.webp 1270w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/fef7c/preview-inbox.webp 2192w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/webp"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/8b9b5/preview-inbox.png 159w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/fa108/preview-inbox.png 318w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/53fb6/preview-inbox.png 635w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/5a426/preview-inbox.png 953w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/91155/preview-inbox.png 1270w","/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/f112c/preview-inbox.png 2192w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/png"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"img","properties":{"className":["gatsby-resp-image-image"],"src":"/docs/legacy/static/41fe5f335e657c15e56dcc88a3f89739/53fb6/preview-inbox.png","alt":"Email preview in inbox","title":"Email preview in inbox","loading":"lazy","decoding":"async","style":"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;"},"children":[]},{"type":"text","value":"\n        "}]},{"type":"text","value":"\n  "}]},{"type":"text","value":"\n    "}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"sample-email-context","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#sample-email-context","ariaLabel":"sample email context permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Sample email context"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"As you see from the previews above, the templates are rendered with the\nfixed sample context. The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"notifications preview"}]},{"type":"text","value":" and\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"notifications send"}]},{"type":"text","value":" commands also support an optional "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"--context"}]},{"type":"text","value":"\noption that can be used to pass in a custom context JSON."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can see the default context JSON here:\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/sample-template-context.json"},"children":[{"type":"text","value":"sample-template-context.json"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To change the data that is used for previews, download the sample JSON\nfile and make edits to it:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"diff"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-diff"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-diff"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","unchanged"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","prefix","unchanged"]},"children":[{"type":"text","value":" "}]},{"type":"text","value":"   \"customer\" : {\n"},{"type":"element","tagName":"span","properties":{"className":["token","prefix","unchanged"]},"children":[{"type":"text","value":" "}]},{"type":"text","value":"     \"id\" : \"ef7f40d5-da66-489a-957b-641313b68204\",\n"},{"type":"element","tagName":"span","properties":{"className":["token","prefix","unchanged"]},"children":[{"type":"text","value":" "}]},{"type":"text","value":"     \"first-name\" : \"Jane\",\n"},{"type":"element","tagName":"span","properties":{"className":["token","prefix","unchanged"]},"children":[{"type":"text","value":" "}]},{"type":"text","value":"     \"last-name\" : \"Pritchett\",\n"}]},{"type":"element","tagName":"span","properties":{"className":["token","deleted-sign","deleted"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","prefix","deleted"]},"children":[{"type":"text","value":"-"}]},{"type":"text","value":"     \"display-name\" : \"Jane P\",\n"}]},{"type":"element","tagName":"span","properties":{"className":["token","inserted-sign","inserted"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","prefix","inserted"]},"children":[{"type":"text","value":"+"}]},{"type":"text","value":"     \"display-name\" : \"Mary P\","}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can then pass the changed context file to the preview command:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli notifications preview --template process/templates/new-booking-request --context sample-template-context.json -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Now you will see the preview with the context data that you edited:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-wrapper"],"style":"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 635px; "},"children":[{"type":"text","value":"\n      "},{"type":"element","tagName":"a","properties":{"className":["gatsby-resp-image-link"],"href":"/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/346ba/preview-context.png","style":"display: block","target":"_blank","rel":["noopener"]},"children":[{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-background-image"],"style":"padding-bottom: 55.34591194968554%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAA+UlEQVQoz52SyY6EMAxEwxrCvoWEJYgz//9/HpXVQfRlRHN4cmKg8FLCbpbMashtjrquo6qqLsqypLquv+5ZllGe51euKAqSUpJSivNiXVea9ERN2/LLcRxTGIYkhHjHeZ7knCOt9VUB/hZF0TvBZVlYbBgGjn3f0ziOXH6aptxOkiTPBTEjfIyqQBAE/AARrQOfe8RxHGTtzGKv53Zn33fato1mO39VgrPnJ0HMrW1bnh0irNA0DeNtA2s8FrTG8kL6fqBpmlhQfpbhgZV+qhBbvbjftebNo9r7GP4VNMZQphS3h22jPZwRATsgz9mfQIJP5d5Wd8/+Afrk7JAPInn6AAAAAElFTkSuQmCC'); background-size: cover; display: block;"},"children":[]},{"type":"text","value":"\n  "},{"type":"element","tagName":"picture","properties":{},"children":[{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/82e29/preview-context.webp 159w","/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/ef33f/preview-context.webp 318w","/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/f1837/preview-context.webp 635w","/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/29549/preview-context.webp 953w","/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/95c9b/preview-context.webp 1124w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/webp"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"source","properties":{"srcSet":["/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/8b9b5/preview-context.png 159w","/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/fa108/preview-context.png 318w","/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/53fb6/preview-context.png 635w","/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/5a426/preview-context.png 953w","/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/346ba/preview-context.png 1124w"],"sizes":"(max-width: 635px) 100vw, 635px","type":"image/png"},"children":[]},{"type":"text","value":"\n          "},{"type":"element","tagName":"img","properties":{"className":["gatsby-resp-image-image"],"src":"/docs/legacy/static/45ba92232a7d05d35f6c20b378201b4d/53fb6/preview-context.png","alt":"Email preview with custom context","title":"Email preview with custom context","loading":"lazy","decoding":"async","style":"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;"},"children":[]},{"type":"text","value":"\n        "}]},{"type":"text","value":"\n  "}]},{"type":"text","value":"\n    "}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can use the\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/sample-template-context.json"},"children":[{"type":"text","value":"sample-template-context.json"}]},{"type":"text","value":" file as a\nbase and test how your templates behave with different content or custom\nextended data etc."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"push-new-version","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#push-new-version","ariaLabel":"push new version permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Push new version"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Now that you have edited the email templates, you need to push a new\nversion of your process:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli process push --path process --process preauth-with-nightly-booking -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can see the new version in Console or using the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process list"}]},{"type":"text","value":"\ncommand:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli process list --process preauth-with-nightly-booking -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"update-alias","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#update-alias","ariaLabel":"update alias permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Update alias"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"As you saw from Console or from the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process list"}]},{"type":"text","value":" command above, there\nisn't an alias pointing to the latest process version. To allow FTW or\nother apps to use the new process version through the Marketplace API,\nyou will need an alias to point to the version."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In our "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"preauth-with-nightly-booking"}]},{"type":"text","value":" example process there is a\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"release-1"}]},{"type":"text","value":" alias. Let's update that to point to the new process\nversion:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli process update-alias --process preauth-with-nightly-booking --alias release-1 --version "},{"type":"element","tagName":"span","properties":{"className":["token","number"]},"children":[{"type":"text","value":"2"}]},{"type":"text","value":" -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To see the updated alias, run the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process list"}]},{"type":"text","value":" command again:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"bash"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-bash"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"flex-cli process list --process preauth-with-nightly-booking -m my-marketplace-dev"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"summary","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#summary","ariaLabel":"summary permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Summary"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In this tutorial we changed an email template in an existing process. We\nthen pushed the changes to a new version and updated the alias to point\nto that version."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This is the generic workflow to update the notification email contents\nthat are part of the transaction process of your marketplace."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"With this and the\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/how-to/edit-transaction-process-with-flex-cli/"},"children":[{"type":"text","value":"Edit transaction process with Flex CLI"}]},{"type":"text","value":"\ntutorial, you now know how to change the transaction process and its\nemail templates. As a next step, you might want to read the\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/references/transaction-process-format/"},"children":[{"type":"text","value":"Transaction process format"}]},{"type":"text","value":"\nreference article."}]}],"data":{"quirksMode":false}},"headings":[{"value":"Pull existing process","depth":2},{"value":"Templates directory","depth":2},{"value":"Example","depth":3},{"value":"Email template syntax","depth":2},{"value":"Change a template","depth":2},{"value":"Preview your changes","depth":2},{"value":"Sending a preview email","depth":2},{"value":"Sample email context","depth":2},{"value":"Push new version","depth":2},{"value":"Update alias","depth":2},{"value":"Summary","depth":2}]}},"pageContext":{"slug":"edit-email-templates-with-flex-cli","category":"how-to-messaging"}},
    "staticQueryHashes": ["3794076007","439097193","717698143"]}