{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "9AFCF8FD-F6A2-4F9E-9499-4B48CEF52009",
    "name": "RevAddress: address check before an order ships"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -44.04966571155683,
        "y": 9.436485195797516,
        "zoom": 0.76
      },
      "autoSave": false,
      "descriptions": {
        "flow": "Checks the shipping address of every new ShipStation order with RevAddress. Orders whose address USPS does not recognize, or whose trust score is low, go on hold and the ops lead decides in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Checks the shipping address of every new ShipStation order with RevAddress. Orders whose address USPS does not recognize, or whose trust score is low, go on hold and the ops lead decides in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask the ops lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1152,
            "y": 631
          }
        },
        "flowElementId": "AC557420-8327-41A0-9577-9947C2A989A7",
        "groupId": null,
        "id": "6C8DD8D1-2A79-495B-B2D8-41259CEA827B",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "88F85238-B9AC-4BE0-8853-441A12D996D8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "88F85238-B9AC-4BE0-8853-441A12D996D8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Question to ops lead",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the ops lead",
        "nextElementIds": [
          "8822118B-2AE0-4142-BF52-26DA6F6AC900"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "No trust score Result"
          },
          "position": {
            "x": 1499,
            "y": 40
          }
        },
        "flowElementId": "451FAC64-9EF5-40F6-BE10-D37BE2F43995",
        "groupId": null,
        "id": "3E95DBA1-853F-4507-9211-34FE17C76062",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Score error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "No trust score",
        "nextElementIds": [
          "A97014D2-660F-4F29-A586-C8EDDC0107CA"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Weigh the checks Result"
          },
          "position": {
            "x": 1499,
            "y": 170
          }
        },
        "flowElementId": "4951CCDF-53D2-46D6-9E2E-119E3E7AF788",
        "groupId": null,
        "id": "A97014D2-660F-4F29-A586-C8EDDC0107CA",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "validation",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Validation",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "5426A544-2844-4D6A-AC5B-6C68A04C4117"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "validationError",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Validation error",
                    "subPathSegments": [
                      {
                        "key": "message",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "20C9500F-1C4B-4AB6-849B-952049BAA739"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "trust",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Trust",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "4E2C16D2-474C-4343-A0DD-416FB7EA0B67"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "minScore",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Lowest score to ship",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Lowest score to ship"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "holdDays",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Days to hold",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Days to hold"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const v = validation && typeof validation === 'object' ? validation : {};\nconst tr = trust && typeof trust === 'object' ? (trust.trust || trust) : {};\nconst score = typeof tr.score === 'number' ? tr.score : null;\nconst grade = tr.grade || '';\nconst signals = (Array.isArray(tr.signals) ? tr.signals : []).map(s => {\n  if (typeof s === 'string') return s;\n  const name = s.signal || s.name || s.code || s.id || s.description || '';\n  const pts = s.points ?? s.penalty ?? s.weight;\n  return name ? (pts != null ? `${name} (-${Math.abs(pts)})` : name) : JSON.stringify(s);\n}).map(x => String(x).replace(/_/g, ' '));\nconst info = v.additionalInfo || {};\nconst dpv = info.DPVConfirmation || '';\nconst reasons = [];\nif (!v.address) reasons.push(validationError ? `RevAddress could not validate the address (${validationError})` : 'RevAddress could not validate the address');\nif (dpv === 'N') reasons.push('USPS does not recognize the address as a delivery point');\nif (dpv === 'S') reasons.push('USPS does not recognize the unit number');\nif (dpv === 'D') reasons.push('the building needs a unit number and the order has none');\nif (info.vacant === 'Y') reasons.push('USPS lists the address as vacant');\nconst min = Number(minScore);\nif (score !== null && score < min) reasons.push(`trust score ${score}${grade ? ' (' + grade + ')' : ''} is below ${min}`);\nconst a = v.address || {};\nconst standardized = v.address ? [a.streetAddress, a.secondaryAddress, `${a.city || ''}, ${a.state || ''} ${a.ZIPCode || ''}${a.ZIPPlus4 ? '-' + a.ZIPPlus4 : ''}`].filter(Boolean).join(', ') : '';\nconst until = new Date();\nuntil.setUTCDate(until.getUTCDate() + (Number(holdDays) || 14));\nreturn {\n  hold: reasons.length > 0,\n  reasons,\n  score,\n  grade,\n  signals,\n  dpv,\n  uspsChecked: v.degraded === false,\n  standardized,\n  holdUntil: until.toISOString().slice(0, 10),\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Checks",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Weigh the checks",
        "nextElementIds": [
          "94AC8C65-6ACD-4A38-944F-6FE833F77A66"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm the hold Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1152,
            "y": 931
          }
        },
        "flowElementId": "3DC88033-72C8-41F0-9CFB-D09303531E35",
        "groupId": null,
        "id": "911E3DDE-EED6-48AE-8BF5-BFF7EDAE64AE",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Kept on hold. Order "
                  },
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " stays on hold in ShipStation until "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Checks",
                    "subPathSegments": [
                      {
                        "key": "holdUntil",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "A97014D2-660F-4F29-A586-C8EDDC0107CA"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". Correct the address in ShipStation, then restore the order from hold to ship it."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to ops lead",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6C8DD8D1-2A79-495B-B2D8-41259CEA827B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Hold confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the hold",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a tag to an existing order, useful for categorizing or triggering downstream automations based on tag membership.",
          "elementId": "EXTENSION:::SHARED:::default:::shipstation:::addTagToOrder",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tag the order Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shipstation:::addTagToOrder",
          "legacyElementId": "JS###v1###ShipStation###addTagToOrder",
          "methodName": "addTagToOrder",
          "position": {
            "x": 837,
            "y": 631
          }
        },
        "flowElementId": "C064423E-FAD8-40A6-9904-B128CFD27A3C",
        "groupId": null,
        "id": "1DBFBEB4-893A-416D-B6E0-835CA543FE93",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tagId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "tagId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "88F85238-B9AC-4BE0-8853-441A12D996D8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "addTagToOrder",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tagging",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shipstation",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tag the order",
        "nextElementIds": [
          "6C8DD8D1-2A79-495B-B2D8-41259CEA827B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 488,
            "y": 640
          }
        },
        "flowElementId": "C5E08F81-B730-425C-A16B-2CF55CBEA024",
        "groupId": null,
        "id": "518ECB71-0019-4C72-9A8A-ACF5C049F8F0",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "60349f5d-0ef0-4b90-bc84-df15e6dbaaba",
                "nestedOperation": null,
                "operation": "isNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Question card",
                      "subPathSegments": [
                        {
                          "key": "tagId",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "88F85238-B9AC-4BE0-8853-441A12D996D8"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "60349f5d-0ef0-4b90-bc84-df15e6dbaaba"
            ]
          },
          "elseComponent": {
            "componentId": "6C8DD8D1-2A79-495B-B2D8-41259CEA827B",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Tag exists",
          "storeResult": false,
          "thenComponent": {
            "componentId": "1DBFBEB4-893A-416D-B6E0-835CA543FE93",
            "componentType": "ELEMENT"
          }
        },
        "name": "Hold tag exists?",
        "nextElementIds": [
          "6C8DD8D1-2A79-495B-B2D8-41259CEA827B",
          "1DBFBEB4-893A-416D-B6E0-835CA543FE93"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Address did not validate Result"
          },
          "position": {
            "x": 1138,
            "y": 300
          }
        },
        "flowElementId": "E7A9D601-2AF8-456F-86CB-2F76C03DDA45",
        "groupId": null,
        "id": "20C9500F-1C4B-4AB6-849B-952049BAA739",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Validation error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Address did not validate",
        "nextElementIds": [
          "A97014D2-660F-4F29-A586-C8EDDC0107CA"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1499,
            "y": 810
          }
        },
        "flowElementId": "7206D3F0-EFB8-4223-A5BA-3303007685A8",
        "groupId": null,
        "id": "110F5000-E34F-4C85-962C-A163E90490D0",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "9e903c2a-1618-4670-ad83-64d46c3585b2",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Ops decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "8822118B-2AE0-4142-BF52-26DA6F6AC900"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "ship"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "9e903c2a-1618-4670-ad83-64d46c3585b2"
            ]
          },
          "elseComponent": {
            "componentId": "911E3DDE-EED6-48AE-8BF5-BFF7EDAE64AE",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Ship it",
          "storeResult": false,
          "thenComponent": {
            "componentId": "7E07F164-480D-4915-ADCE-9B8F074B1555",
            "componentType": "ELEMENT"
          }
        },
        "name": "Ship as entered?",
        "nextElementIds": [
          "7E07F164-480D-4915-ADCE-9B8F074B1555",
          "911E3DDE-EED6-48AE-8BF5-BFF7EDAE64AE"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 1465,
            "y": 640
          }
        },
        "flowElementId": "93121E6B-9801-4172-94CC-71E85B2E3F23",
        "groupId": null,
        "id": "8822118B-2AE0-4142-BF52-26DA6F6AC900",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Ops decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the ops lead's answer",
        "nextElementIds": [
          "110F5000-E34F-4C85-962C-A163E90490D0"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Places an order on hold until a specified date. On the hold-until date the order automatically returns to the awaiting_shipment status.",
          "elementId": "EXTENSION:::SHARED:::default:::shipstation:::holdOrderUntil",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Hold the order Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shipstation:::holdOrderUntil",
          "legacyElementId": "JS###v1###ShipStation###holdOrderUntil",
          "methodName": "holdOrderUntil",
          "position": {
            "x": 1152,
            "y": 461
          }
        },
        "flowElementId": "57AF2125-BEA2-4AAB-A83D-E83E7EDB6672",
        "groupId": null,
        "id": "664EA8C2-25D8-489F-BA18-C04F21CAA28A",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "holdUntilDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Checks",
                    "subPathSegments": [
                      {
                        "key": "holdUntil",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "A97014D2-660F-4F29-A586-C8EDDC0107CA"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "holdOrderUntil",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Hold",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shipstation",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Hold the order",
        "nextElementIds": [
          "5C2D1146-0CE9-4944-96A8-F3CF872E20AE"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1482,
            "y": 470
          }
        },
        "flowElementId": "FAFC46CA-17D1-45D1-AAC0-27579959D432",
        "groupId": null,
        "id": "94AC8C65-6ACD-4A38-944F-6FE833F77A66",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "0e55b6db-5553-45ae-9660-492bac46d90e",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Checks",
                      "subPathSegments": [
                        {
                          "key": "hold",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "A97014D2-660F-4F29-A586-C8EDDC0107CA"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "0e55b6db-5553-45ae-9660-492bac46d90e"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Needs person",
          "storeResult": false,
          "thenComponent": {
            "componentId": "664EA8C2-25D8-489F-BA18-C04F21CAA28A",
            "componentType": "ELEMENT"
          }
        },
        "name": "Address needs a person?",
        "nextElementIds": [
          "664EA8C2-25D8-489F-BA18-C04F21CAA28A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a new order is created in ShipStation, optionally limited to a single store or order status. Orders are matched by their ShipStation creation date. Polling interval can be customized (minimum 30 seconds).",
          "elementId": "EXTENSION:::SHARED:::default:::shipstation:::onNewOrder",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::shipstation:::onNewOrder",
          "newElementId": "EXTENSION:::SHARED:::default:::shipstation:::onNewOrder",
          "legacyElementId": "JS###v1###ShipStation###onNewOrder",
          "methodName": "onNewOrder",
          "position": {
            "x": 110,
            "y": 161
          }
        },
        "flowElementId": "D4ED1A71-DC65-4CDD-BB68-7633021C666C",
        "groupId": null,
        "id": "01A1F5C5-B257-4731-BDCB-AE90453A1F17",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewOrder",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Order",
          "serviceId": "shipstation",
          "slaConditions": [],
          "staticData": {
            "orderStatus": "awaiting_shipment"
          },
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New order in ShipStation",
        "nextElementIds": [
          "160BD763-B7CC-4B9A-85EE-65FAAE80123E"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves the order tags configured in the ShipStation account, each with its numeric ID, name, and display color. Use this to discover the tag IDs accepted by Add Tag to Order and Remove Tag from Order.",
          "elementId": "EXTENSION:::SHARED:::default:::shipstation:::listTags",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Look up the hold tag Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shipstation:::listTags",
          "legacyElementId": "JS###v1###ShipStation###listTags",
          "methodName": "listTags",
          "position": {
            "x": 837,
            "y": 461
          }
        },
        "flowElementId": "0A9E048D-AE57-4EA8-AF36-FB8DE8D26D4C",
        "groupId": null,
        "id": "5C2D1146-0CE9-4944-96A8-F3CF872E20AE",
        "metaInfo": {
          "bodyParams": [],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listTags",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tags",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shipstation",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Look up the hold tag",
        "nextElementIds": [
          "88F85238-B9AC-4BE0-8853-441A12D996D8"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Restores an order from on-hold status back to awaiting_shipment immediately, regardless of any previously set hold-until date.",
          "elementId": "EXTENSION:::SHARED:::default:::shipstation:::restoreOrderFromHold",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Release the order Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shipstation:::restoreOrderFromHold",
          "legacyElementId": "JS###v1###ShipStation###restoreOrderFromHold",
          "methodName": "restoreOrderFromHold",
          "position": {
            "x": 1152,
            "y": 801
          }
        },
        "flowElementId": "676E9CFB-BCFB-41CF-8865-58ACE658F820",
        "groupId": null,
        "id": "7E07F164-480D-4915-ADCE-9B8F074B1555",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "restoreOrderFromHold",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Release",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shipstation",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Release the order",
        "nextElementIds": [
          "E44A7D2C-1A67-4167-BDBC-D662E2455D7B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for the ops lead Result"
          },
          "position": {
            "x": 440,
            "y": 470
          }
        },
        "flowElementId": "B8BC014D-C0CD-4681-ABBF-9C9E99E936B3",
        "groupId": null,
        "id": "88F85238-B9AC-4BE0-8853-441A12D996D8",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "orderNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "orderTotal",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "orderTotal",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "shipTo",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipTo",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "checks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Checks",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "A97014D2-660F-4F29-A586-C8EDDC0107CA"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tags",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Tags",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "5C2D1146-0CE9-4944-96A8-F3CF872E20AE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "holdTag",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Hold tag",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Hold tag"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst s = shipTo || {};\nconst typed = [s.street1, s.street2, `${s.city || ''}, ${s.state || ''} ${s.postalCode || ''}`].filter(Boolean).join(', ');\nconst total = Number(orderTotal || 0).toFixed(2);\nconst lines = [\n  `*Order ${orderNumber} is on hold for an address check*`,\n  `${s.name || 'Customer'}, $${total}`,\n  `As entered: ${typed}`,\n  checks.standardized ? `RevAddress standardized it as: ${checks.standardized}` : null,\n  checks.score !== null && checks.score !== undefined ? `Trust score: ${checks.score}${checks.grade ? ' (' + checks.grade + ')' : ''}` : null,\n  checks.signals && checks.signals.length ? `Signals: ${checks.signals.join(', ')}` : null,\n  `Why it stopped: ${checks.reasons.join('; ')}`,\n  `On hold in ShipStation until ${checks.holdUntil}.`,\n].filter(Boolean);\nconst wanted = String(holdTag || '').trim().toLowerCase();\nconst found = (Array.isArray(tags) ? tags : []).find(t => String(t.name || '').trim().toLowerCase() === wanted);\nreturn {\n  text: `Order ${orderNumber} is on hold for an address check`,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Ship as entered' }, url: link('ship') },\n      { type: 'button', text: { type: 'plain_text', text: 'Keep on hold' }, url: link('hold') },\n    ] },\n  ],\n  tagId: found ? String(found.tagId) : '',\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Question card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the ops lead",
        "nextElementIds": [
          "518ECB71-0019-4C72-9A8A-ACF5C049F8F0"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 488,
            "y": 170
          }
        },
        "flowElementId": "F3BBC265-ECFD-4B80-8C36-432388BC492E",
        "groupId": null,
        "id": "160BD763-B7CC-4B9A-85EE-65FAAE80123E",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "c5b73b9e-cb8b-4a1f-8797-6044dfa428da",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Order",
                      "subPathSegments": [
                        {
                          "key": "shipTo",
                          "optional": false
                        },
                        {
                          "key": "country",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "US"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "c5b73b9e-cb8b-4a1f-8797-6044dfa428da"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "US check",
          "storeResult": false,
          "thenComponent": {
            "componentId": "5426A544-2844-4D6A-AC5B-6C68A04C4117",
            "componentType": "ELEMENT"
          }
        },
        "name": "US address?",
        "nextElementIds": [
          "5426A544-2844-4D6A-AC5B-6C68A04C4117"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Standardizes a US address. Without paid USPS access the result is standardized against Census data and carries resolution.classification standardized_unverified and degraded true: it is not a USPS delivery-point (DPV) confirmation. With a paid plan and credits it includes the ZIP+4 and DPV flags.",
          "elementId": "EXTENSION:::SHARED:::default:::revaddress:::validateAddress",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Validate the address Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::revaddress:::validateAddress",
          "legacyElementId": null,
          "methodName": "validateAddress",
          "position": {
            "x": 836,
            "y": 161
          }
        },
        "flowElementId": "2103AECA-1398-4645-ABBC-25E80F9950A9",
        "groupId": null,
        "id": "5426A544-2844-4D6A-AC5B-6C68A04C4117",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "streetAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipTo",
                        "optional": false
                      },
                      {
                        "key": "street1",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "secondaryAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipTo",
                        "optional": false
                      },
                      {
                        "key": "street2",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "city",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipTo",
                        "optional": false
                      },
                      {
                        "key": "city",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "state",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipTo",
                        "optional": false
                      },
                      {
                        "key": "state",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "ZIPCode",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipTo",
                        "optional": false
                      },
                      {
                        "key": "postalCode",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "validateAddress",
          "onFailElemId": "20C9500F-1C4B-4AB6-849B-952049BAA739",
          "packageId": "default",
          "resultAlias": "Validation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "revaddress",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Validate the address",
        "nextElementIds": [
          "4E2C16D2-474C-4343-A0DD-416FB7EA0B67"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Scores how trustworthy a US address is, from 0 to 100 with a letter grade, and lists each risk signal that cost points (inexact match, high tract vacancy, low ownership, small tract). Paid plans add USPS signals. Route automation on the numeric score.",
          "elementId": "EXTENSION:::SHARED:::default:::revaddress:::scoreAddressIntelligence",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Score the address Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::revaddress:::scoreAddressIntelligence",
          "legacyElementId": null,
          "methodName": "scoreAddressIntelligence",
          "position": {
            "x": 1152,
            "y": 161
          }
        },
        "flowElementId": "862D9EC4-9E7C-4E0D-A70D-8CF65111C148",
        "groupId": null,
        "id": "4E2C16D2-474C-4343-A0DD-416FB7EA0B67",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "streetAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Validation",
                    "subPathSegments": [
                      {
                        "key": "address",
                        "optional": false
                      },
                      {
                        "key": "streetAddress",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5426A544-2844-4D6A-AC5B-6C68A04C4117"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "city",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Validation",
                    "subPathSegments": [
                      {
                        "key": "address",
                        "optional": false
                      },
                      {
                        "key": "city",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5426A544-2844-4D6A-AC5B-6C68A04C4117"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "state",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Validation",
                    "subPathSegments": [
                      {
                        "key": "address",
                        "optional": false
                      },
                      {
                        "key": "state",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5426A544-2844-4D6A-AC5B-6C68A04C4117"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "ZIPCode",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Validation",
                    "subPathSegments": [
                      {
                        "key": "address",
                        "optional": false
                      },
                      {
                        "key": "ZIPCode",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5426A544-2844-4D6A-AC5B-6C68A04C4117"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "scoreAddressIntelligence",
          "onFailElemId": "3E95DBA1-853F-4507-9211-34FE17C76062",
          "packageId": "default",
          "resultAlias": "Trust",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "revaddress",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Score the address",
        "nextElementIds": [
          "A97014D2-660F-4F29-A586-C8EDDC0107CA"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm the release Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 837,
            "y": 801
          }
        },
        "flowElementId": "565CE7F9-8DBE-4224-B37B-3CB1B1AB63EF",
        "groupId": null,
        "id": "E44A7D2C-1A67-4167-BDBC-D662E2455D7B",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Released. Order "
                  },
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "01A1F5C5-B257-4731-BDCB-AE90453A1F17"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " is back in Awaiting Shipment in ShipStation and ships to the address as entered."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to ops lead",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6C8DD8D1-2A79-495B-B2D8-41259CEA827B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Release confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the release",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "01A1F5C5-B257-4731-BDCB-AE90453A1F17",
    "groups": [],
    "id": "027E7DDD-822C-4E71-88B4-46C7E8A96994",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "The URL of the block Wait for the ops lead's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "Orders whose RevAddress trust score is below this go on hold for the ops lead.",
          "error": null,
          "name": "Lowest score to ship",
          "type": "INT",
          "value": ""
        },
        {
          "description": "How long a held order stays on hold in ShipStation if nobody answers.",
          "error": null,
          "name": "Days to hold",
          "type": "INT",
          "value": ""
        },
        {
          "description": "Name of the ShipStation order tag put on held orders. Create it in ShipStation first; if it does not exist the order is held untagged.",
          "error": null,
          "name": "Hold tag",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T01:40:48.105Z"
}
