Match received SKUs individually
All SKUs sent from a seller to a marketplace must be reviewed and matched. Actions in the matching process are added in the request body through the [matchType] object. Match type actions include:
-
newproduct: Match the SKU as a new product.
-
itemMatch: Associate the received SKU to an existing SKU.
-
productMatch: Associate the received SKU to an existing product.
-
deny: Deny the received SKU.
-
pending: The received SKU requires attention.
-
incomplete: The received SKU is lacking information to be matched.
-
insufficientScore: The Score given by the Matcher to this received SKU doesn't qualify it to be matched.
Note that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.
Permissions
Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise, they will receive a status code 403 error. These are the applicable resources for this endpoint:
| Product | Category | Resource |
|---|---|---|
| Channels | UI resources | Save suggestion rules |
| Suggestion | Suggestion resources | Main |
There are no applicable predefined roles for this resource list. You must create a custom role and add at least one of the resources above in order to use this endpoint.
To learn more about machine authentication at VTEX, see Authentication overview.
❗ To prevent integrations from having excessive permissions, consider the best practices for managing API keys when assigning License Manager roles to integrations.
Path parameters
Name of the VTEX account. Used as part of the URL
A string that identifies the seller in the marketplace. This ID must be created by the marketplace and informed to the seller before the integration is built.
A string that identifies the SKU in the marketplace. This is the ID that the marketplace will use for future references to this SKU, such as price and inventory notifications.
Whenever an SKU Suggestion is updated or changed, a new version of the original one is created. All versions are logged, so you can search for previous our current states of SKU suggestions. This field is the versionId associated to the version you choose to search for. You can get this field's value through theGet SKU Suggestion by ID. through the latestVersionId field.
Whenever an SKU suggestion is matched, it is associated to a unique ID. Fill in this field with the matchId you wish to filter by. The matchId's value can be obtained through the *Get SKU Suggestion by ID endpoint.
Headers
Describes the type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand
Request body
Example request
{
"matcherId": "vtex-matcher",
"score": "80",
"matchType": "itemMatch",
"skuRef": "12345-sku",
"productRef": "67890-product",
"product": {
"name": "Product exemple",
"description": "Descricption exemple",
"categoryId": 12,
"brandId": 1234567,
"specifications": null
},
"sku": {
"name": "Sku exemple",
"eans": [
"12345678901213"
],
"refId": null,
"height": 1,
"width": 1,
"length": 1,
"weight": 1,
"images": {
"image1.jpg": "imageurl.example"
},
"unitMultiplier": 1,
"measurementUnit": "un",
"specifications": {
"Packaging": "3 kg"
}
}
}Response
OK