JSFiddle - React, Tailwind, and code Playground

JavaScript

{
  "id" :
  {
    // Email
    "email" :
    {
      // Plain,
      "raw" : "[email protected]",
      // or MD5-hashed,
      "md5" : "e13743a7f1db7f4246badd6fd6ff54ff",
      // or SHA256-MD5-hashed,
      "sha256_md5" : "000e3171a5110c35c69d060112bd0ba55d9631c7c2ec93f1840e4570095b263a"
    }
  },
  // IP adress - set it to 127.0.0.1 if not applicable
  "ip" : "127.0.0.1",
  // Partner ID
  "account" : 11532,
  // Outlet type
  "site_type" : "instore",
  // To identify offline users
  "user_segment":  19,
  //To identify the store
  "store_id": "ID_STORE"
  // Event array
  "events" : [
    // Sale event
    {
      "event" : "trackTransaction",
      "id" : "tr123456", // Transaction ID
      "timestamp" : "2017-06-02T12:24:10Z", // UTC timestamp (ISO 8601 with explicit UTC timezone designator 'Z')
      "currency" : "USD", // Optional override of the partner's default currency
      // Product array
      "item" : [
        {
          "id" : "prod12345", // Product ID
          "price" : 23, // Price in partner currency
          "quantity" : 1 // Must be an integral number
        },
        {
          "id" : "otherprod5436",
          "price" : 102,
          "quantity" : 3
        }
      ]
    }
  ]
}