{
    "name": "Barron",
    "app_type": "barron",
    "sync_type": "api",
    "is_active": true,
    "debug_mode": false,
    "authorization": {
        "auth_type": "custom",
        "auth_settings": {
            "request_settings": {
                "method": "GET",
                "url": "https://wslive.kevro.co.za/StockFeed.asmx/login",
                "query_params": {
                    "TokenKey": "<token_key>",
                    "username": "<username>",
                    "psw": "<password>",
                    "EntityName": "<entity_name>",
                    "entityID": "<entity_id>"
                },
                "headers": {},
                "body": {},
                "token_type": "",
                "authorization_header_name": ""
            },
            "response_settings": {
                "token_key": "",
                "expires_in_key": "",
                "expires_in_value": 0,
                "token_type": "",
                "cookie_name": "set-cookie"
            }
        }
    },
    "connections": [
        {
            "name": "Products",
            "type": "api",
            "is_active": true,
            "is_primary": true,
            "resource_type": "product",
            "priority": 1,
            "configuration": {
                "auth_enabled": true,
                "method": "GET",
                "endpoint": "https://wslive.kevro.co.za/StockFeed.asmx/GetFeedByEntityID",
                "query_params": {
                    "entityID": "<entity_id>",
                    "username": "<username>",
                    "psw": "<password>",
                    "ReturnType": "json"
                },
                "headers": {},
                "body": {
                    "type": "xml",
                    "data": ""
                },
                "prerequisites": {
                    "product_response": "ResponseData",
                    "variable_response": {
                        "parent_identifier": "StockCode"
                    },
                    "main_product_unique_identifier": "StockCode+##_p##",
                    "variable_product_unique_identifier": "StockID"
                },
                "advanced_configuration": {}
            }
        },
        {
            "name": "Branding",
            "type": "api",
            "is_active": true,
            "is_primary": false,
            "resource_type": "product",
            "priority": 1,
            "configuration": {
                "auth_enabled": true,
                "method": "GET",
                "endpoint": "https://wslive.kevro.co.za/StockFeed.asmx/ListAllBrandingInformation",
                "query_params": {
                    "entityID": "<entity_id>",
                    "username": "<username>",
                    "psw": "<password>",
                    "ReturnType": "json"
                },
                "headers": {},
                "body": {
                    "type": "xml",
                    "data": ""
                },
                "prerequisites": {
                    "product_response": "",
                    "variable_response": {
                        "parent_identifier": "StockCode"
                    },
                    "main_product_unique_identifier": "StockCode+##_p##",
                    "variable_product_unique_identifier": "StockID"
                },
                "advanced_configuration": {}
            }
        },
        {
            "name": "Branding Prices",
            "type": "api",
            "is_active": true,
            "is_primary": false,
            "resource_type": "product",
            "priority": 1,
            "configuration": {
                "auth_enabled": true,
                "method": "GET",
                "endpoint": "https://wslive.kevro.co.za/StockFeed.asmx/GetBrandingPricing",
                "query_params": {
                    "entityID": "<entity_id>",
                    "username": "<username>",
                    "psw": "<password>",
                    "ReturnType": "json"
                },
                "headers": {},
                "body": {
                    "type": "xml",
                    "data": ""
                },
                "prerequisites": {
                    "product_response": "",
                    "variable_response": {
                        "parent_identifier": "StockCode"
                    },
                    "main_product_unique_identifier": "StockCode+##_p##",
                    "variable_product_unique_identifier": "StockID"
                },
                "advanced_configuration": {}
            }
        }
    ],
    "attribute_mapping": [
        {
            "connection": "Products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "sku",
            "supplier_attribute": "StockCode",
            "advanced_configuration": null
        },
        {
            "connection": "Products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "name",
            "supplier_attribute": "Description",
            "advanced_configuration": null
        }
    ],
    "operations": [
        {
            "operation": "product-operations",
            "operation_type": "data-sync",
            "is_active": true,
            "configuration": {
                "available_products": {
                    "add": true,
                    "update": true,
                    "update_product_status": false,
                    "product_status": "publish"
                },
                "unavailable_products": {
                    "operation": "none",
                    "products_of": "none"
                }
            },
            "connections": [
                "Products"
            ]
        },
        {
            "operation": "batch",
            "operation_type": "performance-optimization",
            "is_active": true,
            "configuration": {
                "batch_size": 50
            },
            "connections": [
                "Products"
            ]
        }
    ]
}