{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "DFD11E2A-39C0-4FE8-8630-A8F4901643BC",
    "name": "Shippo: cheapest label for each new order"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 99.19808212866383,
        "y": -25.165119890760707,
        "zoom": 0.5
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When a WooCommerce order comes in for an address in your country, validates the address in Shippo, weighs the order, compares carrier rates, buys the cheapest label that arrives in time, and writes the tracking number back to the order.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a WooCommerce order comes in for an address in your country, validates the address in Shippo, weighs the order, compares carrier rates, buys the cheapest label that arrives in time, and writes the tracking number back to the order.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Order weight": "f34a662d-b035-441c-a23a-67d3a1fd6919"
          },
          "position": {
            "x": 696.5808078073854,
            "y": 389.4306828460367
          }
        },
        "flowElementId": "878A5ED3-8234-4CD4-9DEC-A53814F0866E",
        "groupId": null,
        "id": "95C321A3-3B5C-4C51-BC04-2E8B886FB32D",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Order weight",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "d1",
          "storeResult": true
        },
        "name": "Start the order weight at zero",
        "nextElementIds": [],
        "nextGroupIds": [
          "52F5E0C4-10E2-4D71-9128-58A1F1CAB851"
        ],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "notes": "Adds a note to an order. Mark it as a customer note to email it to the buyer, or leave it private for staff. Use for fulfillment updates or internal remarks.",
          "elementId": "EXTENSION:::SHARED:::default:::woocommerce:::createOrderNote",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Flag the order for a manual label Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::woocommerce:::createOrderNote",
          "legacyElementId": "JS###v1###WooCommerce###createOrderNote",
          "methodName": "createOrderNote",
          "position": {
            "x": 1017.9418724691791,
            "y": 907.075540752503
          }
        },
        "flowElementId": "354F8394-81B6-4579-B98D-CDE32CA7A954",
        "groupId": null,
        "id": "DC185F93-5281-4B40-B679-47B0A7FCA4AD",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "note",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "No Shippo label was bought for this order. Either no carrier rate arrives within "
                  },
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Most days in transit",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Most days in transit"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " days or Shippo turned the purchase down. Buy the label by hand in Shippo."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customerNote",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "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": "createOrderNote",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Manual label note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "woocommerce",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Flag the order for a manual label",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 402.59547753387835,
            "y": 255.1909550677567
          }
        },
        "flowElementId": "9D18DBB7-7119-4BF4-B7D2-7096F88BD5A4",
        "groupId": null,
        "id": "A42EA6BB-EDF3-4D82-B6AB-0315CA75A73C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "263620b3-69cf-4005-9380-2e8c3dfe5bd3",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Order",
                      "subPathSegments": [
                        {
                          "key": "shipping",
                          "optional": false
                        },
                        {
                          "key": "country",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Home country",
                        "subPathSegments": null,
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Home country"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "263620b3-69cf-4005-9380-2e8c3dfe5bd3"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Domestic check",
          "storeResult": false,
          "thenComponent": {
            "componentId": "B962FB5D-2322-4774-9F31-B4BF2E436016",
            "componentType": "ELEMENT"
          }
        },
        "name": "Ships within your country?",
        "nextElementIds": [
          "B962FB5D-2322-4774-9F31-B4BF2E436016"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Validates an existing address against carrier databases and returns validation_results indicating whether the address is deliverable.",
          "elementId": "EXTENSION:::SHARED:::default:::shippo:::validateAddress",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Validate the address Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shippo:::validateAddress",
          "legacyElementId": "JS###v1###Shippo###validateAddress",
          "methodName": "validateAddress",
          "position": {
            "x": 1099.2187206376682,
            "y": 243.31483809508404
          }
        },
        "flowElementId": "A9C5BF76-E740-4A8A-AA64-333FED4E7BD6",
        "groupId": null,
        "id": "A2FB2599-CDCC-45D4-ABAB-23FE5FDF9C62",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "addressId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Destination",
                    "subPathSegments": [
                      {
                        "key": "object_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "validateAddress",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Address check",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shippo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Validate the address",
        "nextElementIds": [
          "BB0124CF-10F5-4EF4-AF0D-466B3BC1BF6F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves a single product by ID, including price, stock, and category data. Pick the product from the dropdown instead of pasting an ID.",
          "elementId": "EXTENSION:::SHARED:::default:::woocommerce:::getProduct",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the product Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::woocommerce:::getProduct",
          "legacyElementId": "JS###v1###WooCommerce###getProduct",
          "methodName": "getProduct",
          "position": {
            "x": 110,
            "y": 430
          }
        },
        "flowElementId": "D8375681-E19F-491F-8FA2-6189F87A8D39",
        "groupId": "52F5E0C4-10E2-4D71-9128-58A1F1CAB851",
        "id": "25EA947C-A67A-4A3B-8831-FB32D10D3D6C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "productId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "product_id",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "52F5E0C4-10E2-4D71-9128-58A1F1CAB851"
                  }
                ],
                "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": "getProduct",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Product",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "woocommerce",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the product",
        "nextElementIds": [
          "BAC7F00A-7310-43BD-8A61-F0B6827E161C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a note to an order. Mark it as a customer note to email it to the buyer, or leave it private for staff. Use for fulfillment updates or internal remarks.",
          "elementId": "EXTENSION:::SHARED:::default:::woocommerce:::createOrderNote",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send tracking to the customer Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::woocommerce:::createOrderNote",
          "legacyElementId": "JS###v1###WooCommerce###createOrderNote",
          "methodName": "createOrderNote",
          "position": {
            "x": 1338.191872469179,
            "y": 1121.075540752503
          }
        },
        "flowElementId": "6AA23EB3-DC44-47E7-9D42-C0F6FE160E23",
        "groupId": null,
        "id": "EE8AAB34-491F-426F-9BF0-7C48B1944BD6",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "note",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Your order is on its way with "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "carrier",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". Tracking number "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label",
                    "subPathSegments": [
                      {
                        "key": "tracking_number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0F65B934-47A3-46E8-9286-54BF1CF30152"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". Track it here: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label",
                    "subPathSegments": [
                      {
                        "key": "tracking_url_provider",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0F65B934-47A3-46E8-9286-54BF1CF30152"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customerNote",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "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": "createOrderNote",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tracking note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "woocommerce",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send tracking to the customer",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Build the parcel Result"
          },
          "position": {
            "x": 108.95036247055063,
            "y": 395.2656627573491
          }
        },
        "flowElementId": "E0F2AD09-4406-413F-947F-5F6D9A6B5C18",
        "groupId": null,
        "id": "DCF9FB28-92C5-4EB4-A73E-73BB9857924E",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "box",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Box",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Box"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "itemsWeight",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Order weight",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Order weight",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Order weight",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const b = typeof box === 'string' ? JSON.parse(box) : box;\nconst massUnit = String(b.weight_unit || 'lb').toLowerCase().replace(/s$/, '');\nconst weight = (Number(itemsWeight) || 0) + (Number(b.empty_box_weight) || 0);\nreturn {\n  weight,\n  parcels: [{\n    length: String(b.length),\n    width: String(b.width),\n    height: String(b.height),\n    distance_unit: b.distance_unit || 'in',\n    weight: String(Math.round(weight * 100) / 100),\n    mass_unit: massUnit,\n  }],\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Parcel",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Build the parcel",
        "nextElementIds": [
          "FCB2EBBA-64DF-4AD9-9018-B250F9550770"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Purchases a shipping label from a previously calculated rate. Returns a transaction containing the label_url, tracking_number and tracking_url_provider when status is SUCCESS.",
          "elementId": "EXTENSION:::SHARED:::default:::shippo:::createTransaction",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Buy the label Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shippo:::createTransaction",
          "legacyElementId": "JS###v1###Shippo###createTransaction",
          "methodName": "createTransaction",
          "position": {
            "x": 525.9418724691791,
            "y": 899.075540752503
          }
        },
        "flowElementId": "FDB4EFB8-64BA-4E82-8653-CCB866FD5413",
        "groupId": null,
        "id": "0F65B934-47A3-46E8-9286-54BF1CF30152",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "rateId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "rateId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "labelFileType",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "metadata",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "async",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "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": "createTransaction",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Label",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shippo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Buy the label",
        "nextElementIds": [
          "06C595EC-A8E5-44FA-9C51-BA8946632131"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a note to an order. Mark it as a customer note to email it to the buyer, or leave it private for staff. Use for fulfillment updates or internal remarks.",
          "elementId": "EXTENSION:::SHARED:::default:::woocommerce:::createOrderNote",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Save the label on the order Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::woocommerce:::createOrderNote",
          "legacyElementId": "JS###v1###WooCommerce###createOrderNote",
          "methodName": "createOrderNote",
          "position": {
            "x": 1009.9418724691791,
            "y": 1132.325540752503
          }
        },
        "flowElementId": "E997A81F-07E8-4326-8770-5A5FC2AA40B9",
        "groupId": null,
        "id": "BB11DB81-5B6A-441E-9113-D159941310D5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "note",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Shippo label bought: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "carrier",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "service",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "amount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "currency",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", cheapest of "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cheapest rate",
                    "subPathSegments": [
                      {
                        "key": "ratesChecked",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " rates. Tracking number "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label",
                    "subPathSegments": [
                      {
                        "key": "tracking_number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0F65B934-47A3-46E8-9286-54BF1CF30152"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". Print the label: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label",
                    "subPathSegments": [
                      {
                        "key": "label_url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0F65B934-47A3-46E8-9286-54BF1CF30152"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customerNote",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "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": "createOrderNote",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Label note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "woocommerce",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Save the label on the order",
        "nextElementIds": [
          "EE8AAB34-491F-426F-9BF0-7C48B1944BD6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a new order is placed in the store. Use to kick off fulfillment, send confirmations, or sync the sale to another system in real time.",
          "elementId": "EXTENSION:::SHARED:::default:::woocommerce:::onOrderCreated",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::woocommerce:::onOrderCreated",
          "legacyElementId": "JS###v1###WooCommerce###onOrderCreated",
          "methodName": "onOrderCreated",
          "position": {
            "x": 110,
            "y": 250
          }
        },
        "flowElementId": "3AB9508E-9457-4886-9D30-5531BA17E12E",
        "groupId": null,
        "id": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onOrderCreated",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Order",
          "scope": "SINGLE_APP",
          "serviceId": "woocommerce",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New WooCommerce order",
        "nextElementIds": [
          "A42EA6BB-EDF3-4D82-B6AB-0315CA75A73C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 529.9418724691791,
            "y": 1033.075540752503
          }
        },
        "flowElementId": "F72D4322-7B17-455A-B0ED-BEBC1C4D5312",
        "groupId": null,
        "id": "06C595EC-A8E5-44FA-9C51-BA8946632131",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e5358713-7ed4-48e8-a5b1-a2c7f0d9b65d",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Label",
                      "subPathSegments": [
                        {
                          "key": "status",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "0F65B934-47A3-46E8-9286-54BF1CF30152"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "SUCCESS"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "e5358713-7ed4-48e8-a5b1-a2c7f0d9b65d"
            ]
          },
          "elseComponent": {
            "componentId": "DC185F93-5281-4B40-B679-47B0A7FCA4AD",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Label ok",
          "storeResult": false,
          "thenComponent": {
            "componentId": "BB11DB81-5B6A-441E-9113-D159941310D5",
            "componentType": "ELEMENT"
          }
        },
        "name": "Label bought?",
        "nextElementIds": [
          "DC185F93-5281-4B40-B679-47B0A7FCA4AD",
          "BB11DB81-5B6A-441E-9113-D159941310D5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new address record in your Shippo account. When validation is enabled Shippo immediately validates the address and returns the validation_results object alongside the saved address.",
          "elementId": "EXTENSION:::SHARED:::default:::shippo:::createAddress",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the shipping address to Shippo Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shippo:::createAddress",
          "legacyElementId": "JS###v1###Shippo###createAddress",
          "methodName": "createAddress",
          "position": {
            "x": 762.4225873032565,
            "y": 244.42903174590333
          }
        },
        "flowElementId": "E207149F-A776-456F-BC6E-D74B191F8AE6",
        "groupId": null,
        "id": "B962FB5D-2322-4774-9F31-B4BF2E436016",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "first_name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "last_name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "company",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "company",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "street1",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "address_1",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "street2",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "address_2",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "street3",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "city",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "city",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "state",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "state",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "zip",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "postcode",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "country",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "shipping",
                        "optional": false
                      },
                      {
                        "key": "country",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "phone",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "billing",
                        "optional": false
                      },
                      {
                        "key": "phone",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "billing",
                        "optional": false
                      },
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "isResidential",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "validate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "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": "createAddress",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Destination",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shippo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the shipping address to Shippo",
        "nextElementIds": [
          "A2FB2599-CDCC-45D4-ABAB-23FE5FDF9C62"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a note to an order. Mark it as a customer note to email it to the buyer, or leave it private for staff. Use for fulfillment updates or internal remarks.",
          "elementId": "EXTENSION:::SHARED:::default:::woocommerce:::createOrderNote",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Flag the bad address on the order Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::woocommerce:::createOrderNote",
          "legacyElementId": "JS###v1###WooCommerce###createOrderNote",
          "methodName": "createOrderNote",
          "position": {
            "x": 1066.9117362840382,
            "y": 540.2002768045211
          }
        },
        "flowElementId": "7D20E099-F2E9-4FED-9909-780817B647A3",
        "groupId": null,
        "id": "D73D106B-3278-4A35-B552-3299D672A224",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "note",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Shippo could not validate the shipping address, so no label was bought. Check the address with the customer and buy the label by hand in Shippo."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customerNote",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "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": "createOrderNote",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Address note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "woocommerce",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Flag the bad address on the order",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": true,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Order weight"
          },
          "position": {
            "x": 400,
            "y": 430
          }
        },
        "flowElementId": "7078769B-B3E1-4C06-98AC-FDDB02D50CA0",
        "groupId": "52F5E0C4-10E2-4D71-9128-58A1F1CAB851",
        "id": "BAC7F00A-7310-43BD-8A61-F0B6827E161C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "total",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Order weight",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Order weight",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Order weight",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "weight",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Product",
                    "subPathSegments": [
                      {
                        "key": "weight",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "25EA947C-A67A-4A3B-8831-FB32D10D3D6C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "quantity",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "quantity",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "52F5E0C4-10E2-4D71-9128-58A1F1CAB851"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const unitWeight = parseFloat(weight) || 0;\nconst count = Number(quantity) || 1;\nreturn (Number(total) || 0) + unitWeight * count;"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Running weight",
          "retryPolicy": null,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Order weight"
          },
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Add the item's weight",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 767.9418724691791,
            "y": 697.075540752503
          }
        },
        "flowElementId": "ABE9A652-71E8-475D-8ED2-919BA6992B3C",
        "groupId": null,
        "id": "555E609C-85A6-450F-A64A-9DF9437C558F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "feea4f11-2c91-46f7-8084-fd860bd34a5d",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Cheapest rate",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "feea4f11-2c91-46f7-8084-fd860bd34a5d"
            ]
          },
          "elseComponent": {
            "componentId": "DC185F93-5281-4B40-B679-47B0A7FCA4AD",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Rate found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "0F65B934-47A3-46E8-9286-54BF1CF30152",
            "componentType": "ELEMENT"
          }
        },
        "name": "Rate that arrives in time?",
        "nextElementIds": [
          "DC185F93-5281-4B40-B679-47B0A7FCA4AD",
          "0F65B934-47A3-46E8-9286-54BF1CF30152"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a shipment from existing addresses and parcels (or inline address/parcel objects) and triggers Shippo to fetch live rates from your connected carriers. Pass async=true to defer rate fetching for large shipments.",
          "elementId": "EXTENSION:::SHARED:::default:::shippo:::createShipment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Create the shipment Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shippo:::createShipment",
          "legacyElementId": "JS###v1###Shippo###createShipment",
          "methodName": "createShipment",
          "position": {
            "x": 100.64150704530567,
            "y": 557.1187953088188
          }
        },
        "flowElementId": "0C7B15BD-5EFF-4FFE-8CD6-BF8081B12919",
        "groupId": null,
        "id": "FCB2EBBA-64DF-4AD9-9018-B250F9550770",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "parcels",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcels",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DCF9FB28-92C5-4EB4-A73E-73BB9857924E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customsDeclaration",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "async",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "addressFrom",
              "type": "OBJECT",
              "value": [
                {
                  "name": "name",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "name",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "company",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "company",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "street1",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "street1",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "street2",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "street2",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "city",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "city",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "state",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "state",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "zip",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "zip",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "country",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "country",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "phone",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "phone",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "email",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "PLACEHOLDER_DATA",
                        "label": "Ship-from address",
                        "subPathSegments": [
                          {
                            "key": "email",
                            "optional": false
                          }
                        ],
                        "type": "EXECUTION_CONTEXT_STATIC_DATA",
                        "value": "Ship-from address"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                }
              ]
            },
            {
              "name": "addressTo",
              "type": "OBJECT",
              "value": [
                {
                  "name": "name",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "name",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "company",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "company",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "street1",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "street1",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "street2",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "street2",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "city",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "city",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "state",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "state",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "zip",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "zip",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "country",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "country",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "phone",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "phone",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "email",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Destination",
                        "subPathSegments": [
                          {
                            "key": "email",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "B962FB5D-2322-4774-9F31-B4BF2E436016"
                      }
                    ],
                    "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": null,
          "packageId": "default",
          "resultAlias": "Shipment",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shippo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Create the shipment",
        "nextElementIds": [
          "98303D36-D469-4EAF-B6FC-C65DEC3F7DB3"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Returns the rates for a shipment, optionally converted to a different currency.",
          "elementId": "EXTENSION:::SHARED:::default:::shippo:::getShipmentRates",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the carrier rates Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::shippo:::getShipmentRates",
          "legacyElementId": "JS###v1###Shippo###getShipmentRates",
          "methodName": "getShipmentRates",
          "position": {
            "x": 418.1857841715305,
            "y": 558.8099398835739
          }
        },
        "flowElementId": "04F054AC-EBE6-45F9-9F86-AF50A60EC5DF",
        "groupId": null,
        "id": "98303D36-D469-4EAF-B6FC-C65DEC3F7DB3",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "shipmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "object_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FCB2EBBA-64DF-4AD9-9018-B250F9550770"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "currencyCode",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "page",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "results",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 100
                  }
                ],
                "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": "getShipmentRates",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Rates",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "shippo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the carrier rates",
        "nextElementIds": [
          "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Pick the cheapest rate Result"
          },
          "position": {
            "x": 762.0237961948158,
            "y": 567.265662757349
          }
        },
        "flowElementId": "CE1548E3-2CF3-4035-B3E5-8E798355D015",
        "groupId": null,
        "id": "D5D7A039-F31F-41B2-9F5D-2E6D08AF7C73",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "rates",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rates",
                    "subPathSegments": [
                      {
                        "key": "results",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "98303D36-D469-4EAF-B6FC-C65DEC3F7DB3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "maxDays",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Most days in transit",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Most days in transit"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const list = Array.isArray(rates) ? rates : [];\nconst limit = Number(maxDays);\nconst fits = list.filter(r => r.estimated_days != null && Number(r.estimated_days) <= limit);\nfits.sort((a, b) => Number(a.amount) - Number(b.amount));\nconst best = fits[0];\nif (!best) return { found: false, ratesChecked: list.length };\nreturn {\n  found: true,\n  rateId: best.object_id,\n  carrier: best.provider,\n  service: (best.servicelevel && best.servicelevel.name) || best.servicelevel_name || '',\n  amount: best.amount,\n  currency: best.currency,\n  days: Number(best.estimated_days),\n  ratesChecked: list.length,\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Cheapest rate",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pick the cheapest rate",
        "nextElementIds": [
          "555E609C-85A6-450F-A64A-9DF9437C558F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1101.0263907996411,
            "y": 387.01505539254225
          }
        },
        "flowElementId": "E0206BB9-6D86-44C6-85DB-D7EB89BFDE38",
        "groupId": null,
        "id": "BB0124CF-10F5-4EF4-AF0D-466B3BC1BF6F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "b6c30dff-fee9-4158-be20-6111f9f2b250",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Address check",
                      "subPathSegments": [
                        {
                          "key": "validation_results",
                          "optional": false
                        },
                        {
                          "key": "is_valid",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "A2FB2599-CDCC-45D4-ABAB-23FE5FDF9C62"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "b6c30dff-fee9-4158-be20-6111f9f2b250"
            ]
          },
          "elseComponent": {
            "componentId": "D73D106B-3278-4A35-B552-3299D672A224",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Deliverable",
          "storeResult": false,
          "thenComponent": {
            "componentId": "95C321A3-3B5C-4C51-BC04-2E8B886FB32D",
            "componentType": "ELEMENT"
          }
        },
        "name": "Address deliverable?",
        "nextElementIds": [
          "95C321A3-3B5C-4C51-BC04-2E8B886FB32D",
          "D73D106B-3278-4A35-B552-3299D672A224"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 404.6177108504899,
            "y": 395.04753050121155
          }
        },
        "flowElementId": "CD4A9A3F-10FC-4F68-9828-DE4E82B284CE",
        "groupId": null,
        "id": "52F5E0C4-10E2-4D71-9128-58A1F1CAB851",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "enabled": true,
          "firstElementId": "25EA947C-A67A-4A3B-8831-FB32D10D3D6C",
          "list": {
            "expression": [
              {
                "id": "RESULT",
                "label": "Order",
                "subPathSegments": [
                  {
                    "key": "line_items",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "CE6B6CAD-4E1A-4FCF-9DBA-E0C3E9B77654"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "l1",
          "storeResult": true
        },
        "name": "Weigh each item",
        "nextElementIds": [
          "DCF9FB28-92C5-4EB4-A73E-73BB9857924E"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      }
    ],
    "id": "C9DD0A50-ED01-45A2-B073-50C7F2A1F9E2",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "The address your parcels ship from, with the fields name, company, street1, street2, city, state, zip, country (two letters), phone and email.",
          "error": null,
          "name": "Ship-from address",
          "type": "OBJECT",
          "value": ""
        },
        {
          "description": "Two-letter code of the country you ship from. Orders to other countries are left for the customs flow.",
          "error": null,
          "name": "Home country",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "Your standard shipping box: its size, the unit of the size, the weight unit your WooCommerce store uses, and what the empty box and packing weigh.",
          "error": null,
          "name": "Box",
          "type": "OBJECT",
          "value": ""
        },
        {
          "description": "Only rates that arrive within this many days count when the flow picks the cheapest one.",
          "error": null,
          "name": "Most days in transit",
          "type": "INT",
          "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-17T05:55:27.720Z"
}
