{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "600B43C4-24B6-49DB-B71E-52A86572D598",
    "name": "Sendcloud: cancel the parcel on a refund"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 57.87573495943445,
        "y": 99.53548210426342,
        "zoom": 0.6993080413692312
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When an order is refunded, finds its parcels in Sendcloud, cancels each one the carrier has not collected yet, and tells the warehouse to pull the box. A parcel already on its way goes to support in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When an order is refunded, finds its parcels in Sendcloud, cancels each one the carrier has not collected yet, and tells the warehouse to pull the box. A parcel already on its way goes to support in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell support it already shipped Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": -135.9999999999999,
            "y": 672
          }
        },
        "flowElementId": "DDAFFA0A-4C00-4B9E-B99B-33558386EA8A",
        "groupId": "48E27F05-AF8C-4121-86F4-562523676487",
        "id": "319BF181-4286-4A34-AEFA-2B3AE4F2086C",
        "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": "RESULT",
                    "label": "Refund",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "DFBCD3ED-D798-4CB2-BFC8-B2FB8F810E3D"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " was refunded, but its parcel for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcel",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " could not be cancelled in Sendcloud. Status: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcel",
                        "optional": false
                      },
                      {
                        "key": "status",
                        "optional": false
                      },
                      {
                        "key": "message",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". Tracking: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcel",
                        "optional": false
                      },
                      {
                        "key": "tracking_number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". It is with the carrier or on its way to them, so arrange an intercept or a return with the customer."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "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": "Support message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell support the parcel can't be stopped",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves a paginated list of parcels (shipments) from your Sendcloud account. Supports filtering by order number, tracking number, and cloud shipment ID, and pagination via page and page size. Returns each parcel with its address, status, tracking number, and label availability.",
          "elementId": "EXTENSION:::SHARED:::default:::sendcloud:::listParcels",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the order's parcels Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sendcloud:::listParcels",
          "legacyElementId": "JS###v1###SendcloudService###listParcels",
          "methodName": "listParcels",
          "position": {
            "x": 398.57001501363834,
            "y": 32.85007506819156
          }
        },
        "flowElementId": "FAC17B2A-E43F-4CFF-AB30-B7D1956FD7C6",
        "groupId": null,
        "id": "BF0C0562-ED7A-4ABB-9711-AB44C1C1E257",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Refund",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "DFBCD3ED-D798-4CB2-BFC8-B2FB8F810E3D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "trackingNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cloudShipmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "page",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pageSize",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 50
                  }
                ],
                "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": "listParcels",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Order parcels",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sendcloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the order's parcels",
        "nextElementIds": [],
        "nextGroupIds": [
          "48E27F05-AF8C-4121-86F4-562523676487"
        ],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Cancels a parcel by its Sendcloud parcel ID. Canceling voids the label (where the carrier supports it) and marks the parcel as canceled so it is no longer handed over to the carrier. Only parcels that have not yet been collected/shipped can be canceled; the response reports the cancellation status.",
          "elementId": "EXTENSION:::SHARED:::default:::sendcloud:::cancelParcel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Cancel the parcel Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sendcloud:::cancelParcel",
          "legacyElementId": "JS###v1###SendcloudService###cancelParcel",
          "methodName": "cancelParcel",
          "position": {
            "x": 388,
            "y": 668
          }
        },
        "flowElementId": "FF42ECC3-EAED-48BF-B4F6-1429187ADD89",
        "groupId": "48E27F05-AF8C-4121-86F4-562523676487",
        "id": "29CF9702-501B-46BE-91C5-AA4E5C169988",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "parcelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcel",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                  }
                ],
                "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": "cancelParcel",
          "onFailElemId": "66499075-4585-425E-8A74-F7501A2F4DFE",
          "packageId": "default",
          "resultAlias": "Cancellation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sendcloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Cancel the parcel",
        "nextElementIds": [
          "2C9FACB2-3104-4410-99AB-9AEEC68597B5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 120,
            "y": 480
          }
        },
        "flowElementId": "3F7CFC3F-F7DA-4ABB-827D-CED02034B40E",
        "groupId": "48E27F05-AF8C-4121-86F4-562523676487",
        "id": "7E6CDD54-60B7-4511-ADD6-8C2E4781F94B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "4e25b504-dc88-4850-83c7-7c4950f40e7e",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Parcel",
                      "subPathSegments": [
                        {
                          "key": "parcel",
                          "optional": false
                        },
                        {
                          "key": "status",
                          "optional": false
                        },
                        {
                          "key": "id",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 999
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "1044a93b-4d80-4cba-bbda-fa1085e88123",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Parcel",
                      "subPathSegments": [
                        {
                          "key": "parcel",
                          "optional": false
                        },
                        {
                          "key": "status",
                          "optional": false
                        },
                        {
                          "key": "id",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 1000
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "3cf7184b-16e1-4070-8c01-48f7b5631130",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Parcel",
                      "subPathSegments": [
                        {
                          "key": "parcel",
                          "optional": false
                        },
                        {
                          "key": "status",
                          "optional": false
                        },
                        {
                          "key": "id",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 1001
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "f7ff4b9b-0530-49f7-9147-f9370228d84a",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Parcel",
                      "subPathSegments": [
                        {
                          "key": "parcel",
                          "optional": false
                        },
                        {
                          "key": "status",
                          "optional": false
                        },
                        {
                          "key": "id",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 1002
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "4e25b504-dc88-4850-83c7-7c4950f40e7e",
              "OR",
              "1044a93b-4d80-4cba-bbda-fa1085e88123",
              "OR",
              "3cf7184b-16e1-4070-8c01-48f7b5631130",
              "OR",
              "f7ff4b9b-0530-49f7-9147-f9370228d84a"
            ]
          },
          "elseComponent": {
            "componentId": "319BF181-4286-4A34-AEFA-2B3AE4F2086C",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "In warehouse",
          "storeResult": false,
          "thenComponent": {
            "componentId": "29CF9702-501B-46BE-91C5-AA4E5C169988",
            "componentType": "ELEMENT"
          }
        },
        "name": "Still in the warehouse?",
        "nextElementIds": [
          "319BF181-4286-4A34-AEFA-2B3AE4F2086C",
          "29CF9702-501B-46BE-91C5-AA4E5C169988"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Cancellation refused Result"
          },
          "position": {
            "x": 178.0000000000001,
            "y": 926
          }
        },
        "flowElementId": "F7DA0DA7-92E4-404D-A9E7-5AF37D7D5303",
        "groupId": "48E27F05-AF8C-4121-86F4-562523676487",
        "id": "66499075-4585-425E-8A74-F7501A2F4DFE",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Cancel error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Cancellation refused",
        "nextElementIds": [
          "319BF181-4286-4A34-AEFA-2B3AE4F2086C"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": true,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "7C2A6D43-BFA3-4B04-86A7-6762B793ACFC",
        "groupId": null,
        "id": "DFBCD3ED-D798-4CB2-BFC8-B2FB8F810E3D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Refund",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Refund comes in",
        "nextElementIds": [
          "BF0C0562-ED7A-4ABB-9711-AB44C1C1E257"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves the full details of a single parcel by its Sendcloud parcel ID, including recipient address, current status, carrier and tracking number, shipment method, weight, and label URLs when a label has been generated.",
          "elementId": "EXTENSION:::SHARED:::default:::sendcloud:::getParcel",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the parcel's status Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sendcloud:::getParcel",
          "legacyElementId": "JS###v1###SendcloudService###getParcel",
          "methodName": "getParcel",
          "position": {
            "x": 110,
            "y": 290
          }
        },
        "flowElementId": "7D8C6829-38A1-4606-AF61-A9816D2DA9A5",
        "groupId": "48E27F05-AF8C-4121-86F4-562523676487",
        "id": "61BE3092-BA87-4D78-B44D-2D941AB72C15",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "parcelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "48E27F05-AF8C-4121-86F4-562523676487"
                  }
                ],
                "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": "getParcel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Parcel",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sendcloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Check the parcel's status",
        "nextElementIds": [
          "7E6CDD54-60B7-4511-ADD6-8C2E4781F94B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell the warehouse to pull the box Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 770.0000000000001,
            "y": 666
          }
        },
        "flowElementId": "6F0F595D-93A0-455D-8E9A-0FD22B1DF085",
        "groupId": "48E27F05-AF8C-4121-86F4-562523676487",
        "id": "2C9FACB2-3104-4410-99AB-9AEEC68597B5",
        "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": "RESULT",
                    "label": "Refund",
                    "subPathSegments": [
                      {
                        "key": "orderNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "DFBCD3ED-D798-4CB2-BFC8-B2FB8F810E3D"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " was refunded. Pull the box for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcel",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " from the outbound stack. Sendcloud parcel "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcel",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", tracking "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Parcel",
                    "subPathSegments": [
                      {
                        "key": "parcel",
                        "optional": false
                      },
                      {
                        "key": "tracking_number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "61BE3092-BA87-4D78-B44D-2D941AB72C15"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". Sendcloud says: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cancellation",
                    "subPathSegments": [
                      {
                        "key": "message",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "29CF9702-501B-46BE-91C5-AA4E5C169988"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Warehouse message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell the warehouse to pull the box",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "DFBCD3ED-D798-4CB2-BFC8-B2FB8F810E3D",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": 240.17218846700501,
            "y": 65.32770338544753,
            "zoom": 0.5
          },
          "position": {
            "x": 695.7199399454468,
            "y": 41.429984986361696
          }
        },
        "flowElementId": "3CF97A99-EF2E-4E27-AC45-84F38246EAF7",
        "groupId": null,
        "id": "48E27F05-AF8C-4121-86F4-562523676487",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "enabled": true,
          "firstElementId": "61BE3092-BA87-4D78-B44D-2D941AB72C15",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Order parcels",
                "subPathSegments": [
                  {
                    "key": "parcels",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "BF0C0562-ED7A-4ABB-9711-AB44C1C1E257"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "loop",
          "storeResult": true
        },
        "name": "For each parcel",
        "nextElementIds": [],
        "nextGroupIds": [],
        "type": "LOOP"
      }
    ],
    "id": "3259E17A-72A8-4C8A-A3C3-DF4E8CF5A641",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-11-17T05:55:07.530Z"
}
