{
    "name": "Shopify Japan Order Auto-Translator",
    "flow": [
        {
            "id": 13,
            "module": "shopify:watchEvents",
            "version": 3,
            "parameters": {
                "__IMTHOOK__": 2595935
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": -165,
                    "y": 7
                },
                "restore": {
                    "parameters": {
                        "__IMTHOOK__": {
                            "data": {
                                "editable": "false"
                            },
                            "label": "My Shopify webhook"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTHOOK__",
                        "type": "hook:shopify3",
                        "label": "Webhook",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 3,
            "module": "http:MakeRequest",
            "version": 4,
            "parameters": {
                "tlsType": "",
                "authenticationType": "noAuth"
            },
            "mapper": {
                "url": "https://japan-address-translator-geocoder.p.rapidapi.com/",
                "method": "post",
                "headers": [
                    {
                        "name": "X-RapidAPI-Key",
                        "value": "YOUR_RAPIDAPI_KEY_HERE"
                    },
                    {
                        "name": "X-RapidAPI-Host",
                        "value": "japan-address-translator-geocoder.p.rapidapi.com"
                    },
                    {
                        "name": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "timeout": "300",
                "contentType": "json",
                "inputMethod": "jsonString",
                "shareCookies": false,
                "parseResponse": true,
                "allowRedirects": true,
                "stopOnHttpError": false,
                "jsonStringBodyContent": "{\r\n  \"address_jp\": \"{{13.shipping_address.province}}{{13.shipping_address.city}}{{13.shipping_address.address1}}{{13.shipping_address.address2}}\"\r\n}",
                "requestCompressedContent": true
            },
            "metadata": {
                "designer": {
                    "x": 132,
                    "y": 5
                },
                "restore": {
                    "expect": {
                        "method": {
                            "mode": "chose",
                            "label": "POST"
                        },
                        "headers": {
                            "mode": "chose",
                            "items": [
                                null,
                                null,
                                null
                            ]
                        },
                        "contentType": {
                            "label": "application/jsonEnter data in the JSON format, as a string or using a data structure."
                        },
                        "inputMethod": {
                            "label": "JSON stringEnter the JSON body as a raw text string. If values contain JSON reserved characters, you must escape them manually."
                        },
                        "shareCookies": {
                            "mode": "chose"
                        },
                        "parseResponse": {
                            "mode": "chose"
                        },
                        "allowRedirects": {
                            "mode": "chose"
                        },
                        "paginationType": {
                            "label": "Empty"
                        },
                        "queryParameters": {
                            "mode": "chose"
                        },
                        "stopOnHttpError": {
                            "mode": "chose"
                        },
                        "requestCompressedContent": {
                            "mode": "chose"
                        }
                    },
                    "parameters": {
                        "tlsType": {
                            "label": "Empty"
                        },
                        "authenticationType": {
                            "label": "No authenticationUse when no credentials are required for the request."
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "authenticationType",
                        "type": "select",
                        "label": "Authentication type",
                        "required": true,
                        "validate": {
                            "enum": [
                                "noAuth",
                                "apiKey",
                                "basicAuth",
                                "oAuth"
                            ]
                        }
                    },
                    {
                        "name": "tlsType",
                        "type": "select",
                        "label": "Transport layer security (TLS)",
                        "validate": {
                            "enum": [
                                "mTls",
                                "tls"
                            ]
                        }
                    },
                    {
                        "name": "proxyKeychain",
                        "type": "keychain:proxy",
                        "label": "Proxy"
                    }
                ],
                "expect": [
                    {
                        "name": "url",
                        "type": "url",
                        "label": "URL",
                        "required": true
                    },
                    {
                        "name": "method",
                        "type": "select",
                        "label": "Method",
                        "required": true,
                        "validate": {
                            "enum": [
                                "get",
                                "head",
                                "post",
                                "put",
                                "patch",
                                "delete",
                                "options"
                            ]
                        }
                    },
                    {
                        "name": "headers",
                        "spec": {
                            "name": "value",
                            "spec": [
                                {
                                    "name": "name",
                                    "type": "text",
                                    "label": "Name",
                                    "required": true,
                                    "validate": {
                                        "pattern": "^[-!#$%&'*+.^_`|~0-9A-Za-z]+$"
                                    }
                                },
                                {
                                    "name": "value",
                                    "type": "text",
                                    "label": "Value"
                                }
                            ],
                            "type": "collection",
                            "label": "Header"
                        },
                        "type": "array",
                        "label": "Headers"
                    },
                    {
                        "name": "queryParameters",
                        "spec": {
                            "name": "value",
                            "spec": [
                                {
                                    "name": "name",
                                    "type": "text",
                                    "label": "Name",
                                    "required": true
                                },
                                {
                                    "name": "value",
                                    "type": "text",
                                    "label": "Value"
                                }
                            ],
                            "type": "collection",
                            "label": "Parameter"
                        },
                        "type": "array",
                        "label": "Query parameters"
                    },
                    {
                        "name": "contentType",
                        "type": "select",
                        "label": "Body content type",
                        "validate": {
                            "enum": [
                                "json",
                                "multipart",
                                "urlEncoded",
                                "custom"
                            ]
                        }
                    },
                    {
                        "name": "parseResponse",
                        "type": "boolean",
                        "label": "Parse response",
                        "required": true
                    },
                    {
                        "name": "stopOnHttpError",
                        "type": "boolean",
                        "label": "Return error if HTTP request fails",
                        "required": true
                    },
                    {
                        "name": "timeout",
                        "type": "uinteger",
                        "label": "Timeout",
                        "validate": {
                            "max": 300,
                            "min": 1
                        }
                    },
                    {
                        "name": "allowRedirects",
                        "type": "boolean",
                        "label": "Allow redirects",
                        "required": true
                    },
                    {
                        "name": "shareCookies",
                        "type": "boolean",
                        "label": "Share cookies with other HTTP modules",
                        "required": true
                    },
                    {
                        "name": "requestCompressedContent",
                        "type": "boolean",
                        "label": "Request compressed content",
                        "required": true
                    },
                    {
                        "name": "inputMethod",
                        "type": "select",
                        "label": "Body input method",
                        "required": true,
                        "validate": {
                            "enum": [
                                "dataStructure",
                                "jsonString"
                            ]
                        }
                    },
                    {
                        "name": "jsonStringBodyContent",
                        "type": "text",
                        "label": "Body content",
                        "required": true
                    },
                    {
                        "name": "paginationType",
                        "type": "select",
                        "label": "Pagination type",
                        "validate": {
                            "enum": [
                                "offsetBased",
                                "pageBased",
                                "urlBased",
                                "tokenBased"
                            ]
                        }
                    }
                ],
                "interface": [
                    {
                        "name": "data",
                        "type": "any",
                        "label": "Data"
                    },
                    {
                        "name": "statusCode",
                        "type": "number",
                        "label": "Status Code"
                    },
                    {
                        "name": "headers",
                        "spec": [
                            {
                                "name": "content-length",
                                "type": "text",
                                "label": "Content-Length"
                            },
                            {
                                "name": "content-encoding",
                                "type": "text",
                                "label": "Content-Encoding"
                            },
                            {
                                "name": "content-type",
                                "type": "text",
                                "label": "Content-Type"
                            },
                            {
                                "name": "server",
                                "type": "text",
                                "label": "Server"
                            },
                            {
                                "name": "cache-control",
                                "type": "text",
                                "label": "Cache-Control"
                            },
                            {
                                "name": "set-cookie",
                                "spec": {
                                    "type": "text"
                                },
                                "type": "array",
                                "label": "Set-Cookie"
                            }
                        ],
                        "type": "collection",
                        "label": "Headers"
                    }
                ],
                "advanced": true
            }
        },
        {
            "id": 8,
            "module": "http:MakeRequest",
            "version": 4,
            "parameters": {
                "tlsType": "",
                "authenticationType": "noAuth"
            },
            "mapper": {
                "url": "https://furigana-romaji-converter.p.rapidapi.com/",
                "method": "post",
                "headers": [
                    {
                        "name": "X-RapidAPI-Key",
                        "value": "YOUR_RAPIDAPI_KEY_HERE"
                    },
                    {
                        "name": "X-RapidAPI-Host",
                        "value": "furigana-romaji-converter.p.rapidapi.com"
                    },
                    {
                        "name": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "timeout": "300",
                "contentType": "json",
                "inputMethod": "jsonString",
                "shareCookies": false,
                "parseResponse": true,
                "allowRedirects": true,
                "stopOnHttpError": false,
                "jsonStringBodyContent": "{\r\n  \"last_name\": \"{{13.shipping_address.last_name}}\",\r\n  \"first_name\": \"{{13.shipping_address.first_name}}\",\r\n  \"middle_name\": \"\"\r\n}",
                "requestCompressedContent": true
            },
            "metadata": {
                "designer": {
                    "x": 387,
                    "y": 1
                },
                "restore": {
                    "expect": {
                        "method": {
                            "mode": "chose",
                            "label": "POST"
                        },
                        "headers": {
                            "mode": "chose",
                            "items": [
                                null,
                                null,
                                null
                            ]
                        },
                        "contentType": {
                            "label": "application/jsonEnter data in the JSON format, as a string or using a data structure."
                        },
                        "inputMethod": {
                            "label": "JSON stringEnter the JSON body as a raw text string. If values contain JSON reserved characters, you must escape them manually."
                        },
                        "shareCookies": {
                            "mode": "chose"
                        },
                        "parseResponse": {
                            "mode": "chose"
                        },
                        "allowRedirects": {
                            "mode": "chose"
                        },
                        "paginationType": {
                            "label": "Empty"
                        },
                        "queryParameters": {
                            "mode": "chose"
                        },
                        "stopOnHttpError": {
                            "mode": "chose"
                        },
                        "requestCompressedContent": {
                            "mode": "chose"
                        }
                    },
                    "parameters": {
                        "tlsType": {
                            "label": "Empty"
                        },
                        "authenticationType": {
                            "label": "No authenticationUse when no credentials are required for the request."
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "authenticationType",
                        "type": "select",
                        "label": "Authentication type",
                        "required": true,
                        "validate": {
                            "enum": [
                                "noAuth",
                                "apiKey",
                                "basicAuth",
                                "oAuth"
                            ]
                        }
                    },
                    {
                        "name": "tlsType",
                        "type": "select",
                        "label": "Transport layer security (TLS)",
                        "validate": {
                            "enum": [
                                "mTls",
                                "tls"
                            ]
                        }
                    },
                    {
                        "name": "proxyKeychain",
                        "type": "keychain:proxy",
                        "label": "Proxy"
                    }
                ],
                "expect": [
                    {
                        "name": "url",
                        "type": "url",
                        "label": "URL",
                        "required": true
                    },
                    {
                        "name": "method",
                        "type": "select",
                        "label": "Method",
                        "required": true,
                        "validate": {
                            "enum": [
                                "get",
                                "head",
                                "post",
                                "put",
                                "patch",
                                "delete",
                                "options"
                            ]
                        }
                    },
                    {
                        "name": "headers",
                        "spec": {
                            "name": "value",
                            "spec": [
                                {
                                    "name": "name",
                                    "type": "text",
                                    "label": "Name",
                                    "required": true,
                                    "validate": {
                                        "pattern": "^[-!#$%&'*+.^_`|~0-9A-Za-z]+$"
                                    }
                                },
                                {
                                    "name": "value",
                                    "type": "text",
                                    "label": "Value"
                                }
                            ],
                            "type": "collection",
                            "label": "Header"
                        },
                        "type": "array",
                        "label": "Headers"
                    },
                    {
                        "name": "queryParameters",
                        "spec": {
                            "name": "value",
                            "spec": [
                                {
                                    "name": "name",
                                    "type": "text",
                                    "label": "Name",
                                    "required": true
                                },
                                {
                                    "name": "value",
                                    "type": "text",
                                    "label": "Value"
                                }
                            ],
                            "type": "collection",
                            "label": "Parameter"
                        },
                        "type": "array",
                        "label": "Query parameters"
                    },
                    {
                        "name": "contentType",
                        "type": "select",
                        "label": "Body content type",
                        "validate": {
                            "enum": [
                                "json",
                                "multipart",
                                "urlEncoded",
                                "custom"
                            ]
                        }
                    },
                    {
                        "name": "parseResponse",
                        "type": "boolean",
                        "label": "Parse response",
                        "required": true
                    },
                    {
                        "name": "stopOnHttpError",
                        "type": "boolean",
                        "label": "Return error if HTTP request fails",
                        "required": true
                    },
                    {
                        "name": "timeout",
                        "type": "uinteger",
                        "label": "Timeout",
                        "validate": {
                            "max": 300,
                            "min": 1
                        }
                    },
                    {
                        "name": "allowRedirects",
                        "type": "boolean",
                        "label": "Allow redirects",
                        "required": true
                    },
                    {
                        "name": "shareCookies",
                        "type": "boolean",
                        "label": "Share cookies with other HTTP modules",
                        "required": true
                    },
                    {
                        "name": "requestCompressedContent",
                        "type": "boolean",
                        "label": "Request compressed content",
                        "required": true
                    },
                    {
                        "name": "inputMethod",
                        "type": "select",
                        "label": "Body input method",
                        "required": true,
                        "validate": {
                            "enum": [
                                "dataStructure",
                                "jsonString"
                            ]
                        }
                    },
                    {
                        "name": "jsonStringBodyContent",
                        "type": "text",
                        "label": "Body content",
                        "required": true
                    },
                    {
                        "name": "paginationType",
                        "type": "select",
                        "label": "Pagination type",
                        "validate": {
                            "enum": [
                                "offsetBased",
                                "pageBased",
                                "urlBased",
                                "tokenBased"
                            ]
                        }
                    }
                ],
                "interface": [
                    {
                        "name": "data",
                        "type": "any",
                        "label": "Data"
                    },
                    {
                        "name": "statusCode",
                        "type": "number",
                        "label": "Status Code"
                    },
                    {
                        "name": "headers",
                        "spec": [
                            {
                                "name": "content-length",
                                "type": "text",
                                "label": "Content-Length"
                            },
                            {
                                "name": "content-encoding",
                                "type": "text",
                                "label": "Content-Encoding"
                            },
                            {
                                "name": "content-type",
                                "type": "text",
                                "label": "Content-Type"
                            },
                            {
                                "name": "server",
                                "type": "text",
                                "label": "Server"
                            },
                            {
                                "name": "cache-control",
                                "type": "text",
                                "label": "Cache-Control"
                            },
                            {
                                "name": "set-cookie",
                                "spec": {
                                    "type": "text"
                                },
                                "type": "array",
                                "label": "Set-Cookie"
                            }
                        ],
                        "type": "collection",
                        "label": "Headers"
                    }
                ],
                "advanced": true
            }
        },
        {
            "id": 4,
            "module": "builtin:BasicRouter",
            "version": 1,
            "parameters": {
                "else": 1
            },
            "mapper": null,
            "metadata": {
                "designer": {
                    "x": 600,
                    "y": 0
                }
            },
            "routes": [
                {
                    "flow": [
                        {
                            "id": 5,
                            "module": "shopify:updateAnOrder",
                            "version": 3,
                            "parameters": {
                                "__IMTCONN__": 9967336
                            },
                            "filter": {
                                "name": "Success",
                                "conditions": [
                                    [
                                        {
                                            "a": "{{3.data.api_status}}",
                                            "b": "success",
                                            "o": "text:equal"
                                        }
                                    ]
                                ]
                            },
                            "mapper": {
                                "id": "{{13.admin_graphql_api_id}}",
                                "shippingAddress": {
                                    "zip": "{{13.shipping_address.zip}}",
                                    "address1": "{{3.data.translated_address}}",
                                    "lastName": "{{8.data.romaji_last}}",
                                    "firstName": "{{8.data.romaji_first}}",
                                    "countryCode": "{{13.shipping_address.country_code}}",
                                    "provinceCode": "{{13.shipping_address.province_code}}"
                                }
                            },
                            "metadata": {
                                "designer": {
                                    "x": 900,
                                    "y": -150
                                },
                                "restore": {
                                    "expect": {
                                        "metafields": {
                                            "mode": "chose"
                                        }
                                    },
                                    "parameters": {
                                        "__IMTCONN__": {
                                            "data": {
                                                "scoped": "true",
                                                "connection": "shopify"
                                            },
                                            "label": "My Shopify connection (logicflow-test.myshopify.com)"
                                        }
                                    }
                                },
                                "parameters": [
                                    {
                                        "name": "__IMTCONN__",
                                        "type": "account:shopify,shopify4",
                                        "label": "Connection",
                                        "required": true
                                    }
                                ],
                                "expect": [
                                    {
                                        "name": "id",
                                        "type": "text",
                                        "label": "Order ID",
                                        "required": true
                                    },
                                    {
                                        "name": "email",
                                        "type": "email",
                                        "label": "Email"
                                    },
                                    {
                                        "name": "shippingAddress",
                                        "spec": [
                                            {
                                                "name": "firstName",
                                                "type": "text",
                                                "label": "First name"
                                            },
                                            {
                                                "name": "lastName",
                                                "type": "text",
                                                "label": "Last name"
                                            },
                                            {
                                                "name": "address1",
                                                "type": "text",
                                                "label": "Address 1"
                                            },
                                            {
                                                "name": "address2",
                                                "type": "text",
                                                "label": "Address 2"
                                            },
                                            {
                                                "name": "city",
                                                "type": "text",
                                                "label": "City"
                                            },
                                            {
                                                "name": "zip",
                                                "type": "text",
                                                "label": "Zip"
                                            },
                                            {
                                                "name": "company",
                                                "type": "text",
                                                "label": "Company"
                                            },
                                            {
                                                "name": "phone",
                                                "type": "text",
                                                "label": "Phone"
                                            },
                                            {
                                                "name": "countryCode",
                                                "type": "text",
                                                "label": "Country code"
                                            },
                                            {
                                                "name": "provinceCode",
                                                "type": "text",
                                                "label": "Province code"
                                            }
                                        ],
                                        "type": "collection",
                                        "label": "Shipping address"
                                    },
                                    {
                                        "name": "note",
                                        "type": "text",
                                        "label": "Note"
                                    },
                                    {
                                        "name": "tags",
                                        "type": "text",
                                        "label": "Tags"
                                    },
                                    {
                                        "name": "metafields",
                                        "spec": {
                                            "name": "value",
                                            "spec": [
                                                {
                                                    "name": "namespace",
                                                    "type": "text",
                                                    "label": "Namespace"
                                                },
                                                {
                                                    "name": "key",
                                                    "type": "text",
                                                    "label": "Key"
                                                },
                                                {
                                                    "name": "type",
                                                    "type": "select",
                                                    "label": "Type",
                                                    "options": [
                                                        {
                                                            "label": "String (unstructured metafields only)",
                                                            "value": "string",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "text",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Float (unstructured metafields only)",
                                                            "value": "float",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "number",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Integer (unstructured metafields only)",
                                                            "value": "integer",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "integer",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "JSON string (unstructured metafields only)",
                                                            "value": "json_string",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "any",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Single-line text field",
                                                            "value": "single_line_text_field",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "text",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Multi-line text field",
                                                            "value": "multi_line_text_field",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "text",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Float (number with decimal)",
                                                            "value": "number_decimal",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "number",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Integer (number without decimal)",
                                                            "value": "number_integer",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "integer",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "URL",
                                                            "value": "url",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "url",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Boolean",
                                                            "value": "boolean",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "boolean",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Color",
                                                            "value": "color",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "color",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Datetime",
                                                            "value": "date_time",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "date",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Date",
                                                            "value": "date",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "date",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Dimension",
                                                            "value": "dimension",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "unit",
                                                                            "type": "select",
                                                                            "label": "Unit",
                                                                            "options": "rpc://shopify/3/units"
                                                                        },
                                                                        {
                                                                            "name": "value",
                                                                            "type": "number",
                                                                            "label": "Value"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Dimension"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "JSON",
                                                            "value": "json",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "any",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Link",
                                                            "value": "link",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "text",
                                                                            "type": "text",
                                                                            "label": "Text"
                                                                        },
                                                                        {
                                                                            "name": "url",
                                                                            "type": "url",
                                                                            "label": "URL"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Link"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Money",
                                                            "value": "money",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "amount",
                                                                            "type": "number",
                                                                            "label": "Amount"
                                                                        },
                                                                        {
                                                                            "name": "currency_code",
                                                                            "type": "text",
                                                                            "label": "Currency code"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Money"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Rating",
                                                            "value": "rating",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "value",
                                                                            "type": "number",
                                                                            "label": "Value"
                                                                        },
                                                                        {
                                                                            "name": "scale_min",
                                                                            "type": "number",
                                                                            "label": "Scale min"
                                                                        },
                                                                        {
                                                                            "name": "scale_max",
                                                                            "type": "number",
                                                                            "label": "Scale max"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Rating"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Volume",
                                                            "value": "volume",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "unit",
                                                                            "type": "select",
                                                                            "label": "Unit",
                                                                            "options": "rpc://shopify/3/volumeUnits"
                                                                        },
                                                                        {
                                                                            "name": "value",
                                                                            "type": "number",
                                                                            "label": "Value"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Volume"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Weight",
                                                            "value": "weight",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "unit",
                                                                            "type": "select",
                                                                            "label": "Unit",
                                                                            "options": "rpc://shopify/3/weightUnits"
                                                                        },
                                                                        {
                                                                            "name": "value",
                                                                            "type": "number",
                                                                            "label": "Value"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Weight"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Other",
                                                            "value": "other",
                                                            "nested": [
                                                                {
                                                                    "name": "field_type",
                                                                    "type": "text",
                                                                    "label": "Field type"
                                                                },
                                                                {
                                                                    "help": "If the type of metafield you want to create is not listed, you can map it manually. See the [Shopify metafields data types](https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types) for details.",
                                                                    "name": "value",
                                                                    "type": "any",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ],
                                            "type": "collection",
                                            "label": "Metafield"
                                        },
                                        "type": "array",
                                        "label": "Metafields"
                                    }
                                ]
                            }
                        }
                    ]
                },
                {
                    "flow": [
                        {
                            "id": 6,
                            "module": "shopify:updateAnOrder",
                            "version": 3,
                            "parameters": {
                                "__IMTCONN__": 9967336
                            },
                            "filter": {
                                "name": "Error",
                                "conditions": [
                                    [
                                        {
                                            "a": "{{3.data.api_status}}",
                                            "b": "error",
                                            "o": "text:equal"
                                        }
                                    ]
                                ]
                            },
                            "mapper": {
                                "id": "{{13.admin_graphql_api_id}}",
                                "note": "{{3.data.error_analysis_info}}",
                                "shippingAddress": {
                                    "zip": "{{13.shipping_address.zip}}",
                                    "address1": "{{3.data.translated_address}}",
                                    "lastName": "{{8.data.romaji_last}}",
                                    "firstName": "{{8.data.romaji_first}}",
                                    "countryCode": "{{13.shipping_address.country_code}}",
                                    "provinceCode": "{{13.shipping_address.province_code}}"
                                }
                            },
                            "metadata": {
                                "designer": {
                                    "x": 900,
                                    "y": 150
                                },
                                "restore": {
                                    "expect": {
                                        "metafields": {
                                            "mode": "chose"
                                        }
                                    },
                                    "parameters": {
                                        "__IMTCONN__": {
                                            "data": {
                                                "scoped": "true",
                                                "connection": "shopify"
                                            },
                                            "label": "My Shopify connection (logicflow-test.myshopify.com)"
                                        }
                                    }
                                },
                                "parameters": [
                                    {
                                        "name": "__IMTCONN__",
                                        "type": "account:shopify,shopify4",
                                        "label": "Connection",
                                        "required": true
                                    }
                                ],
                                "expect": [
                                    {
                                        "name": "id",
                                        "type": "text",
                                        "label": "Order ID",
                                        "required": true
                                    },
                                    {
                                        "name": "email",
                                        "type": "email",
                                        "label": "Email"
                                    },
                                    {
                                        "name": "shippingAddress",
                                        "spec": [
                                            {
                                                "name": "firstName",
                                                "type": "text",
                                                "label": "First name"
                                            },
                                            {
                                                "name": "lastName",
                                                "type": "text",
                                                "label": "Last name"
                                            },
                                            {
                                                "name": "address1",
                                                "type": "text",
                                                "label": "Address 1"
                                            },
                                            {
                                                "name": "address2",
                                                "type": "text",
                                                "label": "Address 2"
                                            },
                                            {
                                                "name": "city",
                                                "type": "text",
                                                "label": "City"
                                            },
                                            {
                                                "name": "zip",
                                                "type": "text",
                                                "label": "Zip"
                                            },
                                            {
                                                "name": "company",
                                                "type": "text",
                                                "label": "Company"
                                            },
                                            {
                                                "name": "phone",
                                                "type": "text",
                                                "label": "Phone"
                                            },
                                            {
                                                "name": "countryCode",
                                                "type": "text",
                                                "label": "Country code"
                                            },
                                            {
                                                "name": "provinceCode",
                                                "type": "text",
                                                "label": "Province code"
                                            }
                                        ],
                                        "type": "collection",
                                        "label": "Shipping address"
                                    },
                                    {
                                        "name": "note",
                                        "type": "text",
                                        "label": "Note"
                                    },
                                    {
                                        "name": "tags",
                                        "type": "text",
                                        "label": "Tags"
                                    },
                                    {
                                        "name": "metafields",
                                        "spec": {
                                            "name": "value",
                                            "spec": [
                                                {
                                                    "name": "namespace",
                                                    "type": "text",
                                                    "label": "Namespace"
                                                },
                                                {
                                                    "name": "key",
                                                    "type": "text",
                                                    "label": "Key"
                                                },
                                                {
                                                    "name": "type",
                                                    "type": "select",
                                                    "label": "Type",
                                                    "options": [
                                                        {
                                                            "label": "String (unstructured metafields only)",
                                                            "value": "string",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "text",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Float (unstructured metafields only)",
                                                            "value": "float",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "number",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Integer (unstructured metafields only)",
                                                            "value": "integer",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "integer",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "JSON string (unstructured metafields only)",
                                                            "value": "json_string",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "any",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Single-line text field",
                                                            "value": "single_line_text_field",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "text",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Multi-line text field",
                                                            "value": "multi_line_text_field",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "text",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Float (number with decimal)",
                                                            "value": "number_decimal",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "number",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Integer (number without decimal)",
                                                            "value": "number_integer",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "integer",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "URL",
                                                            "value": "url",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "url",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Boolean",
                                                            "value": "boolean",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "boolean",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Color",
                                                            "value": "color",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "color",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Datetime",
                                                            "value": "date_time",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "date",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Date",
                                                            "value": "date",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "date",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Dimension",
                                                            "value": "dimension",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "unit",
                                                                            "type": "select",
                                                                            "label": "Unit",
                                                                            "options": "rpc://shopify/3/units"
                                                                        },
                                                                        {
                                                                            "name": "value",
                                                                            "type": "number",
                                                                            "label": "Value"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Dimension"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "JSON",
                                                            "value": "json",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "type": "any",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Link",
                                                            "value": "link",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "text",
                                                                            "type": "text",
                                                                            "label": "Text"
                                                                        },
                                                                        {
                                                                            "name": "url",
                                                                            "type": "url",
                                                                            "label": "URL"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Link"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Money",
                                                            "value": "money",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "amount",
                                                                            "type": "number",
                                                                            "label": "Amount"
                                                                        },
                                                                        {
                                                                            "name": "currency_code",
                                                                            "type": "text",
                                                                            "label": "Currency code"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Money"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Rating",
                                                            "value": "rating",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "value",
                                                                            "type": "number",
                                                                            "label": "Value"
                                                                        },
                                                                        {
                                                                            "name": "scale_min",
                                                                            "type": "number",
                                                                            "label": "Scale min"
                                                                        },
                                                                        {
                                                                            "name": "scale_max",
                                                                            "type": "number",
                                                                            "label": "Scale max"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Rating"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Volume",
                                                            "value": "volume",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "unit",
                                                                            "type": "select",
                                                                            "label": "Unit",
                                                                            "options": "rpc://shopify/3/volumeUnits"
                                                                        },
                                                                        {
                                                                            "name": "value",
                                                                            "type": "number",
                                                                            "label": "Value"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Volume"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Weight",
                                                            "value": "weight",
                                                            "nested": [
                                                                {
                                                                    "name": "value",
                                                                    "spec": [
                                                                        {
                                                                            "name": "unit",
                                                                            "type": "select",
                                                                            "label": "Unit",
                                                                            "options": "rpc://shopify/3/weightUnits"
                                                                        },
                                                                        {
                                                                            "name": "value",
                                                                            "type": "number",
                                                                            "label": "Value"
                                                                        }
                                                                    ],
                                                                    "type": "collection",
                                                                    "label": "Weight"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "label": "Other",
                                                            "value": "other",
                                                            "nested": [
                                                                {
                                                                    "name": "field_type",
                                                                    "type": "text",
                                                                    "label": "Field type"
                                                                },
                                                                {
                                                                    "help": "If the type of metafield you want to create is not listed, you can map it manually. See the [Shopify metafields data types](https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types) for details.",
                                                                    "name": "value",
                                                                    "type": "any",
                                                                    "label": "Value"
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ],
                                            "type": "collection",
                                            "label": "Metafield"
                                        },
                                        "type": "array",
                                        "label": "Metafields"
                                    }
                                ]
                            }
                        }
                    ]
                }
            ]
        }
    ],
    "metadata": {
        "instant": true,
        "version": 1,
        "scenario": {
            "roundtrips": 1,
            "maxErrors": 3,
            "autoCommit": true,
            "autoCommitTriggerLast": true,
            "sequential": false,
            "slots": null,
            "confidential": false,
            "dataloss": false,
            "dlq": false,
            "freshVariables": false
        },
        "designer": {
            "orphans": []
        },
        "zone": "us2.make.com",
        "notes": []
    }
}