This topic aims to address an issue related to the Sellers x Marketplace architecture that is somewhat unknown among our customers, yet can be very helpful for Marketplaces that want to receive product pricing and inventory from their Sellers for more than one sales policy. It’s worth noting right away that this is indeed possible through the Upsert Sales Channel Mapping API.
However, it’s important to highlight that for this architecture to work correctly, each Seller will need to create two affiliates for the same Marketplace — one for each sales policy they want to send to the Marketplace. After that, the Marketplace will need to perform the Seller Mapping as described in the following documentation:
This endpoint allows the Marketplace to map its Sales Policies to the Seller’s affiliates. This way, the Seller can have multiple Sales Policies associated with the same marketplace by creating different affiliates. The mapping allows the Seller to segment catalog, pricing, inventory, logistics, and payments in the Marketplace.
To make it easier to understand how the process described above should work, here’s a step-by-step walkthrough:
1 - Seller: Create a second affiliate with a different ID. In this case, we’ll use as an example the ID “ABC” for the affiliate associated with products from Sales Policy 1, and the ID “XYZ” (or any other ID you prefer) associated with Sales Policy 2.
2 - Marketplace: Will use the route mentioned above to perform the mapping, where the request body will look something like this:
'[
{
"marketplaceSalesChannel": 1,
"sellerChannel": "ABC"
},
{
"marketplaceSalesChannel": 2,
"sellerChannel": "XYZ"
}
]'
So the cURL for the request would be:
curl --location --request PUT 'https://{{accountName}}.vtexcommercestable.com.br/api/seller-register/pvt/sellers/{{sellerId}}/sales-channel/mapping' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-VTEX-API-AppKey;' \
--header 'X-VTEX-API-AppToken;' \
--data '[
{
"marketplaceSalesChannel":1,
"sellerChannel":"ABC"
},
{
"marketplaceSalesChannel":2,
"sellerChannel":"XYZ"
}
]'
If you have any further questions on this topic, feel free to ask here or open a new topic referencing this one! ![]()
Karina Mota
Field Software Engineer | VTEX