{"section":"tracks","requestedLocale":"en","requestedSlug":"adding-the-magazine-luiza-integration","locale":"en","slug":"adding-the-magazine-luiza-integration","path":"docs/en/tracks/marketplace/magazine-luiza-integration-set-up/adding-the-magazine-luiza-integration.md","branch":"main","content":"The integration with Magazine Luiza happens through IntegraCommerce, an integrator that mediates the information sent by VTEX and passes it on to Magazine Luiza. So VTEX integrates with IntegraCommerce, but in the end its products are addressed to Magazine Luiza.\n\n1. On the Admin sidebar, click __Integrations__.\n2. Access the __Settings__ option.\n3. Look for the __Magazine Luiza__ box and click __Integrate__.\n4. Fill in the __fields__ displayed on the screen. Below, we will detail how to fill each one of them.\n5. After everything is correctly completed, click on the __Save Settings__ button.\n\nWith this integration, it will be possible to __create new accounts__ and also __migrate existing accounts (soon)__ in Magazine Luiza. The step-by-step below is suitable for both cases.\n\n> ⚠️ **Note:** Currently **you can not migrate old accounts**. We are working on that and soon this migration will be done automatically.\n\n\n## Detailing the fields\n\n&bull; __Integration*:__ Check `Enabled` for the integration to start operating. If you check `Disabled`, the entire integration settings will be deleted, including the affiliate.\n\n&bull; __Affiliate ID*:__ this field must be filled in with an [affiliate](/en/docs/tutorials/what-is-an-affiliate) ID that doesn't already exist in the affiliate registration. The ID accepts only three digits (all must be consonants). Suggestion: `MGZ`.\n\nIf you have [multi-domain integration settings](/en/tutorial/creating-multi-store-multi-domain), pay special attention to the affiliate ID, because this field should have a different value for each domain.\n\nIf you are migrating an account, we will take advantage of the affiliate already used for the old integration and we'll start using it in this integration.\n\n&bull; __Trade policy\\*:__ The trade policy ID that will be used for integrating with Magazine Luiza. It is the products of this trade policy that will be sent to the marketplace.\n\n&bull; __Percentual of tolerance in the divergence of the order value\\*:__ it's the acceptance rate of the difference in an order value. Any order that has a difference between the marketplace's selling price and the price determined by the seller [will be compared to this value](/en/docs/tutorials/my-order-was-closed-with-the-wrong-price). If the divergence, in percent, is less than the value defined in this field, the order will be integrated normally. Otherwise, the order will not be integrated and you will be able to see it in the [orders tab (within the integrations section in Admin)](/en/docs/tutorials/checking-integrations-in-bridge).\n\n&bull; __Customizable SLA Mapping\\*:__ in these fields you should do a correspondence between the [types of carrier](/en/docs/tutorials/how-does-the-type-of-delivery-work) registered in IntegraCommerce and those registered in VTEX logistics. When doing the mapping, click the `+` button to save it.\n\n_`Ex:` Imagine that you use Correios (PAC) as a carrier, that your Carrier Type in IntegraCommerce is 'Normal' and that in the VTEX logistics panel it is called 'Usual'. Then, you must fill in the first field with \"Normal\" and the second one with \"Usual\". Remember that the words should be exactly the same as those registered in the logistics._\n\n&bull; __Minimum stock\\*:__ You must fill this field with a minimum security stock value. Although the communication between VTEX and Magazine Luiza systems is fast, the stock displayed in the marketplace may be outdated compared to the actual product stock in your store (even by a few minutes). Thus, when the stock in VTEX reaches this value, the integration will zero the inventory so that there's no sales of products without stock.\n\n_Caption:_<br />\n`*` Required fields.<br />\n\nOnce the fields are filled in, click the __\"Save Settings\"__ button.\n\n*__That's it.__ After completing this step, your store is already fully integrated with Magazine Luiza.*"}