title: Code by Zapier Get Unexpected Token When Inserting InputData variable into JSON string
body: <p>Have been trying to insert inputdata.SKU into the payload below.  However, I get Unexpected Token error.</p>
  
  <p>Complete Javascript code used in the Code by Zapier input box is below.  Note have replaced the token with XXXXXXX in endpoint variable for security reasons.</p>
  
  <pre><code>var endpoint = 'https://api.yotpo.com/apps/XXXXXX/purchases/';
  var payload = {
    "validate_data": true,
    "platform": "general",
    "utoken": inputData.ACCESS_TOKEN,
    "email": inputData.EMAIL,
    "customer_name": inputData.CUST_NAME,
    "order_id": inputData.ORDER_ID,
    "order_date": inputData.ORDER_DATE,
    "currency_iso": "NZD",
    "products": { 
      inputData.SKU : {
        "url": inputData.URL, 
        "name": inputData.NAME, 
        "image": inputData.IMAGE_URL
      }
    }
  };
  
  fetch(endpoint, {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(payload)
    }).then(function(response) {
      return response.text();
    }).then(function(responsebody) {
      var output = {response: responsebody};
      callback(null, output);
    }).catch(function(error) {
      callback(error);
    });
  </code></pre>