{
  "name": "ETSY-013 practice (Run once only) - DRAFT, not tested",
  "_ayh_note": "DRAFT, NOT TESTED. Practice scenario for ETSY-013: test with Run once only and never switch it on. Module identifiers (gateway:CustomWebHook v1, google-sheets:addRow v2, builtin:BasicFeeder v1) come from Make's own example blueprints (github.com/integromat/make-skills), not from a help.make.com page. BUILDER-CHECK before publishing as tested: import into Make, confirm each module loads, create the webhook, pick the Google connection, spreadsheet and sheet, then Run once with the sample order file. Mapping formulas (map/join/sum/formatDate) are written from Make's documented functions but not yet run; check each in the mapping panel.",
  "_ayh_columns": [
    "receipt_id",
    "created_at",
    "status",
    "is_paid",
    "is_shipped",
    "is_gift",
    "grandtotal_display",
    "currency",
    "line_titles",
    "line_skus",
    "line_qty",
    "personalization"
  ],
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {},
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Practice webhook (send the sample order file)"
        }
      }
    },
    {
      "id": 2,
      "module": "google-sheets:addRow",
      "version": 2,
      "parameters": {
        "__IMTCONN__": null
      },
      "mapper": {
        "from": "drive",
        "mode": "select",
        "spreadsheetId": "",
        "sheetId": "",
        "includesHeaders": true,
        "insertDataOption": "INSERT_ROWS",
        "valueInputOption": "USER_ENTERED",
        "values": {
          "0": "{{1.receipt_id}}",
          "1": "{{formatDate(parseDate(1.created_timestamp; \"X\"); \"YYYY-MM-DD HH:mm\")}}",
          "2": "{{1.status}}",
          "3": "{{1.is_paid}}",
          "4": "{{1.is_shipped}}",
          "5": "{{1.is_gift}}",
          "6": "{{1.grandtotal.amount / 1.grandtotal.divisor}}",
          "7": "{{1.grandtotal.currency_code}}",
          "8": "{{join(map(1.transactions; \"title\"); \", \")}}",
          "9": "{{join(map(1.transactions; \"sku\"); \", \")}}",
          "10": "{{sum(map(1.transactions; \"quantity\"))}}",
          "11": "{{join(map(flatten(map(1.transactions; \"variations\")); \"formatted_value\"); \", \")}}"
        }
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0,
          "name": "Add order-log row"
        }
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    }
  }
}