{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "DEA96960-963E-4B8E-8626-6396BE2BF84F",
    "name": "Easyship: rate-shopped label for each order"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 89.20408163265301,
        "y": 7.346938775510182,
        "zoom": 0.82
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When a WooCommerce order comes in, weighs it, compares Easyship courier rates, picks the cheapest for standard shipping or the fastest for expedited, creates the shipment and label, and posts the tracking number to Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a WooCommerce order comes in, weighs it, compares Easyship courier rates, picks the cheapest for standard shipping or the fastest for expedited, creates the shipment and label, and posts the tracking number to Slack.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Creates a new shipment in Easyship with origin, destination, parcels, and optional courier selection. Returns the new Easyship shipment ID, available rates (each with a nested courier_service), and the selected courier_service. For label generation, follow up with the Generate Labels action.",
          "elementId": "EXTENSION:::SHARED:::default:::easyship:::createShipment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Create the shipment Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easyship:::createShipment",
          "legacyElementId": "JS###v1###EasyshipService###createShipment",
          "methodName": "createShipment",
          "position": {
            "x": 110,
            "y": 230
          }
        },
        "flowElementId": "DD956839-125B-4835-B044-5021F6153B46",
        "groupId": null,
        "id": "76CC12B2-702A-4ECA-9548-EC144F0D9BBF",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "parcels",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcels",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "originAddressId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "courierServiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "courierServiceId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "incoterms",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "returnShipment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "originAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Ship-from address",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Ship-from address"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "destinationAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "destination",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "orderData",
              "type": "OBJECT",
              "value": [
                {
                  "name": "platform_order_number",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Parcel",
                        "subPathSegments": [
                          {
                            "key": "orderNumber",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "platform_name",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "WooCommerce"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "order_total",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Parcel",
                        "subPathSegments": [
                          {
                            "key": "orderTotal",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "order_total_currency",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Parcel",
                        "subPathSegments": [
                          {
                            "key": "currency",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                      }
                    ],
                    "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": "easyship",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Create the shipment",
        "nextElementIds": [
          "F322CC66-FAA6-489A-87F8-F3616E430B11"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 980,
            "y": 660
          }
        },
        "flowElementId": "3A163397-1A59-45AF-9C50-EE7CDCDF45C8",
        "groupId": null,
        "id": "C23031FF-547A-4AAA-B989-8C411C50573A",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "1c0d0289-7490-4600-9779-44f9fe94c507",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - Label batch",
                      "subPathSegments": [
                        {
                          "key": "state",
                          "optional": false
                        }
                      ],
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.Label batch",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "Label batch",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "processed"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "625b5fde-bec6-4fdd-a75e-fb90b5247f9a",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - Label batch",
                      "subPathSegments": [
                        {
                          "key": "failed_count",
                          "optional": false
                        }
                      ],
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.Label batch",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "Label batch",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 0
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "1c0d0289-7490-4600-9779-44f9fe94c507",
              "AND",
              "625b5fde-bec6-4fdd-a75e-fb90b5247f9a"
            ]
          },
          "elseComponent": {
            "componentId": "13C1E8E8-A39E-48F7-8042-344E4DE90A35",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Label ready",
          "storeResult": false,
          "thenComponent": {
            "componentId": "093AD3F0-1954-475B-BB9B-93D840E66B1A",
            "componentType": "ELEMENT"
          }
        },
        "name": "Label ready?",
        "nextElementIds": [
          "13C1E8E8-A39E-48F7-8042-344E4DE90A35",
          "093AD3F0-1954-475B-BB9B-93D840E66B1A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "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": 40
          }
        },
        "flowElementId": "7D9D7685-3EAB-4B0D-A746-99EEDCAF13F1",
        "groupId": null,
        "id": "729C5E98-A5A6-4ECC-9D16-AB41BF7F01D7",
        "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": [
          "9F3402EF-F99A-43A3-A0B5-767089357A68"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves the processing status of a batch by its ID, including its state (created, processing, processed, or failed) and per-item counts. Use it after Generate Labels to poll the returned batch until its state is \"processed\" or \"failed\", then inspect failures with List Batch Items.",
          "elementId": "EXTENSION:::SHARED:::default:::easyship:::getBatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the label batch Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easyship:::getBatch",
          "legacyElementId": "JS###v1###EasyshipService###getBatch",
          "methodName": "getBatch",
          "position": {
            "x": 400,
            "y": 40
          }
        },
        "flowElementId": "1DFEA1BD-2B3F-42BB-8B2F-483916AE726E",
        "groupId": "7F4B024C-5DD1-4BCA-85BE-7065C0717248",
        "id": "DF7DB713-4BF1-43EB-9996-0D870B4A1641",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "batchId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Label batch",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Label batch",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Label batch",
                        "optional": 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": "getBatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Batch status",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easyship",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Check the label batch",
        "nextElementIds": [
          "20B7BB31-81CB-449A-BD3D-7E56B0A24143"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Submits a batch label generation request for one or more shipments. Easyship processes label creation asynchronously and returns a batch envelope whose state moves created -> processing -> processed. Poll Get Batch Status with the returned batch.id until the state is 'processed', inspect failures with List Batch Items, then use Get Shipment to retrieve label URLs and tracking numbers.",
          "elementId": "EXTENSION:::SHARED:::default:::easyship:::generateLabels",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Generate the label Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easyship:::generateLabels",
          "legacyElementId": "JS###v1###EasyshipService###generateLabels",
          "methodName": "generateLabels",
          "position": {
            "x": 110,
            "y": 660
          }
        },
        "flowElementId": "3C0D269A-D03C-48EA-B8A0-2EC4753DAE96",
        "groupId": null,
        "id": "F322CC66-FAA6-489A-87F8-F3616E430B11",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "shipments",
              "type": "COMPLEX_LIST",
              "value": [
                {
                  "type": "OBJECT",
                  "value": [
                    {
                      "name": "easyship_shipment_id",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Shipment",
                            "subPathSegments": [
                              {
                                "key": "shipment",
                                "optional": false
                              },
                              {
                                "key": "easyship_shipment_id",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "76CC12B2-702A-4ECA-9548-EC144F0D9BBF"
                          }
                        ],
                        "mode": "EXPRESSION",
                        "parseJsonString": false,
                        "resultType": null
                      }
                    },
                    {
                      "name": "courier_service_id",
                      "type": "SIMPLE",
                      "value": {
                        "expression": [
                          {
                            "id": "ELEMENT_RESULT",
                            "label": "Chosen rate",
                            "subPathSegments": [
                              {
                                "key": "courierServiceId",
                                "optional": false
                              }
                            ],
                            "type": "ELEMENT_LINK",
                            "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                          }
                        ],
                        "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": "generateLabels",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Label request",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easyship",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Generate the label",
        "nextElementIds": [
          "7CBFF7AB-2552-41D3-9B63-4AD1491ED782"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves the full details of a specific shipment by its Easyship shipment ID, including addresses, parcels, the selected courier_service, label state, per-leg trackings, and pricing.",
          "elementId": "EXTENSION:::SHARED:::default:::easyship:::getShipment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the tracking number Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easyship:::getShipment",
          "legacyElementId": "JS###v1###EasyshipService###getShipment",
          "methodName": "getShipment",
          "position": {
            "x": 980,
            "y": 850
          }
        },
        "flowElementId": "38A5508D-609F-4094-A281-0EEE077EEE8D",
        "groupId": null,
        "id": "093AD3F0-1954-475B-BB9B-93D840E66B1A",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "easyshipShipmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "shipment",
                        "optional": false
                      },
                      {
                        "key": "easyship_shipment_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "76CC12B2-702A-4ECA-9548-EC144F0D9BBF"
                  }
                ],
                "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": "getShipment",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Shipment details",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easyship",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the tracking number",
        "nextElementIds": [
          "0719BE37-DE60-4823-97B5-D1EC1DE48A74"
        ],
        "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": 980,
            "y": 40
          }
        },
        "flowElementId": "65896D0D-C112-492B-B0E9-3C0F396BA5B3",
        "groupId": null,
        "id": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "order",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Order",
                    "subPathSegments": null,
                    "type": "TRIGGER_DATA",
                    "value": "729C5E98-A5A6-4ECC-9D16-AB41BF7F01D7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "items",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Parcel items",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Parcel items",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Parcel items",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "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": "category",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Item category",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Item category"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "expeditedWords",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Expedited shipping methods",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Expedited shipping methods"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const ship = order.shipping || {};\nconst bill = order.billing || {};\nconst lines = Array.isArray(order.shipping_lines) ? order.shipping_lines : [];\nconst method = lines.map(l => l.method_title || l.method_id || '').filter(Boolean).join(', ');\nconst words = String(expeditedWords || '').toLowerCase().split(',').map(w => w.trim()).filter(Boolean);\nconst expedited = words.some(w => method.toLowerCase().includes(w));\nconst currency = order.currency || 'USD';\nconst list = (Array.isArray(items) ? items : []).map(i => ({ ...i, declared_currency: currency, category }));\nconst itemsWeight = list.reduce((sum, i) => sum + i.actual_weight * i.quantity, 0);\nconst total = Math.max(0.01, Math.round((itemsWeight + (Number(box.empty_box_kg) || 0)) * 1000) / 1000);\nconst name = (a) => [a.first_name, a.last_name].filter(Boolean).join(' ');\nreturn {\n  orderNumber: String(order.number || order.id),\n  method: method || 'Standard',\n  expedited,\n  destination: {\n    contact_name: name(ship) || name(bill),\n    company_name: ship.company || undefined,\n    line_1: ship.address_1,\n    line_2: ship.address_2 || undefined,\n    city: ship.city,\n    state: ship.state || undefined,\n    postal_code: ship.postcode,\n    country_alpha2: ship.country,\n    contact_phone: ship.phone || bill.phone || undefined,\n    contact_email: bill.email || undefined,\n  },\n  parcels: [{\n    total_actual_weight: total,\n    box: { length: Number(box.length_cm), width: Number(box.width_cm), height: Number(box.height_cm) },\n    items: list,\n  }],\n  orderTotal: Number(order.total) || 0,\n  currency,\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": [
          "3058759F-09BE-42A4-9D26-F57CBD3411E4"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "wait",
          "isFirstElement": true,
          "blockDefinitionId": "wait",
          "mode": "SIMPLE",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "BB5BF66C-41B8-4B55-AF6F-DD0678DFDBCD",
        "groupId": "7F4B024C-5DD1-4BCA-85BE-7065C0717248",
        "id": "09306F73-07D6-4A82-8139-8FFC566348AD",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "delay": {
            "expression": [
              {
                "id": "NUMBER",
                "label": null,
                "type": "INPUT",
                "value": 10
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": "DOUBLE"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "wait10",
          "storeResult": true
        },
        "name": "Wait 10 seconds",
        "nextElementIds": [
          "DF7DB713-4BF1-43EB-9996-0D870B4A1641"
        ],
        "nextGroupIds": [],
        "type": "WAIT"
      },
      {
        "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": 400
          }
        },
        "flowElementId": "DEB5E1E3-4A8E-414A-A828-9EC5AD1D0C7A",
        "groupId": "713C0D9B-09C4-43AB-B8C6-A20442CCA559",
        "id": "28CF2202-6CD3-4878-A794-D470D3A174BD",
        "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": "713C0D9B-09C4-43AB-B8C6-A20442CCA559"
                  }
                ],
                "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": [
          "F35C8CBD-1049-46AA-86B6-EA133D6D77B1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 400,
            "y": 230
          }
        },
        "flowElementId": "FE0758D9-2712-43EB-AC49-CE1F6D619B61",
        "groupId": null,
        "id": "4D4D9AC0-1541-415D-B764-C111DFC6D1E5",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "28277b58-23b0-42c4-811e-74b1c876d984",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Chosen rate",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "28277b58-23b0-42c4-811e-74b1c876d984"
            ]
          },
          "elseComponent": {
            "componentId": "778122FE-3BF0-4C6E-B808-809F93BEDE9F",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Rate found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "76CC12B2-702A-4ECA-9548-EC144F0D9BBF",
            "componentType": "ELEMENT"
          }
        },
        "name": "Rate found?",
        "nextElementIds": [
          "76CC12B2-702A-4ECA-9548-EC144F0D9BBF",
          "778122FE-3BF0-4C6E-B808-809F93BEDE9F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Post tracking to fulfillment Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 690,
            "y": 850
          }
        },
        "flowElementId": "5AD4AEBF-5A44-4C52-849E-2E3A1B27B1F8",
        "groupId": null,
        "id": "0719BE37-DE60-4823-97B5-D1EC1DE48A74",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*Order "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " is labeled*"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Courier: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "courierName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "rule",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " of "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "ratesCompared",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " rates for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "method",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ")"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Cost: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "cost",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "currency",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "minDays",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " to "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "maxDays",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " days"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Tracking number: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment details",
                    "subPathSegments": [
                      {
                        "key": "shipment",
                        "optional": false
                      },
                      {
                        "key": "trackings",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "tracking_number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "093AD3F0-1954-475B-BB9B-93D840E66B1A"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Easyship shipment: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "shipment",
                        "optional": false
                      },
                      {
                        "key": "easyship_shipment_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "76CC12B2-702A-4ECA-9548-EC144F0D9BBF"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tracking message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Post tracking to fulfillment",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Label batch": "adb6517c-2df5-44bd-a073-a4ba0d541227"
          },
          "position": {
            "x": 690,
            "y": 40
          }
        },
        "flowElementId": "E3464C27-9FE7-4301-8030-91C48E7D3BFF",
        "groupId": "7F4B024C-5DD1-4BCA-85BE-7065C0717248",
        "id": "20B7BB31-81CB-449A-BD3D-7E56B0A24143",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Label batch",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Batch status",
                    "subPathSegments": [
                      {
                        "key": "batch",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DF7DB713-4BF1-43EB-9996-0D870B4A1641"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "bucket3",
          "storeResult": true
        },
        "name": "Update the label batch",
        "nextElementIds": [],
        "nextGroupIds": [],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell fulfillment the label failed Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1270,
            "y": 660
          }
        },
        "flowElementId": "BEE5DEFE-5951-4F2B-A126-12C81E47C81E",
        "groupId": null,
        "id": "13C1E8E8-A39E-48F7-8042-344E4DE90A35",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*Label failed for order "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Easyship created shipment "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Shipment",
                    "subPathSegments": [
                      {
                        "key": "shipment",
                        "optional": false
                      },
                      {
                        "key": "easyship_shipment_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "76CC12B2-702A-4ECA-9548-EC144F0D9BBF"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " with "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Chosen rate",
                    "subPathSegments": [
                      {
                        "key": "courierName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D324F597-C7F4-41B8-9A73-91D3F154C632"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", but the label did not come through (batch state: "
                  },
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Label batch",
                    "subPathSegments": [
                      {
                        "key": "state",
                        "optional": false
                      }
                    ],
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Label batch",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Label batch",
                        "optional": false
                      }
                    ]
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "). Open the shipment in Easyship to see why and buy the label there."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Label failed message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell fulfillment the label failed",
        "nextElementIds": [],
        "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 rate for the order Result"
          },
          "position": {
            "x": 690,
            "y": 230
          }
        },
        "flowElementId": "69A1DF28-8D66-459D-9CD3-582102DEA92A",
        "groupId": null,
        "id": "D324F597-C7F4-41B8-9A73-91D3F154C632",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "rates",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rates",
                    "subPathSegments": [
                      {
                        "key": "rates",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3058759F-09BE-42A4-9D26-F57CBD3411E4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "expedited",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "expedited",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const list = Array.isArray(rates) ? rates : [];\nconst rule = expedited ? 'fastest' : 'cheapest';\nif (!list.length) return { found: false, rule, ratesCompared: 0 };\nconst cost = r => Number(r.total_charge ?? r.shipment_charge_total ?? Infinity);\nconst days = r => Number(r.max_delivery_time ?? r.min_delivery_time ?? Infinity);\nconst sorted = [...list].sort(expedited\n  ? (a, b) => days(a) - days(b) || cost(a) - cost(b)\n  : (a, b) => cost(a) - cost(b) || days(a) - days(b));\nconst best = sorted[0];\nreturn {\n  found: true,\n  rule,\n  courierServiceId: best.courier_service.id,\n  courierName: best.courier_service.name,\n  cost: cost(best),\n  currency: best.currency,\n  minDays: best.min_delivery_time,\n  maxDays: best.max_delivery_time,\n  ratesCompared: 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": "Chosen rate",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pick the rate for the order",
        "nextElementIds": [
          "4D4D9AC0-1541-415D-B764-C111DFC6D1E5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Requests a list of shipping rates from couriers for a prospective shipment based on origin, destination, and parcel contents. Each rate carries a nested courier_service object (id, name, courier_id) - feed that courier_service.id into Create Shipment, Generate Labels, or Schedule Pickup. Returns delivery time, total charges, and incoterm-aware tax/duty estimates.",
          "elementId": "EXTENSION:::SHARED:::default:::easyship:::requestRates",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Request courier rates Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easyship:::requestRates",
          "legacyElementId": "JS###v1###EasyshipService###requestRates",
          "methodName": "requestRates",
          "position": {
            "x": 980,
            "y": 230
          }
        },
        "flowElementId": "CEC99CC6-C1A4-4368-AA1D-1A671CAD2D0E",
        "groupId": null,
        "id": "3058759F-09BE-42A4-9D26-F57CBD3411E4",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "parcels",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcels",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "incoterms",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "calculateTaxAndDuties",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "setAsResidential",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "returnShipment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "originAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Ship-from address",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Ship-from address"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "destinationAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "destination",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  }
                ],
                "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": "requestRates",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Rates",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easyship",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Request courier rates",
        "nextElementIds": [
          "D324F597-C7F4-41B8-9A73-91D3F154C632"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": true,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Parcel items"
          },
          "position": {
            "x": 400,
            "y": 400
          }
        },
        "flowElementId": "2BA7C906-A38F-4CEA-962E-4C56805D3447",
        "groupId": "713C0D9B-09C4-43AB-B8C6-A20442CCA559",
        "id": "F35C8CBD-1049-46AA-86B6-EA133D6D77B1",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "items",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Parcel items",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Parcel items",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Parcel items",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "713C0D9B-09C4-43AB-B8C6-A20442CCA559"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sku",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "sku",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "713C0D9B-09C4-43AB-B8C6-A20442CCA559"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "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": "713C0D9B-09C4-43AB-B8C6-A20442CCA559"
                  }
                ],
                "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": "713C0D9B-09C4-43AB-B8C6-A20442CCA559"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "price",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "price",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "713C0D9B-09C4-43AB-B8C6-A20442CCA559"
                  }
                ],
                "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": "28CF2202-6CD3-4878-A794-D470D3A174BD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "unit",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Store weight unit",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Store weight unit"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const list = Array.isArray(items) ? items : [];\nconst toKg = { kg: 1, g: 0.001, lbs: 0.45359237, lb: 0.45359237, oz: 0.028349523 };\nconst factor = toKg[String(unit || 'kg').trim().toLowerCase()] || 1;\nconst qty = Number(quantity) || 1;\nlist.push({\n  description: name,\n  sku: sku || String(productId),\n  quantity: qty,\n  actual_weight: Math.round((parseFloat(weight) || 0) * factor * 1000) / 1000,\n  declared_customs_value: Number(price) || 0,\n});\nreturn list;"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Item list",
          "retryPolicy": null,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Parcel items"
          },
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Add the item to the parcel",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Parcel items": "9c982f32-1bd0-455f-aeca-49806db130de"
          },
          "position": {
            "x": 400,
            "y": 40
          }
        },
        "flowElementId": "7C88D15B-786A-4E36-BB84-DF1035050F4F",
        "groupId": null,
        "id": "9F3402EF-F99A-43A3-A0B5-767089357A68",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Parcel items",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EMPTY_LIST",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "arrays.create()"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "bucket1",
          "storeResult": true
        },
        "name": "Start an empty item list",
        "nextElementIds": [],
        "nextGroupIds": [
          "713C0D9B-09C4-43AB-B8C6-A20442CCA559"
        ],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Label batch": "ff9a09d4-271c-4aa7-8c28-1d1395c171cb"
          },
          "position": {
            "x": 400,
            "y": 660
          }
        },
        "flowElementId": "62C55CCB-DE5B-4D0D-A88A-75E774C7E57F",
        "groupId": null,
        "id": "7CBFF7AB-2552-41D3-9B63-4AD1491ED782",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Label batch",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Label request",
                    "subPathSegments": [
                      {
                        "key": "batch",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F322CC66-FAA6-489A-87F8-F3616E430B11"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "bucket2",
          "storeResult": true
        },
        "name": "Keep the label batch",
        "nextElementIds": [],
        "nextGroupIds": [
          "7F4B024C-5DD1-4BCA-85BE-7065C0717248"
        ],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell fulfillment no rate came back Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 400,
            "y": 420
          }
        },
        "flowElementId": "DBC53729-0A09-4345-A842-DCD93B1A0B10",
        "groupId": null,
        "id": "778122FE-3BF0-4C6E-B808-809F93BEDE9F",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*No Easyship rate for order "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Easyship returned no courier rates for this parcel, so no label was bought. Check the shipping address and the ship-from address, then ship it by hand."
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Ship to: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "destination",
                        "optional": false
                      },
                      {
                        "key": "city",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "destination",
                        "optional": false
                      },
                      {
                        "key": "country_alpha2",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "No rate message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell fulfillment no rate came back",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "729C5E98-A5A6-4ECC-9D16-AB41BF7F01D7",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "repeat",
          "isFirstElement": false,
          "blockDefinitionId": "repeat",
          "viewport": {
            "x": -70,
            "y": 0,
            "zoom": 1
          },
          "position": {
            "x": 690,
            "y": 660
          }
        },
        "flowElementId": "B6052F2C-997C-4541-B742-62FEB06B6F8F",
        "groupId": null,
        "id": "7F4B024C-5DD1-4BCA-85BE-7065C0717248",
        "loopType": "REPEAT",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "0e012622-508e-4aa1-9f1e-15bded9a89fb",
                "nestedOperation": null,
                "operation": "notEqual",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - Label batch",
                      "subPathSegments": [
                        {
                          "key": "state",
                          "optional": false
                        }
                      ],
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.Label batch",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "Label batch",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "processed"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "1649ccef-e0ba-4834-8463-1f0925ad17e5",
                "nestedOperation": null,
                "operation": "notEqual",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - Label batch",
                      "subPathSegments": [
                        {
                          "key": "state",
                          "optional": false
                        }
                      ],
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.Label batch",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "Label batch",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "failed"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "0e012622-508e-4aa1-9f1e-15bded9a89fb",
              "AND",
              "1649ccef-e0ba-4834-8463-1f0925ad17e5"
            ]
          },
          "enabled": true,
          "firstElementId": "09306F73-07D6-4A82-8139-8FFC566348AD",
          "maxIterations": 30,
          "onFailElemId": null,
          "resultAlias": "rep",
          "storeResult": true
        },
        "name": "Wait for the label",
        "nextElementIds": [
          "C23031FF-547A-4AAA-B989-8C411C50573A"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      },
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": -70,
            "y": -360,
            "zoom": 1
          },
          "position": {
            "x": 690,
            "y": 40
          }
        },
        "flowElementId": "49D388C3-9807-42A6-B5C7-BFB4D1CB7194",
        "groupId": null,
        "id": "713C0D9B-09C4-43AB-B8C6-A20442CCA559",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "enabled": true,
          "firstElementId": "28CF2202-6CD3-4878-A794-D470D3A174BD",
          "list": {
            "expression": [
              {
                "id": "RESULT",
                "label": "Order",
                "subPathSegments": [
                  {
                    "key": "line_items",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "729C5E98-A5A6-4ECC-9D16-AB41BF7F01D7"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "loop",
          "storeResult": true
        },
        "name": "Weigh each item",
        "nextElementIds": [
          "3BA6FCD7-9F48-4A63-A827-3B99F33AF70F"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      }
    ],
    "id": "88E3B4D7-1587-4835-B73F-5BBA891C90D9",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "The address your parcels ship from, in Easyship's fields: company_name, contact_name, contact_phone, contact_email, line_1, line_2, city, state, postal_code and country_alpha2 (two letters).",
          "error": null,
          "name": "Ship-from address",
          "type": "OBJECT",
          "value": ""
        },
        {
          "description": "Your standard shipping box in centimeters, and what the empty box and packing weigh in kilograms.",
          "error": null,
          "name": "Box",
          "type": "OBJECT",
          "value": ""
        },
        {
          "description": "The weight unit your WooCommerce store uses for products: kg, g, lbs or oz.",
          "error": null,
          "name": "Store weight unit",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The Easyship item category that fits what you sell, as its slug (for example fashion). Easyship needs a category or an HS code on every item.",
          "error": null,
          "name": "Item category",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "Words that mark a WooCommerce shipping method as expedited, separated by commas. Orders with one of these get the fastest courier; all other orders get the cheapest.",
          "error": null,
          "name": "Expedited shipping methods",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-11-19T02:33:27.489Z"
}
