{"section":"tutorials","requestedLocale":"en","requestedSlug":"integrating-with-csu-opte-2","locale":"en","slug":"integrating-with-csu-opte-2","path":"docs/en/tutorials/orders/orders-management-settings/integrating-with-csu-opte-2.md","branch":"main","content":"This article explains the steps necessary to configure the integration of your store with the CSU marketplace (Opte+).\n\nCSU uses only the marketplace model **Checkout na CSU**. In this model, the entire payment process is done by CSU, and the seller only receives the order and authorization to dispatch it.\n\n## First steps\n\n1. Configure the [sales policy](/en/tutorial/configuring-a-marketplace-sales-policy/) (the CSU indication is that you use the same policy of your own site).\n2. Configure the [logistics](/en/docs/tutorials/configuring-logistics-for-a-marketplace/) for this sales policy.\n\n## Create an affiliate\n\nAfter configuring the sales policy and logistics, you must create an affiliate, as shown in the steps below:\n\n1. In the VTEX Admin, go to **Store Settings > Orders > Settings**, or type *Orders* in the search bar at the top of the page and select *Store Settings / Orders*.\n2. In the **Affiliates** tab, click `+ New Affiliate`.\n3. Fill in the fields in the modal window according to the descriptions below, then click `Save`.\n    - **Name:** Name of affiliate/marketplace.\n    - **ID:** Identification code for the affiliate with three characters. CSU requires an affiliate to be created for each channel, i.e. one for the CSU marketplace, one for the loyalty program of each CSU client and one for each corporate shopping platform. Contact CSU for a list of all the company’s sites, so that you can create the affiliates as CSU requires. For the CSU marketplace, the code is **PTM** (Optemais Marketplace). For the marketplace loyalty program, the code is **PSS** (Passaporte).\n    - **Trade Policy:** Sales policy id defining the selection of products to be displayed in the marketplace. CSU suggests using the same sales policy as for your own site.\n    - **Email for notifications:** Email address to receive any notifications of conflict in integrating orders.\n    - **Search endpoint:** This will be the same for the various CSU marketplaces: http://stage.optemais.com.br/Notificacao/Vtex/Sku.\n    - **Search endpoint version:** 1.x.x.\n    - **Use my payment method:** Do not check this flag.\n\n## Create access\n\nOnce you have created an affiliate, you must attribute the correct permission for the CSU key. This procedure only needs to be done once, regardless of the number of CSU affiliates.\n\nYou need to create the user by associating the key, and then associate it with a role. Both models use the same role, as shown in the following step-by-step:\n\n1. In the VTEX Admin, go to **Account settings > Users**, or type **Users** in the search bar at the top of the page.\n2. Look for the value `vtexappkey-parceirocsu-ERUXDY`.\n3. Select the user found and associate it with the role `IntegrationProfile-Fulfillment_Gateway_GetOrder`.\n4. Click `Save`.\n\nAfter this procedure, the integration with the CSU is configured, and the Seller's [sponsor user](/en/docs/tutorials/what-is-the-sponsor-user) must request a reindexation of his catalog to accelerate the sending of the SKUs to CSU.\n\nYou must have sponsor user permission to perform this step: access your admin (http://_nomedaloja_/admin/site/fullcleanup.aspx) and click the **Reindex Base** button (this procedure should be done very carefully and should not be repeated every time as it may affect the performance of the site).\n\nYou are about to be an Opte + partner. Get in touch with CSU so they can check that everything is okay.\n\n### Learn more\n\n- [Marketplace strategies at VTEX](/en/docs/tutorials/marketplace-strategies-at-vtex)."}