{
    "name": "Syscom",
    "app_type": "syscom",
    "sync_type": "api",
    "operation_type": "import-export",
    "is_active": true,
    "debug_mode": false,
    "unique_product_identifier": "_sku",
    "unique_product_variation_identifier": "_sku",
    "authorization": {
        "auth_type": "oauth2",
        "auth_settings": {
            "request_settings": {
                "grant_type": "client_credentials",
                "access_token_url": "https://developers.syscom.mx/oauth/token",
                "client_id": "<client_id>",
                "client_secret": "<client_secret>",
                "scope": "",
                "send_client_credentials": [
                    "header"
                ],
                "authorization_header_name": "Authorization"
            },
            "response_settings": {
                "token_key": "access_token",
                "expires_in_key": "expires_in",
                "expires_in_value": "",
                "token_type": "Bearer",
                "authorization_header_name": "Authorization"
            }
        }
    },
    "connections": [
        {
            "name": "products",
            "type": "api",
            "is_active": true,
            "is_primary": true,
            "resource_type": "product",
            "priority": 1,
            "configuration": {
                "method": "GET",
                "endpoint": "https://developers.syscom.mx/api/v1/productos?busqueda=camaras&stock=1",
                "auth_enabled": true,
                "headers": [],
                "body": {
                    "type": "none",
                    "data": null
                },
                "prerequisites": {
                    "product_response": "productos",
                    "prerequisite_type": "no-variations",
                    "prerequisite_variation_type": "group-variations",
                    "variable_response": null,
                    "main_product_unique_identifier": "producto_id",
                    "variable_product_unique_identifier": ""
                },
                "advanced_configuration": {
                    "time_delay": ""
                }
            }
        },
        {
            "name": "product info",
            "type": "api",
            "is_active": true,
            "is_primary": false,
            "resource_type": "product",
            "priority": 2,
            "configuration": {
                "method": "GET",
                "endpoint": "https://developers.syscom.mx/api/v1/productos/{{sku}}",
                "auth_enabled": true,
                "headers": [],
                "body": {
                    "type": "none",
                    "data": null
                },
                "prerequisites": {
                    "product_response": "",
                    "prerequisite_type": "no-variations",
                    "prerequisite_variation_type": "group-variations",
                    "variable_response": null,
                    "main_product_unique_identifier": "producto_id",
                    "variable_product_unique_identifier": ""
                },
                "advanced_configuration": {
                    "time_delay": ""
                }
            }
        }
    ],
    "attribute_mapping": [
        {
            "connection": "product info",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "images",
            "supplier_attribute": "imagenes",
            "advanced_configuration": {
                "add_during_sync": true,
                "update_during_sync": true,
                "translation": {
                    "is_active": false,
                    "attributes": [
                        {
                            "apiValue": "",
                            "condition": "equals",
                            "translatedValue": ""
                        }
                    ]
                },
                "fetch_from_other_api": {
                    "is_active": false,
                    "connection": ""
                },
                "image_src_attr": "imagen",
                "image_path_attr": ""
            }
        },
        {
            "connection": "products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "sku",
            "supplier_attribute": "producto_id",
            "advanced_configuration": {
                "add_during_sync": true,
                "update_during_sync": true,
                "translation": {
                    "is_active": false,
                    "attributes": [
                        {
                            "apiValue": "",
                            "condition": "equals",
                            "translatedValue": ""
                        }
                    ]
                },
                "fetch_from_other_api": {
                    "is_active": false,
                    "connection": ""
                }
            }
        },
        {
            "connection": "products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "name",
            "supplier_attribute": "titulo",
            "advanced_configuration": {
                "add_during_sync": true,
                "update_during_sync": true,
                "translation": {
                    "is_active": false,
                    "attributes": [
                        {
                            "apiValue": "",
                            "condition": "equals",
                            "translatedValue": ""
                        }
                    ]
                },
                "fetch_from_other_api": {
                    "is_active": false,
                    "connection": ""
                }
            }
        },
        {
            "connection": "products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "regular_price",
            "supplier_attribute": "precios->precio_lista",
            "advanced_configuration": {
                "add_during_sync": true,
                "update_during_sync": true,
                "translation": {
                    "is_active": false,
                    "attributes": [
                        {
                            "apiValue": "",
                            "condition": "equals",
                            "translatedValue": ""
                        }
                    ]
                },
                "fetch_from_other_api": {
                    "is_active": false,
                    "connection": ""
                },
                "price_margin_config": {
                    "is_active": false,
                    "operator": "",
                    "amount": ""
                },
                "tier_pricing": {
                    "is_active": false,
                    "format_type": "key-value",
                    "base_path": "",
                    "use_discount_percentage": false,
                    "configuration": []
                }
            }
        },
        {
            "connection": "products",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "stock_quantity",
            "supplier_attribute": "existencia->nuevo",
            "advanced_configuration": {
                "add_during_sync": true,
                "update_during_sync": true,
                "translation": {
                    "is_active": false,
                    "attributes": [
                        {
                            "apiValue": "",
                            "condition": "equals",
                            "translatedValue": ""
                        }
                    ]
                },
                "fetch_from_other_api": {
                    "is_active": false,
                    "connection": ""
                }
            }
        },
        {
            "connection": "product info",
            "product_type": "parent",
            "type": "core",
            "wc_attribute": "description",
            "supplier_attribute": "descripcion + ##/n##+##caracteristicas##+##/n##+caracteristicas",
            "advanced_configuration": {
                "add_during_sync": true,
                "update_during_sync": true,
                "translation": {
                    "is_active": false,
                    "attributes": [
                        {
                            "apiValue": "",
                            "condition": "equals",
                            "translatedValue": ""
                        }
                    ]
                },
                "fetch_from_other_api": {
                    "is_active": false,
                    "connection": ""
                }
            }
        }
    ],
    "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": {
                    "products_of": "none",
                    "operation": "none"
                }
            },
            "connections": [
                "products"
            ]
        },
        {
            "operation": "product-operations",
            "operation_type": "data-sync",
            "is_active": true,
            "configuration": {
                "available_products": {
                    "add": false,
                    "update": true,
                    "update_product_status": false,
                    "product_status": "publish"
                },
                "unavailable_products": {
                    "products_of": "none",
                    "operation": "none"
                }
            },
            "connections": [
                "product info"
            ]
        },
        {
            "operation": "page",
            "operation_type": "performance-optimization",
            "is_active": true,
            "configuration": {
                "type": "regular",
                "location": "query-parameter",
                "page_param": "pagina",
                "limit_param": "",
                "limit_value": ""
            },
            "connections": [
                "products"
            ]
        }
    ]
}