diff --git a/PostmanCollections/VTEX - Marketplace APIs - Suggestions.json b/PostmanCollections/VTEX - Marketplace APIs - Suggestions.json index 69dec6890..ea76af7a2 100644 --- a/PostmanCollections/VTEX - Marketplace APIs - Suggestions.json +++ b/PostmanCollections/VTEX - Marketplace APIs - Suggestions.json @@ -1,55 +1,115 @@ { "_": { - "postman_id": "334f4003-4dd7-452b-9243-6c20bbe0a5eb" + "postman_id": "437b69f6-ecd1-4e01-99ff-0d65b27a0aa4" }, "item": [ { - "id": "92974b1f-35fb-459b-92e7-5c48021e6386", - "name": "SKU Approval Settings", + "id": "c962f1eb-da4e-4b54-ada4-5c0cd0e6cf8b", + "name": "Get Suggestions", "description": { - "content": "", + "content": "Search and filter all suggestions using specific criteria.", "type": "text/plain" }, "item": [ { - "id": "13cf0a1d-0d3b-4e26-b415-c2d964bd0661", - "name": "Get autoApprove Status in Account Settings", + "id": "3224e6d6-4b51-46cd-bc25-2b70585f8e9b", + "name": "Get all SKU suggestions", "request": { - "name": "Get autoApprove Status in Account Settings", + "name": "Get all SKU suggestions", "description": { - "content": "This endpoint can be used to check whether the autoapprove setting is active or not, for a specific seller. \n\nIf the response is `true`, the autoapprove setting is active. If the response is `false`, it is inactive.", + "content": "This endpoint retrieves a list of all SKUs sent by the seller for the Marketplace's approval. Marketplace operators should use this endpoint whenever they want to check the full list of received SKUs and their information. \n\nNote that all the information sent by the seller will be in the [content] object. All remaining information in this endpoint's response is given by the Matcher. \n\nMatcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: score equal to or greater than 80 points. \n\n`Pending`: from 31 to 79 points.\n\n`Denied`: from 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", "type": "text/plain" }, "url": { "path": [ - "suggestions", - "configuration", - "autoapproval", - "toggle" + "suggestions" ], "host": [ "{{baseUrl}}" ], "query": [ { - "disabled": false, + "disabled": true, "description": { - "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", + "content": "This field allows you to customize your search. You can fill in this query param if you want to narrow down your search using the available filters on Received SKU modules.", "type": "text/plain" }, - "key": "sellerId", - "value": "seller123" + "key": "q", + "value": "" + }, + { + "disabled": true, + "description": { + "content": "This field allows users to filter SKU suggestions, by searching only the new suggestions that were just sent, and suggestions that have already been sent, but were updated. Possible values for this field include `new` and `update`.", + "type": "text/plain" + }, + "key": "type", + "value": "new" + }, + { + "disabled": true, + "description": { + "content": "A string that identifies the seller in the marketplace. This ID must be created by the marketplace and informed to the seller so it can call this endpoint.", + "type": "text/plain" + }, + "key": "seller", + "value": "" + }, + { + "disabled": true, + "description": { + "content": "Narrow down you search, filtering by status. Values allowed on this field include: `accepted`, `pending` and `denied.`", + "type": "text/plain" + }, + "key": "status", + "value": "accepted" + }, + { + "disabled": true, + "description": { + "content": "This field allows you to filter SKUs that have mapping or not. Insert `true` to filter SKUs that have mapping, or `false` to retrieve SKUs that aren't mapped.", + "type": "text/plain" + }, + "key": "hasmapping", + "value": "true" + }, + { + "disabled": true, + "description": { + "content": "Identifies the matching entity. It can be either VTEX's matcher, or an external matcher developed by partners, for example. The `matcherId`'s value can be obtained through the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion) endpoint.", + "type": "text/plain" + }, + "key": "matcherid", + "value": "vtex-matcher" + }, + { + "disabled": true, + "description": { + "content": "Define your pagination range, by adding the pagination starting value. Values should be bigger than 0, with a maximum of 50 records per page.", + "type": "text/plain" + }, + "key": "_from", + "value": "1" + }, + { + "disabled": true, + "description": { + "content": "Define your pagination range, by adding the pagination ending value. Values should be bigger than 0, with a maximum of 50 records per page.", + "type": "text/plain" + }, + "key": "_to", + "value": "50" } ], "variable": [ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Name of the VTEX account. Used as part of the URL", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "apiexamples", "key": "accountName" } ] @@ -67,51 +127,106 @@ { "disabled": false, "description": { - "content": "(Required) Describes the type of the content being sent.", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "json" + "postman_previewlanguage": "text" }, - "id": "290a3610-76b4-4168-91a8-4458fbd8ca6c", + "id": "67728ac0-dfd4-4e6c-bec5-da4581345e7a", "name": "OK", "originalRequest": { "url": { "path": [ - "suggestions", - "configuration", - "autoapproval", - "toggle" + "suggestions" ], "host": [ "{{baseUrl}}" ], "query": [ { - "key": "sellerId", - "value": "seller123" - } - ], - "variable": [ + "disabled": true, + "description": { + "content": "This field allows you to customize your search. You can fill in this query param if you want to narrow down your search using the available filters on Received SKU modules.", + "type": "text/plain" + }, + "key": "q", + "value": "" + }, { - "disabled": false, + "disabled": true, + "description": { + "content": "This field allows users to filter SKU suggestions, by searching only the new suggestions that were just sent, and suggestions that have already been sent, but were updated. Possible values for this field include `new` and `update`.", + "type": "text/plain" + }, + "key": "type", + "value": "new" + }, + { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "A string that identifies the seller in the marketplace. This ID must be created by the marketplace and informed to the seller so it can call this endpoint.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "seller", + "value": "" + }, + { + "disabled": true, + "description": { + "content": "Narrow down you search, filtering by status. Values allowed on this field include: `accepted`, `pending` and `denied.`", + "type": "text/plain" + }, + "key": "status", + "value": "accepted" + }, + { + "disabled": true, + "description": { + "content": "This field allows you to filter SKUs that have mapping or not. Insert `true` to filter SKUs that have mapping, or `false` to retrieve SKUs that aren't mapped.", + "type": "text/plain" + }, + "key": "hasmapping", + "value": "true" + }, + { + "disabled": true, + "description": { + "content": "Identifies the matching entity. It can be either VTEX's matcher, or an external matcher developed by partners, for example. The `matcherId`'s value can be obtained through the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion) endpoint.", + "type": "text/plain" + }, + "key": "matcherid", + "value": "vtex-matcher" + }, + { + "disabled": true, + "description": { + "content": "Define your pagination range, by adding the pagination starting value. Values should be bigger than 0, with a maximum of 50 records per page.", + "type": "text/plain" + }, + "key": "_from", + "value": "1" + }, + { + "disabled": true, + "description": { + "content": "Define your pagination range, by adding the pagination ending value. Values should be bigger than 0, with a maximum of 50 records per page.", + "type": "text/plain" + }, + "key": "_to", + "value": "50" } - ] + ], + "variable": [] }, "header": [ { @@ -126,15 +241,11 @@ { "disabled": false, "description": { - "content": "(Required) Describes the type of the content being sent.", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" } ], "method": "GET", @@ -142,13 +253,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": "{\n \"Enabled\": false\n}", + "header": [], "cookie": [] } ], @@ -156,13 +261,10 @@ { "listen": "test", "script": { - "id": "15a20e7a-bb50-42f3-9df7-a79336edb036", + "id": "e2fead38-9923-4469-91dc-fb0af3129228", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[GET]::/suggestions/configuration/autoapproval/toggle - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", - "// Validate if response header has matching content-type\npm.test(\"[GET]::/suggestions/configuration/autoapproval/toggle - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", - "// Validate if response has JSON Body \npm.test(\"[GET]::/suggestions/configuration/autoapproval/toggle - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Enabled\":{\"type\":\"boolean\",\"description\":\"If the auto-approve setting is active for a given seller (`true`) or not (`false`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/suggestions/configuration/autoapproval/toggle - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Validate status 2xx \npm.test(\"[GET]::/suggestions - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" ] } } @@ -172,20 +274,19 @@ } }, { - "id": "302474d1-733e-449d-a91c-2dae59724415", - "name": "Activate autoApprove in Marketplace's Account", + "id": "04f9efd0-3d39-4daf-b5bc-c8ff5a517561", + "name": "Get SKU Suggestion by ID", "request": { - "name": "Activate autoApprove in Marketplace's Account", + "name": "Get SKU Suggestion by ID", "description": { - "content": "This endpoint enables the autoapprove rule to a marketplace's whole Received SKUs module. Once enabling the rule, received SKUs will be automatically approved on your store, regardless of the seller. \n\n For the autoapprove rule to work as expected, the approval [Matcher score](https://help.vtex.com/en/tutorial/entendendo-a-pontuacao-do-vtex-matcher--tutorials_424) should be set up as 80 (default value), but you can configure a different number through the field `Score` in [Save Account's Approval Settings](https://developers.vtex.com/vtex-rest-api/reference/saveaccountconfig).", + "content": "This endpoint retrieves the data of a specific SKU sent by the seller, to the marketplace. Marketplaces or external matchers can call this endpoint when they want to check the information about a single SKU. \n\nNote that all the information sent by the seller will be in the [content] object. All remaining information in this endpoint's response is given by the Matcher. \n\nMatcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: score equal to or greater than 80 points. \n\n`Pending`: from 31 to 79 points.\n\n`Denied`: from 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", "type": "text/plain" }, "url": { "path": [ "suggestions", - "configuration", - "autoapproval", - "toggle" + ":sellerId", + ":sellerSkuId" ], "host": [ "{{baseUrl}}" @@ -195,11 +296,31 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) 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.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "seller123", + "key": "sellerId" + }, + { + "disabled": false, + "description": { + "content": "(Required) 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.", + "type": "text/plain" + }, + "type": "any", + "value": "1234", + "key": "sellerSkuId" + }, + { + "disabled": false, + "description": { + "content": "(Required) Name of the VTEX account. Used as part of the URL", + "type": "text/plain" + }, + "type": "any", + "value": "apiexamples", "key": "accountName" } ] @@ -224,48 +345,28 @@ "value": "application/json" } ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"Enabled\": true\n}", - "options": { - "raw": { - "language": "json" - } - } - } + "method": "GET", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "json" + "postman_previewlanguage": "text" }, - "id": "fd9c1e9d-9f64-45b3-91c9-7d47b6913f16", + "id": "5bc8b12f-6e2e-4c66-8f20-820abb4329e6", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - "configuration", - "autoapproval", - "toggle" + ":sellerId", + ":sellerSkuId" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - } - ] + "variable": [] }, "header": [ { @@ -285,32 +386,14 @@ }, "key": "Content-Type", "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" } ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"Enabled\": true\n}", - "options": { - "raw": { - "language": "json" - } - } - } + "method": "GET", + "body": {} }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": "{\n \"Enabled\": false\n}", + "header": [], "cookie": [] } ], @@ -318,13 +401,10 @@ { "listen": "test", "script": { - "id": "145322e0-71e7-4a3a-bc37-a4d6ab4ac010", + "id": "15aae690-1cd7-46be-a378-c113bf7f226c", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", - "// Validate if response header has matching content-type\npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", - "// Validate if response has JSON Body \npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Enabled\":{\"type\":\"boolean\",\"description\":\"If the auto-approve setting is active (`true`) or not (`false`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Validate status 2xx \npm.test(\"[GET]::/suggestions/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" ] } } @@ -332,20 +412,32 @@ "protocolProfileBehavior": { "disableBodyPruning": true } - }, + } + ], + "event": [] + }, + { + "id": "7415705d-b826-40f3-87f6-f12786a37cc8", + "name": "Manage Suggestions", + "description": { + "content": "Send or delete SKU suggestions from the seller to marketplace.", + "type": "text/plain" + }, + "item": [ { - "id": "d3328344-cd3b-4722-a40a-c136686cf5bf", - "name": "Get Account's Approval Settings", + "id": "b7fd65e5-a2cd-4f0b-920a-28ec1a6648d5", + "name": "Send SKU Suggestion", "request": { - "name": "Get Account's Approval Settings", + "name": "Send SKU Suggestion", "description": { - "content": "This endpoint retrieves the current approval settings of a marketplace's Received SKUs module. Its response includes: \n\n- `Score`: Matcher scores for approving and rejecting SKUs received from sellers. \n\n- `Matchers`: All Matchers configured on the marketplace, and their respective details. \n\n- `SpecificationsMapping`: Mapping of product and SKU specifications, per seller. \n\n- `MatchFlux`: This field determines the type of approval configuration applied to SKUs received from a seller. \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI, or Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of their Matcher Score.", + "content": "This request is used by the seller when it wants to suggest that one of their SKUs is sold in the marketplace.\n\nBefore using this request, the seller should always use the [Change Notification](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-seller-sku-notification) request in order to check if the SKU already exists in the marketplace. If it doesn't, then this is the next call in the SKU integration flow.\n\nIn the Send Suggestion request, the seller must send information about the SKU, such as the product and SKU name, the seller ID, and the image URL. All parameters are explained below. ", "type": "text/plain" }, "url": { "path": [ "suggestions", - "configuration" + ":sellerId", + ":sellerSkuId" ], "host": [ "{{baseUrl}}" @@ -355,11 +447,31 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) 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.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "seller123", + "key": "sellerId" + }, + { + "disabled": false, + "description": { + "content": "(Required) A string that identifies the SKU in the seller. This is the ID that the marketplace will use for future references to this SKU, such as price and inventory notifications.", + "type": "text/plain" + }, + "type": "any", + "value": "1234", + "key": "sellerSkuId" + }, + { + "disabled": false, + "description": { + "content": "(Required) Name of the VTEX account to which the seller wants to suggest a new SKU. It is used as part of the request URL.", + "type": "text/plain" + }, + "type": "any", + "value": "apiexamples", "key": "accountName" } ] @@ -368,7 +480,7 @@ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", @@ -382,45 +494,49 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], - "method": "GET" + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"ProductId\": \"321\",\n \"ProductName\": \"Product sample\",\n \"NameComplete\": \"Complete product name\",\n \"ProductDescription\": \"sample\",\n \"BrandName\": \"Brand 1\",\n \"SkuName\": \"Sku sample\",\n \"SellerId\": \"string\",\n \"Height\": 1,\n \"Width\": 1,\n \"Length\": 1,\n \"Weight\": 1,\n \"Updated\": null,\n \"RefId\": \"REFID123\",\n \"SellerStockKeepingUnitId\": 567,\n \"CategoryFullPath\": \"Category 1\",\n \"Images\": [\n {\n \"imageName\": \"Principal\",\n \"imageUrl\": \"https://i.pinimg.com/originals/2d/96/4a/2d964a6bf37d9224d0615dc85fccdd62.jpg\"\n }\n ],\n \"ProductSpecifications\": [\n {\n \"fieldName\": \"Fabric\",\n \"fieldValues\": [\n \"Cotton\",\n \"Velvet\"\n ]\n }\n ],\n \"SkuSpecifications\": [\n {\n \"fieldName\": \"Color\",\n \"fieldValues\": [\n \"Red\",\n \"Blue\"\n ]\n }\n ],\n \"EAN\": \"EAN123\",\n \"MeasurementUnit\": \"un\",\n \"UnitMultiplier\": 1,\n \"AvailableQuantity\": 111,\n \"Pricing\": {\n \"Currency\": \"BRL\",\n \"SalePrice\": 399,\n \"CurrencySymbol\": \"R$\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + } }, "response": [ { "_": { - "postman_previewlanguage": "json" + "postman_previewlanguage": "text" }, - "id": "38a40d59-90b0-4580-9f14-bf7f4e88d6b3", + "id": "69d2263b-1f5b-4661-addb-fb6c474d3820", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - "configuration" + ":sellerId", + ":sellerSkuId" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - } - ] + "variable": [] }, "header": [ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", @@ -436,22 +552,25 @@ "value": "application/json" }, { - "key": "Accept", + "key": "Content-Type", "value": "application/json" } ], - "method": "GET", - "body": {} + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"ProductId\": \"321\",\n \"ProductName\": \"Product sample\",\n \"NameComplete\": \"Complete product name\",\n \"ProductDescription\": \"sample\",\n \"BrandName\": \"Brand 1\",\n \"SkuName\": \"Sku sample\",\n \"SellerId\": \"string\",\n \"Height\": 1,\n \"Width\": 1,\n \"Length\": 1,\n \"Weight\": 1,\n \"Updated\": null,\n \"RefId\": \"REFID123\",\n \"SellerStockKeepingUnitId\": 567,\n \"CategoryFullPath\": \"Category 1\",\n \"Images\": [\n {\n \"imageName\": \"Principal\",\n \"imageUrl\": \"https://i.pinimg.com/originals/2d/96/4a/2d964a6bf37d9224d0615dc85fccdd62.jpg\"\n }\n ],\n \"ProductSpecifications\": [\n {\n \"fieldName\": \"Fabric\",\n \"fieldValues\": [\n \"Cotton\",\n \"Velvet\"\n ]\n }\n ],\n \"SkuSpecifications\": [\n {\n \"fieldName\": \"Color\",\n \"fieldValues\": [\n \"Red\",\n \"Blue\"\n ]\n }\n ],\n \"EAN\": \"EAN123\",\n \"MeasurementUnit\": \"un\",\n \"UnitMultiplier\": 1,\n \"AvailableQuantity\": 111,\n \"Pricing\": {\n \"Currency\": \"BRL\",\n \"SalePrice\": 399,\n \"CurrencySymbol\": \"R$\"\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + } }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": "{\n \"Score\": {\n \"Approve\": 80,\n \"Reject\": 30\n },\n \"Matchers\": [\n {\n \"MatcherId\": \"vtex-matcher\",\n \"hook-base-address\": \"http://portal.vtexinternal.com/api/ssm/hooks\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": null,\n \"Description\": null\n }\n ],\n \"Rules\": {\n \"Item\": [],\n \"Product\": []\n },\n \"SpecificationsMapping\": [],\n \"MatchFlux\": \"Default\"\n}", + "header": [], "cookie": [] } ], @@ -459,13 +578,10 @@ { "listen": "test", "script": { - "id": "e0491242-1dd1-4cf7-ac50-81a28ea2d71f", + "id": "1aefcc1c-91ea-4599-a419-48e7a4539900", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[GET]::/suggestions/configuration - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", - "// Validate if response header has matching content-type\npm.test(\"[GET]::/suggestions/configuration - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", - "// Validate if response has JSON Body \npm.test(\"[GET]::/suggestions/configuration - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Score\":{\"type\":\"object\",\"description\":\"Matcher scores for approving and rejecting SKUs received from sellers.\"},\"Matchers\":{\"type\":\"array\",\"description\":\"All Matchers configured on the marketplace, and their respective details.\"},\"Rules\":{\"type\":\"object\",\"description\":\"Items and products.\"},\"SpecificationsMapping\":{\"type\":\"array\",\"description\":\"Mapping of product and SKU specifications, per seller.\"},\"MatchFlux\":{\"type\":\"string\",\"description\":\"This field determines the type of approval configuration applied to SKUs received from a seller.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/suggestions/configuration - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" ] } } @@ -475,18 +591,19 @@ } }, { - "id": "a0f94d6a-37af-423c-8cbc-956ec03a6073", - "name": "Save Account's Approval Settings", + "id": "f6fbcd21-2d78-45e5-89c4-a59ad9446378", + "name": "Delete SKU Suggestion", "request": { - "name": "Save Account's Approval Settings", + "name": "Delete SKU Suggestion", "description": { - "content": "Marketplaces use this endpoint to create or update approval settings on their Received SKUs module. \n\nThe request includes all the details necessary to implement the chosen approval settings.", + "content": "This endpoint deletes a chosen SKU suggestion. Only one SKU should be deleted per request. This request cannot be undone. A workaround to revert its action, is to send the suggestion again, through the Send Suggestion API.", "type": "text/plain" }, "url": { "path": [ "suggestions", - "configuration" + ":sellerId", + ":sellerSkuId" ], "host": [ "{{baseUrl}}" @@ -496,11 +613,31 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) 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.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "seller123", + "key": "sellerId" + }, + { + "disabled": false, + "description": { + "content": "(Required) 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.", + "type": "text/plain" + }, + "type": "any", + "value": "1234", + "key": "sellerSkuId" + }, + { + "disabled": false, + "description": { + "content": "(Required) Name of the VTEX account. Used as part of the URL.", + "type": "text/plain" + }, + "type": "any", + "value": "apiexamples", "key": "accountName" } ] @@ -525,46 +662,28 @@ "value": "application/json" } ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"Score\": {\n \"Approve\": 80,\n \"Reject\": 30\n },\n \"Matchers\": [\n {\n \"MatcherId\": \"vtex-matcher\",\n \"hook-base-address\": \"http://simple-suggestion-matcher.vtex.com.br\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": null,\n \"Description\": null\n }\n ],\n \"SpecificationsMapping\": [],\n \"MatchFlux\": \"AutoApprove\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } + "method": "DELETE", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "json" + "postman_previewlanguage": "text" }, - "id": "e714a505-1d19-451a-8d6b-8ed7e35ae9d8", + "id": "0e9735d6-3b24-4417-bcd3-4b2435dd79f9", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - "configuration" + ":sellerId", + ":sellerSkuId" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - } - ] + "variable": [] }, "header": [ { @@ -584,32 +703,14 @@ }, "key": "Content-Type", "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" } ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"Score\": {\n \"Approve\": 80,\n \"Reject\": 30\n },\n \"Matchers\": [\n {\n \"MatcherId\": \"vtex-matcher\",\n \"hook-base-address\": \"http://simple-suggestion-matcher.vtex.com.br\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": null,\n \"Description\": null\n },\n {\n \"MatcherId\": \"vtex-matcher\",\n \"hook-base-address\": \"http://simple-suggestion-matcher.vtex.com.br\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": null,\n \"Description\": null\n }\n ],\n \"SpecificationsMapping\": [\n \" \\\"SellerId\\\": \\\"sellerID\\\",\\n \\\"Mapping\\\": {\\n \\\"Choose voltage\\\": \\\"Voltage\\\",\\n \\\"Choose size\\\": \\\"Size\\\",\\n \\\"Choose volume\\\": \\\"Volume\\\",\\n \\\"Choose type\\\": \\\"Type\\\"\\n }\",\n \" \\\"SellerId\\\": \\\"sellerID\\\",\\n \\\"Mapping\\\": {\\n \\\"Choose voltage\\\": \\\"Voltage\\\",\\n \\\"Choose size\\\": \\\"Size\\\",\\n \\\"Choose volume\\\": \\\"Volume\\\",\\n \\\"Choose type\\\": \\\"Type\\\"\\n }\"\n ],\n \"MatchFlux\": \"autoApprove\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } + "method": "DELETE", + "body": {} }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": "{\n \"Score\": {\n \"Approve\": 80,\n \"Reject\": 30\n },\n \"Matchers\": {\n \"MatcherId\": \"quis\",\n \"hook-base-address\": \"laboris est\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": \"minim sint amet\",\n \"Description\": \"enim proident nostrud\"\n },\n \"Rules\": {\n \"Item\": [\n -89417830,\n -28242184\n ],\n \"Product\": [\n \"culpa\",\n \"sed laborum dolore amet\"\n ]\n },\n \"SpecificationsMapping\": {\n \"SellerId\": \"fugiat Duis est minim ut\",\n \"Mapping\": {}\n },\n \"MatchFlux\": \"eiusmod ex laborum Excepteur\"\n}", + "header": [], "cookie": [] } ], @@ -617,13 +718,10 @@ { "listen": "test", "script": { - "id": "169e5b19-e72d-4111-9b0d-9291f86f154e", + "id": "88fc0ce0-8a7e-4572-9723-b20cb4780be4", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/configuration - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", - "// Validate if response header has matching content-type\npm.test(\"[PUT]::/suggestions/configuration - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", - "// Validate if response has JSON Body \npm.test(\"[PUT]::/suggestions/configuration - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"example\":{\"Score\":{\"Approve\":80,\"Reject\":30},\"Matchers\":[{\"MatcherId\":\"vtex-matcher\",\"hook-base-address\":\"http://simple-suggestion-matcher.vtex.com.br\",\"IsActive\":true,\"UpdatesNotificationEndpoint\":\"notification.endpoint\",\"Description\":\"Note\"}],\"Rules\":{\"Item\":[1],\"Product\":[\"Shirt\"]},\"SpecificationsMapping\":[{\"SellerId\":\"Store1\",\"Mapping\":{\"Yellow\":\"Light yellow\"}}],\"MatchFlux\":\"AutoApprove\"},\"properties\":{\"Score\":{\"type\":\"object\",\"description\":\"[Matcher's rates](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring) to approve or reject [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) sent by sellers.\",\"properties\":{\"Approve\":{\"type\":\"integer\",\"description\":\"Score to approve SKUs sent by sellers.\"},\"Reject\":{\"type\":\"integer\",\"description\":\"Score to reject SKUs sent by sellers.\"}},\"example\":{\"Approve\":80,\"Reject\":30}},\"Matchers\":{\"type\":\"object\",\"description\":\"[Matchers](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring) configurations for approving and rejecting [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) sent by sellers.\",\"properties\":{\"MatcherId\":{\"type\":\"string\",\"description\":\"Identifies the matching entity. It can be either [VTEX's matcher](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring), or an external matcher.\"},\"hook-base-address\":{\"type\":\"string\",\"description\":\"The given Matcher's URL.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Whether the matcher is active in the account (`true`), or not (`false`).\"},\"UpdatesNotificationEndpoint\":{\"type\":\"string\",\"description\":\"The [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) module calls this endpoint for matcher's suggestions updates.\"},\"Description\":{\"type\":\"string\",\"description\":\"The note inserted on the request body.\"}}},\"Rules\":{\"type\":\"object\",\"description\":\"Items and products that belong to sellers.\",\"properties\":{\"Item\":{\"type\":\"array\",\"description\":\"SKUs' ID.\",\"items\":{\"type\":\"integer\",\"description\":\"SKU ID.\"}},\"Product\":{\"type\":\"array\",\"description\":\"Product's name.\",\"items\":{\"type\":\"string\",\"description\":\"Product name.\"}}}},\"SpecificationsMapping\":{\"type\":\"object\",\"description\":\"This attribute maps product and SKU's specifications between the marketplace and the seller.\",\"properties\":{\"SellerId\":{\"type\":\"string\",\"description\":\"The Seller ID.\"},\"Mapping\":{\"type\":\"object\",\"description\":\"The attributes and values mapped between the marketplace and the seller.\"}}},\"MatchFlux\":{\"type\":\"string\",\"description\":\"Type of approval configuration that apply to received SKUs sent by sellers. The possible values are: \\n\\n`default`: the matcher approves the SKU. \\n\\n`manual`: manual SKU's approvals. \\n\\n`AutoApprove`: automatic SKU's approvals.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/suggestions/configuration - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Validate status 2xx \npm.test(\"[DELETE]::/suggestions/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" ] } } @@ -631,22 +729,33 @@ "protocolProfileBehavior": { "disableBodyPruning": true } - }, + } + ], + "event": [] + }, + { + "id": "f3e14f4e-b7dd-48f2-b7e1-fcae413426a1", + "name": "Get Versions", + "description": { + "content": "Search and filter all versions of suggestions, using specific criteria.", + "type": "text/plain" + }, + "item": [ { - "id": "dfe9b4e3-3c84-4c8a-a425-a74df36af58b", - "name": "Get Account's Matcher Settings", + "id": "aa504c8c-eb95-49c0-a7e1-9f6979e9c3f3", + "name": "Get all Versions", "request": { - "name": "Get Account's Matcher Settings", + "name": "Get all Versions", "description": { - "content": "This endpoint will be used by the marketplace to query the matcher's current approval settings on their incoming SKUs module. If the account has no matcher configured, the response will be `404 Not Found`. \n\nFor account approval configuration information, with response including specification information, see [Get Account Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis- suggestions#get-/suggestions /configuration) terminal. \n\nThe [VTEX matcher](https://help.vtex.com/pt/tutorial/entendendo-a-punctuacao-do-vtex-matcher--tutorials_424) is a tool used by marketplaces to evaluate SKUs corresponding to information from an advertisement of the seller, with those of items already present in the marketplace catalog.", + "content": "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. \n\nThis endpoint retrieves the data of *all* previous and latest versions of a specific SKU suggestion, sent by the seller. Whenever an SKU is updated, it is important to map previous versions, to compare and identify changes. \n\nThe response's object [latestversion] provides the information of the most recent version of that SKU suggestion.", "type": "text/plain" }, "url": { "path": [ "suggestions", - "configuration", - "account", - "config" + ":sellerId", + ":sellerskuid", + "versions" ], "host": [ "{{baseUrl}}" @@ -656,11 +765,31 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) 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.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "seller123", + "key": "sellerId" + }, + { + "disabled": false, + "description": { + "content": "(Required) 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.", + "type": "text/plain" + }, + "type": "any", + "value": "1234", + "key": "sellerskuid" + }, + { + "disabled": false, + "description": { + "content": "(Required) Name of the VTEX account. Used as part of the URL", + "type": "text/plain" + }, + "type": "any", + "value": "apiexamples", "key": "accountName" } ] @@ -669,7 +798,7 @@ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand", "type": "text/plain" }, "key": "Accept", @@ -685,45 +814,35 @@ "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "json" + "postman_previewlanguage": "text" }, - "id": "4d5bc69e-1423-4a8c-b881-6a4458bf4def", + "id": "e335ae1b-473e-4ecf-95f5-d6cb02352418", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - "configuration", - "account", - "config" + ":sellerId", + ":sellerskuid", + "versions" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - } - ] + "variable": [] }, "header": [ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand", "type": "text/plain" }, "key": "Accept", @@ -737,10 +856,6 @@ }, "key": "Content-Type", "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" } ], "method": "GET", @@ -748,13 +863,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": "{\n \"score\": {\n \"approve\": 85,\n \"pending\": 31,\n \"reject\": 30\n },\n \"matchers\": [\n {\n \"matcherId\": \"example-matcher\",\n \"hook-base-address\": \"http://portal.vtexinternal.com.br/api/u90/hooks\",\n \"isActive\": true,\n \"updatesNotificationEndpoint\": null,\n \"description\": null\n }\n ],\n \"rules\": {\n \"item\": [],\n \"product\": []\n },\n \"specificationsMapping\": [],\n \"matchFlux\": \"Default\"\n}", + "header": [], "cookie": [] } ], @@ -762,13 +871,10 @@ { "listen": "test", "script": { - "id": "b9694af8-b6c7-4f96-9ad6-3d0b8a12794d", + "id": "2809424d-58ad-42a0-a207-de5214a3cec5", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[GET]::/suggestions/configuration/account/config - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", - "// Validate if response header has matching content-type\npm.test(\"[GET]::/suggestions/configuration/account/config - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", - "// Validate if response has JSON Body \npm.test(\"[GET]::/suggestions/configuration/account/config - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"title\":\"GetAccountsMatcherSettings\",\"description\":\"Response from Get Account's Matcher Settings endpoint with information about current matcher score setting, rules, spec mapping, and matchFlux.\",\"type\":\"object\",\"properties\":{\"score\":{\"description\":\"[Matcher](https://help.vtex.com/pt/tutorial/entendendo-a-pontuacao-do-vtex-matcher--tutorials_424) rates received SKUs by comparing the data sent by sellers to existing fields in the marketplace. The calculation of these scores determines whether the product has been: `Approved`, `Pending` or `Denied`.\",\"type\":\"object\",\"properties\":{\"approve\":{\"type\":\"integer\",\"description\":\"Minimum approval score set by the marketplace.\",\"default\":\"80\"},\"pending\":{\"type\":\"integer\",\"description\":\"Minimum value for the ad to be pending.\",\"default\":\"31\"},\"reject\":{\"type\":\"integer\",\"description\":\"Bounce score set by marketplace.\",\"default\":\"30\"}}},\"matchers\":{\"description\":\"Array of objects that presents a list of matchers configured in the marketplace. If the marketplace has more than one matcher configured in the account, an array will be displayed for each matcher.\\n\\n By default, the VTEX Matcher is set up automatically in VTEX account.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"matcherId\":{\"type\":\"string\",\"description\":\"The Matcher Id.\"},\"hook-base-address\":{\"type\":\"string\",\"description\":\"The base address of the Matcher hook.\"},\"isActive\":{\"type\":\"boolean\",\"description\":\"Indicates if Matcher is active or not. `TRUE` = Matcher is active or `FALSE` = Matcher is inactive.\",\"default\":true}}}},\"rules\":{\"description\":\"Arrays object that contains the rules defined for product approval.\",\"type\":\"object\",\"properties\":{\"item\":{\"type\":\"array\",\"description\":\"A list of rules for items.\"},\"product\":{\"type\":\"array\",\"description\":\"A list of rules for products.\"}}},\"specificationsMapping\":{\"type\":\"array\",\"description\":\"This field will show a list of which product specs and SKU are configured to be mapped.\"},\"matchFlux\":{\"type\":\"string\",\"description\":\"This field shows what type of approval setting is being applied to SKUs received from a seller. \\n\\nPossible values include: \\n\\n-`default`: where Matcher reviews the SKU and approves it based on its score. \\n\\n-`manual`: for manual approvals via incoming SKU UI or mailing API. \\n\\n-`autoApprove`: so that every SKU received from a given seller is automatically approved, regardless of its Matcher Score.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/suggestions/configuration/account/config - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Validate status 2xx \npm.test(\"[GET]::/suggestions/:sellerId/:sellerskuid/versions - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" ] } } @@ -778,20 +884,21 @@ } }, { - "id": "6165f387-2b7b-4877-8ac7-bb68cebc4b91", - "name": "Get Seller's Approval Settings", + "id": "102e20b2-7e97-4e14-9897-f4467957a1fb", + "name": "Get Version by ID", "request": { - "name": "Get Seller's Approval Settings", + "name": "Get Version by ID", "description": { - "content": "This endpoint retrieves the current Received SKUs approval settings applied to a specific seller. Its response includes: \n\n- `sellerId`: A string that identifies the seller in the marketplace. \n\n- `accountId`: Marketplace’s account ID. \n\n- `accountName`: Marketplace’s account name. \n\n- `mapping`: Mapping of SKU and product Specifications. \n\n- `matchFlux`: This field determines the type of approval configuration applied to SKUs received from a seller. \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI and Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically , regardless of the Matcher Score.", + "content": "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. \n\nThis endpoint retrieves a specific *version* of a chosen SKU sent by the seller. Add the Seller's ID, Seller's SKU ID, and version ID in the path to detail your search.", "type": "text/plain" }, "url": { "path": [ "suggestions", - "configuration", - "seller", - ":sellerId" + ":sellerId", + ":sellerskuid", + "versions", + ":version" ], "host": [ "{{baseUrl}}" @@ -801,22 +908,42 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) 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.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "value": "seller123", + "key": "sellerId" }, { "disabled": false, "description": { - "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", + "content": "(Required) 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.", "type": "text/plain" }, "type": "any", - "value": "seller123", - "key": "sellerId" + "value": "1234", + "key": "sellerskuid" + }, + { + "disabled": false, + "description": { + "content": "(Required) 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 the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion). through the `latestVersionId` field.", + "type": "text/plain" + }, + "type": "any", + "value": "09072021142808277", + "key": "version" + }, + { + "disabled": false, + "description": { + "content": "(Required) Name of the VTEX account. Used as part of the URL", + "type": "text/plain" + }, + "type": "any", + "value": "apiexamples", + "key": "accountName" } ] }, @@ -824,7 +951,7 @@ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand", "type": "text/plain" }, "key": "Accept", @@ -840,55 +967,36 @@ "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "json" + "postman_previewlanguage": "text" }, - "id": "da32da8f-83c5-4519-b571-7ec743f44b5d", + "id": "2a108e3c-3071-41a0-88d3-3cefb873978f", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - "configuration", - "seller", - ":sellerId" + ":sellerId", + ":sellerskuid", + "versions", + ":version" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - } - ] + "variable": [] }, "header": [ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand", "type": "text/plain" }, "key": "Accept", @@ -902,10 +1010,6 @@ }, "key": "Content-Type", "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" } ], "method": "GET", @@ -913,13 +1017,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": "{\n \"sellerId\": \"sellerexample\",\n \"accountId\": \"d74dau71f-325a-4463-bd53-ae8b0453186ca\",\n \"accountName\": \"marketplaceexample\",\n \"mapping\": {\n \"defaultColor\": \"white /black\",\n \"searchColor\": \"color1, color2\",\n \"color1\": \"black\",\n \"color2\": \"white\",\n \"color\": \"black\",\n \"size\": \"EUR44\"\n },\n \"matchFlux\": \"default\"\n}", + "header": [], "cookie": [] } ], @@ -927,13 +1025,10 @@ { "listen": "test", "script": { - "id": "d57a8640-c070-4fa4-ba87-d351b6f31eef", + "id": "348fb63a-e338-45df-a12d-4db2d1b87e58", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[GET]::/suggestions/configuration/seller/:sellerId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", - "// Validate if response header has matching content-type\npm.test(\"[GET]::/suggestions/configuration/seller/:sellerId - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", - "// Validate if response has JSON Body \npm.test(\"[GET]::/suggestions/configuration/seller/:sellerId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"title\":\"GetSellersApprovalSettings\",\"type\":\"object\",\"properties\":{\"sellerId\":{\"type\":\"string\",\"description\":\"A string that identifies the seller in the marketplace.\",\"example\":\"sellerexample\"},\"accountId\":{\"type\":\"string\",\"description\":\"Marketplace’s account ID.\",\"example\":\"d74daf1f-355a-4463-bdc7-ae8b045311c\"},\"accountName\":{\"type\":\"string\",\"description\":\"Marketplace’s account name.\",\"example\":\"marketplaceexample\"},\"mapping\":{\"type\":\"object\",\"default\":{},\"description\":\"SKU Mapping Information and Product [Specifications](https://developers.vtex.com/docs/guides/catalog-overview#configuring-initial-settings-mandatory).\\n\\n The properties included within `mapping` can change according to the product type, the `color` specification and its variations described in this example are just one of the possibilities. The values received in this call's payload for those properties depend on the seller's catalog architecture, and are not default. \\n\\nSee some examples of specifications: \\n\\n- Voltage \\n\\n- Power \\n\\n- Size \\n\\n- Height \\n\\n- Width\",\"properties\":{\"defaultColor\":{\"type\":\"string\",\"description\":\"The field will indicate the default color predefined by the seller in cases where specific product colors are not defined. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog. \",\"example\":\"white /black\"},\"searchColor\":{\"type\":\"string\",\"description\":\"Field that provides the available colors to filter searches. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"color1, color2\"},\"color1\":{\"type\":\"string\",\"description\":\"`color1` available for search filter. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"black\"},\"color2\":{\"type\":\"string\",\"description\":\"`color2` available for search filter. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"white\"},\"color\":{\"type\":\"string\",\"description\":\"Indicates the predominant or main color of the product. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"black\"},\"size\":{\"type\":\"string\",\"description\":\"Indicates the size of the product.This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"EUR44\"}}},\"matchFlux\":{\"type\":\"string\",\"description\":\"This field determines the type of [approval configuration applied to SKUs received from a seller](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/seller/-sellerId-). \\n\\nThe possible values include: \\n\\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \\n\\n-`manual`, for manual approvals through the Received SKU UI and Match API. \\n\\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of the Matcher Score.\",\"example\":\"default\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/suggestions/configuration/seller/:sellerId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Validate status 2xx \npm.test(\"[GET]::/suggestions/:sellerId/:sellerskuid/versions/:version - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" ] } } @@ -941,47 +1036,58 @@ "protocolProfileBehavior": { "disableBodyPruning": true } - }, + } + ], + "event": [] + }, + { + "id": "07da8408-2156-4cef-87a1-ea3c2217a6fb", + "name": "SKU Approval Settings", + "description": { + "content": "", + "type": "text/plain" + }, + "item": [ { - "id": "520809fb-2500-4eaf-aa8b-658eed3d5a14", - "name": "Save Seller's Approval Settings", + "id": "83996a99-05af-4bbf-9b65-9fdc9f7692be", + "name": "Get autoApprove Status in Account Settings", "request": { - "name": "Save Seller's Approval Settings", + "name": "Get autoApprove Status in Account Settings", "description": { - "content": "Marketplaces use this endpoint to create or update approval settings to a specific seller, on the Received SKUs module. \n\nThe request includes all the details necessary to implement the chosen approval settings.", + "content": "This endpoint can be used to check whether the autoapprove setting is active or not, for a specific seller. \n\nIf the response is `true`, the autoapprove setting is active. If the response is `false`, it is inactive.", "type": "text/plain" }, "url": { "path": [ "suggestions", "configuration", - "seller", - ":sellerId" + "autoapproval", + "toggle" ], "host": [ "{{baseUrl}}" ], - "query": [], - "variable": [ + "query": [ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, + "key": "sellerId", + "value": "seller123" + } + ], + "variable": [ { "disabled": false, "description": { - "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", + "content": "(Required) Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "type": "text/plain" }, "type": "any", - "value": "seller123", - "key": "sellerId" + "value": "apiexamples", + "key": "accountName" } ] }, @@ -1003,60 +1109,45 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"sellerId\": \"1a\",\n \"mapping\": null,\n \"matchFlux\": \"Default\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } + "method": "GET", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "text" + "postman_previewlanguage": "json" }, - "id": "457a234f-da65-4988-82c5-3ccd9503bc22", + "id": "32d95e4f-b58f-4561-ab1c-b4666b1035e3", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", "configuration", - "seller", - ":sellerId" + "autoapproval", + "toggle" ], "host": [ "{{baseUrl}}" ], - "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, + "query": [ { "disabled": false, "description": { "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", "type": "text/plain" }, - "type": "any", - "value": "seller123", - "key": "sellerId" + "key": "sellerId", + "value": "seller123" } - ] + ], + "variable": [] }, "header": [ { @@ -1076,28 +1167,24 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"sellerId\": \"1a\",\n \"mapping\": null,\n \"matchFlux\": \"Default\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } + "method": "GET", + "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", - "value": "text/plain" + "value": "application/json" } ], - "body": "", + "body": "{\n \"Enabled\": false\n}", "cookie": [] } ], @@ -1105,10 +1192,13 @@ { "listen": "test", "script": { - "id": "1f82d194-e0e1-4d19-8aae-03a73afc0589", + "id": "6544cd2e-1d0a-4dfe-8707-510e537edf6b", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/configuration/seller/:sellerId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" + "// Validate status 2xx \npm.test(\"[GET]::/suggestions/configuration/autoapproval/toggle - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", + "// Validate if response header has matching content-type\npm.test(\"[GET]::/suggestions/configuration/autoapproval/toggle - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", + "// Validate if response has JSON Body \npm.test(\"[GET]::/suggestions/configuration/autoapproval/toggle - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Enabled\":{\"type\":\"boolean\",\"description\":\"If the autoapprove setting is active for a given seller (`true`) or not (`false`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/suggestions/configuration/autoapproval/toggle - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -1118,12 +1208,12 @@ } }, { - "id": "582cf845-897e-4a6f-9a4d-23d0196a78df", - "name": "Activate autoApprove Setting for a Seller", + "id": "0a0edf1e-72a8-4d1e-9f23-1286d55a70dd", + "name": "Activate autoApprove in Marketplace's Account", "request": { - "name": "Activate autoApprove Setting for a Seller", + "name": "Activate autoApprove in Marketplace's Account", "description": { - "content": "This endpoint enables the auto approve setting to received SKUs from a specific seller. Be aware that once enabling the rule through this request, all received SKUs from that seller will be automatically approved on your store, regardless of the Matcher Score.", + "content": "This endpoint enables the autoapprove rule to a marketplace's whole Received SKUs module. Once enabling the rule, received SKUs will be automatically approved on your store, regardless of the seller. \n\n For the autoapprove rule to work as expected, the approval [Matcher score](https://help.vtex.com/en/tutorial/entendendo-a-pontuacao-do-vtex-matcher--tutorials_424) should be set up as 80 (default value), but you can configure a different number through the field `Score` in [Save Account's Approval Settings](https://developers.vtex.com/vtex-rest-api/reference/saveaccountconfig).", "type": "text/plain" }, "url": { @@ -1131,9 +1221,7 @@ "suggestions", "configuration", "autoapproval", - "toggle", - "seller", - ":sellerId" + "toggle" ], "host": [ "{{baseUrl}}" @@ -1143,22 +1231,12 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "apiexamples", "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" } ] }, @@ -1180,6 +1258,14 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -1188,6 +1274,7 @@ "raw": "{\n \"Enabled\": true\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -1196,46 +1283,23 @@ "response": [ { "_": { - "postman_previewlanguage": "text" + "postman_previewlanguage": "json" }, - "id": "6bcc299e-8ff8-4374-8604-5e7f02c587f2", + "id": "3456c572-ccca-4e02-8a96-3fc18263d9c5", "name": "OK", "originalRequest": { "url": { "path": [ - "suggestions", - "configuration", - "autoapproval", - "toggle", - "seller", - ":sellerId" - ], - "host": [ - "{{baseUrl}}" - ], - "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - } - ] + "suggestions", + "configuration", + "autoapproval", + "toggle" + ], + "host": [ + "{{baseUrl}}" + ], + "query": [], + "variable": [] }, "header": [ { @@ -1255,6 +1319,14 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -1263,6 +1335,7 @@ "raw": "{\n \"Enabled\": true\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -1273,10 +1346,10 @@ "header": [ { "key": "Content-Type", - "value": "text/plain" + "value": "application/json" } ], - "body": "", + "body": "{\n \"Enabled\": false\n}", "cookie": [] } ], @@ -1284,10 +1357,13 @@ { "listen": "test", "script": { - "id": "4eb59099-e4a0-4f75-8358-3f69bb5d5f45", + "id": "9039d5f1-5a18-471e-8e2e-7556e29752c9", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle/seller/:sellerId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" + "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", + "// Validate if response header has matching content-type\npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", + "// Validate if response has JSON Body \npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Enabled\":{\"type\":\"boolean\",\"description\":\"If the autoapprove setting is active (`true`) or not (`false`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -1295,117 +1371,34 @@ "protocolProfileBehavior": { "disableBodyPruning": true } - } - ], - "event": [] - }, - { - "id": "e84a18d6-b867-4661-b827-6858cb73e081", - "name": "Get Suggestions", - "description": { - "content": "", - "type": "text/plain" - }, - "item": [ + }, { - "id": "774b365a-b07c-4025-9e2f-99d1c40cc95a", - "name": "Get all SKU suggestions", + "id": "5c8d075e-9953-482c-9729-550a6a474d69", + "name": "Get Account's Approval Settings", "request": { - "name": "Get all SKU suggestions", + "name": "Get Account's Approval Settings", "description": { - "content": "This endpoint retrieves a list of all SKUs sent by the seller for the Marketplace's approval. Marketplace operators should use this endpoint whenever they want to check the full list of received SKUs and their information. \n\nNote that all the information sent by the seller will be in the [content] object. All remaining information in this endpoint's response is given by the Matcher. \n\nMatcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: score equal to or greater than 80 points. \n\n`Pending`: from 31 to 79 points.\n\n`Denied`: from 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", + "content": "This endpoint retrieves the current approval settings of a marketplace's Received SKUs module. Its response includes: \n\n- `Score`: Matcher scores for approving and rejecting SKUs received from sellers. \n\n- `Matchers`: All Matchers configured on the marketplace, and their respective details. \n\n- `SpecificationsMapping`: Mapping of product and SKU specifications, per seller. \n\n- `MatchFlux`: This field determines the type of approval configuration applied to SKUs received from a seller. \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI, or Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of their Matcher Score.", "type": "text/plain" }, "url": { "path": [ - "suggestions" + "suggestions", + "configuration" ], "host": [ "{{baseUrl}}" ], - "query": [ - { - "disabled": true, - "description": { - "content": "This field allows you to customize your search. You can fill in this query param if you want to narrow down your search using the available filters on Received SKU modules.", - "type": "text/plain" - }, - "key": "q", - "value": "" - }, - { - "disabled": true, - "description": { - "content": "This field allows users to filter SKU suggestions, by searching only the new suggestions that were just sent, and suggestions that have already been sent, but were updated. Possible values for this field include `new` and `update`.", - "type": "text/plain" - }, - "key": "type", - "value": "new" - }, - { - "disabled": true, - "description": { - "content": "A string that identifies the seller in the marketplace. This ID must be created by the marketplace and informed to the seller so it can call this endpoint.", - "type": "text/plain" - }, - "key": "seller", - "value": "" - }, - { - "disabled": true, - "description": { - "content": "Narrow down you search, filtering by status. Values allowed on this field include: `accepted`, `pending` and `denied.`", - "type": "text/plain" - }, - "key": "status", - "value": "accepted" - }, - { - "disabled": true, - "description": { - "content": "This field allows you to filter SKUs that have mapping or not. Insert `true` to filter SKUs that have mapping, or `false` to retrieve SKUs that aren't mapped.", - "type": "text/plain" - }, - "key": "hasmapping", - "value": "true" - }, - { - "disabled": true, - "description": { - "content": "Identifies the matching entity. It can be either VTEX's matcher, or an external matcher developed by partners, for example. The `matcherId`'s value can be obtained through the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion) endpoint.", - "type": "text/plain" - }, - "key": "matcherid", - "value": "vtex-matcher" - }, - { - "disabled": true, - "description": { - "content": "Define your pagination range, by adding the pagination starting value. Values should be bigger than 0, with a maximum of 50 records per page.", - "type": "text/plain" - }, - "key": "_from", - "value": "1" - }, - { - "disabled": true, - "description": { - "content": "Define your pagination range, by adding the pagination ending value. Values should be bigger than 0, with a maximum of 50 records per page.", - "type": "text/plain" - }, - "key": "_to", - "value": "50" - } - ], + "query": [], "variable": [ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "apiexamples", "key": "accountName" } ] @@ -1423,76 +1416,38 @@ { "disabled": false, "description": { - "content": "(Required) Type of the content being sent.", + "content": "(Required) Describes the type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "text" + "postman_previewlanguage": "json" }, - "id": "9c3c9b91-7c85-4413-93f8-fe61231fb7e6", + "id": "57c38460-0896-4fb1-a491-bb3afbf109e7", "name": "OK", "originalRequest": { "url": { "path": [ - "suggestions" + "suggestions", + "configuration" ], "host": [ "{{baseUrl}}" ], - "query": [ - { - "key": "q", - "value": "" - }, - { - "key": "type", - "value": "new" - }, - { - "key": "seller", - "value": "" - }, - { - "key": "status", - "value": "accepted" - }, - { - "key": "hasmapping", - "value": "true" - }, - { - "key": "matcherid", - "value": "vtex-matcher" - }, - { - "key": "_from", - "value": "1" - }, - { - "key": "_to", - "value": "50" - } - ], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - } - ] + "query": [], + "variable": [] }, "header": [ { @@ -1507,11 +1462,15 @@ { "disabled": false, "description": { - "content": "(Required) Type of the content being sent.", + "content": "(Required) Describes the type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "GET", @@ -1522,10 +1481,10 @@ "header": [ { "key": "Content-Type", - "value": "text/plain" + "value": "application/json" } ], - "body": "", + "body": "{\n \"Score\": {\n \"Approve\": 80,\n \"Reject\": 30\n },\n \"Matchers\": [\n {\n \"MatcherId\": \"vtex-matcher\",\n \"hook-base-address\": \"http://portal.vtexinternal.com/api/ssm/hooks\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": null,\n \"Description\": null\n }\n ],\n \"Rules\": {\n \"Item\": [],\n \"Product\": []\n },\n \"SpecificationsMapping\": [],\n \"MatchFlux\": \"Default\"\n}", "cookie": [] } ], @@ -1533,10 +1492,13 @@ { "listen": "test", "script": { - "id": "4a7e9d77-21ac-4530-b47e-54c550da7969", + "id": "ec1ee7e1-574e-4c52-a97a-f517020cbe5c", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[GET]::/suggestions - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" + "// Validate status 2xx \npm.test(\"[GET]::/suggestions/configuration - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", + "// Validate if response header has matching content-type\npm.test(\"[GET]::/suggestions/configuration - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", + "// Validate if response has JSON Body \npm.test(\"[GET]::/suggestions/configuration - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Score\":{\"type\":\"object\",\"description\":\"Matcher scores for approving and rejecting SKUs received from sellers.\"},\"Matchers\":{\"type\":\"array\",\"description\":\"All Matchers configured on the marketplace, and their respective details.\"},\"Rules\":{\"type\":\"object\",\"description\":\"Items and products.\"},\"SpecificationsMapping\":{\"type\":\"array\",\"description\":\"Mapping of product and SKU specifications, per seller.\"},\"MatchFlux\":{\"type\":\"string\",\"description\":\"This field determines the type of approval configuration applied to SKUs received from a seller.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/suggestions/configuration - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -1546,19 +1508,18 @@ } }, { - "id": "29e5ee22-bfbd-472b-9f63-d57b576bfa1a", - "name": "Get SKU Suggestion by ID", + "id": "4df27ca9-7534-4f17-8a80-3aa28db9c948", + "name": "Save Account's Approval Settings", "request": { - "name": "Get SKU Suggestion by ID", + "name": "Save Account's Approval Settings", "description": { - "content": "This endpoint retrieves the data of a specific SKU sent by the seller, to the marketplace. Marketplaces or external matchers can call this endpoint when they want to check the information about a single SKU. \n\nNote that all the information sent by the seller will be in the [content] object. All remaining information in this endpoint's response is given by the Matcher. \n\nMatcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: score equal to or greater than 80 points. \n\n`Pending`: from 31 to 79 points.\n\n`Denied`: from 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", + "content": "Marketplaces use this endpoint to create or update approval settings on their Received SKUs module. \n\nThe request includes all the details necessary to implement the chosen approval settings.", "type": "text/plain" }, "url": { "path": [ "suggestions", - ":sellerId", - ":sellerSkuId" + "configuration" ], "host": [ "{{baseUrl}}" @@ -1568,32 +1529,12 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "apiexamples", "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerSkuId" } ] }, @@ -1615,60 +1556,46 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"Score\": {\n \"Approve\": 80,\n \"Reject\": 30\n },\n \"Matchers\": [\n {\n \"MatcherId\": \"vtex-matcher\",\n \"hook-base-address\": \"http://simple-suggestion-matcher.vtex.com.br\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": null,\n \"Description\": null\n }\n ],\n \"SpecificationsMapping\": [],\n \"MatchFlux\": \"AutoApprove\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + } }, "response": [ { "_": { - "postman_previewlanguage": "text" + "postman_previewlanguage": "json" }, - "id": "407a0e09-736f-48b1-acbc-f1120f6a788a", + "id": "50bae3e2-984e-46f4-aff7-6f947197eeed", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - ":sellerId", - ":sellerSkuId" + "configuration" ], "host": [ "{{baseUrl}}" - ], - "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerSkuId" - } - ] + ], + "query": [], + "variable": [] }, "header": [ { @@ -1688,20 +1615,37 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET", - "body": {} + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"Score\": {\n \"Approve\": 80,\n \"Reject\": 30\n },\n \"Matchers\": [\n {\n \"MatcherId\": \"vtex-matcher\",\n \"hook-base-address\": \"http://simple-suggestion-matcher.vtex.com.br\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": null,\n \"Description\": null\n }\n ],\n \"SpecificationsMapping\": [],\n \"MatchFlux\": \"AutoApprove\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + } }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", - "value": "text/plain" + "value": "application/json" } ], - "body": "", + "body": "{\n \"Score\": {\n \"Approve\": 80,\n \"Reject\": 30\n },\n \"Matchers\": [\n {\n \"MatcherId\": \"vtex-matcher\",\n \"hook-base-address\": \"http://simple-suggestion-matcher.vtex.com.br\",\n \"IsActive\": true,\n \"UpdatesNotificationEndpoint\": \"notification.endpoint\",\n \"Description\": \"Note\"\n }\n ],\n \"Rules\": {\n \"Item\": [\n 1\n ],\n \"Product\": [\n \"Shirt\"\n ]\n },\n \"SpecificationsMapping\": [\n {\n \"SellerId\": \"Store1\",\n \"Mapping\": {\n \"Yellow\": \"Light yellow\"\n }\n }\n ],\n \"MatchFlux\": \"AutoApprove\"\n}", "cookie": [] } ], @@ -1709,10 +1653,13 @@ { "listen": "test", "script": { - "id": "be0f7dfe-f764-4cce-ba01-206fe077b649", + "id": "7bd7a5e8-f72b-4a3d-9f27-f52855d03ef7", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[GET]::/suggestions/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" + "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/configuration - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", + "// Validate if response header has matching content-type\npm.test(\"[PUT]::/suggestions/configuration - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", + "// Validate if response has JSON Body \npm.test(\"[PUT]::/suggestions/configuration - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", + "// Response Validation\nconst schema = {\"type\":\"object\",\"example\":{\"Score\":{\"Approve\":80,\"Reject\":30},\"Matchers\":[{\"MatcherId\":\"vtex-matcher\",\"hook-base-address\":\"http://simple-suggestion-matcher.vtex.com.br\",\"IsActive\":true,\"UpdatesNotificationEndpoint\":\"notification.endpoint\",\"Description\":\"Note\"}],\"Rules\":{\"Item\":[1],\"Product\":[\"Shirt\"]},\"SpecificationsMapping\":[{\"SellerId\":\"Store1\",\"Mapping\":{\"Yellow\":\"Light yellow\"}}],\"MatchFlux\":\"AutoApprove\"},\"properties\":{\"Score\":{\"type\":\"object\",\"description\":\"[Matcher's rates](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring) to approve or reject [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) sent by sellers.\",\"properties\":{\"Approve\":{\"type\":\"integer\",\"description\":\"Score to approve SKUs sent by sellers.\"},\"Reject\":{\"type\":\"integer\",\"description\":\"Score to reject SKUs sent by sellers.\"}},\"example\":{\"Approve\":80,\"Reject\":30}},\"Matchers\":{\"type\":\"array\",\"description\":\"[Matchers](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring) configurations for approving and rejecting [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) sent by sellers.\",\"properties\":{\"MatcherId\":{\"type\":\"string\",\"description\":\"Identifies the matching entity. It can be either [VTEX's matcher](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring), or an external matcher.\"},\"hook-base-address\":{\"type\":\"string\",\"description\":\"The given Matcher's URL.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Whether the matcher is active in the account (`true`), or not (`false`).\"},\"UpdatesNotificationEndpoint\":{\"type\":\"string\",\"description\":\"The [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) module calls this endpoint for matcher's suggestions updates.\"},\"Description\":{\"type\":\"string\",\"description\":\"The note inserted on the request body.\"}}},\"Rules\":{\"type\":\"object\",\"description\":\"Items and products that belong to sellers.\",\"properties\":{\"Item\":{\"type\":\"array\",\"description\":\"SKUs' ID.\",\"items\":{\"type\":\"integer\",\"description\":\"SKU ID.\"}},\"Product\":{\"type\":\"array\",\"description\":\"Product's name.\",\"items\":{\"type\":\"string\",\"description\":\"Product name.\"}}}},\"SpecificationsMapping\":{\"type\":\"array\",\"description\":\"This attribute maps product and SKU's specifications between the marketplace and the seller.\",\"properties\":{\"SellerId\":{\"type\":\"string\",\"description\":\"The Seller ID.\"},\"Mapping\":{\"type\":\"object\",\"description\":\"The attributes and values mapped between the marketplace and the seller.\"}}},\"MatchFlux\":{\"type\":\"string\",\"description\":\"Type of approval configuration that apply to received SKUs sent by sellers. The possible values are: \\n\\n`default`: the matcher approves the SKU. \\n\\n`manual`: manual SKU's approvals. \\n\\n`AutoApprove`: automatic SKU's approvals.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/suggestions/configuration - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -1720,32 +1667,22 @@ "protocolProfileBehavior": { "disableBodyPruning": true } - } - ], - "event": [] - }, - { - "id": "bed99e48-0b80-4e23-8ce9-9e2257dc7ee5", - "name": "Manage Suggestions", - "description": { - "content": "", - "type": "text/plain" - }, - "item": [ + }, { - "id": "89722d13-c259-40cf-a2d2-4bdcc3e93920", - "name": "Send SKU Suggestion", + "id": "584e0c6e-0424-41a8-99c5-e02b1c0d7c18", + "name": "Get Account's Matcher Settings", "request": { - "name": "Send SKU Suggestion", + "name": "Get Account's Matcher Settings", "description": { - "content": "This request is used by the seller when it wants to suggest that one of their SKUs is sold in the marketplace.\n\nBefore using this request, the seller should always use the [Change Notification](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-seller-sku-notification) request in order to check if the SKU already exists in the marketplace. If it doesn't, then this is the next call in the SKU integration flow.\n\nIn the Send Suggestion request, the seller must send information about the SKU, such as the product and SKU name, the seller ID, and the image URL. All parameters are explained below. ", + "content": "This endpoint will be used by the marketplace to query the matcher's current approval settings on their incoming SKUs module. If the account has no matcher configured, the response will be `404 Not Found`. \n\nFor account approval configuration information, with response including specification information, see [Get Account Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis- suggestions#get-/suggestions /configuration) terminal. \n\nThe [VTEX matcher](https://help.vtex.com/pt/tutorial/entendendo-a-punctuacao-do-vtex-matcher--tutorials_424) is a tool used by marketplaces to evaluate SKUs corresponding to information from an advertisement of the seller, with those of items already present in the marketplace catalog.", "type": "text/plain" }, "url": { "path": [ "suggestions", - ":sellerId", - ":sellerSkuId" + "configuration", + "account", + "config" ], "host": [ "{{baseUrl}}" @@ -1755,32 +1692,12 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", + "value": "apiexamples", "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the SKU in the seller. This is the ID that the marketplace will use for future references to this SKU, such as price and inventory notifications.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerSkuId" } ] }, @@ -1788,11 +1705,11 @@ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", - "value": "application/vnd.vtex.suggestion.v0+json" + "value": "application/json" }, { "disabled": false, @@ -1802,79 +1719,45 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"ProductId\": \"321\",\n \"ProductName\": \"Product sample\",\n \"NameComplete\": \"Complete product name\",\n \"ProductDescription\": \"sample\",\n \"BrandName\": \"Brand 1\",\n \"SkuName\": \"Sku sample\",\n \"SellerId\": \"string\",\n \"Height\": 1,\n \"Width\": 1,\n \"Length\": 1,\n \"Weight\": 1,\n \"Updated\": null,\n \"RefId\": \"REFID123\",\n \"SellerStockKeepingUnitId\": 567,\n \"CategoryFullPath\": \"Category 1\",\n \"Images\": [\n {\n \"imageName\": \"Principal\",\n \"imageUrl\": \"https://i.pinimg.com/originals/2d/96/4a/2d964a6bf37d9224d0615dc85fccdd62.jpg\"\n }\n ],\n \"ProductSpecifications\": [\n {\n \"fieldName\": \"Fabric\",\n \"fieldValues\": [\n \"Cotton\",\n \"Velvet\"\n ]\n }\n ],\n \"SkuSpecifications\": [\n {\n \"fieldName\": \"Color\",\n \"fieldValues\": [\n \"Red\",\n \"Blue\"\n ]\n }\n ],\n \"EAN\": \"EAN123\",\n \"MeasurementUnit\": \"un\",\n \"UnitMultiplier\": 1,\n \"AvailableQuantity\": 111,\n \"Pricing\": {\n \"Currency\": \"BRL\",\n \"SalePrice\": 399,\n \"CurrencySymbol\": \"R$\"\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - } + "method": "GET", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "text" + "postman_previewlanguage": "json" }, - "id": "224c36bf-e622-4151-930f-b6c792c530a1", + "id": "11cb9a8d-b7b7-414f-952e-1e47c24af774", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - ":sellerId", - ":sellerSkuId" + "configuration", + "account", + "config" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the SKU in the seller. This is the ID that the marketplace will use for future references to this SKU, such as price and inventory notifications.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerSkuId" - } - ] + "variable": [] }, "header": [ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", - "value": "application/vnd.vtex.suggestion.v0+json" + "value": "application/json" }, { "disabled": false, @@ -1884,28 +1767,24 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"ProductId\": \"321\",\n \"ProductName\": \"Product sample\",\n \"NameComplete\": \"Complete product name\",\n \"ProductDescription\": \"sample\",\n \"BrandName\": \"Brand 1\",\n \"SkuName\": \"Sku sample\",\n \"SellerId\": \"string\",\n \"Height\": 1,\n \"Width\": 1,\n \"Length\": 1,\n \"Weight\": 1,\n \"Updated\": null,\n \"RefId\": \"REFID123\",\n \"SellerStockKeepingUnitId\": 567,\n \"CategoryFullPath\": \"Category 1\",\n \"Images\": [\n {\n \"imageName\": \"Principal\",\n \"imageUrl\": \"https://i.pinimg.com/originals/2d/96/4a/2d964a6bf37d9224d0615dc85fccdd62.jpg\"\n }\n ],\n \"ProductSpecifications\": [\n {\n \"fieldName\": \"Fabric\",\n \"fieldValues\": [\n \"Cotton\",\n \"Velvet\"\n ]\n }\n ],\n \"SkuSpecifications\": [\n {\n \"fieldName\": \"Color\",\n \"fieldValues\": [\n \"Red\",\n \"Blue\"\n ]\n }\n ],\n \"EAN\": \"EAN123\",\n \"MeasurementUnit\": \"un\",\n \"UnitMultiplier\": 1,\n \"AvailableQuantity\": 111,\n \"Pricing\": {\n \"Currency\": \"BRL\",\n \"SalePrice\": 399,\n \"CurrencySymbol\": \"R$\"\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - } + "method": "GET", + "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", - "value": "text/plain" + "value": "application/json" } ], - "body": "", + "body": "{\n \"score\": {\n \"approve\": 85,\n \"pending\": 31,\n \"reject\": 30\n },\n \"matchers\": [\n {\n \"matcherId\": \"example-matcher\",\n \"hook-base-address\": \"http://portal.vtexinternal.com.br/api/u90/hooks\",\n \"isActive\": true,\n \"updatesNotificationEndpoint\": null,\n \"description\": null\n }\n ],\n \"rules\": {\n \"item\": [],\n \"product\": []\n },\n \"specificationsMapping\": [],\n \"matchFlux\": \"Default\"\n}", "cookie": [] } ], @@ -1913,10 +1792,13 @@ { "listen": "test", "script": { - "id": "06dc65c9-f9bc-43c3-9a26-90c11c63b240", + "id": "986db8e5-a709-4927-9c0e-d6bfc50c47d7", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" + "// Validate status 2xx \npm.test(\"[GET]::/suggestions/configuration/account/config - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", + "// Validate if response header has matching content-type\npm.test(\"[GET]::/suggestions/configuration/account/config - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", + "// Validate if response has JSON Body \npm.test(\"[GET]::/suggestions/configuration/account/config - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", + "// Response Validation\nconst schema = {\"description\":\"Response from Get Account's Matcher Settings endpoint with information about current matcher score setting, rules, spec mapping, and matchFlux.\",\"type\":\"object\",\"properties\":{\"score\":{\"description\":\"[Matcher](https://help.vtex.com/pt/tutorial/entendendo-a-pontuacao-do-vtex-matcher--tutorials_424) rates received SKUs by comparing the data sent by sellers to existing fields in the marketplace. The calculation of these scores determines whether the product has been: `Approved`, `Pending` or `Denied`.\",\"type\":\"object\",\"properties\":{\"approve\":{\"type\":\"integer\",\"description\":\"Minimum approval score set by the marketplace.\",\"default\":80},\"pending\":{\"type\":\"integer\",\"description\":\"Minimum value for the ad to be pending.\",\"default\":31},\"reject\":{\"type\":\"integer\",\"description\":\"Bounce score set by marketplace.\",\"default\":30}}},\"matchers\":{\"description\":\"Array of objects that presents a list of matchers configured in the marketplace. If the marketplace has more than one matcher configured in the account, an array will be displayed for each matcher.\\n\\n By default, the VTEX Matcher is set up automatically in VTEX account.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"matcherId\":{\"type\":\"string\",\"description\":\"The Matcher Id.\"},\"hook-base-address\":{\"type\":\"string\",\"description\":\"The base address of the Matcher hook.\"},\"isActive\":{\"type\":\"boolean\",\"description\":\"Indicates if Matcher is active or not. `TRUE` = Matcher is active or `FALSE` = Matcher is inactive.\",\"example\":true}}}},\"rules\":{\"description\":\"Arrays object that contains the rules defined for product approval.\",\"type\":\"object\",\"properties\":{\"item\":{\"type\":\"array\",\"description\":\"A list of rules for items.\"},\"product\":{\"type\":\"array\",\"description\":\"A list of rules for products.\"}}},\"specificationsMapping\":{\"type\":\"array\",\"description\":\"This field will show a list of which product specs and SKU are configured to be mapped.\"},\"matchFlux\":{\"type\":\"string\",\"description\":\"This field shows what type of approval setting is being applied to SKUs received from a seller. \\n\\nPossible values include: \\n\\n-`default`: where Matcher reviews the SKU and approves it based on its score. \\n\\n-`manual`: for manual approvals via incoming SKU UI or mailing API. \\n\\n-`autoApprove`: so that every SKU received from a given seller is automatically approved, regardless of its Matcher Score.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/suggestions/configuration/account/config - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -1926,19 +1808,20 @@ } }, { - "id": "56259eb8-560a-4c3c-9130-fdc8fa32bdb4", - "name": "Delete SKU Suggestion", + "id": "d3df5f0b-2ef9-4d95-b694-dac3219ca015", + "name": "Get Seller's Approval Settings", "request": { - "name": "Delete SKU Suggestion", + "name": "Get Seller's Approval Settings", "description": { - "content": "This endpoint deletes a chosen SKU suggestion. Only one SKU should be deleted per request. This request cannot be undone. A workaround to revert its action, is to send the suggestion again, through the Send Suggestion API.", + "content": "This endpoint retrieves the current Received SKUs approval settings applied to a specific seller. Its response includes: \n\n- `sellerId`: A string that identifies the seller in the marketplace. \n\n- `accountId`: Marketplace’s account ID. \n\n- `accountName`: Marketplace’s account name. \n\n- `mapping`: Mapping of SKU and product Specifications. \n\n- `matchFlux`: This field determines the type of approval configuration applied to SKUs received from a seller. \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI and Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically , regardless of the Matcher Score.", "type": "text/plain" }, "url": { "path": [ "suggestions", - ":sellerId", - ":sellerSkuId" + "configuration", + "seller", + ":sellerId" ], "host": [ "{{baseUrl}}" @@ -1948,17 +1831,7 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", + "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", "type": "text/plain" }, "type": "any", @@ -1968,12 +1841,12 @@ { "disabled": false, "description": { - "content": "(Required) 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.", + "content": "(Required) Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "type": "text/plain" }, "type": "any", - "value": "1234", - "key": "sellerSkuId" + "value": "apiexamples", + "key": "accountName" } ] }, @@ -1995,60 +1868,35 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "DELETE" + "method": "GET", + "body": {} }, "response": [ { "_": { - "postman_previewlanguage": "text" + "postman_previewlanguage": "json" }, - "id": "c10a1284-c2b5-4454-801b-35445e44d8b6", + "id": "1aa7cb3c-7ef2-457d-bc22-de1a58655747", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - ":sellerId", - ":sellerSkuId" + "configuration", + "seller", + ":sellerId" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerSkuId" - } - ] + "variable": [] }, "header": [ { @@ -2068,9 +1916,13 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "DELETE", + "method": "GET", "body": {} }, "status": "OK", @@ -2078,10 +1930,10 @@ "header": [ { "key": "Content-Type", - "value": "text/plain" + "value": "application/json" } ], - "body": "", + "body": "{\n \"sellerId\": \"sellerexample\",\n \"accountId\": \"d74dau71f-325a-4463-bd53-ae8b0453186ca\",\n \"accountName\": \"marketplaceexample\",\n \"mapping\": {\n \"defaultColor\": \"white /black\",\n \"searchColor\": \"color1, color2\",\n \"color1\": \"black\",\n \"color2\": \"white\",\n \"color\": \"black\",\n \"size\": \"EUR44\"\n },\n \"matchFlux\": \"default\"\n}", "cookie": [] } ], @@ -2089,10 +1941,13 @@ { "listen": "test", "script": { - "id": "29e2de67-8bbd-42fa-915c-43ea11435c23", + "id": "71defea0-41da-4484-b5c2-5f04a0a64518", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[DELETE]::/suggestions/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" + "// Validate status 2xx \npm.test(\"[GET]::/suggestions/configuration/seller/:sellerId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", + "// Validate if response header has matching content-type\npm.test(\"[GET]::/suggestions/configuration/seller/:sellerId - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", + "// Validate if response has JSON Body \npm.test(\"[GET]::/suggestions/configuration/seller/:sellerId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"sellerId\":{\"type\":\"string\",\"description\":\"A string that identifies the seller in the marketplace.\",\"example\":\"sellerexample\"},\"accountId\":{\"type\":\"string\",\"description\":\"Marketplace’s account ID.\",\"example\":\"d74daf1f-355a-4463-bdc7-ae8b045311c\"},\"accountName\":{\"type\":\"string\",\"description\":\"Marketplace’s account name.\",\"example\":\"marketplaceexample\"},\"mapping\":{\"type\":\"object\",\"default\":{},\"description\":\"SKU Mapping Information and Product [Specifications](https://developers.vtex.com/docs/guides/catalog-overview#configuring-initial-settings-mandatory).\\n\\n The properties included within `mapping` can change according to the product type, the `color` specification and its variations described in this example are just one of the possibilities. The values received in this call's payload for those properties depend on the seller's catalog architecture, and are not default. \\n\\nSee some examples of specifications: \\n\\n- Voltage \\n\\n- Power \\n\\n- Size \\n\\n- Height \\n\\n- Width.\",\"properties\":{\"defaultColor\":{\"type\":\"string\",\"description\":\"The field will indicate the default color predefined by the seller in cases where specific product colors are not defined. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"white /black\"},\"searchColor\":{\"type\":\"string\",\"description\":\"Field that provides the available colors to filter searches. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"color1, color2\"},\"color1\":{\"type\":\"string\",\"description\":\"`color1` available for search filter. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"black\"},\"color2\":{\"type\":\"string\",\"description\":\"`color2` available for search filter. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"white\"},\"color\":{\"type\":\"string\",\"description\":\"Indicates the predominant or main color of the product. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"black\"},\"size\":{\"type\":\"string\",\"description\":\"Indicates the size of the product.This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.\",\"example\":\"EUR44\"}}},\"matchFlux\":{\"type\":\"string\",\"description\":\"This field determines the type of [approval configuration applied to SKUs received from a seller](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/seller/-sellerId-). \\n\\nThe possible values include: \\n\\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \\n\\n-`manual`, for manual approvals through the Received SKU UI and Match API. \\n\\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of the Matcher Score.\",\"example\":\"autoApprove\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/suggestions/configuration/seller/:sellerId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -2100,33 +1955,22 @@ "protocolProfileBehavior": { "disableBodyPruning": true } - } - ], - "event": [] - }, - { - "id": "adce4a3a-8b7d-43d9-84ac-a2bb50abe696", - "name": "Get Versions", - "description": { - "content": "", - "type": "text/plain" - }, - "item": [ + }, { - "id": "3c418276-8ccd-4efb-9366-2fbd143614e4", - "name": "Get all Versions", + "id": "dcd77acc-c414-4cb5-a153-062c2bb64012", + "name": "Save Seller's Approval Settings", "request": { - "name": "Get all Versions", + "name": "Save Seller's Approval Settings", "description": { - "content": "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. \n\nThis endpoint retrieves the data of *all* previous and latest versions of a specific SKU suggestion, sent by the seller. Whenever an SKU is updated, it is important to map previous versions, to compare and identify changes. \n\nThe response's object [latestversion] provides the information of the most recent version of that SKU suggestion.", + "content": "Marketplaces use this endpoint to create or update approval settings to a specific seller, on the Received SKUs module. \n\nThe request includes all the details necessary to implement the chosen approval settings.", "type": "text/plain" }, "url": { "path": [ "suggestions", - ":sellerId", - ":sellerskuid", - "versions" + "configuration", + "seller", + ":sellerId" ], "host": [ "{{baseUrl}}" @@ -2136,17 +1980,7 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", + "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", "type": "text/plain" }, "type": "any", @@ -2156,12 +1990,12 @@ { "disabled": false, "description": { - "content": "(Required) 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.", + "content": "(Required) Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "type": "text/plain" }, "type": "any", - "value": "1234", - "key": "sellerskuid" + "value": "apiexamples", + "key": "accountName" } ] }, @@ -2169,7 +2003,7 @@ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", @@ -2183,67 +2017,50 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"sellerId\": \"1a\",\n \"mapping\": null,\n \"matchFlux\": \"Default\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } } - ], - "method": "GET" + } }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "7cb1d17d-a117-4a7b-8e68-c68d34ed2166", + "id": "9ca8f031-80dd-4c71-a3d6-fa3f9382be96", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - ":sellerId", - ":sellerskuid", - "versions" + "configuration", + "seller", + ":sellerId" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerskuid" - } - ] + "variable": [] }, "header": [ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", @@ -2257,20 +2074,27 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], - "method": "GET", - "body": {} + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"sellerId\": \"1a\",\n \"mapping\": null,\n \"matchFlux\": \"Default\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + } }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -2278,10 +2102,10 @@ { "listen": "test", "script": { - "id": "c1a325f3-74c6-4644-9d6f-b26a9e92d854", + "id": "f5746215-34e4-4b87-9153-d679cc648406", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[GET]::/suggestions/:sellerId/:sellerskuid/versions - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" + "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/configuration/seller/:sellerId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" ] } } @@ -2291,21 +2115,22 @@ } }, { - "id": "7dbb5c63-5843-41ad-a47a-b9050ac0f272", - "name": "Get Version by ID", + "id": "0ca44f99-e085-4546-b814-2fdb0e6a08e9", + "name": "Activate autoApprove Setting for a Seller", "request": { - "name": "Get Version by ID", + "name": "Activate autoApprove Setting for a Seller", "description": { - "content": "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. \n\nThis endpoint retrieves a specific *version* of a chosen SKU sent by the seller. Add the Seller's ID, Seller's SKU ID, and version ID in the path to detail your search.", + "content": "This endpoint enables the auto approve setting to received SKUs from a specific seller. Be aware that once enabling the rule through this request, all received SKUs from that seller will be automatically approved on your store, regardless of the Matcher Score.", "type": "text/plain" }, "url": { "path": [ "suggestions", - ":sellerId", - ":sellerskuid", - "versions", - ":version" + "configuration", + "autoapproval", + "toggle", + "seller", + ":sellerId" ], "host": [ "{{baseUrl}}" @@ -2315,17 +2140,7 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", + "content": "(Required) A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", "type": "text/plain" }, "type": "any", @@ -2335,22 +2150,12 @@ { "disabled": false, "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerskuid" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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 the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion). through the `latestVersionId` field.", + "content": "(Required) Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "type": "text/plain" }, "type": "any", - "value": "09072021142808277", - "key": "version" + "value": "apiexamples", + "key": "accountName" } ] }, @@ -2358,7 +2163,7 @@ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", @@ -2372,78 +2177,52 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], - "method": "GET" + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"Enabled\": true\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + } }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "341f16fe-8dd3-4b62-80cd-5bfcd9470ed7", + "id": "fe167d41-8708-4d98-8deb-b84a9f630659", "name": "OK", "originalRequest": { "url": { "path": [ "suggestions", - ":sellerId", - ":sellerskuid", - "versions", - ":version" + "configuration", + "autoapproval", + "toggle", + "seller", + ":sellerId" ], "host": [ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerskuid" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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 the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion). through the `latestVersionId` field.", - "type": "text/plain" - }, - "type": "any", - "value": "09072021142808277", - "key": "version" - } - ] + "variable": [] }, "header": [ { "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand", + "content": "(Required) HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", @@ -2457,20 +2236,27 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], - "method": "GET", - "body": {} + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"Enabled\": true\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + } }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -2478,10 +2264,10 @@ { "listen": "test", "script": { - "id": "fdb8b7a3-1e25-475f-98ce-0acb726b4285", + "id": "d1871b3d-b2d7-4479-8f78-07ee5b5f174b", "type": "text/javascript", "exec": [ - "// Validate status 2xx \npm.test(\"[GET]::/suggestions/:sellerId/:sellerskuid/versions/:version - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" + "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/configuration/autoapproval/toggle/seller/:sellerId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" ] } } @@ -2494,15 +2280,15 @@ "event": [] }, { - "id": "977d7eda-35d0-4504-a6f7-16c1c71a35c9", + "id": "6a027c7a-8a12-43dc-a5b9-8394e67f5d61", "name": "Match Received SKUs", "description": { - "content": "", + "content": "Match SKU suggestions received in the marketplace.", "type": "text/plain" }, "item": [ { - "id": "943cee38-6a39-47ff-9bcd-2d32ea50e3cc", + "id": "43179973-76e6-4abd-bd12-d5e66d089ac2", "name": "Match Received SKUs individually", "request": { "name": "Match Received SKUs individually", @@ -2525,16 +2311,6 @@ ], "query": [], "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, { "disabled": false, "description": { @@ -2572,8 +2348,18 @@ "type": "text/plain" }, "type": "any", - "value": "dolor", + "value": "deserunt aliquip in irure veniam", "key": "matchid" + }, + { + "disabled": false, + "description": { + "content": "(Required) Name of the VTEX account. Used as part of the URL", + "type": "text/plain" + }, + "type": "any", + "value": "apiexamples", + "key": "accountName" } ] }, @@ -2595,6 +2381,10 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], "method": "PUT", @@ -2603,6 +2393,7 @@ "raw": "{\n \"matcherId\": \"{{matcherid}}\",\n \"matchType\": \"itemMatch\",\n \"score\": \"{{score}} (must be decimal)\",\n \"skuRef\": \"{{skuid}}(should be specifed when match is a sku match)\",\n \"productRef\": \"{{productRef}}(should be specified when match is a product match)\",\n \"product\": {\n \"name\": \"Book A\",\n \"description\": \"Book description\",\n \"categoryId\": 12,\n \"brandId\": 1234567,\n \"matchType\": \"itemMatch\",\n \"specifications\": null\n },\n \"sku\": {\n \"name\": \"Sku exemplo\",\n \"eans\": [\n \"12345678901213\"\n ],\n \"refId\": null,\n \"height\": 1,\n \"width\": 1,\n \"length\": 1,\n \"weight\": 1,\n \"images\": [\n {\n \"imagem1.jpg\": {\n \"imagem1.jpg\": \"https://imageurl.example\"\n }\n }\n ],\n \"unitMultiplier\": 1,\n \"measurementUnit\": \"un\",\n \"specifications\": {\n \"Embalagem\": \"3 k g\"\n }\n }\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -2613,7 +2404,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "ff617a6d-291d-46e3-8265-59dc5909f197", + "id": "7d65bae0-fd21-47b2-8963-5f374515a0a2", "name": "OK", "originalRequest": { "url": { @@ -2630,58 +2421,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "seller123", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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.", - "type": "text/plain" - }, - "type": "any", - "value": "1234", - "key": "sellerskuid" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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 the[Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion). through the `latestVersionId` field.", - "type": "text/plain" - }, - "type": "any", - "value": "09072021142808277", - "key": "version" - }, - { - "disabled": false, - "description": { - "content": "(Required) 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](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion) endpoint.", - "type": "text/plain" - }, - "type": "any", - "value": "dolor", - "key": "matchid" - } - ] + "variable": [] }, "header": [ { @@ -2701,6 +2441,10 @@ }, "key": "Content-Type", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], "method": "PUT", @@ -2709,6 +2453,7 @@ "raw": "{\n \"matcherId\": \"{{matcherid}}\",\n \"matchType\": \"itemMatch\",\n \"score\": \"{{score}} (must be decimal)\",\n \"skuRef\": \"{{skuid}}(should be specifed when match is a sku match)\",\n \"productRef\": \"{{productRef}}(should be specified when match is a product match)\",\n \"product\": {\n \"name\": \"Book A\",\n \"description\": \"Book description\",\n \"categoryId\": 12,\n \"brandId\": 1234567,\n \"matchType\": \"itemMatch\",\n \"specifications\": null\n },\n \"sku\": {\n \"name\": \"Sku exemplo\",\n \"eans\": [\n \"12345678901213\"\n ],\n \"refId\": null,\n \"height\": 1,\n \"width\": 1,\n \"length\": 1,\n \"weight\": 1,\n \"images\": [\n {\n \"imagem1.jpg\": {\n \"imagem1.jpg\": \"https://imageurl.example\"\n }\n }\n ],\n \"unitMultiplier\": 1,\n \"measurementUnit\": \"un\",\n \"specifications\": {\n \"Embalagem\": \"3 k g\"\n }\n }\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -2716,13 +2461,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -2730,7 +2469,7 @@ { "listen": "test", "script": { - "id": "22b7913b-fc47-4253-920f-b03b026c83cd", + "id": "546901be-4e5a-4065-944e-b8685d40b5e5", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/:sellerId/:sellerskuid/versions/:version/matches/:matchid - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -2743,12 +2482,12 @@ } }, { - "id": "5addc753-6dac-4b20-962c-4a645c4f7173", + "id": "2a4de262-79fb-4b37-92b3-56092f3cc58f", "name": "Match Multiple Received SKUs", "request": { "name": "Match Multiple Received SKUs", "description": { - "content": "This endpoint allows the user to bulk approve, deny, or associate received SKUs. In a single request, you can match up to 25 received SKUs from your sellers.\n\nThrough the `actionName` attribute you can select the operation you want to apply to the received SKU. \n\nActions include: \n\n1. `newproduct`: match the SKU as a new product. \n\n2. `skuassociation`: associate the received SKU to an existing SKU. \n\n3. `productassociation`: associate the received SKU to an existing product. \n\n4. `deny`: deny the received SKU.", + "content": "Allows a marketplace to bulk approve, deny, or associate up to 25 received SKUs from sellers.\n\nThrough the `actionName` attribute, you can select the operation you want to apply to the received SKU. Actions include: \n\n* `newproduct`: match the SKU as a new product. \n\n* `skuassociation`: associate the received SKU to an existing SKU. \n\n* `productassociation`: associate the received SKU to an existing product. \n\n* `deny`: deny the received SKU.", "type": "text/plain" }, "url": { @@ -2766,22 +2505,22 @@ { "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Operation to apply to received SKUs. Possible values include: \n\n* `newproduct`: match the SKU as a new product. \n\n* `skuassociation`: associate the received SKU to an existing SKU. \n\n* `productassociation`: associate the received SKU to an existing product. \n\n* `deny`: deny the received SKU.", "type": "text/plain" }, "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "value": "newproduct", + "key": "actionName" }, { "disabled": false, "description": { - "content": "(Required) This field refers to the operation you choose to apply to received SKUs. Values include: newproduct, skuassociation, productassociation or deny.", + "content": "(Required) Name of the VTEX account. Used as part of the URL", "type": "text/plain" }, "type": "any", - "value": "newprodcut", - "key": "actionName" + "value": "apiexamples", + "key": "accountName" } ] }, @@ -2803,14 +2542,23 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", "body": { "mode": "raw", - "raw": "{}", + "raw": "[\n [\n {\n \"itemId\": \"1234567\",\n \"versionId\": \"v.2\",\n \"matchId\": \"vtex-matcher\",\n \"matcherId\": \"vtex-matcher\",\n \"categoryId\": 12,\n \"sellerId\": \"seller123\",\n \"brandId\": 1234567,\n \"skuRef\": \"123 sku ref\",\n \"productRef\": \"123 product ref\"\n },\n {\n \"itemId\": \"1234567\",\n \"versionId\": \"v.2\",\n \"matchId\": \"vtex-matcher\",\n \"matcherId\": \"vtex-matcher\",\n \"categoryId\": 12,\n \"sellerId\": \"seller123\",\n \"brandId\": 1234567,\n \"skuRef\": \"123 sku ref\",\n \"productRef\": \"123 product ref\"\n }\n ],\n [\n {\n \"itemId\": \"1234567\",\n \"versionId\": \"v.2\",\n \"matchId\": \"vtex-matcher\",\n \"matcherId\": \"vtex-matcher\",\n \"categoryId\": 12,\n \"sellerId\": \"seller123\",\n \"brandId\": 1234567,\n \"skuRef\": \"123 sku ref\",\n \"productRef\": \"123 product ref\"\n },\n {\n \"itemId\": \"1234567\",\n \"versionId\": \"v.2\",\n \"matchId\": \"vtex-matcher\",\n \"matcherId\": \"vtex-matcher\",\n \"categoryId\": 12,\n \"sellerId\": \"seller123\",\n \"brandId\": 1234567,\n \"skuRef\": \"123 sku ref\",\n \"productRef\": \"123 product ref\"\n }\n ]\n]", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -2821,7 +2569,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "2d79e599-2ea5-4aef-97fd-36545e115e73", + "id": "c42fd939-b728-4290-ab2a-0d8bdf2ce072", "name": "OK", "originalRequest": { "url": { @@ -2835,28 +2583,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "disabled": false, - "description": { - "content": "(Required) This field refers to the operation you choose to apply to received SKUs. Values include: newproduct, skuassociation, productassociation or deny.", - "type": "text/plain" - }, - "type": "any", - "value": "newprodcut", - "key": "actionName" - } - ] + "variable": [] }, "header": [ { @@ -2877,6 +2604,10 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" @@ -2885,9 +2616,10 @@ "method": "PUT", "body": { "mode": "raw", - "raw": "{}", + "raw": "[\n [\n {\n \"itemId\": \"1234567\",\n \"versionId\": \"v.2\",\n \"matchId\": \"vtex-matcher\",\n \"matcherId\": \"vtex-matcher\",\n \"categoryId\": 12,\n \"sellerId\": \"seller123\",\n \"brandId\": 1234567,\n \"skuRef\": \"123 sku ref\",\n \"productRef\": \"123 product ref\"\n },\n {\n \"itemId\": \"1234567\",\n \"versionId\": \"v.2\",\n \"matchId\": \"vtex-matcher\",\n \"matcherId\": \"vtex-matcher\",\n \"categoryId\": 12,\n \"sellerId\": \"seller123\",\n \"brandId\": 1234567,\n \"skuRef\": \"123 sku ref\",\n \"productRef\": \"123 product ref\"\n }\n ],\n [\n {\n \"itemId\": \"1234567\",\n \"versionId\": \"v.2\",\n \"matchId\": \"vtex-matcher\",\n \"matcherId\": \"vtex-matcher\",\n \"categoryId\": 12,\n \"sellerId\": \"seller123\",\n \"brandId\": 1234567,\n \"skuRef\": \"123 sku ref\",\n \"productRef\": \"123 product ref\"\n },\n {\n \"itemId\": \"1234567\",\n \"versionId\": \"v.2\",\n \"matchId\": \"vtex-matcher\",\n \"matcherId\": \"vtex-matcher\",\n \"categoryId\": 12,\n \"sellerId\": \"seller123\",\n \"brandId\": 1234567,\n \"skuRef\": \"123 sku ref\",\n \"productRef\": \"123 product ref\"\n }\n ]\n]", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -2909,13 +2641,13 @@ { "listen": "test", "script": { - "id": "f1f35fb6-d4c8-4b9a-8d8f-2461696c9b8c", + "id": "71680815-502d-436b-995b-fea4eafb54e3", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/suggestions/matches/action/:actionName - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/suggestions/matches/action/:actionName - Content-Type is application/json\", function () {\n pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\n});\n", "// Validate if response has JSON Body \npm.test(\"[PUT]::/suggestions/matches/action/:actionName - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"title\":\"responseMatchMultiple\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"matchId\":{\"type\":\"string\",\"example\":\"06272023010821403\"},\"matcherId\":{\"type\":\"string\",\"example\":\"vtex-matcher\"},\"sellerId\":{\"type\":\"string\",\"example\":\"melissatestbug858\"},\"itemId\":{\"type\":\"string\",\"example\":\"81\"},\"isSuccess\":{\"type\":\"boolean\",\"example\":false}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/suggestions/matches/action/:actionName - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"matchId\":{\"type\":\"string\",\"example\":\"06272023010821403\"},\"matcherId\":{\"type\":\"string\",\"example\":\"vtex-matcher\"},\"sellerId\":{\"type\":\"string\",\"example\":\"melissatestbug858\"},\"itemId\":{\"type\":\"string\",\"example\":\"81\"},\"isSuccess\":{\"type\":\"boolean\",\"example\":false}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/suggestions/matches/action/:actionName - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -2931,26 +2663,22 @@ "event": [], "variable": [ { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, "type": "any", "value": "apiexamples", "key": "accountName" }, { - "type": "string", + "type": "any", "value": "https://api.vtex.com/{{accountName}}", "key": "baseUrl" } ], "info": { - "_postman_id": "334f4003-4dd7-452b-9243-6c20bbe0a5eb", + "_postman_id": "437b69f6-ecd1-4e01-99ff-0d65b27a0aa4", "name": "Suggestions", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": { - "content": "\r\nThe **Marketplace API** enables marketplaces and sellers hosted on VTEX to perform their collaborative operations. \r\n\r\n>⚠️ The marketplace must [create an appKey and appToken](https://developers.vtex.com/docs/guides/getting-started-authentication) for each non-VTEX seller that will use this API.\r\n\r\n## Index\r\n\r\n### Notification\r\n\r\nEndpoints used by sellers to notify marketplaces that the price or inventory language has changed for one of their SKUs.\r\n\r\n`POST` [Notify marketplace of price update](https://developers.vtex.com/docs/api-reference/marketplace-apis#post-/notificator/-sellerId-/changenotification/-skuId-/price)\r\n\r\n`POST` [Notify marketplace of inventory update](https://developers.vtex.com/docs/api-reference/marketplace-apis#post-/notificator/-sellerId-/changenotification/-skuId-/inventory)\r\n\r\n\r\n### Suggestions\r\n\r\n#### Get Suggestions\r\n\r\nSearch and filter all suggestions using specific criteria.\r\n\r\n`GET` [Get all SKU Suggestions](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions)\r\n\r\n`GET` [Get SKU Suggestion by ID](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n\r\n#### Manage Suggestions\r\n\r\nSend or delete SKU suggestions from the seller to marketplace.\r\n\r\n`PUT` [Send SKU Suggestion](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n`DELETE` [Delete SKU Suggestion](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#delete-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n\r\n#### Get Versions\r\n\r\nSearch and filter all versions of suggestions, using specific criteria.\r\n\r\n`GET` [Get all versions](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerskuid-/versions)\r\n\r\n`GET` [Get version by ID](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerskuid-/versions/-version-)\r\n\r\n\r\n#### Match Received SKUs\r\n\r\nMatch SKU suggestions received in the marketplace.\r\n\r\n`PUT` [Match Received SKUs individually](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/-sellerId-/-sellerskuid-/versions/-version-/matches/-matchid-)\r\n\r\n`PUT` [Match Multiple Received SKUs](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/matches/action/-actionName-)\r\n\r\n\r\n#### SKU Approval Settings\r\n\r\nAllows marketplaces to configure rules for automatically and manually approving SKUs received from sellers.\r\n\r\n`GET`[Get autoApprove Status in Account Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration/autoapproval/toggle) \r\n\r\n`PUT`[Activate autoApprove in Marketplace's Account](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/autoapproval/toggle) \r\n\r\n`GET`[Get Account's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration)\r\n\r\n`PUT`[Save Account's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration)\r\n\r\n`GET`[Get Seller's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration/seller/-sellerId-)\r\n\r\n`PUT`[Save Seller's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/seller/-sellerId-)\r\n\r\n`PUT`[Activate autoApprove Setting for a Seller](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/autoapproval/toggle/seller/-sellerId-) \r\n\r\n\r\n### Matched Offers\r\n\r\nOffers are seller products and SKUs that were sent to the marketplace, and already have their price and inventory level configured.\r\n\r\n`GET`[Get Matched Offers List](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/offers)\r\n\r\n`GET`[Get Matched Offer's Data by SKU ID](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/product/-productId-/sku/-skuId-) \r\n\r\n`GET`[Get Matched Offer's Data by Product ID](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/product/-productId-)\r\n", + "content": "The **Marketplace API** enables marketplaces and sellers hosted on VTEX to perform their collaborative operations. \r\n\r\n>⚠️ The marketplace must [create an appKey and appToken](https://developers.vtex.com/docs/guides/getting-started-authentication) for each non-VTEX seller that will use this API.\r\n\r\n## Index\r\n\r\n### Notification\r\n\r\nEndpoints used by sellers to notify marketplaces that the price or inventory language has changed for one of their SKUs.\r\n\r\n`POST` [Notify marketplace of price update](https://developers.vtex.com/docs/api-reference/marketplace-apis#post-/notificator/-sellerId-/changenotification/-skuId-/price)\r\n\r\n`POST` [Notify marketplace of inventory update](https://developers.vtex.com/docs/api-reference/marketplace-apis#post-/notificator/-sellerId-/changenotification/-skuId-/inventory)\r\n\r\n\r\n### Suggestions\r\n\r\n#### Get Suggestions\r\n\r\nSearch and filter all suggestions using specific criteria.\r\n\r\n`GET` [Get all SKU Suggestions](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions)\r\n\r\n`GET` [Get SKU Suggestion by ID](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n\r\n#### Manage Suggestions\r\n\r\nSend or delete SKU suggestions from the seller to marketplace.\r\n\r\n`PUT` [Send SKU Suggestion](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n`DELETE` [Delete SKU Suggestion](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#delete-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n\r\n#### Get Versions\r\n\r\nSearch and filter all versions of suggestions, using specific criteria.\r\n\r\n`GET` [Get all versions](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerskuid-/versions)\r\n\r\n`GET` [Get version by ID](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerskuid-/versions/-version-)\r\n\r\n\r\n#### Match Received SKUs\r\n\r\nMatch SKU suggestions received in the marketplace.\r\n\r\n`PUT` [Match Received SKUs individually](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/-sellerId-/-sellerskuid-/versions/-version-/matches/-matchid-)\r\n\r\n`PUT` [Match Multiple Received SKUs](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/matches/action/-actionName-)\r\n\r\n\r\n#### SKU Approval Settings\r\n\r\nAllows marketplaces to configure rules for automatically and manually approving SKUs received from sellers.\r\n\r\n`GET`[Get autoApprove Status in Account Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration/autoapproval/toggle) \r\n\r\n`PUT`[Activate autoApprove in Marketplace's Account](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/autoapproval/toggle) \r\n\r\n`GET`[Get Account's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration)\r\n\r\n`PUT`[Save Account's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration)\r\n\r\n`GET`[Get Seller's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration/seller/-sellerId-)\r\n\r\n`PUT`[Save Seller's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/seller/-sellerId-)\r\n\r\n`PUT`[Activate autoApprove Setting for a Seller](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/autoapproval/toggle/seller/-sellerId-) \r\n\r\n\r\n### Matched Offers\r\n\r\nOffers are seller products and SKUs that were sent to the marketplace, and already have their price and inventory level configured.\r\n\r\n`GET`[Get Matched Offers List](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/offers)\r\n\r\n`GET`[Get Matched Offer's Data by SKU ID](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/product/-productId-/sku/-skuId-) \r\n\r\n`GET`[Get Matched Offer's Data by Product ID](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/product/-productId-)\r\n", "type": "text/plain" } } diff --git a/VTEX - Marketplace APIs - Suggestions.json b/VTEX - Marketplace APIs - Suggestions.json index 644ff19f0..bec1b2d2c 100644 --- a/VTEX - Marketplace APIs - Suggestions.json +++ b/VTEX - Marketplace APIs - Suggestions.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "info": { "title": "Suggestions", - "description": "\r\nThe **Marketplace API** enables marketplaces and sellers hosted on VTEX to perform their collaborative operations. \r\n\r\n>⚠️ The marketplace must [create an appKey and appToken](https://developers.vtex.com/docs/guides/getting-started-authentication) for each non-VTEX seller that will use this API.\r\n\r\n## Index\r\n\r\n### Notification\r\n\r\nEndpoints used by sellers to notify marketplaces that the price or inventory language has changed for one of their SKUs.\r\n\r\n`POST` [Notify marketplace of price update](https://developers.vtex.com/docs/api-reference/marketplace-apis#post-/notificator/-sellerId-/changenotification/-skuId-/price)\r\n\r\n`POST` [Notify marketplace of inventory update](https://developers.vtex.com/docs/api-reference/marketplace-apis#post-/notificator/-sellerId-/changenotification/-skuId-/inventory)\r\n\r\n\r\n### Suggestions\r\n\r\n#### Get Suggestions\r\n\r\nSearch and filter all suggestions using specific criteria.\r\n\r\n`GET` [Get all SKU Suggestions](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions)\r\n\r\n`GET` [Get SKU Suggestion by ID](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n\r\n#### Manage Suggestions\r\n\r\nSend or delete SKU suggestions from the seller to marketplace.\r\n\r\n`PUT` [Send SKU Suggestion](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n`DELETE` [Delete SKU Suggestion](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#delete-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n\r\n#### Get Versions\r\n\r\nSearch and filter all versions of suggestions, using specific criteria.\r\n\r\n`GET` [Get all versions](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerskuid-/versions)\r\n\r\n`GET` [Get version by ID](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerskuid-/versions/-version-)\r\n\r\n\r\n#### Match Received SKUs\r\n\r\nMatch SKU suggestions received in the marketplace.\r\n\r\n`PUT` [Match Received SKUs individually](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/-sellerId-/-sellerskuid-/versions/-version-/matches/-matchid-)\r\n\r\n`PUT` [Match Multiple Received SKUs](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/matches/action/-actionName-)\r\n\r\n\r\n#### SKU Approval Settings\r\n\r\nAllows marketplaces to configure rules for automatically and manually approving SKUs received from sellers.\r\n\r\n`GET`[Get autoApprove Status in Account Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration/autoapproval/toggle) \r\n\r\n`PUT`[Activate autoApprove in Marketplace's Account](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/autoapproval/toggle) \r\n\r\n`GET`[Get Account's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration)\r\n\r\n`PUT`[Save Account's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration)\r\n\r\n`GET`[Get Seller's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration/seller/-sellerId-)\r\n\r\n`PUT`[Save Seller's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/seller/-sellerId-)\r\n\r\n`PUT`[Activate autoApprove Setting for a Seller](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/autoapproval/toggle/seller/-sellerId-) \r\n\r\n\r\n### Matched Offers\r\n\r\nOffers are seller products and SKUs that were sent to the marketplace, and already have their price and inventory level configured.\r\n\r\n`GET`[Get Matched Offers List](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/offers)\r\n\r\n`GET`[Get Matched Offer's Data by SKU ID](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/product/-productId-/sku/-skuId-) \r\n\r\n`GET`[Get Matched Offer's Data by Product ID](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/product/-productId-)\r\n", + "description": "The **Marketplace API** enables marketplaces and sellers hosted on VTEX to perform their collaborative operations. \r\n\r\n>⚠️ The marketplace must [create an appKey and appToken](https://developers.vtex.com/docs/guides/getting-started-authentication) for each non-VTEX seller that will use this API.\r\n\r\n## Index\r\n\r\n### Notification\r\n\r\nEndpoints used by sellers to notify marketplaces that the price or inventory language has changed for one of their SKUs.\r\n\r\n`POST` [Notify marketplace of price update](https://developers.vtex.com/docs/api-reference/marketplace-apis#post-/notificator/-sellerId-/changenotification/-skuId-/price)\r\n\r\n`POST` [Notify marketplace of inventory update](https://developers.vtex.com/docs/api-reference/marketplace-apis#post-/notificator/-sellerId-/changenotification/-skuId-/inventory)\r\n\r\n\r\n### Suggestions\r\n\r\n#### Get Suggestions\r\n\r\nSearch and filter all suggestions using specific criteria.\r\n\r\n`GET` [Get all SKU Suggestions](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions)\r\n\r\n`GET` [Get SKU Suggestion by ID](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n\r\n#### Manage Suggestions\r\n\r\nSend or delete SKU suggestions from the seller to marketplace.\r\n\r\n`PUT` [Send SKU Suggestion](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n`DELETE` [Delete SKU Suggestion](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#delete-/suggestions/-sellerId-/-sellerSkuId-)\r\n\r\n\r\n#### Get Versions\r\n\r\nSearch and filter all versions of suggestions, using specific criteria.\r\n\r\n`GET` [Get all versions](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerskuid-/versions)\r\n\r\n`GET` [Get version by ID](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/-sellerId-/-sellerskuid-/versions/-version-)\r\n\r\n\r\n#### Match Received SKUs\r\n\r\nMatch SKU suggestions received in the marketplace.\r\n\r\n`PUT` [Match Received SKUs individually](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/-sellerId-/-sellerskuid-/versions/-version-/matches/-matchid-)\r\n\r\n`PUT` [Match Multiple Received SKUs](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/matches/action/-actionName-)\r\n\r\n\r\n#### SKU Approval Settings\r\n\r\nAllows marketplaces to configure rules for automatically and manually approving SKUs received from sellers.\r\n\r\n`GET`[Get autoApprove Status in Account Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration/autoapproval/toggle) \r\n\r\n`PUT`[Activate autoApprove in Marketplace's Account](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/autoapproval/toggle) \r\n\r\n`GET`[Get Account's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration)\r\n\r\n`PUT`[Save Account's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration)\r\n\r\n`GET`[Get Seller's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration/seller/-sellerId-)\r\n\r\n`PUT`[Save Seller's Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/seller/-sellerId-)\r\n\r\n`PUT`[Activate autoApprove Setting for a Seller](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/autoapproval/toggle/seller/-sellerId-) \r\n\r\n\r\n### Matched Offers\r\n\r\nOffers are seller products and SKUs that were sent to the marketplace, and already have their price and inventory level configured.\r\n\r\n`GET`[Get Matched Offers List](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/offers)\r\n\r\n`GET`[Get Matched Offer's Data by SKU ID](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/product/-productId-/sku/-skuId-) \r\n\r\n`GET`[Get Matched Offer's Data by Product ID](https://developers.vtex.com/docs/api-reference/marketplace-apis#get-/offer-manager/pvt/product/-productId-)\r\n", "contact": {}, "version": "1.0" }, @@ -24,8 +24,8 @@ "tags": [ "SKU Approval Settings" ], - "summary": "Get autoApprove Status in Account Settings", - "description": "This endpoint can be used to check whether the autoapprove setting is active or not, for a specific seller. \n\nIf the response is `true`, the autoapprove setting is active. If the response is `false`, it is inactive.", + "summary": "Get autoApprove status in account settings", + "description": "This endpoint can be used to check whether the autoapprove setting is active or not, for a specific seller. \n\nIf the response is `true`, the autoapprove setting is active. If the response is `false`, it is inactive.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "GetautoApprovevaluefromconfig", "parameters": [ { @@ -36,7 +36,7 @@ "style": "form", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -46,7 +46,7 @@ "description": "Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -57,7 +57,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -68,7 +68,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], @@ -82,7 +82,7 @@ "properties": { "Enabled": { "type": "boolean", - "description": "If the auto-approve setting is active for a given seller (`true`) or not (`false`)." + "description": "If the autoapprove setting is active for a given seller (`true`) or not (`false`)." } } }, @@ -99,8 +99,8 @@ "tags": [ "SKU Approval Settings" ], - "summary": "Activate autoApprove in Marketplace's Account", - "description": "This endpoint enables the autoapprove rule to a marketplace's whole Received SKUs module. Once enabling the rule, received SKUs will be automatically approved on your store, regardless of the seller. \n\n For the autoapprove rule to work as expected, the approval [Matcher score](https://help.vtex.com/en/tutorial/entendendo-a-pontuacao-do-vtex-matcher--tutorials_424) should be set up as 80 (default value), but you can configure a different number through the field `Score` in [Save Account's Approval Settings](https://developers.vtex.com/vtex-rest-api/reference/saveaccountconfig).", + "summary": "Activate autoApprove in marketplace's account", + "description": "This endpoint enables the autoapprove rule to a marketplace's whole Received SKUs module. Once enabling the rule, received SKUs will be automatically approved on your store, regardless of the seller. \n\n For the autoapprove rule to work as expected, the approval [Matcher score](https://help.vtex.com/en/tutorial/entendendo-a-pontuacao-do-vtex-matcher--tutorials_424) should be set up as 80 (default value), but you can configure a different number through the field `Score` in [Save Account's Approval Settings](https://developers.vtex.com/vtex-rest-api/reference/saveaccountconfig).\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Saveautoapproveforaccount", "parameters": [ { @@ -110,7 +110,7 @@ "description": "Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -121,7 +121,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -132,12 +132,12 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], "requestBody": { - "description": "", + "description": "The request payload that configures the autoapproval setting for a marketplace account. This JSON object must include the `Enabled` field, which determines whether the autoapproval rule should be activated (`true`) or deactivated (`false`). When enabled, all received SKUs will be automatically approved, regardless of the seller or the Matcher Score.", "content": { "application/json": { "schema": { @@ -161,7 +161,7 @@ "properties": { "Enabled": { "type": "boolean", - "description": "If the auto-approve setting is active (`true`) or not (`false`)." + "description": "If the autoapprove setting is active (`true`) or not (`false`)." } } }, @@ -180,8 +180,8 @@ "tags": [ "SKU Approval Settings" ], - "summary": "Get Account's Approval Settings", - "description": "This endpoint retrieves the current approval settings of a marketplace's Received SKUs module. Its response includes: \n\n- `Score`: Matcher scores for approving and rejecting SKUs received from sellers. \n\n- `Matchers`: All Matchers configured on the marketplace, and their respective details. \n\n- `SpecificationsMapping`: Mapping of product and SKU specifications, per seller. \n\n- `MatchFlux`: This field determines the type of approval configuration applied to SKUs received from a seller. \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI, or Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of their Matcher Score.", + "summary": "Get account's approval settings", + "description": "This endpoint retrieves the current approval settings of a marketplace's Received SKUs module. Its response includes: \n\n- `Score`: Matcher scores for approving and rejecting SKUs received from sellers. \n\n- `Matchers`: All Matchers configured on the marketplace, and their respective details. \n\n- `SpecificationsMapping`: Mapping of product and SKU specifications, per seller. \n\n- `MatchFlux`: This field determines the type of approval configuration applied to SKUs received from a seller. \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI, or Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of their Matcher Score.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Getaccountconfig", "parameters": [ { @@ -191,7 +191,7 @@ "description": "Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -202,7 +202,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -213,14 +213,13 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], "responses": { "200": { "description": "OK", - "headers": {}, "content": { "application/json": { "schema": { @@ -232,7 +231,33 @@ }, "Matchers": { "type": "array", - "description": "All Matchers configured on the marketplace, and their respective details." + "description": "All Matchers configured on the marketplace, and their respective details.", + "items": { + "type": "object", + "description": "Details of a single matcher configured in the marketplace.", + "properties": { + "MatcherId": { + "type": "string", + "description": "Identifies the matching entity, either VTEX's matcher or an external matcher." + }, + "hook-base-address": { + "type": "string", + "description": "The base address for the Matcher's API endpoint." + }, + "IsActive": { + "type": "boolean", + "description": "Indicates whether the matcher is active (`true`) or inactive (`false`)." + }, + "UpdatesNotificationEndpoint": { + "type": "string", + "description": "Endpoint for receiving notifications about updates from the matcher." + }, + "Description": { + "type": "string", + "description": "Description or notes about the matcher." + } + } + } }, "Rules": { "type": "object", @@ -240,7 +265,21 @@ }, "SpecificationsMapping": { "type": "array", - "description": "Mapping of product and SKU specifications, per seller." + "description": "Mapping of product and SKU specifications between the marketplace and the seller.", + "items": { + "type": "object", + "description": "Mapping details for a single specification.", + "properties": { + "fieldName": { + "type": "string", + "description": "Name of the specification field in the seller's catalog." + }, + "marketplaceField": { + "type": "string", + "description": "Corresponding name of the specification field in the marketplace's catalog." + } + } + } }, "MatchFlux": { "type": "string", @@ -258,8 +297,8 @@ "MatcherId": "vtex-matcher", "hook-base-address": "http://portal.vtexinternal.com/api/ssm/hooks", "IsActive": true, - "UpdatesNotificationEndpoint": null, - "Description": null + "UpdatesNotificationEndpoint": "https://example.com/updates/notifications", + "Description": "This matcher is configured to handle specific product categories and has been optimized for high accuracy." } ], "Rules": { @@ -279,8 +318,8 @@ "tags": [ "SKU Approval Settings" ], - "summary": "Save Account's Approval Settings", - "description": "Marketplaces use this endpoint to create or update approval settings on their Received SKUs module. \n\nThe request includes all the details necessary to implement the chosen approval settings.", + "summary": "Save account's approval settings", + "description": "Marketplaces use this endpoint to create or update approval settings on their Received SKUs module. \n\nThe request includes all the details necessary to implement the chosen approval settings.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Saveaccountconfig", "parameters": [ { @@ -290,7 +329,7 @@ "description": "Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -301,7 +340,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -312,12 +351,12 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], "requestBody": { - "description": "", + "description": "The request to configure account settings, including approval thresholds, matchers, specification mappings, and approval workflows for SKUs. This JSON object should include the `Score` field to define approval and rejection scores, `Matchers` to specify approval/rejection logic, `SpecificationsMapping` to map product specifications, and `MatchFlux` to determine the approval configuration.", "content": { "application/json": { "schema": { @@ -330,12 +369,12 @@ "responses": { "200": { "description": "OK", - "headers": {}, "content": { "application/json": { "schema": { - "type": "object", - "example": { + "$ref": "#/components/schemas/responseSaveAccountsApprovalSettings" + }, + "example": { "Score": { "Approve": 80, "Reject": 30 @@ -365,95 +404,8 @@ } } ], - "MatchFlux": "AutoApprove" - }, - "properties": { - "Score": { - "type": "object", - "description": "[Matcher's rates](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring) to approve or reject [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) sent by sellers.", - "properties": { - "Approve": { - "type": "integer", - "description": "Score to approve SKUs sent by sellers." - }, - "Reject": { - "type": "integer", - "description": "Score to reject SKUs sent by sellers." - } - }, - "example": { - "Approve": 80, - "Reject": 30 - } - }, - "Matchers": { - "type": "array", - "description": "[Matchers](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring) configurations for approving and rejecting [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) sent by sellers.", - "properties": { - "MatcherId": { - "type": "string", - "description": "Identifies the matching entity. It can be either [VTEX's matcher](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring), or an external matcher." - }, - "hook-base-address": { - "type": "string", - "description": "The given Matcher's URL." - }, - "IsActive": { - "type": "boolean", - "description": "Whether the matcher is active in the account (`true`), or not (`false`)." - }, - "UpdatesNotificationEndpoint": { - "type": "string", - "description": "The [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) module calls this endpoint for matcher's suggestions updates." - }, - "Description": { - "type": "string", - "description": "The note inserted on the request body." - } - } - }, - "Rules": { - "type": "object", - "description": "Items and products that belong to sellers.", - "properties": { - "Item": { - "type": "array", - "description": "SKUs' ID.", - "items": { - "type": "integer", - "description": "SKU ID." - } - }, - "Product": { - "type": "array", - "description": "Product's name.", - "items": { - "type": "string", - "description": "Product name." - } - } - } - }, - "SpecificationsMapping": { - "type": "array", - "description": "This attribute maps product and SKU's specifications between the marketplace and the seller.", - "properties": { - "SellerId": { - "type": "string", - "description": "The Seller ID." - }, - "Mapping": { - "type": "object", - "description": "The attributes and values mapped between the marketplace and the seller." - } - } - }, - "MatchFlux": { - "type": "string", - "description": "Type of approval configuration that apply to received SKUs sent by sellers. The possible values are: \n\n`default`: the matcher approves the SKU. \n\n`manual`: manual SKU's approvals. \n\n`AutoApprove`: automatic SKU's approvals." - } + "MatchFlux": "autoApprove" } - } } } } @@ -466,8 +418,8 @@ "tags": [ "SKU Approval Settings" ], - "summary": "Get Account's Matcher Settings", - "description": "This endpoint will be used by the marketplace to query the matcher's current approval settings on their incoming SKUs module. If the account has no matcher configured, the response will be `404 Not Found`. \n\nFor account approval configuration information, with response including specification information, see [Get Account Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis- suggestions#get-/suggestions /configuration) terminal. \n\nThe [VTEX matcher](https://help.vtex.com/pt/tutorial/entendendo-a-punctuacao-do-vtex-matcher--tutorials_424) is a tool used by marketplaces to evaluate SKUs corresponding to information from an advertisement of the seller, with those of items already present in the marketplace catalog.", + "summary": "Get account's matcher settings", + "description": "This endpoint will be used by the marketplace to query the matcher's current approval settings on their incoming SKUs module. If the account has no matcher configured, the response will be `404 Not Found`. \n\nFor account approval configuration information, with response including specification information, see [Get Account Approval Settings](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#get-/suggestions/configuration) terminal. \n\nThe [VTEX matcher](https://help.vtex.com/pt/tutorial/entendendo-a-punctuacao-do-vtex-matcher--tutorials_424) is a tool used by marketplaces to evaluate SKUs corresponding to information from an advertisement of the seller, with those of items already present in the marketplace catalog.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Getmatchconfig", "parameters": [ { @@ -477,7 +429,7 @@ "description": "Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -488,7 +440,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -499,14 +451,13 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], "responses": { "200": { "description": "OK", - "headers": {}, "content": { "application/json": { "schema": { @@ -546,8 +497,8 @@ "tags": [ "SKU Approval Settings" ], - "summary": "Get Seller's Approval Settings", - "description": "This endpoint retrieves the current Received SKUs approval settings applied to a specific seller. Its response includes: \n\n- `sellerId`: A string that identifies the seller in the marketplace. \n\n- `accountId`: Marketplace’s account ID. \n\n- `accountName`: Marketplace’s account name. \n\n- `mapping`: Mapping of SKU and product Specifications. \n\n- `matchFlux`: This field determines the type of approval configuration applied to SKUs received from a seller. \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI and Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically , regardless of the Matcher Score.", + "summary": "Get seller's approval settings", + "description": "This endpoint retrieves the current Received SKUs approval settings applied to a specific seller. Its response includes: \n\n- `sellerId`: A string that identifies the seller in the marketplace. \n\n- `accountId`: Marketplace’s account ID. \n\n- `accountName`: Marketplace’s account name. \n\n- `mapping`: Mapping of SKU and product Specifications. \n\n- `matchFlux`: This field determines the type of approval configuration applied to SKUs received from a seller. \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI and Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of the Matcher Score.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n|Mapper| Suggestion resources| **Mapper**|\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Getselleraccountconfig", "parameters": [ { @@ -557,7 +508,7 @@ "description": "Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -568,7 +519,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -579,7 +530,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -590,7 +541,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], @@ -614,7 +565,7 @@ "color": "black", "size": "EUR44" }, - "matchFlux": "default" + "matchFlux": "autoApprove" } } } @@ -626,8 +577,8 @@ "tags": [ "SKU Approval Settings" ], - "summary": "Save Seller's Approval Settings", - "description": "Marketplaces use this endpoint to create or update approval settings to a specific seller, on the Received SKUs module. \n\nThe request includes all the details necessary to implement the chosen approval settings.", + "summary": "Save seller's approval settings", + "description": "Marketplaces use this endpoint to create or update approval settings to a specific seller, on the Received SKUs module. \n\nThe request includes all the details necessary to implement the chosen approval settings.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Putselleraccountconfig", "parameters": [ { @@ -637,7 +588,7 @@ "description": "Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -648,7 +599,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -659,7 +610,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -670,12 +621,12 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], "requestBody": { - "description": "", + "description": "The request for updating seller account configurations, including SKU mapping and approval workflows. This JSON object must include the `sellerId`, which uniquely identifies the seller; `mapping`, which specifies the SKU and product specifications to be mapped; and `matchFlux`, which determines the approval configuration for SKUs received from the seller.", "content": { "application/json": { "schema": { @@ -704,8 +655,8 @@ "tags": [ "SKU Approval Settings" ], - "summary": "Activate autoApprove Setting for a Seller", - "description": "This endpoint enables the auto approve setting to received SKUs from a specific seller. Be aware that once enabling the rule through this request, all received SKUs from that seller will be automatically approved on your store, regardless of the Matcher Score.", + "summary": "Activate autoApprove setting for a seller", + "description": "This endpoint enables the auto approve setting to received SKUs from a specific seller. Be aware that once enabling the rule through this request, all received SKUs from that seller will be automatically approved on your store, regardless of the Matcher Score.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Saveautoapproveforaccountseller", "parameters": [ { @@ -715,7 +666,7 @@ "description": "Name of the VTEX account that belongs to the marketplace. All data extracted, and changes added will be posted into this account.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -726,7 +677,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -737,7 +688,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -748,12 +699,12 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], "requestBody": { - "description": "", + "description": "The request for configuring autoapproval settings for a specific seller account. Include the `Enabled` field to activate or deactivate the autoapprove rule for the seller. When enabled, all SKUs from this seller will be automatically approved in the store, regardless of the Matcher Score.", "content": { "application/json": { "schema": { @@ -781,7 +732,7 @@ "Get Suggestions" ], "summary": "Get all SKU suggestions", - "description": "This endpoint retrieves a list of all SKUs sent by the seller for the Marketplace's approval. Marketplace operators should use this endpoint whenever they want to check the full list of received SKUs and their information. \n\nNote that all the information sent by the seller will be in the [content] object. All remaining information in this endpoint's response is given by the Matcher. \n\nMatcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: score equal to or greater than 80 points. \n\n`Pending`: from 31 to 79 points.\n\n`Denied`: from 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", + "description": "This endpoint retrieves a list of all SKUs sent by the seller for the marketplace's approval. Marketplace operators should use this endpoint whenever they want to check the full list of received SKUs and their information. \n\nNote that all the information sent by the seller will be in the [content] object. All remaining information in this endpoint's response is given by the Matcher. \n\nMatcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: Score equal to or greater than 80 points. \n\n`Pending`: From 31 to 79 points.\n\n`Denied`: From 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion| Suggestion resources | **Main access** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Getsuggestions", "parameters": [ { @@ -791,7 +742,7 @@ "description": "Name of the VTEX account. Used as part of the URL", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -877,7 +828,7 @@ "type": "integer", "format": "int32", "minimum": 1, - "default": 1 + "example": 1 } }, { @@ -891,7 +842,7 @@ "type": "integer", "format": "int32", "minimum": 1, - "default": 50 + "example": 50 } }, { @@ -902,7 +853,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -913,7 +864,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } } ], @@ -931,8 +882,8 @@ "tags": [ "Manage Suggestions" ], - "summary": "Send SKU Suggestion", - "description": "This request is used by the seller when it wants to suggest that one of their SKUs is sold in the marketplace.\n\nBefore using this request, the seller should always use the [Change Notification](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-seller-sku-notification) request in order to check if the SKU already exists in the marketplace. If it doesn't, then this is the next call in the SKU integration flow.\n\nIn the Send Suggestion request, the seller must send information about the SKU, such as the product and SKU name, the seller ID, and the image URL. All parameters are explained below. ", + "summary": "Send SKU suggestion", + "description": "This request is used by the seller when it wants to suggest that one of their SKUs is sold in the marketplace.\n\nBefore using this request, the seller should always use the [Change Notification](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-seller-sku-notification) request in order to check if the SKU already exists in the marketplace. If it doesn't, then this is the next call in the SKU integration flow.\n\nIn the Send Suggestion request, the seller must send information about the SKU, such as the product and SKU name, the seller ID, and the image URL. All parameters are explained below.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Send marketplace suggestion** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "SaveSuggestion", "parameters": [ { @@ -942,7 +893,7 @@ "description": "Name of the VTEX account to which the seller wants to suggest a new SKU. It is used as part of the request URL.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -953,8 +904,7 @@ "style": "simple", "schema": { "type": "string", - "example": "application/vnd.vtex.suggestion.v0+json", - "default": "application/json" + "example": "application/json" } }, { @@ -965,7 +915,7 @@ "style": "simple", "schema": { "type": "string", - "default": "application/json" + "example": "application/json" } }, { @@ -976,7 +926,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -987,12 +937,12 @@ "style": "simple", "schema": { "type": "string", - "default": "1234" + "example": "1234" } } ], "requestBody": { - "description": "", + "description": "Object containing the details of the product suggestion to be submitted. It includes all necessary information such as product identification, dimensions, specifications, and pricing.", "content": { "application/json": { "schema": { @@ -1064,8 +1014,8 @@ "tags": [ "Get Suggestions" ], - "summary": "Get SKU Suggestion by ID", - "description": "This endpoint retrieves the data of a specific SKU sent by the seller, to the marketplace. Marketplaces or external matchers can call this endpoint when they want to check the information about a single SKU. \n\nNote that all the information sent by the seller will be in the [content] object. All remaining information in this endpoint's response is given by the Matcher. \n\nMatcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: score equal to or greater than 80 points. \n\n`Pending`: from 31 to 79 points.\n\n`Denied`: from 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", + "summary": "Get SKU suggestion by ID", + "description": "This endpoint retrieves the data of a specific SKU sent by the seller, to the marketplace. Marketplaces or external matchers can call this endpoint when they want to check the information about a single SKU. \n\nNote that all the information sent by the seller will be in the [content] object. All remaining information in this endpoint's response is given by the Matcher. \n\nMatcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: score equal to or greater than 80 points. \n\n`Pending`: from 31 to 79 points.\n\n`Denied`: from 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Send marketplace suggestion** |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion | Suggestion resources | **Main** |\r\n\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "GetSuggestion", "parameters": [ { @@ -1075,7 +1025,7 @@ "description": "Name of the VTEX account. Used as part of the URL", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -1108,7 +1058,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -1119,7 +1069,7 @@ "style": "simple", "schema": { "type": "string", - "default": "1234" + "example": "1234" } } ], @@ -1135,8 +1085,8 @@ "tags": [ "Manage Suggestions" ], - "summary": "Delete SKU Suggestion", - "description": "This endpoint deletes a chosen SKU suggestion. Only one SKU should be deleted per request. This request cannot be undone. A workaround to revert its action, is to send the suggestion again, through the Send Suggestion API.", + "summary": "Delete SKU suggestion", + "description": "This endpoint deletes a chosen SKU suggestion. Only one SKU should be deleted per request. This action cannot be undone. A workaround to revert a deletion is to send the suggestion again, through the Send Suggestion API.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion | Suggestion resources | **Main** |\r\n\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "DeleteSuggestion", "parameters": [ { @@ -1146,7 +1096,7 @@ "description": "Name of the VTEX account. Used as part of the URL.", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -1179,7 +1129,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -1190,7 +1140,7 @@ "style": "simple", "schema": { "type": "string", - "default": "1234" + "example": "1234" } } ], @@ -1208,8 +1158,8 @@ "tags": [ "Get Versions" ], - "summary": "Get all Versions", - "description": "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. \n\nThis endpoint retrieves the data of *all* previous and latest versions of a specific SKU suggestion, sent by the seller. Whenever an SKU is updated, it is important to map previous versions, to compare and identify changes. \n\nThe response's object [latestversion] provides the information of the most recent version of that SKU suggestion.", + "summary": "Get all versions", + "description": "Whenever a 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. \n\nThis endpoint retrieves the data of *all* previous and latest versions of a specific SKU suggestion, sent by the seller. Whenever a SKU is updated, it is important to map previous versions, to compare and identify changes. \n\nThe response's object [latestversion] provides the information of the most recent version of that SKU suggestion.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion | Suggestion resources | **Main** |\r\n\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "GetVersions", "parameters": [ { @@ -1219,7 +1169,7 @@ "description": "Name of the VTEX account. Used as part of the URL", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -1252,7 +1202,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -1263,7 +1213,7 @@ "style": "simple", "schema": { "type": "string", - "default": "1234" + "example": "1234" } } ], @@ -1281,8 +1231,8 @@ "tags": [ "Get Versions" ], - "summary": "Get Version by ID", - "description": "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. \n\nThis endpoint retrieves a specific *version* of a chosen SKU sent by the seller. Add the Seller's ID, Seller's SKU ID, and version ID in the path to detail your search.", + "summary": "Get version by ID", + "description": "Whenever a 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. \n\n This endpoint retrieves a specific *version* of a chosen SKU sent by the seller. Add the Seller's ID, Seller's SKU ID, and version ID in the path to detail your search.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion | Suggestion resources | **Main** |\r\n\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "GetSuggestionbyversion", "parameters": [ { @@ -1292,7 +1242,7 @@ "description": "Name of the VTEX account. Used as part of the URL", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -1325,7 +1275,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -1336,7 +1286,7 @@ "style": "simple", "schema": { "type": "string", - "default": "1234" + "example": "1234" } }, { @@ -1347,7 +1297,7 @@ "style": "simple", "schema": { "type": "string", - "default": "09072021142808277" + "example": "09072021142808277" } } ], @@ -1365,8 +1315,8 @@ "tags": [ "Match Received SKUs" ], - "summary": "Match Received SKUs individually", - "description": "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: \n\n1. `newproduct`: match the SKU as a new product. \n\n2. `itemMatch`: associate the received SKU to an existing SKU. \n\n3. `productMatch`: associate the received SKU to an existing product. \n\n4. `deny`: deny the received SKU. \n\n5. `pending`: the received SKU requires attention. \n\n6. `incomplete`: the received SKU is lacking information to be matched. \n\n7. `insufficientScore`: the score given by the Matcher to this received SKU doesn't qualify it to be matched. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", + "summary": "Match received SKUs individually", + "description": "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: \n\n1. `newproduct`: Match the SKU as a new product. \n\n2. `itemMatch`: Associate the received SKU to an existing SKU. \n\n3. `productMatch`: Associate the received SKU to an existing product. \n\n4. `deny`: Deny the received SKU. \n\n5. `pending`: The received SKU requires attention. \n\n6. `incomplete`: The received SKU is lacking information to be matched. \n\n7. `insufficientScore`: The Score given by the Matcher to this received SKU doesn't qualify it to be matched. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion | Suggestion resources | **Main** |\r\n\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "Match", "parameters": [ { @@ -1376,7 +1326,7 @@ "description": "Name of the VTEX account. Used as part of the URL", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -1409,7 +1359,7 @@ "style": "simple", "schema": { "type": "string", - "default": "seller123" + "example": "seller123" } }, { @@ -1420,7 +1370,7 @@ "style": "simple", "schema": { "type": "string", - "default": "1234" + "example": "1234" } }, { @@ -1431,7 +1381,7 @@ "style": "simple", "schema": { "type": "string", - "default": "09072021142808277" + "example": "09072021142808277" } }, { @@ -1446,7 +1396,7 @@ } ], "requestBody": { - "description": "", + "description": "Object containing the details for matching SKUs or products. This includes the matcher ID, the score given by the matcher, the type of match to be applied, and references to existing SKUs or products if applicable. It also includes information about the product and SKU to be matched.", "content": { "application/json": { "schema": { @@ -1478,15 +1428,13 @@ "weight": 1, "images": [ { - "imagem1.jpg": { - "imagem1.jpg": "https://imageurl.example" - } + "imagem1.jpg": "https://imageurl.example" } ], "unitMultiplier": 1, "measurementUnit": "un", "specifications": { - "Embalagem": "3 k g" + "Packaging": "3kg" } } } @@ -1497,7 +1445,22 @@ "responses": { "200": { "description": "OK", - "headers": {} + "content": { + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/responseMatchMultiple" + }, + "example": [ + { + "matchId": "06272023010821403", + "matcherId": "vtex-matcher", + "sellerId": "test858", + "itemID": "81", + "isSuccess": false + } + ] + } + } } }, "deprecated": false @@ -1508,8 +1471,8 @@ "tags": [ "Match Received SKUs" ], - "summary": "Match Multiple Received SKUs", - "description": "Allows a marketplace to bulk approve, deny, or associate up to 25 received SKUs from sellers.\n\nThrough the `actionName` attribute, you can select the operation you want to apply to the received SKU. Actions include: \n\n* `newproduct`: match the SKU as a new product. \n\n* `skuassociation`: associate the received SKU to an existing SKU. \n\n* `productassociation`: associate the received SKU to an existing product. \n\n* `deny`: deny the received SKU.", + "summary": "Match multiple received SKUs", + "description": "Allows a marketplace to bulk approve, deny, or associate up to 25 received SKUs from sellers.\n\nThrough the `actionName` attribute, you can select the operation you want to apply to the received SKU. Actions include: \n\n* `newproduct`: Match the SKU as a new product. \n\n* `skuassociation`: Associate the received SKU to an existing SKU. \n\n* `productassociation`: Associate the received SKU to an existing product. \n\n* `deny`: Deny the received SKU.\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) 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:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| ---------- | ------------ | ------------ |\r\n| Channels | UI resources | **Save suggestion rules** |\r\n| Suggestion | Suggestion resources | **Main** |\r\n\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", "operationId": "MatchMultiple", "parameters": [ { @@ -1519,7 +1482,7 @@ "description": "Name of the VTEX account. Used as part of the URL", "schema": { "type": "string", - "default": "apiexamples" + "example": "apiexamples" } }, { @@ -1563,7 +1526,7 @@ } ], "requestBody": { - "description": "", + "description": "Array of objects representing multiple SKU or product match requests.", "content": { "application/json": { "schema": { @@ -1583,32 +1546,40 @@ "schema": { "$ref": "#/components/schemas/responseMatchMultiple" }, - "deprecated": false + "example": [ + { + "matchId": "06272023010821403", + "matcherId": "vtex-matcher", + "sellerId": "test858", + "itemID": "81", + "isSuccess": false + } + ] } } } - } + }, + "deprecated": false } } }, "components": { "schemas": { "SaveautoapproveforaccountRequest": { - "title": "SaveautoapproveforaccountRequest", "required": [ "Enabled" ], "type": "object", + "description": "Request object for configuring automatic approval settings for SKUs in an account.", "properties": { "Enabled": { "type": "boolean", "description": "Insert `true` if you wish to activate the autoapprove rule for an entire marketplace account. Insert `false` if you wish to deactivate it. Be aware that once enabling the setting through this request, all received SKUs will be automatically approved on your store, regardless of the seller, or the Matcher Score.", - "default": true + "example": true } } }, "SaveaccountconfigRequest": { - "title": "SaveaccountconfigRequest", "required": [ "Score", "Matchers", @@ -1616,6 +1587,7 @@ "MatchFlux" ], "type": "object", + "description": "Request object for saving account configuration settings.", "properties": { "Score": { "$ref": "#/components/schemas/Score" @@ -1632,13 +1604,15 @@ "description": "This attribute maps product and SKU specifications.", "items": { "type": "string", - "default": " \"SellerId\": \"sellerID\",\n \"Mapping\": {\n \"Choose voltage\": \"Voltage\",\n \"Choose size\": \"Size\",\n \"Choose volume\": \"Volume\",\n \"Choose type\": \"Type\"\n }" + "description": "Each item in the array represents a specification that is mapped to either a product or SKU.", + "example": "color=red" } }, "MatchFlux": { "type": "string", "description": "This field determines the type of approval configuration applied to SKUs received from a seller. The possible values include: \n\n- `default` where the Matcher reviews the SKU, and approves it based on its score \n\n- `manual` for manual approvals through the Received SKU UI or Match API \n\n- `autoApprove` for every SKU received from a given seller to be approved automatically, regardless of the Matcher Score.", - "default": "autoApprove" + "default": "autoApprove", + "example":"autoApprove" } }, "example": { @@ -1655,12 +1629,14 @@ "Description": null } ], - "SpecificationsMapping": [], - "MatchFlux": "AutoApprove" + "SpecificationsMapping": [ + "color=red", + "size=L" + ], + "MatchFlux": "autoApprove" } }, "Score": { - "title": "Score", "description": "Matcher rates received SKUs by comparing the data sent by sellers to existing fields in the marketplace. The calculation of these scores determines whether the product has been: `Approved` or `Denied`.", "required": [ "Approve", @@ -1672,18 +1648,19 @@ "type": "integer", "description": "Insert in this field the desired minimum score to approve SKUs. If this field is set as 99, it means all approvals will be made manually.", "format": "int32", - "default": 80 + "default":80, + "example":80 }, "Reject": { "type": "integer", "description": "Insert in this field the desired maximum score to reject SKUs.", "format": "int32", - "default": 30 + "default": 30, + "example":30 } } }, "Matcher": { - "title": "Matcher", "required": [ "MatcherId", "hook-base-address", @@ -1691,38 +1668,39 @@ "UpdatesNotificationEndpoint" ], "type": "object", + "description": "Represents a matcher configuration in the marketplace.", "properties": { "MatcherId": { "type": "string", "description": "Identifies the matching entity. It can be either VTEX's matcher, or an external matcher developed by partners, for example. The `matcherId`'s value can be obtained through the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion) endpoint.", - "default": "vtex-matcher" + "default": "vtex-matcher", + "example":"vtex-matcher" }, "hook-base-address": { "type": "string", "description": "The chosen Matcher's url. It is the endpoint that the Received SKUs module calls, to send new suggestions for the Matcher's review.", - "default": "http://simple-suggestion-matcher.vtex.com.br" + "example": "http://simple-suggestion-matcher.vtex.com.br" }, "IsActive": { "type": "boolean", "description": "Whether the matcher is active in the account (`true`), or not (`false`).", - "default": true + "example": true }, "UpdatesNotificationEndpoint": { "type": "string", "description": "The Received SKUs module uses this endpoint to send updates about a suggestion, to the chosen Matcher.", "nullable": true, - "default": null + "example": "https://example.com/notification-endpoint" }, "Description": { "type": "string", "description": "Insert in this field any notes about the approval. This field is optional.", "nullable": true, - "default": null + "example": "This approval is for the new product batch from supplier X." } } }, "responseGetAccountsMatcherSettings": { - "title": "GetAccountsMatcherSettings", "description": "Response from Get Account's Matcher Settings endpoint with information about current matcher score setting, rules, spec mapping, and matchFlux.", "type": "object", "properties": { @@ -1733,17 +1711,17 @@ "approve": { "type": "integer", "description": "Minimum approval score set by the marketplace.", - "default": "80" + "default": 80 }, "pending": { "type": "integer", "description": "Minimum value for the ad to be pending.", - "default": "31" + "default": 31 }, "reject": { "type": "integer", "description": "Bounce score set by marketplace.", - "default": "30" + "default": 30 } } }, @@ -1752,6 +1730,7 @@ "type": "array", "items": { "type": "object", + "description": "An object representing a single matcher configuration.", "properties": { "matcherId": { "type": "string", @@ -1763,8 +1742,7 @@ }, "isActive": { "type": "boolean", - "description": "Indicates if Matcher is active or not. `TRUE` = Matcher is active or `FALSE` = Matcher is inactive.", - "default": true + "description": "Indicates if Matcher is active or not. `TRUE` = Matcher is active or `FALSE` = Matcher is inactive." } } } @@ -1775,17 +1753,29 @@ "properties": { "item": { "type": "array", - "description": "A list of rules for items." + "description": "A list of rules for items.", + "items": { + "type": "object", + "description": "A rule for items." + } }, "product": { "type": "array", - "description": "A list of rules for products." + "description": "A list of rules for products.", + "items": { + "type": "object", + "description": "A rule for products." + } } } }, - "specificationsMapping": { + "SpecificationsMapping": { "type": "array", - "description": "This field will show a list of which product specs and SKU are configured to be mapped." + "description": "List of product specifications and SKU attributes configured for mapping.", + "items": { + "type": "object", + "description": "A specification mapping entry." + } }, "matchFlux": { "type": "string", @@ -1794,38 +1784,39 @@ } }, "SaveautoapproveforaccountsellerRequest": { - "title": "SaveautoapproveforaccountsellerRequest", "required": [ "Enabled" ], "type": "object", + "description": "Represents a request to enable or disable automatic approval for SKUs received from a specific seller account.", "properties": { "Enabled": { "type": "boolean", "description": "Insert `true` if you wish to activate the autoapprove rule for that specific seller account. Insert `false` if you wish to deactivate it. Be aware that once enabling the setting through this request, all SKUs received from this seller will be automatically approved on your store regardless of the Matcher Score.", - "default": true + "default": true, + "example":true } } }, "PutselleraccountconfigRequest": { - "title": "PutselleraccountconfigRequest", "required": [ "sellerId", "mapping", "matchFlux" ], "type": "object", + "description": "Represents a request to update or configure the seller account settings in the system. This configuration ensures that the seller's account is properly set up for matching and approval processes.", "properties": { "sellerId": { "type": "string", "description": "A string that identifies the seller in the marketplace. This ID must be created by the marketplace.", - "default": "seller123" + "example": "seller123" }, "mapping": { "type": "object", - "description": "Mapping of SKU and product Specifications. This object should be sent in the following format for all fields you wish to map:\n\n{specificationName}:{specificationValue},\n\nExample:\n\nChoose voltage: Voltage,\n\nChoose size: Size", + "description": "Mapping of SKU and product Specifications. This object should be sent in the following format for all fields you wish to map:\n\n{specificationName}:{specificationValue},\n\nExample:\n\nChoose voltage: Voltage,\n\nChoose size: Size.", "nullable": true, - "default": { + "example": { "Choose voltage": "Voltage", "Choose size": "Size", "Choose volume": "Volume", @@ -1835,12 +1826,12 @@ "matchFlux": { "type": "string", "description": "This field determines the type of approval configuration applied to SKUs received from a seller. The possible values include: \n\n- `default` where the Matcher reviews the SKU, and approves it based on its score \n\n- `manual` for manual approvals through the Received SKU UI or Match API \n\n- `autoApprove` for every SKU received from a given seller to be approved automatically, regardless of the Matcher Score.", - "default": "autoApprove" + "default": "autoApprove", + "example":"autoApprove" } } }, "SaveSuggestionRequest": { - "title": "SaveSuggestionRequest", "required": [ "ProductName", "ProductId", @@ -1861,76 +1852,83 @@ "Pricing" ], "type": "object", + "description": "Represents a request to save or update a product suggestion in the system. This object contains all necessary details about the product and SKU.", "properties": { "ProductName": { "type": "string", "description": "Name of the suggested product. This field has a limit of 150 characters.", - "default": "" + "example": "128GB black smartphone" }, "ProductId": { "type": "string", "description": "Product ID in seller's account.", - "default": "1234" + "example": "1234" }, "ProductDescription": { "type": "string", - "description": "Product Description containing the main information about the product (not the SKU)." + "description": "Product description containing the main information about the product (not the SKU).", + "example":"Triple camera smartphone with USB-C charger." }, "BrandName": { "type": "string", - "description": "Name of the brand to which this SKU belongs. It must match the brand created in the marketplace." + "description": "Name of the brand to which this SKU belongs. It must match the brand created in the marketplace.", + "example":"Brand 1" }, "SkuName": { "type": "string", - "description": "Name of the suggested SKU." + "description": "Name of the suggested SKU.", + "example":"SKU sample" }, "SellerId": { "type": "string", "description": "ID of the seller in the marketplace. This ID must be created by the marketplace and informed to the seller before the integration is built.", - "default": "1" + "example": "1" }, "Height": { "type": "integer", "format": "decimal", "description": "Height of the SKU.", - "default": 10 + "example": 10 }, "Width": { "type": "integer", "format": "decimal", "description": "Width of the SKU.", - "default": 10 + "example": 10 }, "Length": { "type": "integer", "format": "decimal", "description": "Length of the SKU.", - "default": 10 + "example": 10 }, "Weight": { "type": "integer", "format": "decimal", "description": "Weight of the SKU in grams.", - "default": 100.0 + "example": 100.0 }, "RefId": { - "type": "string", - "description": "SKU reference code. Mandotory if the EAN is not informed.", - "default": "REF10" + "type":"string", + "description":"SKU reference code. Mandotory if the EAN is not informed.", + "default":"REF10", + "example":"REF10" }, "EAN": { "type": "string", "description": "SKU reference code. Mandatory if the RefId is not informed.", - "default": "EAN10" + "example": "EAN10" }, "SellerStockKeepingUnitId": { "type": "integer", "format": "int32", - "description": "ID of the SKU registered in the seller." + "description": "ID of the SKU registered in the seller.", + "example":567 }, "CategoryFullPath": { "type": "string", - "description": "Full path to the SKU's category. It should be written as {department}/{category}. For example: if the department is **Appliances** and the category is **Oven**, the full path should be 'Appliances/Oven'." + "description": "Full path to the SKU's category. It should be written as {department}/{category}. For example: if the department is **Appliances** and the category is **Oven**, the full path should be 'Appliances/Oven'.", + "example":"Category 1" }, "SkuSpecifications": { "type": "array", @@ -1955,36 +1953,44 @@ }, "MeasurementUnit": { "type": "string", - "description": "Measurement unit that should be used for this SKU. If this information doesn't apply, you should use the default value `un`." + "description": "Measurement unit that should be used for this SKU. If this information doesn't apply, you should use the default value `un`.", + "example":"un" }, "UnitMultiplier": { "type": "integer", "format": "int32", - "description": "Unit multiplier for this SKU. If this information doesn't apply, you should use the default value `1`." + "description": "Unit multiplier for this SKU. If this information doesn't apply, you should use the default value `1`.", + "example":1 }, "AvailableQuantity": { "type": "integer", "format": "int32", - "description": "" + "description": "The number of items currently available for sales.", + "example":111 }, "Pricing": { "type": "object", + "description": "Object containing pricing details, including the currency, sales price, and currency symbol.", "properties": { "Currency": { - "type": "string" + "type": "string", + "description": "The currency code representing the currency in which the sales price is denominated. This code follows the ISO 4217 standard.", + "example":"BRL" }, "SalePrice": { "type": "integer", - "format": "int32" + "description": "The sales price of the item in the specified currency. This value represents the cost at which the item is sold and is expressed as an integer without decimal places.", + "example":399 }, "CurrencySymbol": { - "type": "string" + "type": "string", + "description": "The symbol representing the currency. This symbol is used in conjunction with the sales price to display the price in a readable format.", + "example":"R$" } - }, - "description": "" + } } }, - "default": { + "example": { "ProductId": "321", "ProductName": "Product sample", "NameComplete": "My complete product name?", @@ -2036,28 +2042,25 @@ } }, "SkuSpecification": { - "title": "skuSpecification", "type": "object", + "description": "Represents a specification detail for a SKU (Stock Keeping Unit).", "properties": { "fieldName": { "type": "string", "description": "Name of the SKU specification field. Example: 'Color'.", - "default": "color" + "example": "color" }, "fieldValues": { "type": "array", "items": { "type": "string", - "default": "Red", + "example": "Red", "description": "Value of the SKU specification field." }, - "default": [ - "Red" - ], - "description": "Array with values of the SKU specification field. Example: 'Red'." + "description": "Array with values of the SKU specification field." } }, - "default": { + "example": { "fieldName": "Color", "fieldValues": [ "Red", @@ -2066,48 +2069,49 @@ } }, "ProductSpecification": { - "title": "Product Specification", "type": "object", + "description": "Represents a specification detail for a product. This object includes a `fieldName` which describes the type of specification (e.g., 'Fabric type') and `fieldValues` which lists the values associated with that specification (e.g., 'Cotton', 'Polyester'). This structure helps in providing detailed attributes about the product, enhancing product descriptions and searchability.", "properties": { "fieldName": { "type": "string", - "description": "Name of the product specification field. Example: 'Fabric'.", - "default": "Fabric type" + "description": "Name of the product specification field.", + "example": "Fabric type" }, "fieldValues": { "type": "array", - "description": "Value of the product specification field. Example: 'Cotton'.", + "description": "Value of the product specification field.", "items": { "type": "string", - "default": "Cotton", + "example": "Cotton", "description": "Value of the product specification field." } } }, "example": { - "fieldName": "Color", + "fieldName": "Fabric type", "fieldValues": [ - "Red", - "Green" + "Cotton", + "Polyester" ] } }, "Image": { - "title": "Image", "required": [ "imageName", "imageUrl" ], "type": "object", + "description": "Represents an image associated with a product or SKU.", "properties": { "imageName": { "type": "string", - "description": "Name of the SKU image." + "description": "Name of the SKU image.", + "example":"Principal" }, "imageUrl": { "type": "string", "description": "URL of the SKU image. The image must be sent through `https` protocol, otherwise it will not be rendered in VTEX Admin.", - "default": "https://imageurl.example" + "example": "https://imageurl.example" } }, "example": { @@ -2116,40 +2120,41 @@ } }, "MatchRequest": { - "title": "", "required": [ "matcherId", "score", "matchType" ], "type": "object", + "description":"Represents a request for matching a SKU suggestion with existing products or SKUs. This object includes details such as the identifier of the matcher used, the score assigned to the suggestion, and the type of match action to be performed. The match type determines how the SKU should be handled, whether as a new product, an item match, or other specified actions.", "properties": { "matcherId": { "type": "string", "description": "Identifies the matching entity. It can be either VTEX's matcher, or an external matcher developed by partners, for example. The `matcherId`'s value can be obtained through the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion) endpoint.", - "default": "vtex-matcher" + "default": "vtex-matcher", + "example":"vtex-matcher" }, "matchType": { - "title": "Match Type", "type": "string", "description": "Define the action you want to apply to each SKU. Values include: \n\n1. `newproduct`: match the SKU as a new product. \n\n2. `itemMatch`: associate the received SKU to an existing SKU. \n\n3. `productMatch`: associate the received SKU to an existing product. \n\n4. `deny`: deny the received SKU. \n\n5. `pending`: the received SKU requires attention. \n\n6. `incomplete`: the received SKU is lacking information to be matched. \n\n7. `insufficientScore`: the score given by the Matcher to this received SKU doesn't qualify it to be matched. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", - "default": "itemMatch" + "example": "itemMatch" }, "score": { "type": "string", "description": "Matcher rates received SKUs by correlating the data sent by sellers, to existing fields in the marketplace. The calculation of these scores determines whether the product has been: \n\n`Approved`: score equal to or greater than 80 points. \n\n`Pending`: from 31 to 79 points.\n\n`Denied`: from 0 to 30 points. \n\nNote that if the autoApprove setting is enabled, the SKUs will be approved, regardless of the Score.", - "default": "80" + "default": "80", + "example":"80" }, "skuRef": { "type": "string", "nullable": true, "description": "In `itemMatch` actions, fill in this field on your request to match the item to an existing SKU in the marketplace.", - "default": "" + "example": "12345-sku" }, "productRef": { "type": "string", "description": "In `productMatch` actions, fill in this field on your request to match the item to an existing product in the marketplace.", - "default": "", + "example": "67890-product", "nullable": true }, "product": { @@ -2160,20 +2165,20 @@ } }, "example": { - "matcherId": "{{matcherid}}", - "score": "{{score}} (must be decimal)", + "matcherId": "vtex-matcher", + "score": "80", "matchType": "itemMatch", - "skuRef": "{{skuid}}(should be specifed when match is a sku match)", - "productRef": "{{productRef}}(should be specified when match is a product match)", + "skuRef": "12345-sku", + "productRef": "67890-product", "product": { - "name": "Produto exemplo", - "description": "Descricao exemplo", + "name": "Product exemple", + "description": "Descricption exemple", "categoryId": 12, "brandId": 1234567, "specifications": null }, "sku": { - "name": "Sku exemplo", + "name": "Sku exemple", "eans": [ "12345678901213" ], @@ -2184,19 +2189,18 @@ "weight": 1, "images": [ { - "imagem1.jpg": "imageurl.example" + "image1.jpg": "imageurl.example" } ], "unitMultiplier": 1, "measurementUnit": "un", "specifications": { - "Embalagem": "3 kg" + "Packaging": "3 kg" } } } }, "Product": { - "title": "Product", "required": [ "name", "description", @@ -2205,39 +2209,39 @@ "specifications" ], "type": "object", + "description":"Represents the product details in the catalog. The product object includes essential attributes such as the product's name, description, category, brand, and specifications. This information is used to define and manage the product within the marketplace, ensuring that it is properly categorized and described for users.", "properties": { "name": { "type": "string", "description": "Name of the product that will be matched.", - "default": "Book" + "example": "Book" }, "description": { "type": "string", "description": "Product's description.", - "default": "Description of the product, how it will appear on the marketplace." + "example": "A fascinating book about science and technology." }, "categoryId": { "type": "integer", "format": "int32", "description": "Marketplace's Category ID that the product belongs to, configured in the Catalog. It should be the category chosen for the received SKU to be matched with. The `categoryId` is already mapped through the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion). You can choose to keep the same suggested `categoryID`, or overwrite it with another value in this request. This field is nulled when the inserted value is 0.", - "default": 12 + "example": 12 }, "brandId": { "type": "integer", "format": "int32", "description": "Marketplace's Brand ID that the product belongs to, configured in the Catalog. It should be the brand chosen for the received SKU to be matched with. The brandId is already mapped through the Get Suggestions API. This field is nulled when the inserted value is 0.", - "default": 1234567 + "example": 1234567 }, "specifications": { "type": "string", "description": "This field is optional. Add here any product specifications or details.", - "default": "", + "example": "Paperback, 300 pages, Published in 2024.", "nullable": true } } }, "Sku": { - "title": "SKU", "required": [ "name", "eans", @@ -2252,52 +2256,55 @@ "specifications" ], "type": "object", + "description":"Represents the SKU (Stock Keeping Unit) details for a product. The SKU is a unique identifier that contains specific attributes such as dimensions, weight, and other product specific information. This object is crucial for defining and managing the individual variations of a product in the catalog.", "properties": { "name": { "type": "string", - "description": "", - "default": "" + "description": "The name or title of the SKU.", + "example": "128GB black smartphone" }, "eans": { "type": "array", + "description": "An array of strings representing the EAN (European Article Number) codes associated with the SKU. EAN codes are unique identifiers used for products.", "items": { - "type": "string" + "type": "string", + "description": "A single EAN code for the SKU. This is a numeric string typically consisting of 13 digits.", + "example": "12345678901213" }, - "description": "SKU reference code.", - "default": [ - "12345678901213" + "example": [ + "1234567901213" ], "nullable": true }, "refId": { "type": "string", "description": "SKU reference code.", - "default": "1234", + "example": "1234", "nullable": true }, "height": { "type": "integer", "format": "int32", "description": "Height of the SKU.", - "default": 10 + "example": 10 }, "width": { "type": "integer", "format": "int32", "description": "Width of the SKU.", - "default": 20 + "example": 20 }, "length": { "type": "integer", "format": "int32", "description": "Length of the SKU.", - "default": 10 + "example": 10 }, "weight": { "type": "integer", "format": "int32", "description": "Weight of the SKU.", - "default": 100 + "example": 100 }, "images": { "$ref": "#/components/schemas/Images" @@ -2306,13 +2313,15 @@ "type": "integer", "format": "int32", "description": "Unit multiplier for this SKU. If this information doesn't apply, you should use the default value 1.", - "default": 1 + "default": 1, + "example": 3 }, "measurementUnit": { "type": "string", "description": "Measurement unit that should be used for this SKU. If this information doesn't apply, you should use the default value un.", "default": "un", - "nullable": true + "nullable": true, + "example":"un" }, "specifications": { "$ref": "#/components/schemas/Specifications" @@ -2333,53 +2342,53 @@ "imagem1.jpg": "imageurl.example" } ], - "unitMultiplier": 1, + "unitMultiplier": 3, "measurementUnit": "un", "specifications": { - "Embalagem": "3 kg" + "Packaging": "3 kg" } } }, "Images": { - "title": "Images", - "required": [ - "imagem1.jpg" - ], "type": "array", - "properties": { - "imagem1.jpg": { - "type": "string", - "description": "Array containing the URLs of the SKU's images. The image must be sent through `https` protocol, otherwise it will not be rendered in VTEX Admin.", - "default": "https://imageurl.example" + "description": "Array containing objects that represent the SKU's images. Each object should have a key representing the image file name and a value containing the URL of the image. The image must be sent through `https` protocol, otherwise it will not be rendered in VTEX Admin.", + "items": { + "type": "object", + "description": "An object that represents a single SKU image with a filename as the key and the image URL as the value.", + "properties": { + "imagem1.jpg": { + "type": "string", + "description": "The URL of the SKU's image. Must be an `https` URL.", + "example": "https://imageurl.example" + } } }, "example": [ { - "imagem1.jpg": "imageurl.example" + "imagem1.jpg": "https://imageurl.example" } ] }, "Specifications": { - "title": "Specifications", "required": [ - "Embalagem" + "Packaging" ], "type": "object", + "description": "Object representing the specifications of a product, including details related to its packaging and other relevant attributes.", "properties": { - "Embalagem": { + "Packaging": { "type": "string", - "description": "Packaging specifications. Should include package's weight." + "description": "Packaging specifications. Should include package's weight.", + "example":"3kg" } - }, - "example": { - "Embalagem": "3 kg" } }, "MatchMultiple": { - "title": "MatchMultiple", "type": "array", + "description":"An array containing multiple match operations, each represented as an object. This array allows for the processing of multiple SKU suggestions in a single request.", "items": { "type": "object", + "description":"Represents a single match operation for a SKU suggestion, including details such as item ID, version ID, match ID, category, and seller information.", "required": [ "itemId", "versionId", @@ -2402,12 +2411,14 @@ "matchId": { "type": "string", "description": "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](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion) endpoint.", - "default": "vtex-matcher" + "default": "vtex-matcher", + "example":"vtex-matcher" }, "matcherId": { "type": "string", "description": "Identifies the matching entity. It can be either VTEX's matcher, or an external matcher developed by partners, for example. The `matcherId`'s value can be obtained through the [Get SKU Suggestion by ID](https://developers.vtex.com/vtex-rest-api/reference/getsuggestion) endpoint.", - "default": "vtex-matcher" + "default":"vtex-matcher", + "example":"vtex-matcher" }, "categoryId": { "type": "integer", @@ -2444,130 +2455,215 @@ } }, "responseMatchMultiple": { - "title": "responseMatchMultiple", "type": "array", + "description":"An array containing the results of multiple match operations. Each object in the array represents the outcome of a single match attempt.", "items": { "type": "object", + "description":"Represents the result of a single match operation, including details such as match ID, matcher ID, seller ID, item ID, and whether the operation was successful.", "properties": { "matchId": { "type": "string", - "example": "06272023010821403" + "description":"Unique identifier for the match operation, which can be used for tracking and auditing purposes." }, "matcherId": { "type": "string", - "example": "vtex-matcher" + "description":"Identifier for the matcher entity that performed the match. It can represent VTEX's internal matcher or an external matcher service." }, "sellerId": { "type": "string", - "example": "melissatestbug858" + "description":"Unique identifier of the seller who owns the SKU being matched." }, "itemId": { "type": "string", - "example": "81" + "description": "Unique identifier of the item (SKU) that was processed during the match operation." }, "isSuccess": { "type": "boolean", - "example": false + "description": "Indicates whether the match operation was successful. A value of `true` means the operation succeeded, while `false` indicates a failure." } } } }, "responseGetSellersApprovalSettings": { - "title": "GetSellersApprovalSettings", "type": "object", + "description":"Represents the approval settings configured for a specific seller within the marketplace. This object includes details about the seller, their account, and how SKUs are mapped and approved.", "properties": { "sellerId": { "type": "string", - "description": "A string that identifies the seller in the marketplace.", - "example": "sellerexample" + "description": "A string that identifies the seller in the marketplace." }, "accountId": { "type": "string", - "description": "Marketplace’s account ID.", - "example": "d74daf1f-355a-4463-bdc7-ae8b045311c" + "description": "Marketplace’s account ID." }, "accountName": { "type": "string", - "description": "Marketplace’s account name.", - "example": "marketplaceexample" + "description": "Marketplace’s account name." }, "mapping": { "type": "object", "default": {}, - "description": "SKU Mapping Information and Product [Specifications](https://developers.vtex.com/docs/guides/catalog-overview#configuring-initial-settings-mandatory).\n\n The properties included within `mapping` can change according to the product type, the `color` specification and its variations described in this example are just one of the possibilities. The values received in this call's payload for those properties depend on the seller's catalog architecture, and are not default. \n\nSee some examples of specifications: \n\n- Voltage \n\n- Power \n\n- Size \n\n- Height \n\n- Width", + "description": "SKU mapping information and product [specifications](https://developers.vtex.com/docs/guides/catalog-overview#configuring-initial-settings-mandatory).\n\n The properties included within `mapping` can change according to the product type, the `color` specification and its variations described in this example are just one of the possibilities. The values received in this call's payload for those properties depend on the seller's catalog architecture, and are not default. \n\nSee some examples of specifications: \n\n- Voltage \n\n- Power \n\n- Size \n\n- Height \n\n- Width.", "properties": { "defaultColor": { "type": "string", - "description": "The field will indicate the default color predefined by the seller in cases where specific product colors are not defined. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog. ", - "example": "white /black" + "description": "The field will indicate the default color predefined by the seller in cases where specific product colors are not defined. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog." }, "searchColor": { "type": "string", - "description": "Field that provides the available colors to filter searches. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.", - "example": "color1, color2" + "description": "Field that provides the available colors to filter searches. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog." }, "color1": { "type": "string", - "description": "`color1` available for search filter. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.", - "example": "black" + "description": "`color1` available for search filter. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog." }, "color2": { "type": "string", - "description": "`color2` available for search filter. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.", - "example": "white" + "description": "`color2` available for search filter. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog." }, "color": { "type": "string", - "description": "Indicates the predominant or main color of the product. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.", - "example": "black" + "description": "Indicates the predominant or main color of the product. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog." }, "size": { "type": "string", - "description": "Indicates the size of the product.This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog.", - "example": "EUR44" + "description": "Indicates the size of the product. This field is neither mandatory nor default, it will depend on the architecture of the seller's catalog." } } }, "matchFlux": { "type": "string", - "description": "This field determines the type of [approval configuration applied to SKUs received from a seller](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/seller/-sellerId-). \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI and Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of the Matcher Score.", - "example": "default" + "description": "This field determines the type of [approval configuration applied to SKUs received from a seller](https://developers.vtex.com/docs/api-reference/marketplace-apis-suggestions#put-/suggestions/configuration/seller/-sellerId-). \n\nThe possible values include: \n\n-`default`, where the Matcher reviews the SKU, and approves it based on its score. \n\n-`manual`, for manual approvals through the Received SKU UI and Match API. \n\n-`autoApprove`, for every SKU received from a given seller to be approved automatically, regardless of the Matcher Score." } } }, - "securitySchemes": { - "appKey": { - "type": "apiKey", - "in": "header", - "name": "X-VTEX-API-AppKey" - }, - "appToken": { - "type": "apiKey", - "in": "header", - "name": "X-VTEX-API-AppToken" + "responseSaveAccountsApprovalSettings": { + "type": "object", + "description": "Response object for the Save Accounts Approval Settings endpoint.", + "properties": { + "Score": { + "type": "object", + "description": "[Matcher's rates](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring) to approve or reject [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) sent by sellers.", + "properties": { + "Approve": { + "type": "integer", + "description": "Score to approve SKUs sent by sellers." + }, + "Reject": { + "type": "integer", + "description": "Score to reject SKUs sent by sellers." + } + } + }, + "Matchers": { + "type": "array", + "description": "[Matchers](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring) configurations for approving and rejecting [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) sent by sellers.", + "items": { + "type":"object", + "description": "Details of a matcher used for scoring and managing SKUs approvals and rejections.", + "properties": { + "MatcherId": { + "type": "string", + "description": "Identifies the matching entity. It can be either [VTEX's matcher](https://help.vtex.com/en/tutorial/understanding-vtex-matcher-scoring), or an external matcher." + }, + "hook-base-address": { + "type": "string", + "description": "The given matcher's URL." + }, + "IsActive": { + "type": "boolean", + "description": "Whether the matcher is active in the account (`true`), or not (`false`)." + }, + "UpdatesNotificationEndpoint": { + "type": "string", + "description": "The [received SKUs](https://help.vtex.com/en/tutorial/cataloging-received-skus--tutorials_396) module calls this endpoint for matcher's suggestions updates." + }, + "Description": { + "type": "string", + "description": "The note inserted on the request body." + } + } + } + }, + "Rules": { + "type": "object", + "description": "Items and products that belong to sellers.", + "properties": { + "Item": { + "type": "array", + "description": "SKUs' ID.", + "items": { + "type": "integer", + "description": "SKU ID." + } + }, + "Product": { + "type": "array", + "description": "Product's name.", + "items": { + "type": "string", + "description": "Product name." + } + } + } + }, + "SpecificationsMapping": { + "type": "array", + "description": "This attribute maps product and SKU's specifications between the marketplace and the seller.", + "items": { + "type": "object", + "description": "Object representing a single specification mapping between the marketplace and the seller.", + "properties": { + "SellerId": { + "type": "string", + "description": "The seller ID." + }, + "Mapping": { + "type": "object", + "description": "The attributes and values mapped between the marketplace and the seller." + } + } + } + }, + "MatchFlux": { + "type": "string", + "description": "Type of approval configuration that apply to received SKUs sent by sellers. The possible values are: \n\n`default`: The matcher approves the SKU. \n\n`manual`: Manual SKU's approvals. \n\n`AutoApprove`: Automatic SKU's approvals." + } } } }, - "tags": [ - { - "name": "Get Suggestions", - "description": "Search and filter all suggestions using specific criteria." - }, - { - "name": "Manage Suggestions", - "description": "Send or delete SKU suggestions from the seller to marketplace." - }, - { - "name": "Get Versions", - "description": "Search and filter all versions of suggestions, using specific criteria." - }, - { - "name": "SKU Approval Settings" + "securitySchemes": { + "appKey": { + "type": "apiKey", + "in": "header", + "name": "X-VTEX-API-AppKey" }, - { - "name": "Match Received SKUs", - "description": "Match SKU suggestions received in the marketplace." + "appToken": { + "type": "apiKey", + "in": "header", + "name": "X-VTEX-API-AppToken" } - ] - } + } + }, + "tags": [ + { + "name": "Get suggestions", + "description": "Search and filter all suggestions using specific criteria." + }, + { + "name": "Manage suggestions", + "description": "Send or delete SKU suggestions from the seller to marketplace." + }, + { + "name": "Get versions", + "description": "Search and filter all versions of suggestions, using specific criteria." + }, + { + "name": "SKU approval settings" + }, + { + "name": "Match received SKUs", + "description": "Match SKU suggestions received in the marketplace." + } + ] } \ No newline at end of file