{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "582CDC1B-74E9-47EE-A04A-F35081DFC362",
    "name": "EasyPost: daily label batch with refunds"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 121.79834343704886,
        "y": 118.74030810116622,
        "zoom": 0.6524774738444803
      },
      "autoSave": true,
      "descriptions": {
        "flow": "Runs once a day on the ops order sheet. First it asks EasyPost to refund the postage on any order cancelled after its label was bought. Then it buys the cheapest label for every order marked Ready, gathers the labels into one EasyPost batch, makes a single label file and posts it to the warehouse in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Runs once a day on the ops order sheet. First it asks EasyPost to refund the postage on any order cancelled after its label was bought. Then it buys the cheapest label for every order marked Ready, gathers the labels into one EasyPost batch, makes a single label file and posts it to the warehouse in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 993.4085705063808,
            "y": 43.698693767182704
          }
        },
        "flowElementId": "578B8E05-9B8E-4749-A6C2-3C05AB896F69",
        "groupId": null,
        "id": "D850216A-E3CD-4701-9428-28349203B445",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "26d638b3-223f-4fe4-a5cf-6f6125079365",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Ready orders",
                      "subPathSegments": null,
                      "type": "ELEMENT_LINK",
                      "value": "1AB2702B-2FEC-442A-88E9-99E844471B95"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "26d638b3-223f-4fe4-a5cf-6f6125079365"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Orders ready",
          "storeResult": false,
          "thenComponent": {
            "componentId": "291B686D-6859-4921-8632-34955D546116",
            "componentType": "ELEMENT"
          }
        },
        "name": "Any orders ready?",
        "nextElementIds": [
          "291B686D-6859-4921-8632-34955D546116"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": true,
          "blockDefinitionId": "condition",
          "position": {
            "x": 110,
            "y": 220
          }
        },
        "flowElementId": "C4B5B1B2-72CA-40C1-863D-071EF540EB49",
        "groupId": "627C9A81-EB7A-4063-BC83-229D51481D65",
        "id": "66CFAC45-350E-45AA-974E-F142B8F17442",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "a86f3492-819b-4e85-ab49-8aee420dfd6a",
                "nestedOperation": null,
                "operation": "isNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                      "label": null,
                      "subPathSegments": [
                        {
                          "key": "rowData",
                          "optional": false
                        },
                        {
                          "key": "Shipment",
                          "optional": false
                        }
                      ],
                      "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                      "value": "627C9A81-EB7A-4063-BC83-229D51481D65"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "a86f3492-819b-4e85-ab49-8aee420dfd6a"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Label bought",
          "storeResult": false,
          "thenComponent": {
            "componentId": "21A7D214-B2F8-41CA-9684-475256058C96",
            "componentType": "ELEMENT"
          }
        },
        "name": "Label already bought?",
        "nextElementIds": [
          "21A7D214-B2F8-41CA-9684-475256058C96"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Finds a specific row in a specified sheet within a spreadsheet based on a column and value.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::findSheetRows",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "column": {
              "Status": "Status"
            }
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find orders ready to ship Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::findSheetRows",
          "legacyElementId": "JS###v1###GoogleSheets###findSheetRows",
          "methodName": "findSheetRows",
          "position": {
            "x": 670.4119701661592,
            "y": 34.59142949361919
          }
        },
        "flowElementId": "EA90889A-5FF1-4FBF-ABBF-AAD0C6320075",
        "groupId": null,
        "id": "1AB2702B-2FEC-442A-88E9-99E844471B95",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "column",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Status"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "value",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Ready"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "withRowNumbers",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Find orders ready to ship', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "findSheetRows",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Ready orders",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find orders ready to ship",
        "nextElementIds": [
          "D850216A-E3CD-4701-9428-28349203B445"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates existing data in Google Sheets for AI agents to modify records, correct information, or maintain data accuracy in automated workflows. Perfect for updating user profiles, adjusting scores, or maintaining dynamic data that changes over time.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Mark the order refunded Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "legacyElementId": "JS###v1###GoogleSheets###updateRow",
          "methodName": "updateRow",
          "position": {
            "x": 690,
            "y": 220
          }
        },
        "flowElementId": "7CA44054-11C8-4572-9EF4-873BF7E05FD8",
        "groupId": "627C9A81-EB7A-4063-BC83-229D51481D65",
        "id": "8ACC8A94-3E81-4690-83A9-E24AA877A51C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowNumber",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "627C9A81-EB7A-4063-BC83-229D51481D65"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowData",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "JSON",
                    "label": null,
                    "parsedValue": {
                      "Status": "Postage refund requested"
                    },
                    "type": "INPUT",
                    "value": "{\"Status\":\"Postage refund requested\"}"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Mark the order refunded', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Refund noted",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Mark the order refunded",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Finds a specific row in a specified sheet within a spreadsheet based on a column and value.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::findSheetRows",
          "isFirstElement": true,
          "dynamicOptionLabels": {
            "column": {
              "Status": "Status"
            }
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find cancelled orders Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::findSheetRows",
          "legacyElementId": "JS###v1###GoogleSheets###findSheetRows",
          "methodName": "findSheetRows",
          "position": {
            "x": 110,
            "y": 36.97276641406084
          }
        },
        "flowElementId": "8D62C087-08A3-4090-9019-EA917E1F63B8",
        "groupId": null,
        "id": "5A8B7C57-7DD5-4CEF-94DF-1B9B642FD389",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "column",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Status"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "value",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Cancelled"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "withRowNumbers",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Find cancelled orders', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "findSheetRows",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Cancelled orders",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find cancelled orders",
        "nextElementIds": [],
        "nextGroupIds": [
          "627C9A81-EB7A-4063-BC83-229D51481D65"
        ],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Requests a postage refund for a purchased shipment by its ID. USPS labels are refundable within 30 days if unscanned; UPS and FedEx within 90 days. The refund starts as \"submitted\" and the carrier confirms it asynchronously. Distinct from Create Refund, which refunds by carrier and tracking codes instead of a shipment ID.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::refundShipment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Refund the postage Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::refundShipment",
          "legacyElementId": "JS###v1###EasyPost###refundShipment",
          "methodName": "refundShipment",
          "position": {
            "x": 400,
            "y": 220
          }
        },
        "flowElementId": "2B41700C-97A4-478B-B47F-72BD273705C5",
        "groupId": "627C9A81-EB7A-4063-BC83-229D51481D65",
        "id": "21A7D214-B2F8-41CA-9684-475256058C96",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "shipmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "Shipment",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "627C9A81-EB7A-4063-BC83-229D51481D65"
                  }
                ],
                "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": "refundShipment",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Refund",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Refund the postage",
        "nextElementIds": [
          "8ACC8A94-3E81-4690-83A9-E24AA877A51C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves the details of a specific saved address by its ID.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::getAddress",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Load the ship-from address Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::getAddress",
          "legacyElementId": "JS###v1###EasyPost###getAddress",
          "methodName": "getAddress",
          "position": {
            "x": 501.39541954900557,
            "y": 247.3564143586189
          }
        },
        "flowElementId": "1E924B63-85A9-4C4E-90BF-0FCA54F5A19F",
        "groupId": null,
        "id": "291B686D-6859-4921-8632-34955D546116",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "addressId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Ship-from address ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Ship-from address ID"
                  }
                ],
                "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": "getAddress",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Ship-from",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Load the ship-from address",
        "nextElementIds": [
          "574C1CD6-062B-4E9D-8539-53AEFC3D8113"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new batch for processing multiple shipments together. Optionally adds shipments to the batch during creation.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::createBatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Start today's batch Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::createBatch",
          "legacyElementId": "JS###v1###EasyPost###createBatch",
          "methodName": "createBatch",
          "position": {
            "x": 831.0097512975966,
            "y": 250.32716046582885
          }
        },
        "flowElementId": "3F410B30-41B5-447C-B80F-835EB9541B14",
        "groupId": null,
        "id": "574C1CD6-062B-4E9D-8539-53AEFC3D8113",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "reference",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Daily batch "
                  },
                  {
                    "id": "GET_CURRENT_DATE",
                    "label": null,
                    "type": "GET_CURRENT_DATE_TIME",
                    "value": null
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "shipmentIds",
              "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": "createBatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Batch",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Start today's batch",
        "nextElementIds": [],
        "nextGroupIds": [
          "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
        ],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates existing data in Google Sheets for AI agents to modify records, correct information, or maintain data accuracy in automated workflows. Perfect for updating user profiles, adjusting scores, or maintaining dynamic data that changes over time.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Flag the order in the sheet Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "legacyElementId": "JS###v1###GoogleSheets###updateRow",
          "methodName": "updateRow",
          "position": {
            "x": 1270,
            "y": 600
          }
        },
        "flowElementId": "A5EE77B0-5AE7-4F0F-B98A-AE483CCB4440",
        "groupId": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "id": "4A20AD73-F4AD-4F5C-A0C9-1BCE4142A2D9",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowNumber",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowData",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "JSON",
                    "label": null,
                    "parsedValue": {
                      "Status": "Label failed, see the run history"
                    },
                    "type": "INPUT",
                    "value": "{\"Status\":\"Label failed, see the run history\"}"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Flag the order in the sheet', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Order flagged",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Flag the order in the sheet",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new shipment with inline from/to addresses and parcel details. Returns the shipment with available carrier rates for purchasing.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::createShipment",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get rates Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::createShipment",
          "legacyElementId": "JS###v1###EasyPost###createShipment",
          "methodName": "createShipment",
          "position": {
            "x": 110,
            "y": 540
          }
        },
        "flowElementId": "11A6A09F-49C1-41D4-86D0-79F1AD67F0A9",
        "groupId": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "id": "370E8EB7-5877-43DC-868D-429A741E9676",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "fromName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ship-from",
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "291B686D-6859-4921-8632-34955D546116"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromStreet1",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ship-from",
                    "subPathSegments": [
                      {
                        "key": "street1",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "291B686D-6859-4921-8632-34955D546116"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromCity",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ship-from",
                    "subPathSegments": [
                      {
                        "key": "city",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "291B686D-6859-4921-8632-34955D546116"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromState",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ship-from",
                    "subPathSegments": [
                      {
                        "key": "state",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "291B686D-6859-4921-8632-34955D546116"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromZip",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ship-from",
                    "subPathSegments": [
                      {
                        "key": "zip",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "291B686D-6859-4921-8632-34955D546116"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromCountry",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ship-from",
                    "subPathSegments": [
                      {
                        "key": "country",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "291B686D-6859-4921-8632-34955D546116"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "Name",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toStreet1",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "Street",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toCity",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "City",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toState",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "State",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toZip",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "ZIP",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toCountry",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "Country",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "weight",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "Weight",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "length",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "Length",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "width",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "Width",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "height",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      },
                      {
                        "key": "Height",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "predefinedPackage",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "labelFormat",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "carrierAccountId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customsInfoId",
              "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": "createShipment",
          "onFailElemId": "EB617000-C193-452A-9ED9-959A1823E4A9",
          "packageId": "default",
          "resultAlias": "Shipment",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get rates",
        "nextElementIds": [
          "7390FC8B-517D-464A-973F-A59B3DB8D126"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Purchases a shipping label for a shipment at the selected rate. This is the primary method for buying postage.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::buyShipment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Buy the label Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::buyShipment",
          "legacyElementId": "JS###v1###EasyPost###buyShipment",
          "methodName": "buyShipment",
          "position": {
            "x": 690,
            "y": 400
          }
        },
        "flowElementId": "9683718E-00AD-47F8-9A00-B0DF28EE403F",
        "groupId": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "id": "CF9D6D5C-46F8-4549-B853-0584673315C1",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "shipmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "370E8EB7-5877-43DC-868D-429A741E9676"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rateId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7390FC8B-517D-464A-973F-A59B3DB8D126"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "insurance",
              "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": "buyShipment",
          "onFailElemId": "EB617000-C193-452A-9ED9-959A1823E4A9",
          "packageId": "default",
          "resultAlias": "Label",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Buy the label",
        "nextElementIds": [
          "64FE3E2D-16B5-4C92-BB23-0A47CB324E29"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Label not bought Result"
          },
          "position": {
            "x": 980,
            "y": 600
          }
        },
        "flowElementId": "300DC5D9-7343-4265-9E4F-7E1CFA9C7313",
        "groupId": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "id": "EB617000-C193-452A-9ED9-959A1823E4A9",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Label error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Label not bought",
        "nextElementIds": [
          "4A20AD73-F4AD-4F5C-A0C9-1BCE4142A2D9"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Pick the cheapest rate Result"
          },
          "position": {
            "x": 400,
            "y": 470
          }
        },
        "flowElementId": "A949990B-7F19-44CF-8DCB-94561282629E",
        "groupId": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "id": "7390FC8B-517D-464A-973F-A59B3DB8D126",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "rates",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "rates",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "370E8EB7-5877-43DC-868D-429A741E9676"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const priced = (rates || []).filter(r => r && r.id && !isNaN(parseFloat(r.rate)));\nif (!priced.length) {\n  throw new Error('EasyPost returned no rates for this shipment. Check the address, the parcel size and the carriers on your EasyPost account.');\n}\npriced.sort((a, b) => parseFloat(a.rate) - parseFloat(b.rate));\nconst best = priced[0];\nreturn { id: best.id, carrier: best.carrier, service: best.service, rate: best.rate, deliveryDays: best.delivery_days };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": "EB617000-C193-452A-9ED9-959A1823E4A9",
          "resultAlias": "Cheapest rate",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pick the cheapest rate",
        "nextElementIds": [
          "CF9D6D5C-46F8-4549-B853-0584673315C1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Prepare the sheet update Result"
          },
          "position": {
            "x": 1270,
            "y": 310
          }
        },
        "flowElementId": "D772EBB3-8C30-4A86-B4F9-9FA8F1BF8560",
        "groupId": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "id": "204E578B-BDF4-4BF4-90BF-CE52185E35DD",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "shipmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "370E8EB7-5877-43DC-868D-429A741E9676"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "carrier",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "carrier",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7390FC8B-517D-464A-973F-A59B3DB8D126"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "service",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "service",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7390FC8B-517D-464A-973F-A59B3DB8D126"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "rate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7390FC8B-517D-464A-973F-A59B3DB8D126"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "trackingCode",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label",
                    "subPathSegments": [
                      {
                        "key": "tracking_code",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CF9D6D5C-46F8-4549-B853-0584673315C1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "labelUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label",
                    "subPathSegments": [
                      {
                        "key": "postage_label",
                        "optional": false
                      },
                      {
                        "key": "label_url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CF9D6D5C-46F8-4549-B853-0584673315C1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "return {\n  rowData: {\n    Status: 'Label bought',\n    Shipment: shipmentId,\n    Carrier: `${carrier} ${service}`,\n    Postage: rate,\n    Tracking: trackingCode,\n    Label: labelUrl,\n  },\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Sheet update",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Prepare the sheet update",
        "nextElementIds": [
          "3F2FC199-AF23-4BF0-B6AB-A7BE35A1C76F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds one or more shipments to an existing batch for bulk processing.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::addShipmentsToBatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the label to the batch Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::addShipmentsToBatch",
          "legacyElementId": "JS###v1###EasyPost###addShipmentsToBatch",
          "methodName": "addShipmentsToBatch",
          "position": {
            "x": 980,
            "y": 310
          }
        },
        "flowElementId": "A794DDA5-CE4F-4CE5-9768-3130559F0A31",
        "groupId": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "id": "64FE3E2D-16B5-4C92-BB23-0A47CB324E29",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "batchId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Batch",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "574C1CD6-062B-4E9D-8539-53AEFC3D8113"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "shipmentIds",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "370E8EB7-5877-43DC-868D-429A741E9676"
                  }
                ],
                "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": "addShipmentsToBatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Batch update",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the label to the batch",
        "nextElementIds": [
          "204E578B-BDF4-4BF4-90BF-CE52185E35DD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates existing data in Google Sheets for AI agents to modify records, correct information, or maintain data accuracy in automated workflows. Perfect for updating user profiles, adjusting scores, or maintaining dynamic data that changes over time.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the label to the row Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "legacyElementId": "JS###v1###GoogleSheets###updateRow",
          "methodName": "updateRow",
          "position": {
            "x": 1560,
            "y": 310
          }
        },
        "flowElementId": "63AE7E57-EE21-4282-8ED8-D8F99CFB1B21",
        "groupId": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "id": "3F2FC199-AF23-4BF0-B6AB-A7BE35A1C76F",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "rowNumber",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowData",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Sheet update",
                    "subPathSegments": [
                      {
                        "key": "rowData",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "204E578B-BDF4-4BF4-90BF-CE52185E35DD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Write the label to the row', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Row written",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Write the label to the row",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Generates a consolidated label document for all shipments in a purchased batch in the specified format.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::generateBatchLabel",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "labelFormat": {
              "PDF": "PDF"
            }
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Make one label file for the batch Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::generateBatchLabel",
          "legacyElementId": "JS###v1###EasyPost###generateBatchLabel",
          "methodName": "generateBatchLabel",
          "position": {
            "x": 504.45687931262523,
            "y": 454.19940960439203
          }
        },
        "flowElementId": "6BAEA018-3CA3-4C9A-B231-C0E2B84BDF47",
        "groupId": null,
        "id": "02124EAF-D75B-4AE1-AB99-3E08DF089D31",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "batchId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Batch",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "574C1CD6-062B-4E9D-8539-53AEFC3D8113"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "labelFormat",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "PDF"
                  }
                ],
                "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": "generateBatchLabel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Batch label request",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Make one label file for the batch",
        "nextElementIds": [
          "76E1F6B8-5A0B-46A2-BF92-0C23EA9B0C21"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Batch": "b28d5b01-cff6-4c27-9f88-00eb13a7efe0"
          },
          "position": {
            "x": 907.2696366729285,
            "y": 458.7215960221546
          }
        },
        "flowElementId": "E8D3B02A-3939-409F-B402-584C73810D93",
        "groupId": null,
        "id": "76E1F6B8-5A0B-46A2-BF92-0C23EA9B0C21",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Batch",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EMPTY_OBJECT",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "general.createObject()"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "bucket",
          "storeResult": true
        },
        "name": "Start the label check",
        "nextElementIds": [],
        "nextGroupIds": [
          "1F93615D-6BCF-4041-BF19-4C7F7B28E724"
        ],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves the full details of a specific batch, including its state and shipment information.",
          "elementId": "EXTENSION:::SHARED:::default:::easypost:::getBatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": true,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Batch"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easypost:::getBatch",
          "legacyElementId": "JS###v1###EasyPost###getBatch",
          "methodName": "getBatch",
          "position": {
            "x": 400,
            "y": 850
          }
        },
        "flowElementId": "76717F2C-D0D4-4896-830A-B4A7D1CD803C",
        "groupId": "1F93615D-6BCF-4041-BF19-4C7F7B28E724",
        "id": "1575A148-2437-4373-85F3-07941D5177DF",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "batchId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Batch",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "574C1CD6-062B-4E9D-8539-53AEFC3D8113"
                  }
                ],
                "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": "getBatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Batch status",
          "retryPolicy": null,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Batch"
          },
          "serviceId": "easypost",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Check the batch",
        "nextElementIds": [],
        "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,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the label file to the warehouse Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 852.2712405614027,
            "y": 649.709876739198
          }
        },
        "flowElementId": "510D2472-380A-45A4-A641-949F754CC44C",
        "groupId": null,
        "id": "AEF27387-9644-4842-B05B-D2C37703EB1F",
        "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": "Today's shipping labels are ready to print: "
                  },
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Batch",
                    "subPathSegments": [
                      {
                        "key": "num_shipments",
                        "optional": false
                      }
                    ],
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Batch",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Batch",
                        "optional": false
                      }
                    ]
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " labels in one file. "
                  },
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Batch",
                    "subPathSegments": [
                      {
                        "key": "label_url",
                        "optional": false
                      }
                    ],
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Batch",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Batch",
                        "optional": false
                      }
                    ]
                  }
                ],
                "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": "EXPRESSION",
                "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": "COMPLEX_LIST",
              "value": []
            }
          ],
          "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": "Warehouse message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the label file to the warehouse",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "wait",
          "isFirstElement": true,
          "blockDefinitionId": "wait",
          "mode": "SIMPLE",
          "position": {
            "x": 110,
            "y": 850
          }
        },
        "flowElementId": "961F5E8E-4289-4E7E-BF08-69476A3F69E8",
        "groupId": "1F93615D-6BCF-4041-BF19-4C7F7B28E724",
        "id": "2C181BC7-3A40-4407-B183-B62858143210",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "delay": {
            "expression": [
              {
                "id": "NUMBER",
                "label": null,
                "type": "INPUT",
                "value": 15
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": "DOUBLE"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "w",
          "storeResult": true
        },
        "name": "Give EasyPost 15 seconds",
        "nextElementIds": [
          "1575A148-2437-4373-85F3-07941D5177DF"
        ],
        "nextGroupIds": [],
        "type": "WAIT"
      }
    ],
    "firstElementId": "5A8B7C57-7DD5-4CEF-94DF-1B9B642FD389",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 385.7983451745183,
            "y": 45.6548754031173
          }
        },
        "flowElementId": "33D9B5CA-A110-4BD8-B10B-5E5A1913E161",
        "groupId": null,
        "id": "627C9A81-EB7A-4063-BC83-229D51481D65",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'For each cancelled order', Error: Children have error",
            "valid": false
          },
          "enabled": true,
          "firstElementId": "66CFAC45-350E-45AA-974E-F142B8F17442",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Cancelled orders",
                "subPathSegments": null,
                "type": "ELEMENT_LINK",
                "value": "5A8B7C57-7DD5-4CEF-94DF-1B9B642FD389"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "loop1",
          "storeResult": true
        },
        "name": "For each cancelled order",
        "nextElementIds": [
          "1AB2702B-2FEC-442A-88E9-99E844471B95"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      },
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 1143.2047772495305,
            "y": 252.40517084660235
          }
        },
        "flowElementId": "239199D7-C622-4D7E-9D8A-AB7CD28FFE96",
        "groupId": null,
        "id": "551593BD-079B-4CFF-A1A5-5ABDCD1856D6",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'For each order', Error: Children have error",
            "valid": false
          },
          "enabled": true,
          "firstElementId": "370E8EB7-5877-43DC-868D-429A741E9676",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Ready orders",
                "subPathSegments": null,
                "type": "ELEMENT_LINK",
                "value": "1AB2702B-2FEC-442A-88E9-99E844471B95"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "loop2",
          "storeResult": true
        },
        "name": "For each order",
        "nextElementIds": [
          "02124EAF-D75B-4AE1-AB99-3E08DF089D31"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      },
      {
        "clientMetadata": {
          "elementId": "repeat",
          "isFirstElement": false,
          "blockDefinitionId": "repeat",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 1201.2696366729285,
            "y": 444.7215960221546
          }
        },
        "flowElementId": "869AE0A7-F9CC-4B2A-9858-7D5EC3E660F9",
        "groupId": null,
        "id": "1F93615D-6BCF-4041-BF19-4C7F7B28E724",
        "loopType": "REPEAT",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "ee2f9381-7601-4c6e-86fb-f7f2efeac543",
                "nestedOperation": null,
                "operation": "isEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - Batch",
                      "subPathSegments": [
                        {
                          "key": "label_url",
                          "optional": false
                        }
                      ],
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.Batch",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "Batch",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              },
              {
                "id": "95228451-7644-4e6f-bfea-f8a7d687bf99",
                "nestedOperation": null,
                "operation": "isNull",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - Batch",
                      "subPathSegments": [
                        {
                          "key": "label_url",
                          "optional": false
                        }
                      ],
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.Batch",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "Batch",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "ee2f9381-7601-4c6e-86fb-f7f2efeac543",
              "OR",
              "95228451-7644-4e6f-bfea-f8a7d687bf99"
            ]
          },
          "enabled": true,
          "firstElementId": "2C181BC7-3A40-4407-B183-B62858143210",
          "maxIterations": 40,
          "onFailElemId": null,
          "resultAlias": "rep",
          "storeResult": true
        },
        "name": "Wait for the label file",
        "nextElementIds": [
          "AEF27387-9644-4842-B05B-D2C37703EB1F"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      }
    ],
    "id": "D2566549-803D-4660-9A2B-30DFB7620649",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "The EasyPost ID of the address you ship from (starts with adr_). Save your warehouse address in EasyPost once and paste its ID here.",
          "error": null,
          "name": "Ship-from address ID",
          "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-11-17T06:59:05.311Z"
}
