Caso exista o cenário onde é preciso integrar diferentes vales-compra para diferentes canais, é possível realizar essa configuração através do bloco abaixo:
"type": "Voucher",
"webSites": [
{
"webSiteID": 1,
"exceptions": [
]
}
],
Veja que por padrão todos integram para o websiteid 1 da Linx Commerce, porém é possível configurar exceptions onde cada filial poderia criar vale-compra nos diferentes canais configurados.
Exemplo de um Json de configuração com o Linx ERP:
{
"feature": {
"orderTotalShippingAmount": true,
"orderFreeShipping": true,
"orderTotalDiscountAmount": true,
"orderTotalTaxAmount": false,
"productBarcode": false,
"filterBranchCode": false,
"deliveryMethodAsCarrierName": true,
"deliveryMethodAsIntegration": false,
"alwaysSendClearSaleAprovedStatus": false,
"useDepartmentAndCategory": true,
"enableInvoiceXmlFile": false,
"wholeSaleInternet": false,
"allowedOnInternet": true
},
"workflowConfigurations": [
{
"type": "Product",
"properties": [
{
"field": "ProductID",
"property": "Product.SkuCode",
"updateAllowed": true
},
{
"field": "SkuID",
"property": "Product.Sku.SkuCode",
"updateAllowed": true
},
{
"field": "Title",
"property": "Product.Name",
"updateAllowed": false
},
{
"field": "SkuTitle",
"property": "Product.Sku.Name",
"updateAllowed": false
},
{
"field": "",
"property": "Product.ShortDescription",
"updateAllowed": false
},
{
"field": "B2CDescription",
"property": "Product.LongDescription",
"updateAllowed": false
},
{
"field": "Barcode",
"property": "Product.Sku.Barcode",
"updateAllowed": true
},
{
"field": "Length",
"property": "Product.Sku.Length",
"updateAllowed": false
},
{
"field": "Height",
"property": "Product.Sku.Height",
"updateAllowed": false
},
{
"field": "Width",
"property": "Product.Sku.Width",
"updateAllowed": false
},
{
"field": "Weight",
"property": "Product.Sku.Weight",
"updateAllowed": false
},
{
"field": "Brand",
"property": "Product.Brand.IntegrationID",
"updateAllowed": false
},
{
"field": "Brand",
"property": "Product.Brand.Name",
"updateAllowed": false
},
{
"field": "ProductCategory",
"property": "Product.Deparment.IntegrationID",
"updateAllowed": true
},
{
"field": "ProductCategory",
"property": "Product.Deparment.Name",
"updateAllowed": true
},
{
"field": "ProductSubcategory",
"property": "Product.Category.IntegrationID",
"updateAllowed": true
},
{
"field": "ProductSubcategory",
"property": "Product.Category.Name",
"updateAllowed": true
},
{
"field": "Manufacturer",
"property": "Product.Manufacturer.IntegrationID",
"updateAllowed": true
},
{
"field": "Manufacturer",
"property": "Product.Manufacturer.Name",
"updateAllowed": true
},
{
"property": "Product.Category",
"updateAllowed": false
},
{
"property": "Product.Brand",
"updateAllowed": true
},
{
"property": "Product.Manufacturer",
"updateAllowed": false
}
],
"productDefinitions": [
{
"productDefinitionID": 18,
"variationProperties": [
{
"metadataID": 40,
"field": "Size"
},
{
"metadataID": 44,
"field": "Color"
}
],
"exceptions": [
]
}
],
"metadataExtensions": [
{
"metadataID": 144,
"field": "ProductLine",
"exceptions": [
],
"updateAllowed": true
},
{
"metadataID": 143,
"field": "ProductCollection",
"exceptions": [
],
"updateAllowed": true
}
],
"ratingSets": [
{
"ratingSetID": 1,
"exceptions": [
],
"updateAllowed": true
}
],
"catalogs": [
{
"catalogStoreID": 1,
"exceptions": [
],
"updateAllowed": true
}
]
},
{
"type": "Order",
"statuses": [
{
"erpStatus": 4,
"coreStatus": 4,
"workflowID": 13
}
],
"originBranches": [
{
"branchID": "123456",
"exceptions": [
]
}
],
"fulfillmentBranches": [
{
"branchID": "123456",
"exceptions": [
]
}
],
"orderTypes": [
{
"orderTypeID": 4,
"exceptions": [
]
}
],
"paymentTypes": [
{
"paymentTypeID": "A",
"exceptions": [
]
},
{
"paymentTypeID": "18",
"exceptions": [
{
"field": "Order.PaymentMethod.IntegrationID",
"operator": "=",
"value": "boleto"
}
]
}
],
"paymentMethods": [
{
"paymentMethodID": "13",
"exceptions": [
]
}
],
"salesmen": [
{
"salesmanID": 41,
"exceptions": [
]
}
],
"sites": [
{
"siteID": "1",
"exceptions": [
]
}
],
"customerTypes": [
{
"customerType": "CLIENTE VIRTUAL",
"exceptions": [
]
}
],
"paymentBanks": [
{
"bank": "",
"exceptions": [
]
}
],
"paymentAdministrators": [
{
"administratorId": "PS",
"exceptions": [
{
"field": "Order.PaymentMethod.IntegrationID",
"operator": "=",
"value": "AMERICANEXPRESS"
}
]
},
{
"administratorId": "PS",
"exceptions": [
{
"field": "Order.PaymentMethod.IntegrationID",
"operator": "=",
"value": "MASTERCARD"
}
]
},
{
"administratorId": "PS",
"exceptions": [
{
"field": "Order.PaymentMethod.IntegrationID",
"operator": "=",
"value": "VISA"
}
]
},
{
"administratorId": "PS",
"exceptions": [
{
"field": "Order.PaymentMethod.IntegrationID",
"operator": "=",
"value": "HIPERCARD"
}
]
},
{
"administratorId": "PS",
"exceptions": [
{
"field": "Order.PaymentMethod.IntegrationID",
"operator": "=",
"value": "DINERS"
}
]
},
{
"administratorId": "PS",
"exceptions": [
{
"field": "Order.PaymentMethod.IntegrationID",
"operator": "=",
"value": ""
}
]
}
],
"properties": [
],
"giftCertificateNegativePaymentAmount": false,
"setAdministratorIdWhenOnlyGiftCertificatePayment": false
},
{
"type": "Price",
"priceLists": [
{
"priceListID": 1,
"exceptions": [
]
}
],
"properties": [
]
},
{
"type": "Inventory",
"warehouses": [
{
"warehouseID": 1,
"exceptions": [
{
"field": "BranchCode",
"operator": "=",
"value": "123456"
}
]
}
],
"properties": [
]
},
{
"type": "Voucher",
"webSites": [
{
"webSiteID": 1,
"exceptions": [
]
}
],
"webSiteGroups": [
],
"properties": [
]
}
]
}