diff --git a/PostmanCollections/VTEX - Catalog API.json b/PostmanCollections/VTEX - Catalog API.json index 3556efae3..992bf7e95 100644 --- a/PostmanCollections/VTEX - Catalog API.json +++ b/PostmanCollections/VTEX - Catalog API.json @@ -1,10 +1,10 @@ { "_": { - "postman_id": "a7295500-39ac-4398-a9e8-e304c8ea1807" + "postman_id": "5ead316f-5436-4408-a9b9-768cfbb79f95" }, "item": [ { - "id": "f9ac469d-2add-4e3c-8bf7-f226c7675032", + "id": "4c3af9a4-8a08-4c7a-97e5-cd5aef1a1ea3", "name": "SKU service", "description": { "content": "", @@ -12,7 +12,7 @@ }, "item": [ { - "id": "affd58b0-be8a-4e0b-98b1-590c114ba219", + "id": "60156181-8720-4787-8c33-9342d7a77907", "name": "Get SKU service", "request": { "name": "Get SKU service", @@ -42,24 +42,6 @@ "type": "any", "value": "5", "key": "skuServiceId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -81,16 +63,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "87f7dfe5-f816-45b8-8ba8-c1f797eea1c1", + "id": "3b6fe619-3907-41e3-8d55-f12d4c9cb662", "name": "OK", "originalRequest": { "url": { @@ -105,46 +92,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "5", - "key": "skuServiceId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -166,6 +116,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -187,13 +145,13 @@ { "listen": "test", "script": { - "id": "ed87e865-3e9d-4cec-a724-f773bd9c8732", + "id": "c7cb0e9a-0cdd-4715-b46a-1cc907a6af97", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/skuservice/:skuServiceId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/skuservice/:skuServiceId - 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]::/api/catalog/pvt/skuservice/:skuServiceId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service ID.\",\"example\":1},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":1},\"SkuServiceValueId\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\",\"example\":1},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\",\"example\":1},\"Name\":{\"type\":\"string\",\"description\":\"SKU service name. Maximum of 50 characters.\",\"example\":\"Engraving\"},\"Text\":{\"type\":\"string\",\"description\":\"Internal description of the SKU service. Maximum of 100 characters.\",\"example\":\"Name engraving additional service.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service is active or not.\",\"example\":true}},\"example\":{\"Id\":1,\"SkuServiceTypeId\":1,\"SkuServiceValueId\":1,\"SkuId\":1,\"Name\":\"name\",\"Text\":\"text\",\"IsActive\":false}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/skuservice/:skuServiceId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service ID.\"},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"SkuServiceValueId\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\"},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service name. Maximum of 50 characters.\"},\"Text\":{\"type\":\"string\",\"description\":\"Internal description of the SKU service. Maximum of 100 characters.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service is active or not.\"}},\"example\":{\"Id\":1,\"SkuServiceTypeId\":1,\"SkuServiceValueId\":1,\"SkuId\":1,\"Name\":\"name\",\"Text\":\"text\",\"IsActive\":false}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/skuservice/:skuServiceId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -203,7 +161,7 @@ } }, { - "id": "93d863f3-4b7c-4686-853f-9d455a2a734e", + "id": "1eb556f6-d715-4372-bd0f-7926628f0bfe", "name": "Update SKU service", "request": { "name": "Update SKU service", @@ -233,24 +191,6 @@ "type": "any", "value": "5", "key": "skuServiceId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -272,6 +212,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -280,6 +228,7 @@ "raw": "{\n \"SkuServiceTypeId\": 2,\n \"SkuServiceValueId\": 1,\n \"SkuId\": 1,\n \"Name\": \"Test name\",\n \"Text\": \"Text\",\n \"IsActive\": true\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -290,7 +239,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "e291983b-ca1c-47ca-aef8-19d1449f3c4b", + "id": "14bdd7a8-ccb5-406e-bb5f-56176bc70ff0", "name": "OK", "originalRequest": { "url": { @@ -305,46 +254,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "5", - "key": "skuServiceId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -363,9 +275,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -374,6 +298,7 @@ "raw": "{\n \"SkuServiceTypeId\": 2,\n \"SkuServiceValueId\": 1,\n \"SkuId\": 1,\n \"Name\": \"Test name\",\n \"Text\": \"Text\",\n \"IsActive\": true\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -395,13 +320,13 @@ { "listen": "test", "script": { - "id": "03e8a6d9-1b23-47d2-8918-f3c42b24fcb9", + "id": "1f60300d-2b80-47c7-8602-49d07bb64b01", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/skuservice/:skuServiceId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/skuservice/:skuServiceId - 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]::/api/catalog/pvt/skuservice/:skuServiceId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service ID.\",\"example\":1},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":1},\"SkuServiceValueId\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\",\"example\":1},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\",\"example\":1},\"Name\":{\"type\":\"string\",\"description\":\"SKU service name. Maximum of 50 characters.\",\"example\":\"Engraving\"},\"Text\":{\"type\":\"string\",\"description\":\"Internal description of the SKU service. Maximum of 100 characters.\",\"example\":\"Name engraving additional service.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service is active or not.\",\"example\":true}},\"example\":{\"Id\":1,\"SkuServiceTypeId\":1,\"SkuServiceValueId\":1,\"SkuId\":1,\"Name\":\"name\",\"Text\":\"text\",\"IsActive\":false}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/skuservice/:skuServiceId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service ID.\"},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"SkuServiceValueId\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\"},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service name. Maximum of 50 characters.\"},\"Text\":{\"type\":\"string\",\"description\":\"Internal description of the SKU service. Maximum of 100 characters.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service is active or not.\"}},\"example\":{\"Id\":1,\"SkuServiceTypeId\":1,\"SkuServiceValueId\":1,\"SkuId\":1,\"Name\":\"name\",\"Text\":\"text\",\"IsActive\":false}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/skuservice/:skuServiceId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -411,7 +336,7 @@ } }, { - "id": "ad154f4a-bc77-4536-8a0f-1ecbe2a357c8", + "id": "a68110cb-99a4-44f3-9675-5e7ba645ac1d", "name": "Dissociate SKU service", "request": { "name": "Dissociate SKU service", @@ -441,24 +366,6 @@ "type": "any", "value": "1", "key": "skuServiceId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -482,14 +389,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "fe225101-2597-4c69-961b-3db0175be3e2", + "id": "63718776-252d-4d22-9dd7-7f08afa40e3e", "name": "OK", "originalRequest": { "url": { @@ -504,46 +412,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuServiceId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -561,6 +432,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -568,13 +447,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -582,7 +455,7 @@ { "listen": "test", "script": { - "id": "b5f59bdd-0323-44be-9502-c73b0a2a17ff", + "id": "48554577-a967-4f05-9742-9e41339ea571", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/skuservice/:skuServiceId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -595,7 +468,7 @@ } }, { - "id": "ed624611-3089-4358-8917-7693478aeb5d", + "id": "294a2ae1-c83b-409b-8b77-669aae01dfc8", "name": "Associate SKU service", "request": { "name": "Associate SKU service", @@ -614,26 +487,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -653,6 +507,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -661,6 +523,7 @@ "raw": "{\n \"SkuServiceTypeId\": 1,\n \"SkuServiceValueId\": 1,\n \"SkuId\": 1,\n \"Name\": \"Engraving\",\n \"Text\": \"Name engraving additional service.\",\n \"IsActive\": true\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -671,7 +534,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "83a3224e-2ed6-4d9b-9c2b-b5d5afe6f01a", + "id": "a573fea2-5e34-463a-9b22-961a40146e02", "name": "OK", "originalRequest": { "url": { @@ -685,36 +548,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -733,9 +569,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -744,6 +592,7 @@ "raw": "{\n \"SkuServiceTypeId\": 1,\n \"SkuServiceValueId\": 1,\n \"SkuId\": 1,\n \"Name\": \"Engraving\",\n \"Text\": \"Name engraving additional service.\",\n \"IsActive\": true\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -765,13 +614,13 @@ { "listen": "test", "script": { - "id": "22eec17b-aae9-442c-b30f-b1ea6a6e49a4", + "id": "015e6479-7e0c-40d6-b7c0-8097add1cca7", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/skuservice - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/skuservice - 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(\"[POST]::/api/catalog/pvt/skuservice - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service ID.\",\"example\":1},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":1},\"SkuServiceValueId\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\",\"example\":1},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\",\"example\":1},\"Name\":{\"type\":\"string\",\"description\":\"SKU service name. Maximum of 50 characters.\",\"example\":\"Engraving\"},\"Text\":{\"type\":\"string\",\"description\":\"Internal description of the SKU service. Maximum of 100 characters.\",\"example\":\"Name engraving additional service.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service is active or not.\",\"example\":true}},\"example\":{\"Id\":1,\"SkuServiceTypeId\":1,\"SkuServiceValueId\":1,\"SkuId\":1,\"Name\":\"name\",\"Text\":\"text\",\"IsActive\":false}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/skuservice - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service ID.\"},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"SkuServiceValueId\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\"},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service name. Maximum of 50 characters.\"},\"Text\":{\"type\":\"string\",\"description\":\"Internal description of the SKU service. Maximum of 100 characters.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service is active or not.\"}},\"example\":{\"Id\":1,\"SkuServiceTypeId\":1,\"SkuServiceValueId\":1,\"SkuId\":1,\"Name\":\"name\",\"Text\":\"text\",\"IsActive\":false}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/skuservice - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -784,7 +633,7 @@ "event": [] }, { - "id": "568fd522-023e-4b30-909a-74c91d94e24d", + "id": "13c9b500-18ce-4589-b5db-eb22a38ac1de", "name": "SKU service attachment", "description": { "content": "", @@ -792,7 +641,7 @@ }, "item": [ { - "id": "87ed0256-27ae-4b41-884e-9d7227a7c669", + "id": "72c83aae-5e00-47a7-bcdf-ab47238e1fc5", "name": "Associate SKU service attachment", "request": { "name": "Associate SKU service attachment", @@ -811,26 +660,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -850,6 +680,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -858,6 +696,7 @@ "raw": "{\n \"AttachmentId\": 1,\n \"SkuServiceTypeId\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -868,7 +707,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "ce11cb6c-92b7-4415-a8f0-452274d81863", + "id": "b58cb675-a9c7-45bf-8539-8544950e99d9", "name": "OK", "originalRequest": { "url": { @@ -882,36 +721,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -930,9 +742,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -941,6 +765,7 @@ "raw": "{\n \"AttachmentId\": 1,\n \"SkuServiceTypeId\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -962,7 +787,7 @@ { "listen": "test", "script": { - "id": "28678b2d-818f-4fbb-8710-8a7d54be8cfc", + "id": "9493ce3b-984c-4467-b5cc-86ea56456d2c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/skuservicetypeattachment - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -978,7 +803,7 @@ } }, { - "id": "1c35363d-d466-49ce-9e24-e71642ae2d3a", + "id": "d343f0ae-0afc-4c8b-8f73-c84947418061", "name": "Dissociate attachment by attachment ID or SKU service type ID", "request": { "name": "Dissociate attachment by attachment ID or SKU service type ID", @@ -1016,26 +841,7 @@ "value": "1" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -1057,14 +863,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "245da939-12f0-4612-bc62-50db6ff43d85", + "id": "0833f094-9865-42a2-a733-8ea2b0f1ce53", "name": "OK", "originalRequest": { "url": { @@ -1079,44 +886,27 @@ ], "query": [ { - "key": "attachmentId", - "value": "1" - }, - { - "key": "skuServiceTypeId", - "value": "1" - } - ], - "variable": [ - { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "SKU service attachment unique identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "attachmentId", + "value": "1" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "SKU service type unique identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "skuServiceTypeId", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -1134,6 +924,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -1141,13 +939,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -1155,7 +947,7 @@ { "listen": "test", "script": { - "id": "89b5adc0-65fd-4e25-a503-e918294df7d8", + "id": "1c8c487c-0477-4cc6-86c6-741a7e782fbc", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/skuservicetypeattachment - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -1168,7 +960,7 @@ } }, { - "id": "7e20c7e4-b01e-4c67-8e91-6ef132fa50dc", + "id": "159b973c-cc52-480e-bb6b-1c1a761218c1", "name": "Dissociate Attachment from SKU service type", "request": { "name": "Dissociate Attachment from SKU service type", @@ -1198,24 +990,6 @@ "type": "any", "value": "1", "key": "skuServiceTypeAttachmentId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -1239,14 +1013,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "de582248-fb91-48fa-a18c-0bcc4327f3ab", + "id": "a2e7edfa-c05c-4d3f-8f5b-1aed58bdeae7", "name": "OK", "originalRequest": { "url": { @@ -1261,46 +1036,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service attachment unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuServiceTypeAttachmentId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -1318,6 +1056,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -1325,13 +1071,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -1339,7 +1079,7 @@ { "listen": "test", "script": { - "id": "5d6b8c5f-6e71-48ac-8809-2fc82e6efb24", + "id": "6141aa21-9c60-46e4-935a-cf58e2dad6c6", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/skuservicetypeattachment/:skuServiceTypeAttachmentId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -1355,7 +1095,7 @@ "event": [] }, { - "id": "3682ff70-9640-46f2-94fa-a8958d6b7c69", + "id": "8f101b07-3685-42b9-8960-032336849828", "name": "SKU service value", "description": { "content": "", @@ -1363,7 +1103,7 @@ }, "item": [ { - "id": "1302cb38-5cab-40c7-935a-492cb11ba2c8", + "id": "9f4f5cf8-984f-44bb-b782-e0d66c7fddfe", "name": "Create SKU service value", "request": { "name": "Create SKU service value", @@ -1382,26 +1122,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -1421,6 +1142,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -1429,6 +1158,7 @@ "raw": "{\n \"SkuServiceTypeId\": 2,\n \"Name\": \"Test ServiceValue API\",\n \"Value\": 10.5,\n \"Cost\": 10.5\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -1439,7 +1169,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "3490fab7-8228-4648-8963-cc7809960de9", + "id": "68ad5f1b-3066-4893-82c3-0fc0b0088f99", "name": "OK", "originalRequest": { "url": { @@ -1453,36 +1183,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -1501,9 +1204,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -1512,6 +1227,7 @@ "raw": "{\n \"SkuServiceTypeId\": 2,\n \"Name\": \"Test ServiceValue API\",\n \"Value\": 10.5,\n \"Cost\": 10.5\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -1533,13 +1249,13 @@ { "listen": "test", "script": { - "id": "7a35aae4-7fa1-4822-a26f-7a95bf4e02e8", + "id": "c74d4162-a7f2-413b-9f25-dc74b22b1810", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/skuservicevalue - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/skuservicevalue - 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(\"[POST]::/api/catalog/pvt/skuservicevalue - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"SkuServiceTypeId\",\"Name\",\"Value\",\"Cost\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\",\"example\":2},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":2},\"Name\":{\"type\":\"string\",\"description\":\"SKU service value name. Maximum of 100 characters.\",\"example\":\"Test ServiceValue API\"},\"Value\":{\"type\":\"number\",\"description\":\"SKU service value value.\",\"example\":10.5},\"Cost\":{\"type\":\"number\",\"description\":\"SKU service value cost.\",\"example\":10.5}},\"example\":{\"Id\":2,\"SkuServiceTypeId\":2,\"Name\":\"Test ServiceValue API\",\"Value\":10.5,\"Cost\":10.5}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/skuservicevalue - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"SkuServiceTypeId\",\"Name\",\"Value\",\"Cost\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\"},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service value name. Maximum of 100 characters.\"},\"Value\":{\"type\":\"number\",\"description\":\"SKU service value value.\"},\"Cost\":{\"type\":\"number\",\"description\":\"SKU service value cost.\"}},\"example\":{\"Id\":2,\"SkuServiceTypeId\":2,\"Name\":\"Test ServiceValue API\",\"Value\":10.5,\"Cost\":10.5}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/skuservicevalue - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -1549,7 +1265,7 @@ } }, { - "id": "573e5775-d544-4122-9772-1f292ccab01b", + "id": "7af80b9b-cb23-42da-8d76-cfa8e4d54c1b", "name": "Get SKU service value", "request": { "name": "Get SKU service value", @@ -1579,24 +1295,6 @@ "type": "any", "value": "1", "key": "skuServiceValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -1618,16 +1316,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "c7d269b9-aee9-41d8-b95b-8a543b3a40fd", + "id": "fb95d73e-cb3e-4886-8554-7e66711f925f", "name": "OK", "originalRequest": { "url": { @@ -1642,46 +1345,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service value unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuServiceValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -1703,6 +1369,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -1724,13 +1398,13 @@ { "listen": "test", "script": { - "id": "60f9a10a-d1e8-4255-9a4e-7fca7284e359", + "id": "164251e6-c25f-4368-9981-0a673e8dcfd1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - 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]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"SkuServiceTypeId\",\"Name\",\"Value\",\"Cost\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\",\"example\":2},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":2},\"Name\":{\"type\":\"string\",\"description\":\"SKU service value name. Maximum of 100 characters.\",\"example\":\"Test ServiceValue API\"},\"Value\":{\"type\":\"number\",\"description\":\"SKU service value value.\",\"example\":10.5},\"Cost\":{\"type\":\"number\",\"description\":\"SKU service value cost.\",\"example\":10.5}},\"example\":{\"Id\":2,\"SkuServiceTypeId\":2,\"Name\":\"Test ServiceValue API\",\"Value\":10.5,\"Cost\":10.5}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"SkuServiceTypeId\",\"Name\",\"Value\",\"Cost\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\"},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service value name. Maximum of 100 characters.\"},\"Value\":{\"type\":\"number\",\"description\":\"SKU service value value.\"},\"Cost\":{\"type\":\"number\",\"description\":\"SKU service value cost.\"}},\"example\":{\"Id\":2,\"SkuServiceTypeId\":2,\"Name\":\"Test ServiceValue API\",\"Value\":10.5,\"Cost\":10.5}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -1740,7 +1414,7 @@ } }, { - "id": "a97c5211-f62a-48b6-846b-ef5003cd57cc", + "id": "6cef5f1a-0293-476c-aa46-cd118827662d", "name": "Update SKU service value", "request": { "name": "Update SKU service value", @@ -1770,24 +1444,6 @@ "type": "any", "value": "1", "key": "skuServiceValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -1809,6 +1465,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -1817,6 +1481,7 @@ "raw": "{\n \"SkuServiceTypeId\": 2,\n \"Name\": \"Test ServiceValue API\",\n \"Value\": 10.5,\n \"Cost\": 10.5\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -1827,7 +1492,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "ebf02613-4379-4013-a56b-a832a92c518e", + "id": "9f2a063f-4246-4ba7-8b34-2c4c6daed2b5", "name": "OK", "originalRequest": { "url": { @@ -1842,50 +1507,13 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service value unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuServiceValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { + "disabled": false, "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, - { - "disabled": false, - "description": { - "content": "(Required) Type of the content being sent.", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", @@ -1900,9 +1528,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -1911,6 +1551,7 @@ "raw": "{\n \"SkuServiceTypeId\": 2,\n \"Name\": \"Test ServiceValue API\",\n \"Value\": 10.5,\n \"Cost\": 10.5\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -1932,13 +1573,13 @@ { "listen": "test", "script": { - "id": "a3675373-f4e6-4a08-a49e-78ad26ff9734", + "id": "25734a18-894d-48fe-8e05-1bcb9147eaa7", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - 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]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"SkuServiceTypeId\",\"Name\",\"Value\",\"Cost\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\",\"example\":2},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":2},\"Name\":{\"type\":\"string\",\"description\":\"SKU service value name. Maximum of 100 characters.\",\"example\":\"Test ServiceValue API\"},\"Value\":{\"type\":\"number\",\"description\":\"SKU service value value.\",\"example\":10.5},\"Cost\":{\"type\":\"number\",\"description\":\"SKU service value cost.\",\"example\":10.5}},\"example\":{\"Id\":2,\"SkuServiceTypeId\":2,\"Name\":\"Test ServiceValue API\",\"Value\":10.5,\"Cost\":10.5}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"SkuServiceTypeId\",\"Name\",\"Value\",\"Cost\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service value ID.\"},\"SkuServiceTypeId\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service value name. Maximum of 100 characters.\"},\"Value\":{\"type\":\"number\",\"description\":\"SKU service value value.\"},\"Cost\":{\"type\":\"number\",\"description\":\"SKU service value cost.\"}},\"example\":{\"Id\":2,\"SkuServiceTypeId\":2,\"Name\":\"Test ServiceValue API\",\"Value\":10.5,\"Cost\":10.5}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -1948,7 +1589,7 @@ } }, { - "id": "706c9eb2-a3a3-4f8a-88e4-7c3289f07fbd", + "id": "3500a3b6-2a71-4481-a7a5-6502c589cd58", "name": "Delete SKU service value", "request": { "name": "Delete SKU service value", @@ -1978,24 +1619,6 @@ "type": "any", "value": "1", "key": "skuServiceValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -2019,14 +1642,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "b6602e8b-3371-4944-a75c-5f9e58893542", + "id": "1afff509-c16c-48f3-a990-617f79d6a13f", "name": "OK", "originalRequest": { "url": { @@ -2041,46 +1665,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service value unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuServiceValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -2098,6 +1685,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -2105,13 +1700,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -2119,7 +1708,7 @@ { "listen": "test", "script": { - "id": "48e092f7-09a0-4e36-895d-5d5e0f618b9b", + "id": "2393bc94-68d5-482d-a300-eae419cde904", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/skuservicevalue/:skuServiceValueId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -2135,7 +1724,7 @@ "event": [] }, { - "id": "2216d192-6432-498c-aff3-383525fb8d98", + "id": "7192fc1e-eaa8-40d7-b661-a32e3f2d62c2", "name": "SKU service type", "description": { "content": "", @@ -2143,7 +1732,7 @@ }, "item": [ { - "id": "cd8f1c5a-c6cb-4f5b-91b8-5d64af569112", + "id": "23f54763-1ea9-499c-998e-7114e516c84e", "name": "Create SKU service type", "request": { "name": "Create SKU service type", @@ -2162,26 +1751,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -2201,6 +1771,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -2209,6 +1787,7 @@ "raw": "{\n \"Name\": \"Test API Sku Services\",\n \"IsActive\": true,\n \"ShowOnProductFront\": false,\n \"ShowOnCartFront\": false,\n \"ShowOnAttachmentFront\": false,\n \"ShowOnFileUpload\": false,\n \"IsGiftCard\": false,\n \"IsRequired\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -2219,7 +1798,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "fad50a68-b6a4-4cf3-99f2-a91fee5e7f89", + "id": "603edb25-fa64-4a7b-9add-c09ed26d5b37", "name": "OK", "originalRequest": { "url": { @@ -2233,36 +1812,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -2281,9 +1833,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -2292,6 +1856,7 @@ "raw": "{\n \"Name\": \"Test API Sku Services\",\n \"IsActive\": true,\n \"ShowOnProductFront\": false,\n \"ShowOnCartFront\": false,\n \"ShowOnAttachmentFront\": false,\n \"ShowOnFileUpload\": false,\n \"IsGiftCard\": false,\n \"IsRequired\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -2313,13 +1878,13 @@ { "listen": "test", "script": { - "id": "547f0385-08ee-494d-9c98-2f76c24fd721", + "id": "8af9a197-e0fc-4f5f-ba09-ab3f56b37e47", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/skuservicetype - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/skuservicetype - 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(\"[POST]::/api/catalog/pvt/skuservicetype - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":2},\"Name\":{\"type\":\"string\",\"description\":\"SKU service type name. Maximum of 100 characters.\",\"example\":\"Test API Sku Services\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is active or not.\",\"example\":true},\"ShowOnProductFront\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\",\"example\":false,\"deprecated\":true},\"ShowOnCartFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed on the cart screen.\",\"example\":false},\"ShowOnAttachmentFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type has an attachment.\",\"default\":false},\"ShowOnFileUpload\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type can be associated with an attachment or not.\",\"default\":false},\"IsGiftCard\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed as a Gift Card.\",\"default\":false},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is mandatory.\",\"default\":false}},\"example\":{\"Id\":2,\"Name\":\"Test API SKU services\",\"IsActive\":true,\"ShowOnProductFront\":true,\"ShowOnCartFront\":true,\"ShowOnAttachmentFront\":true,\"ShowOnFileUpload\":true,\"IsGiftCard\":true,\"IsRequired\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/skuservicetype - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service type name. Maximum of 100 characters.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is active or not.\"},\"ShowOnProductFront\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\"},\"ShowOnCartFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed on the cart screen.\"},\"ShowOnAttachmentFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type has an attachment.\",\"default\":false},\"ShowOnFileUpload\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type can be associated with an attachment or not.\",\"default\":false},\"IsGiftCard\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed as a Gift Card.\",\"default\":false},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is mandatory.\",\"default\":false}},\"example\":{\"Id\":2,\"Name\":\"Test API SKU services\",\"IsActive\":true,\"ShowOnProductFront\":true,\"ShowOnCartFront\":true,\"ShowOnAttachmentFront\":true,\"ShowOnFileUpload\":true,\"IsGiftCard\":true,\"IsRequired\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/skuservicetype - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -2329,7 +1894,7 @@ } }, { - "id": "e917f22f-c4c2-4a34-a77e-5d8c686aead9", + "id": "90375d9e-7293-487d-b081-916e8e8e5d8c", "name": "Get SKU service type", "request": { "name": "Get SKU service type", @@ -2359,24 +1924,6 @@ "type": "any", "value": "1", "key": "skuServiceTypeId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -2398,16 +1945,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "814a657a-7348-4534-9bf2-d841c844b12f", + "id": "06d73764-4fae-44bb-af5a-494bfa582bf5", "name": "OK", "originalRequest": { "url": { @@ -2422,46 +1974,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service type unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuServiceTypeId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -2483,6 +1998,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -2504,13 +2027,13 @@ { "listen": "test", "script": { - "id": "e0b3d51b-f70f-4bda-b940-c362db01c7b1", + "id": "28695b09-d286-4476-be4a-115a5688033c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - 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]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":2},\"Name\":{\"type\":\"string\",\"description\":\"SKU service type name. Maximum of 100 characters.\",\"example\":\"Test API Sku Services\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is active or not.\",\"example\":true},\"ShowOnProductFront\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\",\"example\":false,\"deprecated\":true},\"ShowOnCartFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed on the cart screen.\",\"example\":false},\"ShowOnAttachmentFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type has an attachment.\",\"default\":false},\"ShowOnFileUpload\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type can be associated with an attachment or not.\",\"default\":false},\"IsGiftCard\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed as a Gift Card.\",\"default\":false},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is mandatory.\",\"default\":false}},\"example\":{\"Id\":2,\"Name\":\"Test API SKU services\",\"IsActive\":true,\"ShowOnProductFront\":true,\"ShowOnCartFront\":true,\"ShowOnAttachmentFront\":true,\"ShowOnFileUpload\":true,\"IsGiftCard\":true,\"IsRequired\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service type name. Maximum of 100 characters.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is active or not.\"},\"ShowOnProductFront\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\"},\"ShowOnCartFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed on the cart screen.\"},\"ShowOnAttachmentFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type has an attachment.\",\"default\":false},\"ShowOnFileUpload\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type can be associated with an attachment or not.\",\"default\":false},\"IsGiftCard\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed as a Gift Card.\",\"default\":false},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is mandatory.\",\"default\":false}},\"example\":{\"Id\":2,\"Name\":\"Test API SKU services\",\"IsActive\":true,\"ShowOnProductFront\":true,\"ShowOnCartFront\":true,\"ShowOnAttachmentFront\":true,\"ShowOnFileUpload\":true,\"IsGiftCard\":true,\"IsRequired\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -2520,7 +2043,7 @@ } }, { - "id": "2a2701c4-ba86-4e4e-bc49-92c6e54d6fc2", + "id": "6421508e-1438-41ca-bc09-8da949fac830", "name": "Update SKU service type", "request": { "name": "Update SKU service type", @@ -2550,24 +2073,6 @@ "type": "any", "value": "1", "key": "skuServiceTypeId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -2589,6 +2094,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -2597,6 +2110,7 @@ "raw": "{\n \"Name\": \"Test API Sku Services\",\n \"IsActive\": true,\n \"ShowOnProductFront\": false,\n \"ShowOnCartFront\": false,\n \"ShowOnAttachmentFront\": false,\n \"ShowOnFileUpload\": false,\n \"IsGiftCard\": false,\n \"IsRequired\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -2607,7 +2121,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "ab00a28f-1d8f-469f-8221-33845de12a94", + "id": "ff8e87fb-2da8-422f-957e-4a68b3491781", "name": "OK", "originalRequest": { "url": { @@ -2622,46 +2136,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service type unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuServiceTypeId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -2680,9 +2157,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -2691,6 +2180,7 @@ "raw": "{\n \"Name\": \"Test API Sku Services\",\n \"IsActive\": true,\n \"ShowOnProductFront\": false,\n \"ShowOnCartFront\": false,\n \"ShowOnAttachmentFront\": false,\n \"ShowOnFileUpload\": false,\n \"IsGiftCard\": false,\n \"IsRequired\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -2712,13 +2202,13 @@ { "listen": "test", "script": { - "id": "6018d03a-90f0-45d8-b2fc-9824a767b68c", + "id": "a7f9a9e0-c41d-43cb-9947-0111131383cf", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - 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]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\",\"example\":2},\"Name\":{\"type\":\"string\",\"description\":\"SKU service type name. Maximum of 100 characters.\",\"example\":\"Test API Sku Services\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is active or not.\",\"example\":true},\"ShowOnProductFront\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\",\"example\":false,\"deprecated\":true},\"ShowOnCartFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed on the cart screen.\",\"example\":false},\"ShowOnAttachmentFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type has an attachment.\",\"default\":false},\"ShowOnFileUpload\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type can be associated with an attachment or not.\",\"default\":false},\"IsGiftCard\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed as a Gift Card.\",\"default\":false},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is mandatory.\",\"default\":false}},\"example\":{\"Id\":2,\"Name\":\"Test API SKU services\",\"IsActive\":true,\"ShowOnProductFront\":true,\"ShowOnCartFront\":true,\"ShowOnAttachmentFront\":true,\"ShowOnFileUpload\":true,\"IsGiftCard\":true,\"IsRequired\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"SKU service type ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU service type name. Maximum of 100 characters.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is active or not.\"},\"ShowOnProductFront\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\"},\"ShowOnCartFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed on the cart screen.\"},\"ShowOnAttachmentFront\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type has an attachment.\",\"default\":false},\"ShowOnFileUpload\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type can be associated with an attachment or not.\",\"default\":false},\"IsGiftCard\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is displayed as a Gift Card.\",\"default\":false},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU service type is mandatory.\",\"default\":false}},\"example\":{\"Id\":2,\"Name\":\"Test API SKU services\",\"IsActive\":true,\"ShowOnProductFront\":true,\"ShowOnCartFront\":true,\"ShowOnAttachmentFront\":true,\"ShowOnFileUpload\":true,\"IsGiftCard\":true,\"IsRequired\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -2728,7 +2218,7 @@ } }, { - "id": "18f6179d-37bd-4e1d-98e8-3ec2739e8462", + "id": "0583c81a-e078-4723-9478-71ed177f2a91", "name": "Delete SKU service type", "request": { "name": "Delete SKU service type", @@ -2758,24 +2248,6 @@ "type": "any", "value": "1", "key": "skuServiceTypeId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -2799,14 +2271,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "925ef89e-5ad2-485d-a46f-5241cca148b0", + "id": "6fbc8dc2-f31c-4159-a197-7dae5e984d66", "name": "OK", "originalRequest": { "url": { @@ -2821,63 +2294,34 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU service type unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuServiceTypeId" + "variable": [] + }, + "header": [ + { + "disabled": false, + "description": { + "content": "(Required) Type of the content being sent.", + "type": "text/plain" }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] - }, - "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" + "key": "Content-Type", + "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) Type of the content being sent.", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { - "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", + "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, - "key": "Accept", - "value": "application/json" + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -2885,13 +2329,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -2899,7 +2337,7 @@ { "listen": "test", "script": { - "id": "53d21bed-abcd-493c-a82c-d265ed274e39", + "id": "7c0d9512-c8b4-4699-b6d6-5f7a2d290c98", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/skuservicetype/:skuServiceTypeId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -2915,7 +2353,7 @@ "event": [] }, { - "id": "92e19ee6-d457-47a6-b36b-357119af4ad8", + "id": "92162c08-3c2c-4f75-93b4-661acd0786df", "name": "Category", "description": { "content": "", @@ -2923,7 +2361,7 @@ }, "item": [ { - "id": "0d2a07b9-ef96-4466-a1eb-d6823b519420", + "id": "2dceacb7-3628-40ba-bcd6-f353192095ea", "name": "Get category tree", "request": { "name": "Get category tree", @@ -2954,24 +2392,6 @@ "type": "any", "value": "1", "key": "categoryLevels" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -2993,16 +2413,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "c2d0a7f1-4faa-4bac-ac77-7d5321908829", + "id": "2411c6e6-43e5-4bc8-85bf-4b479b9d13f0", "name": "OK", "originalRequest": { "url": { @@ -3018,46 +2443,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Value of the category level you need to retrieve.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "categoryLevels" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -3079,6 +2467,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -3100,13 +2496,13 @@ { "listen": "test", "script": { - "id": "2b2fb13e-144c-460b-b06e-36d26f30d415", + "id": "467c634d-5b41-4399-9a43-3a351274b97f", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pub/category/tree/:categoryLevels - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pub/category/tree/:categoryLevels - 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]::/api/catalog_system/pub/category/tree/:categoryLevels - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"required\":[\"id\",\"name\",\"hasChildren\",\"url\",\"children\",\"Title\",\"MetaTagDescription\"],\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Category ID.\",\"example\":1},\"name\":{\"type\":\"string\",\"description\":\"Category name.\",\"example\":\"Toys\"},\"hasChildren\":{\"type\":\"boolean\",\"description\":\"If the category has a category child (`true`) or not (`false`).\",\"example\":true},\"url\":{\"type\":\"string\",\"description\":\"Category URL.\",\"example\":\"https://lojadobreno.vtexcommercestable.com.br/toys\"},\"children\":{\"type\":\"array\",\"items\":{\"required\":[\"id\",\"name\",\"hasChildren\",\"url\",\"children\",\"Title\",\"MetaTagDescription\"],\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Category ID.\",\"example\":1},\"name\":{\"type\":\"string\",\"description\":\"Category name.\",\"example\":\"Dolls\"},\"hasChildren\":{\"type\":\"boolean\",\"description\":\"If the category has a category child (`true`) or not (`false`).\",\"example\":true},\"url\":{\"type\":\"string\",\"description\":\"Category URL.\",\"example\":\"https://lojadobreno.vtexcommercestable.com.br/dolls\"},\"children\":{\"type\":\"array\",\"description\":\"Array with information about the category's children.\",\"items\":{}},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\",\"example\":\"Dolls\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Category page Meta tag description.\",\"example\":\"New and used dolls for sale.\"}},\"example\":{\"id\":78,\"name\":\"Xbox 360\",\"hasChildren\":false,\"url\":\"https://ambienteqa.vtexcommercestable.com.br/games/xbox-360\",\"children\":[{\"id\":79,\"name\":\"Consoles\",\"hasChildren\":false,\"url\":\"https://ambienteqa.vtexcommercestable.com.br/games/xbox-360/consoles\",\"children\":[]},{\"id\":126,\"name\":\"Acessorio\",\"hasChildren\":false,\"url\":\"https://ambienteqa.vtexcommercestable.com.br/games/xbox-360/acessorio\",\"children\":[]}],\"Title\":\"Games\",\"MetaTagDescription\":\"Video games.\"}},\"description\":\"Array with information about the category's children.\"},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\",\"example\":\"Toys\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Category page Meta tag description.\",\"example\":\"New and used toys for sale.\"}},\"example\":{\"id\":1,\"name\":\"Alimentação\",\"hasChildren\":true,\"url\":\"https://lojadobreno.vtexcommercestable.com.br/alimentacao\",\"children\":[{\"id\":6,\"name\":\"Bebedouro\",\"hasChildren\":false,\"url\":\"https://lojadobreno.vtexcommercestable.com.br/alimentacao/bebedouro\",\"children\":[],\"Title\":\"Bebedouro para Gatos\",\"MetaTagDescription\":\"\"},{\"id\":7,\"name\":\"Comedouro\",\"hasChildren\":false,\"url\":\"https://lojadobreno.vtexcommercestable.com.br/alimentacao/comedouro\",\"children\":[],\"Title\":\"Comedouro para Gatos\",\"MetaTagDescription\":\"\"},{\"id\":8,\"name\":\"Biscoitos\",\"hasChildren\":false,\"url\":\"https://lojadobreno.vtexcommercestable.com.br/alimentacao/biscoitos\",\"children\":[],\"Title\":\"Biscoitos para Gatos\",\"MetaTagDescription\":\"\"},{\"id\":9,\"name\":\"Petiscos\",\"hasChildren\":false,\"url\":\"https://lojadobreno.vtexcommercestable.com.br/alimentacao/petiscos\",\"children\":[],\"Title\":\"Petiscos para Gatos\",\"MetaTagDescription\":\"\"},{\"id\":10,\"name\":\"Ração Seca\",\"hasChildren\":false,\"url\":\"https://lojadobreno.vtexcommercestable.com.br/alimentacao/racao-seca\",\"children\":[],\"Title\":\"Ração Seca para Gatos\",\"MetaTagDescription\":\"\"},{\"id\":11,\"name\":\"Ração Úmida\",\"hasChildren\":false,\"url\":\"https://lojadobreno.vtexcommercestable.com.br/alimentacao/racao-umida\",\"children\":[],\"Title\":\"Ração Úmida para Gatos\",\"MetaTagDescription\":\"\"}],\"Title\":\"Alimentação para Gatos\",\"MetaTagDescription\":\"\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/category/tree/:categoryLevels - 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\":{\"required\":[\"id\",\"name\",\"hasChildren\",\"url\",\"children\",\"Title\",\"MetaTagDescription\"],\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Category ID.\"},\"name\":{\"type\":\"string\",\"description\":\"Category name.\"},\"hasChildren\":{\"type\":\"boolean\",\"description\":\"If the category has a category child (`true`) or not (`false`).\"},\"url\":{\"type\":\"string\",\"description\":\"Category URL.\"},\"children\":{\"type\":\"array\",\"items\":{\"required\":[\"id\",\"name\",\"hasChildren\",\"url\",\"children\",\"Title\",\"MetaTagDescription\"],\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Category ID.\"},\"name\":{\"type\":\"string\",\"description\":\"Category name.\"},\"hasChildren\":{\"type\":\"boolean\",\"description\":\"If the category has a category child (`true`) or not (`false`).\"},\"url\":{\"type\":\"string\",\"description\":\"Category URL.\"},\"children\":{\"type\":\"array\",\"description\":\"Array with information about the category's children.\",\"items\":{}},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Category page Meta tag description.\"}}},\"description\":\"Array with information about the category's children.\"},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Category page Meta tag description.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/category/tree/:categoryLevels - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -3116,7 +2512,7 @@ } }, { - "id": "da5db150-21d0-4c6f-aa2f-f83c088daae5", + "id": "6ae0e33f-af26-4a2f-90e5-a2dca247f2f2", "name": "Get category by ID", "request": { "name": "Get category by ID", @@ -3146,24 +2542,6 @@ "type": "any", "value": "9289", "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -3185,16 +2563,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "688533c5-5661-4551-ae58-f42ebbb3f00b", + "id": "01513ddd-b24c-416d-b111-591d03d56d78", "name": "OK", "originalRequest": { "url": { @@ -3209,46 +2592,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Category's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "9289", - "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -3270,6 +2616,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -3291,13 +2645,13 @@ { "listen": "test", "script": { - "id": "a2217dc0-0f25-4c3f-a074-d08284383f6b", + "id": "1ca3012d-4f59-4ece-84fc-9db597f35364", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/category/:categoryId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/category/:categoryId - 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]::/api/catalog/pvt/category/:categoryId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"required\":[\"Id\",\"Name\",\"FatherCategoryId\",\"Title\",\"Description\",\"Keywords\",\"IsActive\",\"LomadeeCampaignCode\",\"AdWordsRemarketingCode\",\"ShowInStoreFront\",\"ShowBrandFilter\",\"ActiveStoreFrontLink\",\"GlobalCategoryId\",\"StockKeepingUnitSelectionMode\",\"Score\",\"LinkId\",\"HasChildren\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Category ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Category name.\"},\"FatherCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"ID of the father category, apply in case of category and subcategory.\"},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\"},\"Description\":{\"type\":\"string\",\"description\":\"Describes details about the category.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Substitutes words for the category.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Shows if the category is active (`true`) or not (`false`).\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"ShowInStoreFront\":{\"type\":\"boolean\",\"description\":\"Defines if the category is shown on side and upper menu (`true`) or not (`false`).\"},\"ShowBrandFilter\":{\"type\":\"boolean\",\"description\":\"Defines if the category has brand filter (`true`) or not (`false`).\"},\"ActiveStoreFrontLink\":{\"type\":\"boolean\",\"description\":\"Defines if the category has an active link on the website (`true`) or not (`false`).\"},\"GlobalCategoryId\":{\"type\":\"integer\",\"description\":\"Google global category ID.\"},\"StockKeepingUnitSelectionMode\":{\"type\":\"string\",\"description\":\"Defines how the SKU will be exhibited.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Score for search ordination.\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Text link.\"},\"HasChildren\":{\"type\":\"boolean\",\"description\":\"Defines if the category has child categories (`true`) or not (`false`).\"}},\"example\":{\"Id\":1,\"Name\":\"Home Appliances\",\"FatherCategoryId\":null,\"Title\":\"Home Appliances\",\"Description\":\"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\"Keywords\":\"Kitchen, Laundry, Appliances\",\"IsActive\":true,\"LomadeeCampaignCode\":\"\",\"AdWordsRemarketingCode\":\"\",\"ShowInStoreFront\":true,\"ShowBrandFilter\":true,\"ActiveStoreFrontLink\":true,\"GlobalCategoryId\":3367,\"StockKeepingUnitSelectionMode\":\"LIST\",\"Score\":null,\"LinkId\":\"Alimentacao\",\"HasChildren\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/category/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"required\":[\"Id\",\"Name\",\"FatherCategoryId\",\"Title\",\"Description\",\"Keywords\",\"IsActive\",\"LomadeeCampaignCode\",\"AdWordsRemarketingCode\",\"ShowInStoreFront\",\"ShowBrandFilter\",\"ActiveStoreFrontLink\",\"GlobalCategoryId\",\"StockKeepingUnitSelectionMode\",\"Score\",\"LinkId\",\"HasChildren\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Category ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Category name.\"},\"FatherCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"ID of the father category, apply in case of category and subcategory.\"},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\"},\"Description\":{\"type\":\"string\",\"description\":\"Describes details about the category.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Substitutes words for the category.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Shows if the category is active (`true`) or not (`false`).\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"ShowInStoreFront\":{\"type\":\"boolean\",\"description\":\"Defines if the category is shown on side and upper menu (`true`) or not (`false`).\"},\"ShowBrandFilter\":{\"type\":\"boolean\",\"description\":\"Defines if the category has brand filter (`true`) or not (`false`).\"},\"ActiveStoreFrontLink\":{\"type\":\"boolean\",\"description\":\"Defines if the category has an active link on the website (`true`) or not (`false`).\"},\"GlobalCategoryId\":{\"type\":\"integer\",\"description\":\"Google global category ID.\"},\"StockKeepingUnitSelectionMode\":{\"type\":\"string\",\"description\":\"Defines how the SKU will be exhibited.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Score for search ordination.\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Text link.\"},\"HasChildren\":{\"type\":\"boolean\",\"description\":\"Defines if the category has child categories (`true`) or not (`false`).\"}},\"example\":{\"Id\":1,\"Name\":\"Home Appliances\",\"FatherCategoryId\":null,\"Title\":\"Home Appliances\",\"Description\":\"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\"Keywords\":\"Kitchen, Laundry, Appliances\",\"IsActive\":true,\"LomadeeCampaignCode\":\"\",\"AdWordsRemarketingCode\":\"\",\"ShowInStoreFront\":true,\"ShowBrandFilter\":true,\"ActiveStoreFrontLink\":true,\"GlobalCategoryId\":3367,\"StockKeepingUnitSelectionMode\":\"LIST\",\"Score\":null,\"LinkId\":\"Alimentacao\",\"HasChildren\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/category/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -3307,7 +2661,7 @@ } }, { - "id": "3fd51b7a-7e09-4d0c-a5f4-8c666ed2df30", + "id": "7e334ee7-ede5-48e6-976b-b154e53e49c2", "name": "Update category", "request": { "name": "Update category", @@ -3337,24 +2691,6 @@ "type": "any", "value": "9289", "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -3376,6 +2712,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -3384,6 +2728,7 @@ "raw": "{\n \"Name\": \"Home Appliances\",\n \"Keywords\": \"Kitchen, Laundry, Appliances\",\n \"Title\": \"Home Appliances\",\n \"Description\": \"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\n \"AdWordsRemarketingCode\": \"Sale\",\n \"LomadeeCampaignCode\": \"Sale\",\n \"FatherCategoryId\": 2,\n \"GlobalCategoryId\": 222,\n \"ShowInStoreFront\": true,\n \"IsActive\": true,\n \"ActiveStoreFrontLink\": true,\n \"ShowBrandFilter\": true,\n \"Score\": 3,\n \"StockKeepingUnitSelectionMode\": \"SPECIFICATION\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -3394,7 +2739,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "6e1b73b0-6e39-4e43-b18c-1c9fc0cbd17a", + "id": "1463dbff-ecf0-4477-855d-19b6e5c2a63d", "name": "OK", "originalRequest": { "url": { @@ -3409,46 +2754,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Category's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "9289", - "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -3467,9 +2775,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -3478,6 +2798,7 @@ "raw": "{\n \"Name\": \"Home Appliances\",\n \"Keywords\": \"Kitchen, Laundry, Appliances\",\n \"Title\": \"Home Appliances\",\n \"Description\": \"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\n \"AdWordsRemarketingCode\": \"Sale\",\n \"LomadeeCampaignCode\": \"Sale\",\n \"FatherCategoryId\": 2,\n \"GlobalCategoryId\": 222,\n \"ShowInStoreFront\": true,\n \"IsActive\": true,\n \"ActiveStoreFrontLink\": true,\n \"ShowBrandFilter\": true,\n \"Score\": 3,\n \"StockKeepingUnitSelectionMode\": \"SPECIFICATION\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -3499,13 +2820,13 @@ { "listen": "test", "script": { - "id": "a7326b35-42e9-4200-9806-407b46b6207b", + "id": "fcdba157-00cf-4a1e-94bf-2cc098b86ecc", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/category/:categoryId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/category/:categoryId - 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]::/api/catalog/pvt/category/:categoryId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"required\":[\"Id\",\"Name\",\"FatherCategoryId\",\"Title\",\"Description\",\"Keywords\",\"IsActive\",\"LomadeeCampaignCode\",\"AdWordsRemarketingCode\",\"ShowInStoreFront\",\"ShowBrandFilter\",\"ActiveStoreFrontLink\",\"GlobalCategoryId\",\"StockKeepingUnitSelectionMode\",\"Score\",\"LinkId\",\"HasChildren\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Category ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Category name.\"},\"FatherCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"ID of the father category, apply in case of category and subcategory.\"},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\"},\"Description\":{\"type\":\"string\",\"description\":\"Describes details about the category.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Substitutes words for the category.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Shows if the category is active (`true`) or not (`false`).\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"ShowInStoreFront\":{\"type\":\"boolean\",\"description\":\"Defines if the category is shown on side and upper menu (`true`) or not (`false`).\"},\"ShowBrandFilter\":{\"type\":\"boolean\",\"description\":\"Defines if the category has brand filter (`true`) or not (`false`).\"},\"ActiveStoreFrontLink\":{\"type\":\"boolean\",\"description\":\"Defines if the category has an active link on the website (`true`) or not (`false`).\"},\"GlobalCategoryId\":{\"type\":\"integer\",\"description\":\"Google global category ID.\"},\"StockKeepingUnitSelectionMode\":{\"type\":\"string\",\"description\":\"Defines how the SKU will be exhibited.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Score for search ordination.\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Text link.\"},\"HasChildren\":{\"type\":\"boolean\",\"description\":\"Defines if the category has child categories (`true`) or not (`false`).\"}},\"example\":{\"Id\":1,\"Name\":\"Home Appliances\",\"FatherCategoryId\":null,\"Title\":\"Home Appliances\",\"Description\":\"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\"Keywords\":\"Kitchen, Laundry, Appliances\",\"IsActive\":true,\"LomadeeCampaignCode\":\"\",\"AdWordsRemarketingCode\":\"\",\"ShowInStoreFront\":true,\"ShowBrandFilter\":true,\"ActiveStoreFrontLink\":true,\"GlobalCategoryId\":3367,\"StockKeepingUnitSelectionMode\":\"LIST\",\"Score\":null,\"LinkId\":\"Alimentacao\",\"HasChildren\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/category/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"required\":[\"Id\",\"Name\",\"FatherCategoryId\",\"Title\",\"Description\",\"Keywords\",\"IsActive\",\"LomadeeCampaignCode\",\"AdWordsRemarketingCode\",\"ShowInStoreFront\",\"ShowBrandFilter\",\"ActiveStoreFrontLink\",\"GlobalCategoryId\",\"StockKeepingUnitSelectionMode\",\"Score\",\"LinkId\",\"HasChildren\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Category ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Category name.\"},\"FatherCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"ID of the father category, apply in case of category and subcategory.\"},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\"},\"Description\":{\"type\":\"string\",\"description\":\"Describes details about the category.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Substitutes words for the category.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Shows if the category is active (`true`) or not (`false`).\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"ShowInStoreFront\":{\"type\":\"boolean\",\"description\":\"Defines if the category is shown on side and upper menu (`true`) or not (`false`).\"},\"ShowBrandFilter\":{\"type\":\"boolean\",\"description\":\"Defines if the category has brand filter (`true`) or not (`false`).\"},\"ActiveStoreFrontLink\":{\"type\":\"boolean\",\"description\":\"Defines if the category has an active link on the website (`true`) or not (`false`).\"},\"GlobalCategoryId\":{\"type\":\"integer\",\"description\":\"Google global category ID.\"},\"StockKeepingUnitSelectionMode\":{\"type\":\"string\",\"description\":\"Defines how the SKU will be exhibited.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Score for search ordination.\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Text link.\"},\"HasChildren\":{\"type\":\"boolean\",\"description\":\"Defines if the category has child categories (`true`) or not (`false`).\"}},\"example\":{\"Id\":1,\"Name\":\"Home Appliances\",\"FatherCategoryId\":null,\"Title\":\"Home Appliances\",\"Description\":\"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\"Keywords\":\"Kitchen, Laundry, Appliances\",\"IsActive\":true,\"LomadeeCampaignCode\":\"\",\"AdWordsRemarketingCode\":\"\",\"ShowInStoreFront\":true,\"ShowBrandFilter\":true,\"ActiveStoreFrontLink\":true,\"GlobalCategoryId\":3367,\"StockKeepingUnitSelectionMode\":\"LIST\",\"Score\":null,\"LinkId\":\"Alimentacao\",\"HasChildren\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/category/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -3515,7 +2836,7 @@ } }, { - "id": "26614cf5-de9a-4c92-95ed-0c723c425a15", + "id": "8c38e694-57c1-4abe-8a7b-ca2d3c752b7b", "name": "Create category", "request": { "name": "Create category", @@ -3534,26 +2855,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -3573,6 +2875,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -3581,6 +2891,7 @@ "raw": "{\n \"Name\": \"Home Appliances\",\n \"FatherCategoryId\": null,\n \"Title\": \"Home Appliances\",\n \"Description\": \"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\n \"Keywords\": \"Kitchen, Laundry, Appliances\",\n \"IsActive\": true,\n \"LomadeeCampaignCode\": null,\n \"AdWordsRemarketingCode\": null,\n \"ShowInStoreFront\": true,\n \"ShowBrandFilter\": true,\n \"ActiveStoreFrontLink\": true,\n \"GlobalCategoryId\": 800,\n \"StockKeepingUnitSelectionMode\": \"SPECIFICATION\",\n \"Score\": null\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -3591,7 +2902,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "8052138d-2c30-4ec9-a999-b1f51dfb9cf7", + "id": "db807baa-cf53-42dd-b0f6-8c1b84f9e7b5", "name": "OK", "originalRequest": { "url": { @@ -3605,36 +2916,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -3653,9 +2937,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -3664,6 +2960,7 @@ "raw": "{\n \"Name\": \"Home Appliances\",\n \"FatherCategoryId\": null,\n \"Title\": \"Home Appliances\",\n \"Description\": \"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\n \"Keywords\": \"Kitchen, Laundry, Appliances\",\n \"IsActive\": true,\n \"LomadeeCampaignCode\": null,\n \"AdWordsRemarketingCode\": null,\n \"ShowInStoreFront\": true,\n \"ShowBrandFilter\": true,\n \"ActiveStoreFrontLink\": true,\n \"GlobalCategoryId\": 800,\n \"StockKeepingUnitSelectionMode\": \"SPECIFICATION\",\n \"Score\": null\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -3685,13 +2982,13 @@ { "listen": "test", "script": { - "id": "81d25cb8-1f6b-43cb-bcac-56e1699682e3", + "id": "c60a2edd-6ab7-40d6-978f-32cd63ba412d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/category - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/category - 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(\"[POST]::/api/catalog/pvt/category - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"required\":[\"Id\",\"Name\",\"FatherCategoryId\",\"Title\",\"Description\",\"Keywords\",\"IsActive\",\"LomadeeCampaignCode\",\"AdWordsRemarketingCode\",\"ShowInStoreFront\",\"ShowBrandFilter\",\"ActiveStoreFrontLink\",\"GlobalCategoryId\",\"StockKeepingUnitSelectionMode\",\"Score\",\"LinkId\",\"HasChildren\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Category ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Category name.\"},\"FatherCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"ID of the father category, apply in case of category and subcategory.\"},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\"},\"Description\":{\"type\":\"string\",\"description\":\"Describes details about the category.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Substitutes words for the category.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Shows if the category is active (`true`) or not (`false`).\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"ShowInStoreFront\":{\"type\":\"boolean\",\"description\":\"Defines if the category is shown on side and upper menu (`true`) or not (`false`).\"},\"ShowBrandFilter\":{\"type\":\"boolean\",\"description\":\"Defines if the category has brand filter (`true`) or not (`false`).\"},\"ActiveStoreFrontLink\":{\"type\":\"boolean\",\"description\":\"Defines if the category has an active link on the website (`true`) or not (`false`).\"},\"GlobalCategoryId\":{\"type\":\"integer\",\"description\":\"Google global category ID.\"},\"StockKeepingUnitSelectionMode\":{\"type\":\"string\",\"description\":\"Defines how the SKU will be exhibited.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Score for search ordination.\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Text link.\"},\"HasChildren\":{\"type\":\"boolean\",\"description\":\"Defines if the category has child categories (`true`) or not (`false`).\"}},\"example\":{\"Id\":1,\"Name\":\"Home Appliances\",\"FatherCategoryId\":null,\"Title\":\"Home Appliances\",\"Description\":\"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\"Keywords\":\"Kitchen, Laundry, Appliances\",\"IsActive\":true,\"LomadeeCampaignCode\":\"\",\"AdWordsRemarketingCode\":\"\",\"ShowInStoreFront\":true,\"ShowBrandFilter\":true,\"ActiveStoreFrontLink\":true,\"GlobalCategoryId\":3367,\"StockKeepingUnitSelectionMode\":\"LIST\",\"Score\":null,\"LinkId\":\"Alimentacao\",\"HasChildren\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/category - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"required\":[\"Id\",\"Name\",\"FatherCategoryId\",\"Title\",\"Description\",\"Keywords\",\"IsActive\",\"LomadeeCampaignCode\",\"AdWordsRemarketingCode\",\"ShowInStoreFront\",\"ShowBrandFilter\",\"ActiveStoreFrontLink\",\"GlobalCategoryId\",\"StockKeepingUnitSelectionMode\",\"Score\",\"LinkId\",\"HasChildren\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Category ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Category name.\"},\"FatherCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"ID of the father category, apply in case of category and subcategory.\"},\"Title\":{\"type\":\"string\",\"description\":\"Category page title.\"},\"Description\":{\"type\":\"string\",\"description\":\"Describes details about the category.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Substitutes words for the category.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Shows if the category is active (`true`) or not (`false`).\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"ShowInStoreFront\":{\"type\":\"boolean\",\"description\":\"Defines if the category is shown on side and upper menu (`true`) or not (`false`).\"},\"ShowBrandFilter\":{\"type\":\"boolean\",\"description\":\"Defines if the category has brand filter (`true`) or not (`false`).\"},\"ActiveStoreFrontLink\":{\"type\":\"boolean\",\"description\":\"Defines if the category has an active link on the website (`true`) or not (`false`).\"},\"GlobalCategoryId\":{\"type\":\"integer\",\"description\":\"Google global category ID.\"},\"StockKeepingUnitSelectionMode\":{\"type\":\"string\",\"description\":\"Defines how the SKU will be exhibited.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Score for search ordination.\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Text link.\"},\"HasChildren\":{\"type\":\"boolean\",\"description\":\"Defines if the category has child categories (`true`) or not (`false`).\"}},\"example\":{\"Id\":1,\"Name\":\"Home Appliances\",\"FatherCategoryId\":null,\"Title\":\"Home Appliances\",\"Description\":\"Discover our range of home appliances. Find smart vacuums, kitchen and laundry appliances to suit your needs. Order online now.\",\"Keywords\":\"Kitchen, Laundry, Appliances\",\"IsActive\":true,\"LomadeeCampaignCode\":\"\",\"AdWordsRemarketingCode\":\"\",\"ShowInStoreFront\":true,\"ShowBrandFilter\":true,\"ActiveStoreFrontLink\":true,\"GlobalCategoryId\":3367,\"StockKeepingUnitSelectionMode\":\"LIST\",\"Score\":null,\"LinkId\":\"Alimentacao\",\"HasChildren\":true}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/category - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -3704,7 +3001,7 @@ "event": [] }, { - "id": "7b6b43f5-7f09-4834-bc14-729b1ea36cd3", + "id": "f8d83e6f-36b5-4e5d-b509-04595dbebff9", "name": "Brand", "description": { "content": "", @@ -3712,7 +3009,7 @@ }, "item": [ { - "id": "c1797f33-16df-4a7e-8459-f97917f1d84e", + "id": "da129a06-6652-44fa-a8aa-58a926865a34", "name": "Get brand list", "request": { "name": "Get brand list", @@ -3732,26 +3029,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -3771,16 +3049,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "4892186e-a28c-4173-a8e2-9194b984d3ed", + "id": "94069c84-c125-42f0-98f7-41d0779c28b9", "name": "OK", "originalRequest": { "url": { @@ -3795,36 +3078,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -3846,6 +3102,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -3867,7 +3131,7 @@ { "listen": "test", "script": { - "id": "8e8e382d-19aa-420c-b441-97d47162c916", + "id": "39842972-a2be-4e02-89ec-7c3d7c8d0f0d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/brand/list - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -3883,7 +3147,7 @@ } }, { - "id": "24cea597-39ee-4776-be5b-5c4801ff632a", + "id": "15ba53ea-d098-415f-ae3a-670466a13e7e", "name": "Get paginated brand list", "request": { "name": "Get paginated brand list", @@ -3922,26 +3186,7 @@ "value": "1" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -3961,16 +3206,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "52ee2224-0b16-4089-90f2-79fb97c46e51", + "id": "1f0cc196-8d9a-435f-a901-c280119c8848", "name": "OK", "originalRequest": { "url": { @@ -3986,44 +3236,27 @@ ], "query": [ { - "key": "pageSize", - "value": "5" - }, - { - "key": "page", - "value": "1" - } - ], - "variable": [ - { + "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Quantity of brands per page.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "pageSize", + "value": "5" }, { + "disabled": false, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "(Required) Page number of the brand list.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "page", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -4045,6 +3278,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -4058,7 +3299,7 @@ "value": "application/json" } ], - "body": "{\n \"items\": [\n {\n \"id\": -95129338,\n \"name\": \"magna adipisici\",\n \"isActive\": true,\n \"imageUrl\": \"ad ea\",\n \"title\": \"nisi minim\",\n \"metaTagDescription\": \"tempor Excepteur Duis\"\n },\n {\n \"id\": 34026800,\n \"name\": \"ut do adipisicing et minim\",\n \"isActive\": true,\n \"imageUrl\": \"incididunt nulla eu eiusmod\",\n \"title\": \"exercitation qui in culpa\",\n \"metaTagDescription\": \"amet consequat in\"\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"perPage\": 3,\n \"total\": 6,\n \"pages\": 2\n }\n}", + "body": "{\n \"items\": [\n {\n \"id\": 62273172,\n \"name\": \"incididunt\",\n \"isActive\": true,\n \"imageUrl\": \"aute sed\",\n \"title\": \"Lorem mollit esse\",\n \"metaTagDescription\": \"cupidatat esse Ut nisi\"\n },\n {\n \"id\": 64478903,\n \"name\": \"dolor\",\n \"isActive\": true,\n \"imageUrl\": \"veniam aliqua\",\n \"title\": \"sed Lorem deserunt cupidatat dolor\",\n \"metaTagDescription\": \"voluptate\"\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"perPage\": 3,\n \"total\": 6,\n \"pages\": 2\n }\n}", "cookie": [] } ], @@ -4066,13 +3307,13 @@ { "listen": "test", "script": { - "id": "e532b2d6-4185-4aa2-a3c0-cb4f5991f550", + "id": "e398a613-914d-41c3-8f60-dd077ce83cb1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/brand/pagedlist - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/brand/pagedlist - 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]::/api/catalog_system/pvt/brand/pagedlist - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"items\",\"paging\"],\"properties\":{\"items\":{\"type\":\"array\",\"description\":\"Array of objects with information of the store's brands.\",\"items\":{\"type\":\"object\",\"description\":\"Object containing brand information.\",\"required\":[\"id\",\"name\",\"isActive\",\"imageUrl\",\"title\",\"metaTagDescription\"],\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"Brand's unique numerical identifier.\"},\"name\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"isActive\":{\"type\":\"boolean\",\"description\":\"Defines if the brand is active (`true`) or not (`false`).\"},\"title\":{\"type\":\"string\",\"description\":\"Meta title for the brand page.\"},\"metaTagDescription\":{\"type\":\"string\",\"description\":\"Meta Description for the brand page. A brief description of the brand, displayed by search engines. Since search engines can only display less than 150 characters, we recommend not exceeding this character limit when creating the description.\"},\"imageUrl\":{\"type\":[\"string\",\"null\"],\"description\":\"URL of the brand's image.\"}}}},\"paging\":{\"type\":\"object\",\"description\":\"Object with pagination information.\",\"example\":{\"page\":1,\"perPage\":3,\"total\":6,\"pages\":2},\"required\":[\"page\",\"perPage\",\"total\",\"pages\"],\"properties\":{\"page\":{\"type\":\"integer\",\"description\":\"Page number of the brand list.\",\"example\":1},\"perPage\":{\"type\":\"integer\",\"description\":\"Quantity of brands per page.\",\"example\":3},\"total\":{\"type\":\"integer\",\"description\":\"Total of brands in the store.\",\"example\":6},\"pages\":{\"type\":\"integer\",\"description\":\"Total number of pages.\",\"example\":2}}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/brand/pagedlist - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"items\",\"paging\"],\"properties\":{\"items\":{\"type\":\"array\",\"description\":\"Array of objects with information of the store's brands.\",\"items\":{\"type\":\"object\",\"description\":\"Object containing brand information.\",\"required\":[\"id\",\"name\",\"isActive\",\"imageUrl\",\"title\",\"metaTagDescription\"],\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"Brand's unique numerical identifier.\"},\"name\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"isActive\":{\"type\":\"boolean\",\"description\":\"Defines if the brand is active (`true`) or not (`false`).\"},\"title\":{\"type\":\"string\",\"description\":\"Meta title for the brand page.\"},\"metaTagDescription\":{\"type\":\"string\",\"description\":\"Meta Description for the brand page. A brief description of the brand, displayed by search engines. Since search engines can only display less than 150 characters, we recommend not exceeding this character limit when creating the description.\"},\"imageUrl\":{\"type\":[\"string\",\"null\"],\"description\":\"URL of the brand's image.\"}}}},\"paging\":{\"type\":\"object\",\"description\":\"Object with pagination information.\",\"required\":[\"page\",\"perPage\",\"total\",\"pages\"],\"properties\":{\"page\":{\"type\":\"integer\",\"description\":\"Page number of the brand list.\"},\"perPage\":{\"type\":\"integer\",\"description\":\"Quantity of brands per page.\"},\"total\":{\"type\":\"integer\",\"description\":\"Total of brands in the store.\"},\"pages\":{\"type\":\"integer\",\"description\":\"Total number of pages.\"}}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/brand/pagedlist - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -4082,7 +3323,7 @@ } }, { - "id": "e3acfe5e-c57d-4774-9021-c0c93e71e2c0", + "id": "cb05f501-65fd-4c61-a307-c5835027f930", "name": "Get brand by ID", "request": { "name": "Get brand by ID", @@ -4112,24 +3353,6 @@ "type": "any", "value": "123", "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -4151,16 +3374,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "27761bd6-fdab-4640-a615-b1cd2a1cf8b1", + "id": "4463e9d2-0166-46ba-9700-b533f51b82a7", "name": "OK", "originalRequest": { "url": { @@ -4175,46 +3403,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Brand ID.", - "type": "text/plain" - }, - "type": "any", - "value": "123", - "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -4236,6 +3427,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -4257,7 +3456,7 @@ { "listen": "test", "script": { - "id": "fc73d628-20f1-40e9-baef-05e8b6501158", + "id": "ab173e5d-9352-48db-98c4-7bc58704558a", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/brand/:brandId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -4273,7 +3472,7 @@ } }, { - "id": "f37bd93c-d424-4968-afb4-0dd56cddfe57", + "id": "07af8b04-bc8e-40b1-a6d8-3179a4c3714d", "name": "Create brand", "request": { "name": "Create brand", @@ -4292,26 +3491,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -4331,6 +3511,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -4339,6 +3527,7 @@ "raw": "{\n \"Id\": 2000013,\n \"Name\": \"Orma Carbono2\",\n \"Text\": \"Orma Carbon2\",\n \"Keywords\": \"orma\",\n \"SiteTitle\": \"Orma Carbon2\",\n \"Active\": true,\n \"MenuHome\": true,\n \"AdWordsRemarketingCode\": \"\",\n \"LomadeeCampaignCode\": \"\",\n \"Score\": null,\n \"LinkId\": null\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -4349,7 +3538,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "806e053a-d605-471a-b1ab-c826b9eb23b8", + "id": "3465a320-7ce2-4511-9a65-17bdb9b5becb", "name": "OK", "originalRequest": { "url": { @@ -4363,36 +3552,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -4411,9 +3573,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -4422,6 +3596,7 @@ "raw": "{\n \"Id\": 2000013,\n \"Name\": \"Orma Carbono2\",\n \"Text\": \"Orma Carbon2\",\n \"Keywords\": \"orma\",\n \"SiteTitle\": \"Orma Carbon2\",\n \"Active\": true,\n \"MenuHome\": true,\n \"AdWordsRemarketingCode\": \"\",\n \"LomadeeCampaignCode\": \"\",\n \"Score\": null,\n \"LinkId\": null\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -4443,13 +3618,13 @@ { "listen": "test", "script": { - "id": "b97df34c-4240-4b7f-b00b-20c3dec5ed36", + "id": "a7cc9a90-29b3-4b8a-b251-573b8543f2a4", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/brand - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/brand - 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(\"[POST]::/api/catalog/pvt/brand - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object containing brand information.\",\"required\":[\"Id\",\"Name\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Brand's unique numerical identifier.\",\"example\":2000003},\"Name\":{\"type\":\"string\",\"description\":\"Brand name.\",\"example\":\"Adidas\"},\"Text\":{\"type\":\"string\",\"description\":\"Meta description for the brand page. A brief description of the brand, displayed by search engines. Since search engines can only display less than 150 characters, we recommend not exceeding this character limit when creating the description.\",\"example\":\"Adidas\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Alternative search terms that will lead to the specific brand. The user can find the desired brand even when misspelling it. Used especially when words are of foreign origin and have a distinct spelling that is transcribed into a generic one, or when small spelling mistakes occur.\",\"example\":\"adidas\"},\"SiteTitle\":{\"type\":\"string\",\"description\":\"Meta title for the brand page.\",\"example\":\"Adidas\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Store Framework - Deprecated\\r\\nLegacy CMS Portal - Value used to set the priority on the search result page.\",\"example\":10},\"MenuHome\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Defines if the brand appears in the Department Menu control (``).\",\"example\":true},\"Active\":{\"type\":\"boolean\",\"description\":\"Defines if the brand is active (`true`) or not (`false`).\",\"example\":true},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Brand page slug. Only lowercase letters and hyphens (`-`) are allowed.\",\"example\":\"adidas-sports\"}},\"example\":{\"Id\":2000013,\"Name\":\"Orma Carbono2\",\"Text\":\"Orma Carbon2\",\"Keywords\":\"orma\",\"SiteTitle\":\"Orma Carbon2\",\"Active\":true,\"MenuHome\":true,\"AdWordsRemarketingCode\":\"\",\"LomadeeCampaignCode\":\"\",\"Score\":null,\"LinkId\":null}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/brand - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object containing brand information.\",\"required\":[\"Id\",\"Name\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Brand's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"Text\":{\"type\":\"string\",\"description\":\"Meta description for the brand page. A brief description of the brand, displayed by search engines. Since search engines can only display less than 150 characters, we recommend not exceeding this character limit when creating the description.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Alternative search terms that will lead to the specific brand. The user can find the desired brand even when misspelling it. Used especially when words are of foreign origin and have a distinct spelling that is transcribed into a generic one, or when small spelling mistakes occur.\"},\"SiteTitle\":{\"type\":\"string\",\"description\":\"Meta title for the brand page.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Store Framework - Deprecated\\r\\nLegacy CMS Portal - Value used to set the priority on the search result page.\"},\"MenuHome\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Defines if the brand appears in the Department Menu control (``).\"},\"Active\":{\"type\":\"boolean\",\"description\":\"Defines if the brand is active (`true`) or not (`false`).\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Brand page slug. Only lowercase letters and hyphens (`-`) are allowed.\"}},\"example\":{\"Id\":2000013,\"Name\":\"Orma Carbono2\",\"Text\":\"Orma Carbon2\",\"Keywords\":\"orma\",\"SiteTitle\":\"Orma Carbon2\",\"Active\":true,\"MenuHome\":true,\"AdWordsRemarketingCode\":\"\",\"LomadeeCampaignCode\":\"\",\"Score\":null,\"LinkId\":null}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/brand - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -4459,7 +3634,7 @@ } }, { - "id": "504f1e97-8f30-4abb-88a2-77bd0852ee73", + "id": "b2397226-370d-44a3-80b7-2fcdd7ce9730", "name": "Get brand and context", "request": { "name": "Get brand and context", @@ -4489,24 +3664,6 @@ "type": "any", "value": "123", "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -4528,16 +3685,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "4806363a-5c2c-49d4-8530-e61a9537c4ee", + "id": "470d6d89-c559-4db1-a48b-a84717b51f03", "name": "OK", "originalRequest": { "url": { @@ -4552,46 +3714,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Brand ID.", - "type": "text/plain" - }, - "type": "any", - "value": "123", - "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -4613,6 +3738,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -4634,13 +3767,13 @@ { "listen": "test", "script": { - "id": "563fd1e8-7043-4640-9b5b-acf965840926", + "id": "9c3f8b2c-f961-44f2-8bef-2261a343db37", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/brand/:brandId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/brand/:brandId - 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]::/api/catalog/pvt/brand/:brandId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object containing brand information.\",\"required\":[\"Id\",\"Name\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Brand's unique numerical identifier.\",\"example\":2000003},\"Name\":{\"type\":\"string\",\"description\":\"Brand name.\",\"example\":\"Adidas\"},\"Text\":{\"type\":\"string\",\"description\":\"Meta description for the brand page. A brief description of the brand, displayed by search engines. Since search engines can only display less than 150 characters, we recommend not exceeding this character limit when creating the description.\",\"example\":\"Adidas\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Alternative search terms that will lead to the specific brand. The user can find the desired brand even when misspelling it. Used especially when words are of foreign origin and have a distinct spelling that is transcribed into a generic one, or when small spelling mistakes occur.\",\"example\":\"adidas\"},\"SiteTitle\":{\"type\":\"string\",\"description\":\"Meta title for the brand page.\",\"example\":\"Adidas\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Store Framework - Deprecated\\r\\nLegacy CMS Portal - Value used to set the priority on the search result page.\",\"example\":10},\"MenuHome\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Defines if the brand appears in the Department Menu control (``).\",\"example\":true},\"Active\":{\"type\":\"boolean\",\"description\":\"Defines if the brand is active (`true`) or not (`false`).\",\"example\":true},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Brand page slug. Only lowercase letters and hyphens (`-`) are allowed.\",\"example\":\"adidas-sports\"}},\"example\":{\"Id\":2000013,\"Name\":\"Orma Carbono2\",\"Text\":\"Orma Carbon2\",\"Keywords\":\"orma\",\"SiteTitle\":\"Orma Carbon2\",\"Active\":true,\"MenuHome\":true,\"AdWordsRemarketingCode\":\"\",\"LomadeeCampaignCode\":\"\",\"Score\":null,\"LinkId\":null}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/brand/:brandId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object containing brand information.\",\"required\":[\"Id\",\"Name\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Brand's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"Text\":{\"type\":\"string\",\"description\":\"Meta description for the brand page. A brief description of the brand, displayed by search engines. Since search engines can only display less than 150 characters, we recommend not exceeding this character limit when creating the description.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Alternative search terms that will lead to the specific brand. The user can find the desired brand even when misspelling it. Used especially when words are of foreign origin and have a distinct spelling that is transcribed into a generic one, or when small spelling mistakes occur.\"},\"SiteTitle\":{\"type\":\"string\",\"description\":\"Meta title for the brand page.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Store Framework - Deprecated\\r\\nLegacy CMS Portal - Value used to set the priority on the search result page.\"},\"MenuHome\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Defines if the brand appears in the Department Menu control (``).\"},\"Active\":{\"type\":\"boolean\",\"description\":\"Defines if the brand is active (`true`) or not (`false`).\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Brand page slug. Only lowercase letters and hyphens (`-`) are allowed.\"}},\"example\":{\"Id\":2000013,\"Name\":\"Orma Carbono2\",\"Text\":\"Orma Carbon2\",\"Keywords\":\"orma\",\"SiteTitle\":\"Orma Carbon2\",\"Active\":true,\"MenuHome\":true,\"AdWordsRemarketingCode\":\"\",\"LomadeeCampaignCode\":\"\",\"Score\":null,\"LinkId\":null}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/brand/:brandId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -4650,7 +3783,7 @@ } }, { - "id": "034c5a16-8aa7-486b-996e-24516d54baa9", + "id": "c0f3ec78-9d62-4f09-aab3-74aa8e03817c", "name": "Update brand", "request": { "name": "Update brand", @@ -4680,24 +3813,6 @@ "type": "any", "value": "123", "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -4719,14 +3834,23 @@ }, "key": "Accept", "value": "application/json" - } - ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"Id\": 2000013,\n \"Name\": \"Orma Carbono2\",\n \"Text\": \"Orma Carbon2\",\n \"Keywords\": \"orma\",\n \"SiteTitle\": \"Orma Carbon2\",\n \"Active\": true,\n \"MenuHome\": true,\n \"AdWordsRemarketingCode\": \"\",\n \"LomadeeCampaignCode\": \"\",\n \"Score\": null,\n \"LinkId\": null\n}", - "options": { + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"Id\": 2000013,\n \"Name\": \"Orma Carbono2\",\n \"Text\": \"Orma Carbon2\",\n \"Keywords\": \"orma\",\n \"SiteTitle\": \"Orma Carbon2\",\n \"Active\": true,\n \"MenuHome\": true,\n \"AdWordsRemarketingCode\": \"\",\n \"LomadeeCampaignCode\": \"\",\n \"Score\": null,\n \"LinkId\": null\n}", + "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -4737,7 +3861,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "72adcd7e-f5f7-44fd-abe0-0776bcf8926b", + "id": "49c4682a-d9b9-4d3b-8e49-e79efc3d7255", "name": "OK", "originalRequest": { "url": { @@ -4752,46 +3876,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Brand's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "123", - "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -4810,9 +3897,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -4821,6 +3920,7 @@ "raw": "{\n \"Id\": 2000013,\n \"Name\": \"Orma Carbono2\",\n \"Text\": \"Orma Carbon2\",\n \"Keywords\": \"orma\",\n \"SiteTitle\": \"Orma Carbon2\",\n \"Active\": true,\n \"MenuHome\": true,\n \"AdWordsRemarketingCode\": \"\",\n \"LomadeeCampaignCode\": \"\",\n \"Score\": null,\n \"LinkId\": null\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -4842,13 +3942,13 @@ { "listen": "test", "script": { - "id": "b787e408-9ceb-4345-bf92-edd2673752a8", + "id": "fa2c4d24-69f3-4ca4-a6e9-30a59fd1d1c3", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/brand/:brandId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/brand/:brandId - 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]::/api/catalog/pvt/brand/:brandId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object containing brand information.\",\"required\":[\"Id\",\"Name\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Brand's unique numerical identifier.\",\"example\":2000003},\"Name\":{\"type\":\"string\",\"description\":\"Brand name.\",\"example\":\"Adidas\"},\"Text\":{\"type\":\"string\",\"description\":\"Meta description for the brand page. A brief description of the brand, displayed by search engines. Since search engines can only display less than 150 characters, we recommend not exceeding this character limit when creating the description.\",\"example\":\"Adidas\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Alternative search terms that will lead to the specific brand. The user can find the desired brand even when misspelling it. Used especially when words are of foreign origin and have a distinct spelling that is transcribed into a generic one, or when small spelling mistakes occur.\",\"example\":\"adidas\"},\"SiteTitle\":{\"type\":\"string\",\"description\":\"Meta title for the brand page.\",\"example\":\"Adidas\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Store Framework - Deprecated\\r\\nLegacy CMS Portal - Value used to set the priority on the search result page.\",\"example\":10},\"MenuHome\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Defines if the brand appears in the Department Menu control (``).\",\"example\":true},\"Active\":{\"type\":\"boolean\",\"description\":\"Defines if the brand is active (`true`) or not (`false`).\",\"example\":true},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Brand page slug. Only lowercase letters and hyphens (`-`) are allowed.\",\"example\":\"adidas-sports\"}},\"example\":{\"Id\":2000013,\"Name\":\"Orma Carbono2\",\"Text\":\"Orma Carbon2\",\"Keywords\":\"orma\",\"SiteTitle\":\"Orma Carbon2\",\"Active\":true,\"MenuHome\":true,\"AdWordsRemarketingCode\":\"\",\"LomadeeCampaignCode\":\"\",\"Score\":null,\"LinkId\":null}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/brand/:brandId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object containing brand information.\",\"required\":[\"Id\",\"Name\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Brand's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"Text\":{\"type\":\"string\",\"description\":\"Meta description for the brand page. A brief description of the brand, displayed by search engines. Since search engines can only display less than 150 characters, we recommend not exceeding this character limit when creating the description.\"},\"Keywords\":{\"type\":\"string\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Alternative search terms that will lead to the specific brand. The user can find the desired brand even when misspelling it. Used especially when words are of foreign origin and have a distinct spelling that is transcribed into a generic one, or when small spelling mistakes occur.\"},\"SiteTitle\":{\"type\":\"string\",\"description\":\"Meta title for the brand page.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"Score\":{\"type\":[\"integer\",\"null\"],\"description\":\"Store Framework - Deprecated\\r\\nLegacy CMS Portal - Value used to set the priority on the search result page.\"},\"MenuHome\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - Defines if the brand appears in the Department Menu control (``).\"},\"Active\":{\"type\":\"boolean\",\"description\":\"Defines if the brand is active (`true`) or not (`false`).\"},\"LinkId\":{\"type\":[\"string\",\"null\"],\"description\":\"Brand page slug. Only lowercase letters and hyphens (`-`) are allowed.\"}},\"example\":{\"Id\":2000013,\"Name\":\"Orma Carbono2\",\"Text\":\"Orma Carbon2\",\"Keywords\":\"orma\",\"SiteTitle\":\"Orma Carbon2\",\"Active\":true,\"MenuHome\":true,\"AdWordsRemarketingCode\":\"\",\"LomadeeCampaignCode\":\"\",\"Score\":null,\"LinkId\":null}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/brand/:brandId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -4858,7 +3958,7 @@ } }, { - "id": "2886c97e-9231-4ab2-bb98-cb1abc183b40", + "id": "6059baf5-3274-4de7-b019-d66c2ccdde86", "name": "Delete brand", "request": { "name": "Delete brand", @@ -4888,24 +3988,6 @@ "type": "any", "value": "123", "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -4929,14 +4011,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "f71c2782-2b03-495b-a6ff-f86a3c171721", + "id": "650bd7f3-9e07-401b-9585-45bc2a92b26e", "name": "OK", "originalRequest": { "url": { @@ -4951,46 +4034,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Brand's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "123", - "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -5008,6 +4054,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -5015,13 +4069,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -5029,7 +4077,7 @@ { "listen": "test", "script": { - "id": "632bd888-df54-4dc9-be8a-ae6112a36d66", + "id": "3bd40ee2-d02a-4e59-ac03-784bd881385b", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/brand/:brandId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -5045,7 +4093,7 @@ "event": [] }, { - "id": "1ceac662-ba82-4faf-8944-81ab05b3073a", + "id": "b3a84037-e61a-4ab2-8c5a-bf48bda7e055", "name": "Attachment", "description": { "content": "", @@ -5053,7 +4101,7 @@ }, "item": [ { - "id": "3eee581b-32d9-4123-a3c9-06793775b0b5", + "id": "b9bf4ed7-f62d-4430-969c-104e5de3fba5", "name": "Get attachment by ID", "request": { "name": "Get attachment by ID", @@ -5083,24 +4131,6 @@ "type": "any", "value": "8", "key": "attachmentid" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -5122,16 +4152,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "0128701b-20b5-44be-aa4a-0d32b73900bc", + "id": "a7b1b13d-5a81-477a-ad7d-9dbb2b6e88a0", "name": "OK", "originalRequest": { "url": { @@ -5146,46 +4181,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Attachment ID.", - "type": "text/plain" - }, - "type": "any", - "value": "8", - "key": "attachmentid" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -5207,6 +4205,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -5228,13 +4234,13 @@ { "listen": "test", "script": { - "id": "e47740f3-d42c-4716-b1f3-ee9d046f1a69", + "id": "fac200f9-8a34-4bbd-9fe8-1080d5822561", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/attachment/:attachmentid - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/attachment/:attachmentid - 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]::/api/catalog/pvt/attachment/:attachmentid - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"Id\",\"Name\",\"IsRequired\",\"IsActive\",\"Domains\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Attachment ID.\",\"example\":8},\"Name\":{\"type\":\"string\",\"description\":\"Attachment name.\",\"example\":\"Shirt customization\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required or not.\",\"example\":false},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is active or not.\",\"example\":false},\"Domains\":{\"type\":\"array\",\"description\":\"List of characteristics related to the attachment.\",\"items\":{\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment key name.\",\"example\":\"Number\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters in the attachment key.\",\"example\":\"1\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Allowed key values.\",\"example\":\"7,9,10\"}}}}},\"example\":{\"Id\":8,\"Name\":\"Ingredients\",\"IsRequired\":true,\"IsActive\":true,\"Domains\":[{\"FieldName\":\"Sauce\",\"MaxCaracters\":\"\",\"DomainValues\":\"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"},{\"FieldName\":\"Toppings\",\"MaxCaracters\":\"\",\"DomainValues\":\"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"}]}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/attachment/:attachmentid - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"Id\",\"Name\",\"IsRequired\",\"IsActive\",\"Domains\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment name.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required or not.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is active or not.\"},\"Domains\":{\"type\":\"array\",\"description\":\"List of characteristics related to the attachment.\",\"items\":{\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment key name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters in the attachment key.\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Allowed key values.\"}}}}},\"example\":{\"Id\":8,\"Name\":\"Ingredients\",\"IsRequired\":true,\"IsActive\":true,\"Domains\":[{\"FieldName\":\"Sauce\",\"MaxCaracters\":\"\",\"DomainValues\":\"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"},{\"FieldName\":\"Toppings\",\"MaxCaracters\":\"\",\"DomainValues\":\"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"}]}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/attachment/:attachmentid - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -5244,7 +4250,7 @@ } }, { - "id": "b48b0daa-8add-4af9-80d3-403292ba412e", + "id": "a3e22825-af54-45f8-8809-ebe5098d647b", "name": "Update attachment", "request": { "name": "Update attachment", @@ -5274,24 +4280,6 @@ "type": "any", "value": "vtexcommercestable", "key": "attachmentid" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -5313,6 +4301,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -5321,6 +4317,7 @@ "raw": "{\n \"Name\": \"Ingredients\",\n \"IsRequired\": true,\n \"IsActive\": true,\n \"Domains\": [\n {\n \"FieldName\": \"Sauce\",\n \"MaxCaracters\": \"\",\n \"DomainValues\": \"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"\n },\n {\n \"FieldName\": \"Toppings\",\n \"MaxCaracters\": \"\",\n \"DomainValues\": \"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"\n }\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -5331,7 +4328,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "6195a0a6-96ef-4755-8d73-fa94831b128c", + "id": "a42333d7-5264-4642-a52b-b27d1fa20d5b", "name": "OK", "originalRequest": { "url": { @@ -5346,46 +4343,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Attachment ID.", - "type": "text/plain" - }, - "type": "any", - "value": "vtexcommercestable", - "key": "attachmentid" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -5404,9 +4364,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -5415,6 +4387,7 @@ "raw": "{\n \"Name\": \"Ingredients\",\n \"IsRequired\": true,\n \"IsActive\": true,\n \"Domains\": [\n {\n \"FieldName\": \"Sauce\",\n \"MaxCaracters\": \"\",\n \"DomainValues\": \"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"\n },\n {\n \"FieldName\": \"Toppings\",\n \"MaxCaracters\": \"\",\n \"DomainValues\": \"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"\n }\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -5436,13 +4409,13 @@ { "listen": "test", "script": { - "id": "b1e4b7ce-ee9b-4d90-ab4a-373959832654", + "id": "8533bd6a-4c2d-4e7e-99f9-ce76542d6a5d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/attachment/:attachmentid - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/attachment/:attachmentid - 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]::/api/catalog/pvt/attachment/:attachmentid - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"Id\",\"Name\",\"IsRequired\",\"IsActive\",\"Domains\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Attachment ID.\",\"example\":8},\"Name\":{\"type\":\"string\",\"description\":\"Attachment name.\",\"example\":\"Shirt customization\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required or not.\",\"example\":false},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is active or not.\",\"example\":false},\"Domains\":{\"type\":\"array\",\"description\":\"List of characteristics related to the attachment.\",\"items\":{\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment key name.\",\"example\":\"Number\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters in the attachment key.\",\"example\":\"1\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Allowed key values.\",\"example\":\"7,9,10\"}}}}},\"example\":{\"Id\":8,\"Name\":\"Ingredients\",\"IsRequired\":true,\"IsActive\":true,\"Domains\":[{\"FieldName\":\"Sauce\",\"MaxCaracters\":\"\",\"DomainValues\":\"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"},{\"FieldName\":\"Toppings\",\"MaxCaracters\":\"\",\"DomainValues\":\"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"}]}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/attachment/:attachmentid - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"Id\",\"Name\",\"IsRequired\",\"IsActive\",\"Domains\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment name.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required or not.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is active or not.\"},\"Domains\":{\"type\":\"array\",\"description\":\"List of characteristics related to the attachment.\",\"items\":{\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment key name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters in the attachment key.\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Allowed key values.\"}}}}},\"example\":{\"Id\":8,\"Name\":\"Ingredients\",\"IsRequired\":true,\"IsActive\":true,\"Domains\":[{\"FieldName\":\"Sauce\",\"MaxCaracters\":\"\",\"DomainValues\":\"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"},{\"FieldName\":\"Toppings\",\"MaxCaracters\":\"\",\"DomainValues\":\"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"}]}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/attachment/:attachmentid - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -5452,7 +4425,7 @@ } }, { - "id": "149872a0-cd25-4324-83b1-44b8b3fc0254", + "id": "8a58c674-88de-4d93-86c2-17308fd618a1", "name": "Delete attachment", "request": { "name": "Delete attachment", @@ -5482,24 +4455,6 @@ "type": "any", "value": "vtexcommercestable", "key": "attachmentid" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -5523,14 +4478,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "edcced4c-871c-46d1-b82e-444963c30160", + "id": "53a07f76-736e-4f47-bb6c-f18e1d51e997", "name": "OK", "originalRequest": { "url": { @@ -5545,46 +4501,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Attachment ID.", - "type": "text/plain" - }, - "type": "any", - "value": "vtexcommercestable", - "key": "attachmentid" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -5602,6 +4521,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -5609,13 +4536,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -5623,7 +4544,7 @@ { "listen": "test", "script": { - "id": "d7bb4d81-2f6d-4f4b-bcc7-beb2ce608910", + "id": "7cc03b5e-9212-4a1e-9b62-8e9ea26935be", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/attachment/:attachmentid - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -5636,7 +4557,7 @@ } }, { - "id": "fceb7fa4-d1c5-4247-bda6-c55a3c23b904", + "id": "27be156e-5f18-4912-a995-e7e753de6ce3", "name": "Create attachment", "request": { "name": "Create attachment", @@ -5655,26 +4576,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -5694,6 +4596,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -5702,6 +4612,7 @@ "raw": "{\n \"Name\": \"Ingredients\",\n \"IsRequired\": true,\n \"IsActive\": true,\n \"Domains\": [\n {\n \"FieldName\": \"Sauce\",\n \"MaxCaracters\": \"\",\n \"DomainValues\": \"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"\n },\n {\n \"FieldName\": \"Toppings\",\n \"MaxCaracters\": \"\",\n \"DomainValues\": \"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"\n }\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -5712,7 +4623,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "2d420fdb-b564-412d-b41d-1eda02024d0c", + "id": "9f0cdb38-2224-4183-bc03-2a67a5f1e205", "name": "OK", "originalRequest": { "url": { @@ -5726,36 +4637,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -5774,9 +4658,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -5785,6 +4681,7 @@ "raw": "{\n \"Name\": \"Ingredients\",\n \"IsRequired\": true,\n \"IsActive\": true,\n \"Domains\": [\n {\n \"FieldName\": \"Sauce\",\n \"MaxCaracters\": \"\",\n \"DomainValues\": \"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"\n },\n {\n \"FieldName\": \"Toppings\",\n \"MaxCaracters\": \"\",\n \"DomainValues\": \"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"\n }\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -5806,13 +4703,13 @@ { "listen": "test", "script": { - "id": "53b88007-f9dd-4da0-88e3-a2a4ca97dcc7", + "id": "7ac65f66-543e-45af-af27-115e34fbd6e1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/attachment - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/attachment - 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(\"[POST]::/api/catalog/pvt/attachment - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"Id\",\"Name\",\"IsRequired\",\"IsActive\",\"Domains\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Attachment ID.\",\"example\":8},\"Name\":{\"type\":\"string\",\"description\":\"Attachment name.\",\"example\":\"Shirt customization\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required or not.\",\"example\":false},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is active or not.\",\"example\":false},\"Domains\":{\"type\":\"array\",\"description\":\"List of characteristics related to the attachment.\",\"items\":{\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment key name.\",\"example\":\"Number\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters in the attachment key.\",\"example\":\"1\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Allowed key values.\",\"example\":\"7,9,10\"}}}}},\"example\":{\"Id\":8,\"Name\":\"Ingredients\",\"IsRequired\":true,\"IsActive\":true,\"Domains\":[{\"FieldName\":\"Sauce\",\"MaxCaracters\":\"\",\"DomainValues\":\"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"},{\"FieldName\":\"Toppings\",\"MaxCaracters\":\"\",\"DomainValues\":\"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"}]}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/attachment - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"Id\",\"Name\",\"IsRequired\",\"IsActive\",\"Domains\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment name.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required or not.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is active or not.\"},\"Domains\":{\"type\":\"array\",\"description\":\"List of characteristics related to the attachment.\",\"items\":{\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment key name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters in the attachment key.\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Allowed key values.\"}}}}},\"example\":{\"Id\":8,\"Name\":\"Ingredients\",\"IsRequired\":true,\"IsActive\":true,\"Domains\":[{\"FieldName\":\"Sauce\",\"MaxCaracters\":\"\",\"DomainValues\":\"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"},{\"FieldName\":\"Toppings\",\"MaxCaracters\":\"\",\"DomainValues\":\"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"}]}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/attachment - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -5822,7 +4719,7 @@ } }, { - "id": "13f1a657-2456-48d4-9661-ea4b484af482", + "id": "9cd82751-1dd8-4f64-ad4c-b17128a10564", "name": "Get all attachments", "request": { "name": "Get all attachments", @@ -5841,26 +4738,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -5880,16 +4758,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "d228605d-11b0-4471-afab-85ba221aa84f", + "id": "ec0b48c8-2f46-4d14-9eb9-6152714e7962", "name": "OK", "originalRequest": { "url": { @@ -5903,36 +4786,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -5954,6 +4810,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -5975,13 +4839,13 @@ { "listen": "test", "script": { - "id": "26a1c3e5-da39-4818-a960-27919aa707eb", + "id": "b00b426e-79bd-408e-9be0-177e307f793b", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/attachments - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/attachments - 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]::/api/catalog/pvt/attachments - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Page\":{\"type\":\"integer\",\"description\":\"Current page of results.\",\"example\":1},\"Size\":{\"type\":\"integer\",\"description\":\"Total number of results in the current page.\",\"example\":11},\"TotalRows\":{\"type\":\"integer\",\"description\":\"Total number of rows with results.\",\"example\":11},\"TotalPage\":{\"type\":\"integer\",\"description\":\"Total number of pages with results.\",\"example\":1},\"Data\":{\"type\":\"array\",\"description\":\"Array containing attachments data.\",\"items\":{\"type\":\"object\",\"required\":[\"Id\",\"Name\",\"IsRequired\",\"IsActive\",\"Domains\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Attachment ID.\",\"example\":8},\"Name\":{\"type\":\"string\",\"description\":\"Attachment name.\",\"example\":\"Shirt customization\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required or not.\",\"example\":false},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is active or not.\",\"example\":false},\"Domains\":{\"type\":\"array\",\"description\":\"List of characteristics related to the attachment.\",\"items\":{\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment key name.\",\"example\":\"Number\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters in the attachment key.\",\"example\":\"1\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Allowed key values.\",\"example\":\"7,9,10\"}}}}},\"example\":{\"Id\":8,\"Name\":\"Ingredients\",\"IsRequired\":true,\"IsActive\":true,\"Domains\":[{\"FieldName\":\"Sauce\",\"MaxCaracters\":\"\",\"DomainValues\":\"[1-2]#9[1-1][1]basic;#11[0-1][1]basic\"},{\"FieldName\":\"Toppings\",\"MaxCaracters\":\"\",\"DomainValues\":\"[0-10]#8[0-3][0]medium;#9[0-3][0]medium;#10[0-3][0]medium;#11[0-3][0]medium;#36[0-3][0]medium;#37[0-3][0]medium;#38[0-3][0]medium\"}]}}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/attachments - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Page\":{\"type\":\"integer\",\"description\":\"Current page of results.\"},\"Size\":{\"type\":\"integer\",\"description\":\"Total number of results in the current page.\"},\"TotalRows\":{\"type\":\"integer\",\"description\":\"Total number of rows with results.\"},\"TotalPage\":{\"type\":\"integer\",\"description\":\"Total number of pages with results.\"},\"Data\":{\"type\":\"array\",\"description\":\"Array containing attachments data.\",\"items\":{\"type\":\"object\",\"required\":[\"Id\",\"Name\",\"IsRequired\",\"IsActive\",\"Domains\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment name.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required or not.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is active or not.\"},\"Domains\":{\"type\":\"array\",\"description\":\"List of characteristics related to the attachment.\",\"items\":{\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment key name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters in the attachment key.\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Allowed key values.\"}}}}}}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/attachments - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -5994,7 +4858,7 @@ "event": [] }, { - "id": "a7266630-2e16-4ccf-b994-399c28300a8c", + "id": "65db2522-1b73-4456-baec-2e52ba03afaa", "name": "Product", "description": { "content": "", @@ -6002,7 +4866,7 @@ }, "item": [ { - "id": "f616b327-3b91-4e21-9c12-964e49b27fea", + "id": "c1f0f44e-3e2a-49f0-b9e7-eff95e6fbe04", "name": "Get product and SKU IDs", "request": { "name": "Get product and SKU IDs", @@ -6050,26 +4914,7 @@ "value": "10" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -6089,16 +4934,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "99f069dd-b51c-4413-b0f7-fc1d3adfd745", + "id": "6d288ded-7164-44d7-a22f-c13bc3caced8", "name": "OK", "originalRequest": { "url": { @@ -6114,48 +4964,36 @@ ], "query": [ { + "disabled": true, + "description": { + "content": "ID of the category from which you need to retrieve products and SKUs.", + "type": "text/plain" + }, "key": "categoryId", "value": "1" }, { - "key": "_from", - "value": "1" - }, - { - "key": "_to", - "value": "10" - } - ], - "variable": [ - { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "Insert the ID that will start the request result.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "_from", + "value": "1" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "Insert the ID that will end the request result.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "_to", + "value": "10" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -6177,6 +5015,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -6198,7 +5044,7 @@ { "listen": "test", "script": { - "id": "98e9871c-f54a-4472-9929-41f5e1c464e3", + "id": "ef18a587-4777-4846-8d30-cfddd566e15e", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/products/GetProductAndSkuIds - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -6214,7 +5060,7 @@ } }, { - "id": "03c24565-fa51-4c5f-83b8-daf2f2022968", + "id": "d7b10ae0-a78e-4c3d-b2aa-c9340dfbf450", "name": "Get product by ID", "request": { "name": "Get product by ID", @@ -6244,24 +5090,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -6283,16 +5111,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "0a9705e1-3e73-4e9d-87db-d618358c606d", + "id": "d33470e9-20e6-4d6a-a77e-5df5169172e3", "name": "OK", "originalRequest": { "url": { @@ -6307,46 +5140,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -6368,6 +5164,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -6389,13 +5193,13 @@ { "listen": "test", "script": { - "id": "ce785afa-778d-4521-8d08-84ee6c2d10ef", + "id": "07ca60e9-f6a8-4705-b7c0-62ded8aaf94c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/product/:productId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/product/:productId - 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]::/api/catalog/pvt/product/:productId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Product's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Product's name. Limited to 150 characters.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"Department ID according to the product's category.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this product.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Brand ID associated with this product.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Slug that will be used to build the product page URL. If it not informed, it will be generated according to the product's name replacing spaces and special characters by hyphens (`-`).\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product Reference Code.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"Shows (`true`) or hides (`false`) the product in search result and product pages, but the product can still be added to the shopping cart. Usually applicable for gifts.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product description.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Short product description. This information can be displayed on both the product page and the shelf, using the following controls:\\r\\n Store Framework: `$product.DescriptionShort`.\\r\\n Legacy CMS Portal: ``.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Used to assist in the ordering of the search result of the site. Using the `O=OrderByReleaseDateDESC` query string, you can pull this value and show the display order by release date. This attribute is also used as a condition for dynamic collections.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Store Framework: Deprecated. \\r\\nLegacy CMS Portal: Keywords or synonyms related to the product, separated by comma (`,`). \\\"Television\\\", for example, can have a substitute word like \\\"TV\\\". This field is important to make your searches more comprehensive.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's Title tag. Limited to 150 characters. It is presented in the browser tab and corresponds to the title of the product page. This field is important for SEO.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Activate (`true`) or inactivate (`false`) product.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"Product tax code, used for tax calculation.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Brief description of the product for SEO. It is recommended not to exceed 150 characters.\"},\"SupplierId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Deprecated field.\",\"deprecated\":true},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"If `true`, activates the [Notify Me](https://help.vtex.com/en/tutorial/setting-up-the-notify-me-option--2VqVifQuf6Co2KG048Yu6e) option when the product is out of stock.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"Score\":{\"type\":\"integer\",\"description\":\"Value used to set the priority on the search result page.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/product/:productId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Product's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Product's name. Limited to 150 characters.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"Department ID according to the product's category.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this product.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Brand ID associated with this product.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Slug that will be used to build the product page URL. If it not informed, it will be generated according to the product's name replacing spaces and special characters by hyphens (`-`).\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product Reference Code.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"Shows (`true`) or hides (`false`) the product in search result and product pages, but the product can still be added to the shopping cart. Usually applicable for gifts.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product description.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Short product description. This information can be displayed on both the product page and the shelf, using the following controls:\\r\\n Store Framework: `$product.DescriptionShort`.\\r\\n Legacy CMS Portal: ``.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Used to assist in the ordering of the search result of the site. Using the `O=OrderByReleaseDateDESC` query string, you can pull this value and show the display order by release date. This attribute is also used as a condition for dynamic collections.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Store Framework: Deprecated. \\r\\nLegacy CMS Portal: Keywords or synonyms related to the product, separated by comma (`,`). \\\"Television\\\", for example, can have a substitute word like \\\"TV\\\". This field is important to make your searches more comprehensive.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's Title tag. Limited to 150 characters. It is presented in the browser tab and corresponds to the title of the product page. This field is important for SEO.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Activate (`true`) or inactivate (`false`) product.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"Product tax code, used for tax calculation.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Brief description of the product for SEO. It is recommended not to exceed 150 characters.\"},\"SupplierId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Deprecated field.\"},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"If `true`, activates the [Notify Me](https://help.vtex.com/en/tutorial/setting-up-the-notify-me-option--2VqVifQuf6Co2KG048Yu6e) option when the product is out of stock.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"Score\":{\"type\":\"integer\",\"description\":\"Value used to set the priority on the search result page.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/product/:productId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -6405,7 +5209,7 @@ } }, { - "id": "90153e6c-52ae-4a25-944d-8df749466dd8", + "id": "31171e2a-d040-4939-ae9f-95de2a596ef8", "name": "Update product", "request": { "name": "Update product", @@ -6435,24 +5239,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -6474,6 +5260,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -6482,6 +5276,7 @@ "raw": "{\n \"Name\": \"Zoom Stefan Janoski Canvas RM SB Varsity Red\",\n \"CategoryId\": 2000090,\n \"BrandId\": 12121219,\n \"DepartmentId\": 2000089,\n \"LinkId\": \"stefan-janoski-canvas-varsity-red\",\n \"RefId\": \"sr_1_90\",\n \"IsVisible\": true,\n \"Description\": \"The Nike Zoom Stefan Janoski Men's Shoe is made with a premium leather upper for superior durability and a flexible midsole for all-day comfort. A tacky gum rubber outsole delivers outstanding traction.\",\n \"DescriptionShort\": \"The Nike Zoom Stefan Janoski is made with a premium leather.\",\n \"ReleaseDate\": \"2019-01-01T00:00:00\",\n \"KeyWords\": \"Zoom,Stefan,Janoski\",\n \"Title\": \"Zoom Stefan Janoski Canvas RM SB Varsity Red\",\n \"IsActive\": true,\n \"TaxCode\": \"12345\",\n \"MetaTagDescription\": \"The Nike Zoom Stefan Janoski Men's Shoe is made with a premium leather upper for superior durability and a flexible midsole for all-day comfort. A tacky gum rubber outsole delivers outstanding traction.\",\n \"SupplierId\": null,\n \"ShowWithoutStock\": true,\n \"AdWordsRemarketingCode\": null,\n \"LomadeeCampaignCode\": null,\n \"Score\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -6492,7 +5287,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "e638edc3-9d45-4bfd-88fa-9e8bf9f908a7", + "id": "472d0656-e63b-4e40-aa65-3cb93fc5db21", "name": "OK", "originalRequest": { "url": { @@ -6507,46 +5302,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -6565,17 +5323,30 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" - } - ], + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" + } + ], "method": "PUT", "body": { "mode": "raw", "raw": "{\n \"Name\": \"Zoom Stefan Janoski Canvas RM SB Varsity Red\",\n \"CategoryId\": 2000090,\n \"BrandId\": 12121219,\n \"DepartmentId\": 2000089,\n \"LinkId\": \"stefan-janoski-canvas-varsity-red\",\n \"RefId\": \"sr_1_90\",\n \"IsVisible\": true,\n \"Description\": \"The Nike Zoom Stefan Janoski Men's Shoe is made with a premium leather upper for superior durability and a flexible midsole for all-day comfort. A tacky gum rubber outsole delivers outstanding traction.\",\n \"DescriptionShort\": \"The Nike Zoom Stefan Janoski is made with a premium leather.\",\n \"ReleaseDate\": \"2019-01-01T00:00:00\",\n \"KeyWords\": \"Zoom,Stefan,Janoski\",\n \"Title\": \"Zoom Stefan Janoski Canvas RM SB Varsity Red\",\n \"IsActive\": true,\n \"TaxCode\": \"12345\",\n \"MetaTagDescription\": \"The Nike Zoom Stefan Janoski Men's Shoe is made with a premium leather upper for superior durability and a flexible midsole for all-day comfort. A tacky gum rubber outsole delivers outstanding traction.\",\n \"SupplierId\": null,\n \"ShowWithoutStock\": true,\n \"AdWordsRemarketingCode\": null,\n \"LomadeeCampaignCode\": null,\n \"Score\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -6597,13 +5368,13 @@ { "listen": "test", "script": { - "id": "061d73ce-27f9-45a4-a307-64d8a8a1da54", + "id": "17c7b1b0-dc97-4efb-9210-42453196e32a", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/product/:productId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/product/:productId - 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]::/api/catalog/pvt/product/:productId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Product's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Product's name. Limited to 150 characters.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"Department ID according to the product's category.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this product.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Brand ID associated with this product.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Slug that will be used to build the product page URL. If not informed, it will be generated according to the product's name replacing spaces and special characters by hyphens (`-`).\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product reference code.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"Shows (`true`) or hides (`false`) the product in search result and product pages, but the product can still be added to the shopping cart. Usually applicable for gifts.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product description.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Short product description. This information can be displayed on both the product page and the shelf, using the following controls:\\r\\n Store Framework: `$product.DescriptionShort`.\\r\\n Legacy CMS Portal: ``.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Used to assist in the ordering of the search result of the site. Using the `O=OrderByReleaseDateDESC` query string, you can pull this value and show the display order by release date. This attribute is also used as a condition for dynamic collections.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Store Framework: Deprecated. \\r\\nLegacy CMS Portal: Keywords or synonyms related to the product, separated by comma (`,`). \\\"Television\\\", for example, can have a substitute word like \\\"TV\\\". This field is important to make your searches more comprehensive.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's Title tag. Limited to 150 characters. It is presented in the browser tab and corresponds to the title of the product page. This field is important for SEO.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Activate (`true`) or inactivate (`false`) product.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"Product tax code, used for tax calculation.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Brief description of the product for SEO. It's recommended that you don't exceed 150 characters.\"},\"SupplierId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Deprecated field.\",\"deprecated\":true},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"If `true`, activates the [Notify Me](https://help.vtex.com/en/tutorial/setting-up-the-notify-me-option--2VqVifQuf6Co2KG048Yu6e) option when the product is out of stock.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"Score\":{\"type\":\"integer\",\"description\":\"Value used to set the priority on the search result page.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/product/:productId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Product's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Product's name. Limited to 150 characters.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"Department ID according to the product's category.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this product.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Brand ID associated with this product.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Slug that will be used to build the product page URL. If not informed, it will be generated according to the product's name replacing spaces and special characters by hyphens (`-`).\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product reference code.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"Shows (`true`) or hides (`false`) the product in search result and product pages, but the product can still be added to the shopping cart. Usually applicable for gifts.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product description.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Short product description. This information can be displayed on both the product page and the shelf, using the following controls:\\r\\n Store Framework: `$product.DescriptionShort`.\\r\\n Legacy CMS Portal: ``.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Used to assist in the ordering of the search result of the site. Using the `O=OrderByReleaseDateDESC` query string, you can pull this value and show the display order by release date. This attribute is also used as a condition for dynamic collections.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Store Framework: Deprecated. \\r\\nLegacy CMS Portal: Keywords or synonyms related to the product, separated by comma (`,`). \\\"Television\\\", for example, can have a substitute word like \\\"TV\\\". This field is important to make your searches more comprehensive.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's Title tag. Limited to 150 characters. It is presented in the browser tab and corresponds to the title of the product page. This field is important for SEO.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Activate (`true`) or inactivate (`false`) product.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"Product tax code, used for tax calculation.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Brief description of the product for SEO. It's recommended that you don't exceed 150 characters.\"},\"SupplierId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Deprecated field.\"},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"If `true`, activates the [Notify Me](https://help.vtex.com/en/tutorial/setting-up-the-notify-me-option--2VqVifQuf6Co2KG048Yu6e) option when the product is out of stock.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"Score\":{\"type\":\"integer\",\"description\":\"Value used to set the priority on the search result page.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/product/:productId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -6613,7 +5384,7 @@ } }, { - "id": "f163b7c1-0ade-4b12-8d05-ef55432b1dae", + "id": "8ff81f0a-504a-4863-9706-fed758a3249f", "name": "Get product and its general context", "request": { "name": "Get product and its general context", @@ -6644,24 +5415,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -6683,16 +5436,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "55a8df5f-8f2f-4f43-94f3-235096508be1", + "id": "f73f6198-04ff-4beb-b736-e5c1d05edbfa", "name": "OK", "originalRequest": { "url": { @@ -6708,46 +5466,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -6769,6 +5490,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -6790,13 +5519,13 @@ { "listen": "test", "script": { - "id": "27861b0c-869a-4e47-9afb-1ef53df650a9", + "id": "749abed9-4c07-44dd-971f-4b8ded89b72e", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/products/productget/:productId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/products/productget/:productId - 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]::/api/catalog_system/pvt/products/productget/:productId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Product ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Product's name. Limited to 150 characters.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"Product department ID.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Product category ID.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Product brand ID.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Product text link.\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product reference code.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"If the product is visible on the store.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product description.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Product complement name.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Product release date.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Substitutes words for the product.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's Title tag. Limited to 150 characters. It is presented in the browser tab and corresponds to the title of the product page. This field is important for SEO.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"If the product is active (`true`) or not (`false`) at the store.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"Product fiscal code.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Product meta tag description.\"},\"SupplierId\":{\"type\":\"integer\",\"description\":\"Product supplier ID.\"},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"Defines if the product will be shown in the store even if it's out of stock (`true`) or not (`false`).\"},\"ListStoreId\":{\"type\":\"array\",\"description\":\"List with the IDs of trade policies where the product is included.\",\"items\":{\"type\":\"integer\",\"description\":\"Trade policy ID.\"}},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/products/productget/:productId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Product ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Product's name. Limited to 150 characters.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"Product department ID.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Product category ID.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Product brand ID.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Product text link.\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product reference code.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"If the product is visible on the store.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product description.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Product complement name.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Product release date.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Substitutes words for the product.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's Title tag. Limited to 150 characters. It is presented in the browser tab and corresponds to the title of the product page. This field is important for SEO.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"If the product is active (`true`) or not (`false`) at the store.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"Product fiscal code.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Product meta tag description.\"},\"SupplierId\":{\"type\":\"integer\",\"description\":\"Product supplier ID.\"},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"Defines if the product will be shown in the store even if it's out of stock (`true`) or not (`false`).\"},\"ListStoreId\":{\"type\":\"array\",\"description\":\"List with the IDs of trade policies where the product is included.\",\"items\":{\"type\":\"integer\",\"description\":\"Trade policy ID.\"}},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/products/productget/:productId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -6806,7 +5535,7 @@ } }, { - "id": "b00c633a-2452-4b5f-b599-bf22e4a70f57", + "id": "99187262-887a-46a9-a876-b5b4918487e9", "name": "Get product by reference ID", "request": { "name": "Get product by reference ID", @@ -6837,24 +5566,6 @@ "type": "any", "value": "12345", "key": "refId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -6876,16 +5587,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "b313cc01-ee80-4e1f-8005-a0b632861755", + "id": "af61ff50-6154-40be-aac9-04f44d06438c", "name": "OK", "originalRequest": { "url": { @@ -6901,46 +5617,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product reference code.", - "type": "text/plain" - }, - "type": "any", - "value": "12345", - "key": "refId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -6962,6 +5641,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -6983,13 +5670,13 @@ { "listen": "test", "script": { - "id": "e984e002-dc3d-4034-9072-4cc914238bdc", + "id": "dac0f043-9335-402b-bd3d-640784299f12", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/products/productgetbyrefid/:refId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/products/productgetbyrefid/:refId - 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]::/api/catalog_system/pvt/products/productgetbyrefid/:refId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"ID of the product.\"},\"Name\":{\"type\":\"string\",\"description\":\"Name of the product.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"ID of product department.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"ID of product category.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"ID of the product brand.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Category URL.\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product Reference ID.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"If the product are visible in search and list pages.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product Description, HTML is allowed.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Product Short Description.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Product Release Date, for list ordering and product cluster highlight.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Alternatives Keywords to improve the product findability.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's Title tag. Limited to 150 characters. It is presented in the browser tab and corresponds to the title of the product page. This field is important for SEO.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"If the product is Active.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"SKU Tax Code.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Meta Description for the product page.\"},\"SupplierId\":{\"type\":\"integer\",\"description\":\"Product Supplier ID.\"},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"If the product can be visible without stock.\"},\"ListStoreId\":{\"type\":\"array\",\"description\":\"Array with the ID of all the trade policies that are related to the product.\",\"items\":{\"type\":\"integer\",\"description\":\"Trade policy ID.\"}},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/products/productgetbyrefid/:refId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"ID of the product.\"},\"Name\":{\"type\":\"string\",\"description\":\"Name of the product.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"ID of product department.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"ID of product category.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"ID of the product brand.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Category URL.\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product Reference ID.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"If the product are visible in search and list pages.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product Description, HTML is allowed.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Product Short Description.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Product Release Date, for list ordering and product cluster highlight.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Alternatives Keywords to improve the product findability.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's Title tag. Limited to 150 characters. It is presented in the browser tab and corresponds to the title of the product page. This field is important for SEO.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"If the product is Active.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"SKU Tax Code.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Meta Description for the product page.\"},\"SupplierId\":{\"type\":\"integer\",\"description\":\"Product Supplier ID.\"},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"If the product can be visible without stock.\"},\"ListStoreId\":{\"type\":\"array\",\"description\":\"Array with the ID of all the trade policies that are related to the product.\",\"items\":{\"type\":\"integer\",\"description\":\"Trade policy ID.\"}},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/products/productgetbyrefid/:refId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -6999,7 +5686,7 @@ } }, { - "id": "1358a2ba-a0bc-47af-9e58-707a64684125", + "id": "bbcf9ad1-95f8-4cb7-a069-e63f5aa679d9", "name": "Get product's SKUs by product ID", "request": { "name": "Get product's SKUs by product ID", @@ -7030,24 +5717,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -7069,16 +5738,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "32c3228e-9ba8-4f84-9734-5f5a4cf3f2b2", + "id": "553e560e-5773-4e7c-8e21-c48bfb6504b9", "name": "OK", "originalRequest": { "url": { @@ -7094,46 +5768,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -7155,6 +5792,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -7176,7 +5821,7 @@ { "listen": "test", "script": { - "id": "eed6597f-a277-4e03-902b-f46f239497c8", + "id": "08a629b9-4a85-4706-941d-03aa4360baa8", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pub/products/variations/:productId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -7192,7 +5837,7 @@ } }, { - "id": "e1c78254-4f15-4c68-a121-4a1cc3289918", + "id": "04647ab4-ce21-4d26-b227-62515b8f07d0", "name": "Get product review rate by product ID", "request": { "name": "Get product review rate by product ID", @@ -7223,24 +5868,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -7262,16 +5889,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "5fa22119-74da-480b-9fa9-4b67ee6e3d2e", + "id": "ecd80bcc-6de7-4104-a582-fe742c01c9be", "name": "OK", "originalRequest": { "url": { @@ -7287,46 +5919,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -7348,6 +5943,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -7369,7 +5972,7 @@ { "listen": "test", "script": { - "id": "c1a90e23-e9a5-4265-8eea-04a8c3e4ac35", + "id": "98899f03-f66b-425b-962a-9c7679fe6fb1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/addon/pvt/review/GetProductRate/:productId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -7385,7 +5988,7 @@ } }, { - "id": "415af9b5-31ec-43d8-9719-ca799a56213e", + "id": "3ef9f564-4cbb-409f-846e-e0332b17d869", "name": "Create product with category and brand", "request": { "name": "Create product with category and brand", @@ -7404,26 +6007,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -7443,6 +6027,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -7451,6 +6043,7 @@ "raw": "{\n \"Id\": 42,\n \"Name\": \"Black T-Shirt\",\n \"CategoryPath\": \"Mens/Clothing/T-Shirts\",\n \"DepartmentId\": 1,\n \"BrandName\": \"Nike\",\n \"RefId\": \"31011706925\",\n \"Title\": \"Black T-Shirt\",\n \"LinkId\": \"tshirt-black\",\n \"Description\": \"This is a cool Tshirt\",\n \"ReleaseDate\": \"2022-01-01T00:00:00\",\n \"IsVisible\": true,\n \"IsActive\": true,\n \"TaxCode\": \"12345\",\n \"MetaTagDescription\": \"tshirt black\",\n \"ShowWithoutStock\": true,\n \"LomadeeCampaignCode\": null,\n \"Score\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -7461,8 +6054,8 @@ "_": { "postman_previewlanguage": "json" }, - "id": "06ef54a9-228d-4f99-8f79-a8e9ab9a6144", - "name": "OK", + "id": "3fb906ef-e01c-4ac0-bb73-8e147f029c04", + "name": "New category and brand", "originalRequest": { "url": { "path": [ @@ -7475,36 +6068,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -7523,17 +6089,109 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" - } - ], - "method": "POST", - "body": { + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" + } + ], + "method": "POST", + "body": { "mode": "raw", "raw": "{\n \"Id\": 42,\n \"Name\": \"Black T-Shirt\",\n \"CategoryPath\": \"Mens/Clothing/T-Shirts\",\n \"DepartmentId\": 1,\n \"BrandName\": \"Nike\",\n \"RefId\": \"31011706925\",\n \"Title\": \"Black T-Shirt\",\n \"LinkId\": \"tshirt-black\",\n \"Description\": \"This is a cool Tshirt\",\n \"ReleaseDate\": \"2022-01-01T00:00:00\",\n \"IsVisible\": true,\n \"IsActive\": true,\n \"TaxCode\": \"12345\",\n \"MetaTagDescription\": \"tshirt black\",\n \"ShowWithoutStock\": true,\n \"LomadeeCampaignCode\": null,\n \"Score\": 1\n}", "options": { "raw": { + "headerFamily": "json", + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": "{\n \"Id\": 42,\n \"Name\": \"Zoom Stefan Janoski Canvas RM SB Varsity Red\",\n \"DepartmentId\": 2000089,\n \"CategoryId\": 2000090,\n \"BrandId\": 12121219,\n \"LinkId\": \"stefan-janoski-canvas-varsity-red\",\n \"RefId\": \"sr_1_90\",\n \"IsVisible\": true,\n \"Description\": \"The Nike Zoom Stefan Janoski Men's Shoe is made with a premium leather upper for superior durability and a flexible midsole for all-day comfort. A tacky gum rubber outsole delivers outstanding traction.\",\n \"DescriptionShort\": \"The Nike Zoom Stefan Janoski is made with a premium leather.\",\n \"ReleaseDate\": \"2020-01-01T00:00:00\",\n \"KeyWords\": \"Zoom,Stefan,Janoski\",\n \"Title\": \"Zoom Stefan Janoski Canvas RM SB Varsity Re\",\n \"IsActive\": true,\n \"TaxCode\": \"\",\n \"MetaTagDescription\": \"The Nike Zoom Stefan Janoski Men's Shoe is made with a premium leather upper for superior durability and a flexible midsole for all-day comfort. A tacky gum rubber outsole delivers outstanding traction.\",\n \"SupplierId\": 1,\n \"ShowWithoutStock\": true,\n \"AdWordsRemarketingCode\": \"\",\n \"LomadeeCampaignCode\": \"\",\n \"Score\": 1\n}", + "cookie": [] + }, + { + "_": { + "postman_previewlanguage": "json" + }, + "id": "2772cf2a-429e-426e-8d66-d8e6827e4cfd", + "name": "Associating it to an existing category and brand", + "originalRequest": { + "url": { + "path": [ + "api", + "catalog", + "pvt", + "product" + ], + "host": [ + "{{baseUrl}}" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "disabled": false, + "description": { + "content": "(Required) Type of the content being sent.", + "type": "text/plain" + }, + "key": "Content-Type", + "value": "application/json" + }, + { + "disabled": false, + "description": { + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", + "type": "text/plain" + }, + "key": "Accept", + "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" + } + ], + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\n \"Id\": 42,\n \"Name\": \"Black T-Shirt\",\n \"DepartmentId\": 1,\n \"CategoryId\": 2,\n \"BrandId\": 2000000,\n \"LinkId\": \"insert-product-test\",\n \"RefId\": \"310117869\",\n \"IsVisible\": true,\n \"Description\": \"texto de descrição\",\n \"DescriptionShort\": \"Utilize o CEP 04548-005 para frete grátis\",\n \"ReleaseDate\": \"2019-01-01T00:00:00\",\n \"KeyWords\": \"teste,teste2\",\n \"Title\": \"product de teste\",\n \"IsActive\": true,\n \"TaxCode\": \"12345\",\n \"MetaTagDescription\": \"tag test\",\n \"SupplierId\": null,\n \"ShowWithoutStock\": true,\n \"AdWordsRemarketingCode\": null,\n \"LomadeeCampaignCode\": null,\n \"Score\": 1\n}", + "options": { + "raw": { + "headerFamily": "json", "language": "json" } } @@ -7555,13 +6213,13 @@ { "listen": "test", "script": { - "id": "af8c2a7d-6cf0-4dac-9884-d724c65ca5d5", + "id": "c1c855f6-d29d-4160-befa-7b39c1bbf301", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/product - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/product - 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(\"[POST]::/api/catalog/pvt/product - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Product's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Product's name. Limited to 150 characters.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"Department ID according to the product's category.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this product.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Brand ID associated with this product.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Slug that will be used to build the product page URL. If it not informed, it will be generated according to the product's name replacing spaces and special characters by hyphens (`-`).\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product Reference Code.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"Shows (`true`) or hides (`false`) the product in search result and product pages, but the product can still be added to the shopping cart. Usually applicable for gifts.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product description.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Short product description. This information can be displayed on both the product page and the shelf, using the following controls:\\r\\n Store Framework: `$product.DescriptionShort`.\\r\\n Legacy CMS Portal: ``.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Used to assist in the ordering of the search result of the site. Using the `O=OrderByReleaseDateDESC` query string, you can pull this value and show the display order by release date. This attribute is also used as a condition for dynamic collections.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Store Framework: Deprecated. \\r\\nLegacy CMS Portal: Keywords or synonyms related to the product, separated by comma (`,`). \\\"Television\\\", for example, can have a substitute word like \\\"TV\\\". This field is important to make your searches more comprehensive.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's title tag, which corresponds to the title of the product page, presented in the browser tab. This field is important for SEO. Limited to 150 characters.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Activate (`true`) or inactivate (`false`) product.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"Product tax code, used for tax calculation.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Brief description of the product for SEO. It's recommended that you don't exceed 150 characters.\"},\"SupplierId\":{\"type\":[\"integer\",\"null\"],\"deprecated\":true},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"If `true`, activates the [Notify Me](https://help.vtex.com/en/tutorial/setting-up-the-notify-me-option--2VqVifQuf6Co2KG048Yu6e) option when the product is out of stock.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\",\"deprecated\":true},\"Score\":{\"type\":\"integer\",\"description\":\"Value used to set the priority on the search result page.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/product - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Product's unique numerical identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Product's name. Limited to 150 characters.\"},\"DepartmentId\":{\"type\":\"integer\",\"description\":\"Department ID according to the product's category.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this product.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Brand ID associated with this product.\"},\"LinkId\":{\"type\":\"string\",\"description\":\"Slug that will be used to build the product page URL. If it not informed, it will be generated according to the product's name replacing spaces and special characters by hyphens (`-`).\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product Reference Code.\"},\"IsVisible\":{\"type\":\"boolean\",\"description\":\"Shows (`true`) or hides (`false`) the product in search result and product pages, but the product can still be added to the shopping cart. Usually applicable for gifts.\"},\"Description\":{\"type\":\"string\",\"description\":\"Product description.\"},\"DescriptionShort\":{\"type\":\"string\",\"description\":\"Short product description. This information can be displayed on both the product page and the shelf, using the following controls:\\r\\n Store Framework: `$product.DescriptionShort`.\\r\\n Legacy CMS Portal: ``.\"},\"ReleaseDate\":{\"type\":\"string\",\"description\":\"Used to assist in the ordering of the search result of the site. Using the `O=OrderByReleaseDateDESC` query string, you can pull this value and show the display order by release date. This attribute is also used as a condition for dynamic collections.\"},\"KeyWords\":{\"type\":\"string\",\"description\":\"Store Framework: Deprecated. \\r\\nLegacy CMS Portal: Keywords or synonyms related to the product, separated by comma (`,`). \\\"Television\\\", for example, can have a substitute word like \\\"TV\\\". This field is important to make your searches more comprehensive.\"},\"Title\":{\"type\":\"string\",\"description\":\"Product's title tag, which corresponds to the title of the product page, presented in the browser tab. This field is important for SEO. Limited to 150 characters.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Activate (`true`) or inactivate (`false`) product.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"Product tax code, used for tax calculation.\"},\"MetaTagDescription\":{\"type\":\"string\",\"description\":\"Brief description of the product for SEO. It's recommended that you don't exceed 150 characters.\"},\"SupplierId\":{\"type\":[\"integer\",\"null\"]},\"ShowWithoutStock\":{\"type\":\"boolean\",\"description\":\"If `true`, activates the [Notify Me](https://help.vtex.com/en/tutorial/setting-up-the-notify-me-option--2VqVifQuf6Co2KG048Yu6e) option when the product is out of stock.\"},\"AdWordsRemarketingCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"LomadeeCampaignCode\":{\"type\":\"string\",\"description\":\"This is a legacy field. Do not take this information into consideration.\"},\"Score\":{\"type\":\"integer\",\"description\":\"Value used to set the priority on the search result page.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/product - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -7574,7 +6232,7 @@ "event": [] }, { - "id": "a250cc0e-6cbd-48d1-a86b-a658d742e27b", + "id": "98a3c472-93c6-4c8c-bafc-6ad5a4986a66", "name": "Product specification", "description": { "content": "", @@ -7582,7 +6240,7 @@ }, "item": [ { - "id": "c046571d-5488-48ae-8010-7cc96db14de9", + "id": "99974d6c-55b4-466e-add0-743207e0519b", "name": "Get product specifications by product ID", "request": { "name": "Get product specifications by product ID", @@ -7613,24 +6271,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -7652,16 +6292,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "4231ce5d-401c-4a8c-8d16-05427a461ad4", + "id": "5aca650a-1339-422b-9b2b-0858f6c85ad9", "name": "OK", "originalRequest": { "url": { @@ -7677,46 +6322,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -7738,6 +6346,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -7759,13 +6375,13 @@ { "listen": "test", "script": { - "id": "042aa00a-e635-400d-ae35-6af4bf4fbc4c", + "id": "ec2c2692-8092-43f2-9e9e-2dfa7260d386", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/products/:productId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/products/:productId/specification - 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]::/api/catalog_system/pvt/products/:productId/specification - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"required\":[\"Value\"],\"type\":\"object\",\"properties\":{\"Value\":{\"type\":\"array\",\"description\":\"Array with specification values.\",\"items\":{\"type\":\"string\",\"description\":\"Specification value.\",\"example\":\"Cotton\"}},\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID, which is the same as `FieldId` in other specification endpoints.\",\"example\":7},\"Name\":{\"type\":\"string\",\"description\":\"Name of the specification.\",\"example\":\"Fabric\"}},\"example\":{\"Value\":[\"Iron\",\"Plastic\"],\"Id\":30,\"Name\":\"Material\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/products/:productId/specification - 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\":{\"required\":[\"Value\"],\"type\":\"object\",\"properties\":{\"Value\":{\"type\":\"array\",\"description\":\"Array with specification values.\",\"items\":{\"type\":\"string\",\"description\":\"Specification value.\"}},\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID, which is the same as `FieldId` in other specification endpoints.\"},\"Name\":{\"type\":\"string\",\"description\":\"Name of the specification.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/products/:productId/specification - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -7775,7 +6391,7 @@ } }, { - "id": "9da285e8-c47d-4caf-8be5-7b9aa4ddb1fd", + "id": "43a8f657-59f0-42f6-a50a-d089555b67e5", "name": "Update product specification by product ID", "request": { "name": "Update product specification by product ID", @@ -7806,24 +6422,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -7845,6 +6443,10 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], "method": "POST", @@ -7853,6 +6455,7 @@ "raw": "[\n {\n \"Value\": [\n \"Iron\",\n \"Plastic\"\n ],\n \"Id\": 30,\n \"Name\": \"Material\"\n },\n {\n \"Value\": [\n \"Iron\",\n \"Plastic\"\n ],\n \"Id\": 30,\n \"Name\": \"Material\"\n }\n]", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -7863,7 +6466,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "21e82178-ebad-4799-b925-bb2d6f4aa88c", + "id": "9b8def93-54b0-4623-865c-ba49496ad3b3", "name": "OK", "originalRequest": { "url": { @@ -7879,46 +6482,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -7936,6 +6502,18 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -7944,6 +6522,7 @@ "raw": "[\n {\n \"Value\": [\n \"Iron\",\n \"Plastic\"\n ],\n \"Id\": 30,\n \"Name\": \"Material\"\n },\n {\n \"Value\": [\n \"Iron\",\n \"Plastic\"\n ],\n \"Id\": 30,\n \"Name\": \"Material\"\n }\n]", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -7951,13 +6530,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -7965,7 +6538,7 @@ { "listen": "test", "script": { - "id": "4768afe7-0e59-4f86-9006-70ef36c432da", + "id": "af9f7794-8845-4e4d-a993-fdb1aa1ff9b1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pvt/products/:productId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -7978,7 +6551,7 @@ } }, { - "id": "52d5ecb2-a1e1-40e4-a70d-c399319240fe", + "id": "743f20e6-1964-4351-9fd2-b6c67b607ba5", "name": "Get product specifications and their information by product ID", "request": { "name": "Get product specifications and their information by product ID", @@ -8009,24 +6582,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -8048,16 +6603,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "464d4007-a1fa-46f0-ba34-ffbbd298351c", + "id": "18d5a217-da18-49e2-a187-26dff26e39bd", "name": "OK", "originalRequest": { "url": { @@ -8073,46 +6633,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -8134,6 +6657,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -8155,7 +6686,7 @@ { "listen": "test", "script": { - "id": "76613823-f78a-4aea-83c9-7ddf5121a653", + "id": "97d08c82-c5e8-40eb-8a74-07e051fc9096", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/product/:productId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -8171,7 +6702,7 @@ } }, { - "id": "2984cfac-919f-4a90-a81b-58134f7a1df3", + "id": "988e6ffe-6060-4f69-b186-ef070679b1ab", "name": "Associate product specification", "request": { "name": "Associate product specification", @@ -8202,24 +6733,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -8241,6 +6754,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -8249,6 +6770,7 @@ "raw": "{\n \"FieldId\": 19,\n \"FieldValueId\": 12,\n \"Text\": \"Metal\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -8259,7 +6781,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "9865c837-2f0e-41fe-87c6-74ffacc81334", + "id": "b7b6f135-340c-416a-b9d3-25d2e1abf6ce", "name": "OK", "originalRequest": { "url": { @@ -8275,46 +6797,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -8333,9 +6818,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -8344,6 +6841,7 @@ "raw": "{\n \"FieldId\": 19,\n \"FieldValueId\": 12,\n \"Text\": \"Metal\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -8365,7 +6863,7 @@ { "listen": "test", "script": { - "id": "682d326a-313c-490d-9003-ddfee861618f", + "id": "c89484e8-9398-469f-bfb1-83011f14f9bc", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/product/:productId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -8381,7 +6879,7 @@ } }, { - "id": "a3c6d296-f146-4155-914e-971a7cad91f6", + "id": "516e5604-52a0-432e-bf94-216d9de2ade8", "name": "Delete all product specifications by product ID", "request": { "name": "Delete all product specifications by product ID", @@ -8412,24 +6910,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -8453,14 +6933,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "495526fe-9875-4a72-b8fa-1d0abba5a651", + "id": "0cc4a63a-36b8-475d-accb-166e818893ce", "name": "OK", "originalRequest": { "url": { @@ -8476,46 +6957,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -8533,6 +6977,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -8540,13 +6992,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -8554,7 +7000,7 @@ { "listen": "test", "script": { - "id": "51451459-1589-4477-a2dd-8ff0ae86f5ad", + "id": "5725a1e4-ee3c-4e03-9e98-160029b46c33", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/product/:productId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -8567,7 +7013,7 @@ } }, { - "id": "7896f229-3144-478d-915a-a4b2976855b8", + "id": "88ec7a3d-72a9-4b84-95dc-ae9a4ec26dfe", "name": "Delete a product specification", "request": { "name": "Delete a product specification", @@ -8609,24 +7055,6 @@ "type": "any", "value": "7", "key": "specificationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -8650,14 +7078,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "20d2d538-0b1b-4c2d-82ea-2f25a211a4db", + "id": "ca590723-1ee2-4517-8a05-de3c37dbcf44", "name": "OK", "originalRequest": { "url": { @@ -8674,56 +7103,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Product specification's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "7", - "key": "specificationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -8741,6 +7123,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -8748,13 +7138,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -8762,7 +7146,7 @@ { "listen": "test", "script": { - "id": "fc97e547-611b-4fa4-8d89-5194e1a145e5", + "id": "30e28c06-6db8-44ad-b85d-7eb7354e11e0", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/product/:productId/specification/:specificationId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -8775,7 +7159,7 @@ } }, { - "id": "a03b5bb4-3d34-404e-9f18-77ba0d53b4e1", + "id": "d8fccb27-2599-4b7c-bc1d-28a68d655122", "name": "Associate product specification using specification name and group name", "request": { "name": "Associate product specification using specification name and group name", @@ -8806,24 +7190,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -8845,6 +7211,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -8853,6 +7227,7 @@ "raw": "{\n \"FieldName\": \"Material\",\n \"GroupName\": \"Composition\",\n \"RootLevelSpecification\": true,\n \"FieldValues\": [\n \"Cotton\",\n \"Polyester\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -8863,7 +7238,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "a543e9c1-b69c-490c-90aa-a8e402454c65", + "id": "56c50fd1-af7c-43e1-b263-ede97ee3f188", "name": "OK", "originalRequest": { "url": { @@ -8879,46 +7254,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -8937,9 +7275,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -8948,6 +7298,7 @@ "raw": "{\n \"FieldName\": \"Material\",\n \"GroupName\": \"Composition\",\n \"RootLevelSpecification\": true,\n \"FieldValues\": [\n \"Cotton\",\n \"Polyester\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -8969,7 +7320,7 @@ { "listen": "test", "script": { - "id": "d066c91f-b65b-4b92-a26a-d4a59080a778", + "id": "ee8851b5-58b2-45a6-ae72-2ab5b2452820", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/product/:productId/specificationvalue - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -8988,7 +7339,7 @@ "event": [] }, { - "id": "ffd58e31-be56-4d89-9d7a-55db3ce87418", + "id": "ecb0c7c8-9f82-40e9-97f8-470fc6786e23", "name": "Trade policy", "description": { "content": "", @@ -8996,7 +7347,7 @@ }, "item": [ { - "id": "3ff9613e-cc94-4501-a3c4-3771b5b03766", + "id": "72ad640a-45eb-4038-9b4b-fabfaefc12ad", "name": "Get Trade Policies by product ID", "request": { "name": "Get Trade Policies by product ID", @@ -9027,24 +7378,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -9066,16 +7399,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "77f97ec0-fc6b-4f41-92f6-0de74cfbc021", + "id": "e6f2547d-9ce0-4044-a882-b83646cb0595", "name": "OK", "originalRequest": { "url": { @@ -9091,46 +7429,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -9152,9 +7453,17 @@ { "key": "Accept", "value": "application/json" - } - ], - "method": "GET", + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" + } + ], + "method": "GET", "body": {} }, "status": "OK", @@ -9173,13 +7482,13 @@ { "listen": "test", "script": { - "id": "e3fe167e-7434-4854-9721-d2c12f3c5940", + "id": "4cdf5871-7086-4963-9e6c-151b4285f6bd", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/product/:productId/salespolicy - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/product/:productId/salespolicy - 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]::/api/catalog/pvt/product/:productId/salespolicy - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"type\":\"object\",\"description\":\"Object containing the product ID and the trade policy ID.\",\"properties\":{\"ProductId\":{\"type\":\"integer\",\"description\":\"Product's unique numerical identifier.\",\"example\":1},\"StoreId\":{\"type\":\"integer\",\"description\":\"Trade policy's unique numerical identifier.\",\"example\":1}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/product/:productId/salespolicy - 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\",\"description\":\"Object containing the product ID and the trade policy ID.\",\"properties\":{\"ProductId\":{\"type\":\"integer\",\"description\":\"Product's unique numerical identifier.\"},\"StoreId\":{\"type\":\"integer\",\"description\":\"Trade policy's unique numerical identifier.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/product/:productId/salespolicy - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -9189,7 +7498,7 @@ } }, { - "id": "f7df132a-72d3-4251-adcb-9d51c43e1b07", + "id": "aa6904e3-4bb9-40fa-b913-9c57de709906", "name": "Associate product with trade policy", "request": { "name": "Associate product with trade policy", @@ -9231,24 +7540,6 @@ "type": "any", "value": "1", "key": "tradepolicyId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -9272,14 +7563,15 @@ "value": "application/json" } ], - "method": "POST" + "method": "POST", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "67a648e3-180f-49b5-aaab-1858daf88442", + "id": "9dce3db2-c43a-4659-aa2b-1abc43436c9c", "name": "OK", "originalRequest": { "url": { @@ -9296,56 +7588,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Trade policy's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "tradepolicyId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -9363,6 +7608,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -9370,13 +7623,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -9384,7 +7631,7 @@ { "listen": "test", "script": { - "id": "4f57f7df-5221-49e0-816c-1a0c387fa275", + "id": "404f1a63-3fce-45bb-b331-fdff502d6f98", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/product/:productId/salespolicy/:tradepolicyId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -9397,7 +7644,7 @@ } }, { - "id": "2818d208-ebaf-47ea-930f-aa74d5c453d5", + "id": "8739c564-4b2d-4769-86ba-31deb8d977f1", "name": "Remove product from trade policy", "request": { "name": "Remove product from trade policy", @@ -9439,24 +7686,6 @@ "type": "any", "value": "1", "key": "tradepolicyId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -9480,14 +7709,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "47e4d35f-0380-4f88-8606-eb255012189b", + "id": "090bcaa2-5db0-4ecf-84fe-9ee45ca978b8", "name": "OK", "originalRequest": { "url": { @@ -9504,56 +7734,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Trade policy's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "tradepolicyId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -9571,6 +7754,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -9578,13 +7769,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -9592,7 +7777,7 @@ { "listen": "test", "script": { - "id": "a55c0d29-e373-4d4b-a80d-ceceba9cc7fc", + "id": "577130dc-d063-44fa-bdcc-dc5a856a67fb", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/product/:productId/salespolicy/:tradepolicyId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -9605,7 +7790,7 @@ } }, { - "id": "670a5d36-69c7-40ef-a3f9-c46c943e3528", + "id": "4721f161-5115-4c52-8aab-8999192218c1", "name": "List all SKUs of a trade policy", "request": { "name": "List all SKUs of a trade policy", @@ -9662,26 +7847,7 @@ "value": "true" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -9701,16 +7867,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "87851677-dd27-4bc3-a9d6-25c02c2eaa31", + "id": "e7ba7b2e-7e3e-4117-8964-f01e6541b824", "name": "OK", "originalRequest": { "url": { @@ -9726,52 +7897,45 @@ ], "query": [ { + "disabled": false, + "description": { + "content": "(Required) Trade policy's unique numerical identifier.", + "type": "text/plain" + }, "key": "sc", "value": "1" }, { + "disabled": true, + "description": { + "content": "Page number.", + "type": "text/plain" + }, "key": "page", "value": "1" }, { - "key": "pageSize", - "value": "1" - }, - { - "key": "onlyAssigned", - "value": "true" - } - ], - "variable": [ - { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "Number of items in the page.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "pageSize", + "value": "1" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "If set as `false`, it allows the user to decide if the SKUs that are not assigned to a specific trade policy should be also returned.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "onlyAssigned", + "value": "true" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -9793,6 +7957,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -9814,13 +7986,13 @@ { "listen": "test", "script": { - "id": "66dd5a06-3cdc-4261-8621-c5577afc468e", + "id": "4ef73728-0642-42c0-abdd-c9392a7152b3", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitidsbysaleschannel - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitidsbysaleschannel - 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]::/api/catalog_system/pvt/sku/stockkeepingunitidsbysaleschannel - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"description\":\"List of SKU IDs of the trade policy.\",\"items\":{\"type\":\"integer\",\"example\":1}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitidsbysaleschannel - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"array\",\"description\":\"List of SKU IDs of the trade policy.\",\"items\":{\"type\":\"integer\"}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitidsbysaleschannel - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -9833,7 +8005,7 @@ "event": [] }, { - "id": "9001a689-66b1-4008-b542-bbdc0aaba87b", + "id": "23ab814f-221c-4f42-9cf7-5b0e6db46073", "name": "Similar category", "description": { "content": "", @@ -9841,7 +8013,7 @@ }, "item": [ { - "id": "a91b17b3-65f5-45dd-b1e7-8bad3b21c5f2", + "id": "709f1118-a469-454c-9042-31cfcf7cf478", "name": "Get similar categories", "request": { "name": "Get similar categories", @@ -9873,24 +8045,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -9912,16 +8066,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "7e5f63c7-48ac-42b5-bbba-85227ddd7b58", + "id": "7d7c1a7c-acb0-450e-8605-c6c10dd09377", "name": "OK", "originalRequest": { "url": { @@ -9938,46 +8097,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -9999,6 +8121,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -10020,13 +8150,13 @@ { "listen": "test", "script": { - "id": "eba57202-6f13-45b4-a18f-b12b8d54f3a1", + "id": "d0858393-3501-4f85-9299-7655e74a4331", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/product/:productId/similarcategory/ - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/product/:productId/similarcategory/ - 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]::/api/catalog/pvt/product/:productId/similarcategory/ - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"description\":\"Array of objects with similar category information.\",\"items\":{\"type\":\"object\",\"description\":\"Object containing product ID and similar category ID.\",\"properties\":{\"ProductId\":{\"type\":\"integer\",\"description\":\"Product ID.\",\"example\":1},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Similar category ID.\",\"example\":20}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/product/:productId/similarcategory/ - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"array\",\"description\":\"Array of objects with similar category information.\",\"items\":{\"type\":\"object\",\"description\":\"Object containing product ID and similar category ID.\",\"properties\":{\"ProductId\":{\"type\":\"integer\",\"description\":\"Product ID.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Similar category ID.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/product/:productId/similarcategory/ - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -10036,7 +8166,7 @@ } }, { - "id": "2f7f9586-5fab-42bf-9bc3-7022496297cb", + "id": "a95c504e-b3c8-4280-9c2c-fd609fa64ab4", "name": "Add similar category", "request": { "name": "Add similar category", @@ -10078,24 +8208,6 @@ "type": "any", "value": "1", "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -10117,16 +8229,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "POST" + "method": "POST", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "e36580b3-9721-46e6-ad40-2152bb98df9a", + "id": "b4bee614-3d48-4d26-94b1-b342af475e10", "name": "OK", "originalRequest": { "url": { @@ -10143,56 +8260,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Similar category's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -10214,6 +8284,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -10235,13 +8313,13 @@ { "listen": "test", "script": { - "id": "324dec81-7538-41e5-a01c-bfbfbea4d399", + "id": "d0bc5894-b998-41b8-91d6-150e1bd2eaf8", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/product/:productId/similarcategory/:categoryId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/product/:productId/similarcategory/:categoryId - 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(\"[POST]::/api/catalog/pvt/product/:productId/similarcategory/:categoryId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object containing information related to the similar category.\",\"properties\":{\"ProductId\":{\"type\":\"integer\",\"description\":\"Product ID.\",\"example\":1},\"StoreId\":{\"type\":\"integer\",\"description\":\"Trade policy ID.\",\"example\":1}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/product/:productId/similarcategory/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object containing information related to the similar category.\",\"properties\":{\"ProductId\":{\"type\":\"integer\",\"description\":\"Product ID.\"},\"StoreId\":{\"type\":\"integer\",\"description\":\"Trade policy ID.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/product/:productId/similarcategory/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -10251,7 +8329,7 @@ } }, { - "id": "73382f9e-91d4-4715-93d2-806f0e362663", + "id": "62a5d54c-3763-4355-965b-958e66f81ef9", "name": "Delete similar category", "request": { "name": "Delete similar category", @@ -10293,24 +8371,6 @@ "type": "any", "value": "1", "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -10334,14 +8394,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "9a10f4c5-6268-40ee-a15c-bbbb1f73d021", + "id": "ff14267d-9c38-4d57-ae75-9bcf4638a390", "name": "OK", "originalRequest": { "url": { @@ -10358,56 +8419,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Similar category's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -10425,6 +8439,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -10432,13 +8454,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -10446,7 +8462,7 @@ { "listen": "test", "script": { - "id": "c655d88f-7c9d-497d-9456-7557aa1904f7", + "id": "986d7243-f5ae-48bd-a6d0-7b48ce28c458", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/product/:productId/similarcategory/:categoryId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -10462,7 +8478,7 @@ "event": [] }, { - "id": "f90cfd01-5dc5-4b65-979d-2c0a4b3053b9", + "id": "a22d3991-a36a-44f8-91a3-dd83b837f5e8", "name": "SKU", "description": { "content": "", @@ -10470,7 +8486,7 @@ }, "item": [ { - "id": "953142c6-015b-4e08-8584-8817e73b1446", + "id": "c6108cd3-0492-49d6-b0eb-e0b48e08f440", "name": "List all SKU IDs", "request": { "name": "List all SKU IDs", @@ -10509,26 +8525,7 @@ "value": "25" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -10548,16 +8545,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "f3794916-a0eb-4c72-8125-bc8fd07b2a3d", + "id": "9bc9a504-d447-4496-bb86-556cbf81a3ba", "name": "OK", "originalRequest": { "url": { @@ -10573,44 +8575,27 @@ ], "query": [ { - "key": "page", - "value": "1" - }, - { - "key": "pagesize", - "value": "25" - } - ], - "variable": [ - { + "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Number of the page from where you need to retrieve SKU IDs.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "page", + "value": "1" }, { + "disabled": false, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "(Required) Size of the page from where you need retrieve SKU IDs. The maximum value is `1000`.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "pagesize", + "value": "25" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -10632,6 +8617,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -10653,7 +8646,7 @@ { "listen": "test", "script": { - "id": "b9ff59ae-3f0b-4635-a7be-00bf141efc82", + "id": "34c96ef6-a840-4327-8c8a-c7028aa51cd1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitids - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -10669,7 +8662,7 @@ } }, { - "id": "632aa052-3aa0-42d2-9ec0-d637d4c71e0d", + "id": "5f05abed-97a4-4f9a-ac41-c4ab2401c48a", "name": "Get SKU and context", "request": { "name": "Get SKU and context", @@ -10710,24 +8703,6 @@ "type": "any", "value": "2001773", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -10749,16 +8724,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "862f1372-7e06-4f0c-b6bf-ebaf1c1d6638", + "id": "0439a0a9-8730-4a2a-b8f8-df06ff696a66", "name": "OK", "originalRequest": { "url": { @@ -10775,50 +8755,18 @@ ], "query": [ { - "key": "sc", - "value": "1" - } - ], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique identifier number.", - "type": "text/plain" - }, - "type": "any", - "value": "2001773", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "Trade policy's unique identifier number.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "sc", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -10840,6 +8788,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -10861,13 +8817,13 @@ { "listen": "test", "script": { - "id": "41938b1c-9ef2-4a82-bbfc-903c187e6375", + "id": "174ec054-d7f7-4f8f-9427-019f1c8be26a", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyid/:skuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyid/:skuId - 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]::/api/catalog_system/pvt/sku/stockkeepingunitbyid/:skuId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"required\":[\"Id\",\"ProductId\",\"NameComplete\",\"ProductName\",\"ProductDescription\",\"SkuName\",\"IsActive\",\"IsTransported\",\"IsInventoried\",\"IsGiftCardRecharge\",\"ImageUrl\",\"DetailUrl\",\"CSCIdentification\",\"BrandId\",\"BrandName\",\"Dimension\",\"RealDimension\",\"ManufacturerCode\",\"IsKit\",\"KitItems\",\"Services\",\"Categories\",\"Attachments\",\"Collections\",\"SkuSellers\",\"SalesChannels\",\"Images\",\"SkuSpecifications\",\"ProductSpecifications\",\"ProductClustersIds\",\"ProductCategoryIds\",\"ProductGlobalCategoryId\",\"ProductCategories\",\"CommercialConditionId\",\"RewardValue\",\"AlternateIds\",\"AlternateIdValues\",\"EstimatedDateArrival\",\"MeasurementUnit\",\"UnitMultiplier\",\"InformationSource\",\"ModalType\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"ProductId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"ID of the related product.\"},\"NameComplete\":{\"type\":\"string\",\"description\":\"Product Name and SKU Name concatenated.\"},\"ComplementName\":{\"type\":\"string\",\"description\":\"Product Complement Name.\"},\"ProductName\":{\"type\":\"string\",\"description\":\"Product Name.\"},\"ProductDescription\":{\"type\":\"string\",\"description\":\"Product Description. HTML is allowed.\"},\"ProductRefId\":{\"type\":\"string\",\"description\":\"Reference ID of the related product.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"SKU Tax Code.\"},\"SkuName\":{\"type\":\"string\",\"description\":\"SKU Name.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active or not.\"},\"IsTransported\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Deprecated field.\",\"deprecated\":true},\"IsInventoried\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Deprecated field.\",\"deprecated\":true},\"IsGiftCardRecharge\":{\"type\":\"boolean\",\"description\":\"Defines if the purchase will generate a reward.\"},\"ImageUrl\":{\"type\":\"string\",\"description\":\"SKU image URL.\"},\"DetailUrl\":{\"type\":\"string\",\"description\":\"Product URL.\"},\"CSCIdentification\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU seller identification.\"},\"BrandId\":{\"type\":\"string\",\"description\":\"Product brand ID.\"},\"BrandName\":{\"type\":\"string\",\"description\":\"Product brand Name.\"},\"Dimension\":{\"required\":[\"cubicweight\",\"height\",\"length\",\"weight\",\"width\"],\"type\":\"object\",\"description\":\"Object containing the SKU dimensions to be used on the shipping calculation.\",\"properties\":{\"cubicweight\":{\"type\":\"number\",\"description\":\"SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"height\":{\"type\":\"number\",\"description\":\"SKU height.\"},\"length\":{\"type\":\"number\",\"description\":\"SKU length.\"},\"weight\":{\"type\":\"number\",\"description\":\"SKU weight.\"},\"width\":{\"type\":\"number\",\"description\":\"SKU width.\"}},\"example\":{\"cubicweight\":81.6833,\"height\":65,\"length\":58,\"weight\":10000,\"width\":130}},\"RealDimension\":{\"required\":[\"realCubicWeight\",\"realHeight\",\"realLength\",\"realWeight\",\"realWidth\"],\"type\":\"object\",\"description\":\"Object containing the real SKU dimensions, which appear in the product page.\",\"properties\":{\"realCubicWeight\":{\"type\":\"number\",\"description\":\"Real SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"realHeight\":{\"type\":\"number\",\"description\":\"Real SKU height.\"},\"realLength\":{\"type\":\"number\",\"description\":\"Real SKU length.\"},\"realWeight\":{\"type\":\"number\",\"description\":\"Real SKU weight.\"},\"realWidth\":{\"type\":\"number\",\"description\":\"Real SKU width.\"}},\"example\":{\"realCubicWeight\":274.1375,\"realHeight\":241,\"realLength\":65,\"realWeight\":9800,\"realWidth\":105}},\"ManufacturerCode\":{\"type\":\"string\",\"description\":\"Product Supplier ID.\"},\"IsKit\":{\"type\":\"boolean\",\"description\":\"Defines whether the SKU is made up of one or more SKUs (part of a kit) (`true`) or not (`false`). Must be enabled if you are adding a kit. Once activated, this definition cannot be reverted.\"},\"KitItems\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"SKU ID.\"},\"description\":\"Array with SKU IDs of bundle components.\"},\"Services\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Service ID.\"},\"description\":\"Array with Service IDs that are related to the SKU.\"},\"Categories\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Category ID.\"},\"description\":\"Array with Categories from the related product.\"},\"Attachments\":{\"type\":\"array\",\"items\":{\"required\":[\"Id\",\"Name\",\"Keys\",\"Fields\",\"IsActive\",\"IsRequired\"],\"type\":\"object\",\"description\":\"Object containing information about SKU attachments.\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment Name.\"},\"Keys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Attachment Keys.\"},\"Fields\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldName\",\"MaxCaracters\",\"DomainValues\"],\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment field name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters accepted in the attachment field.\"},\"DomainValues\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed key values.\"}},\"example\":{\"FieldName\":\"nome\",\"MaxCaracters\":\"20\",\"DomainValues\":\"Adalberto,Pedro,João\"}},\"description\":\"Array containing Attachment fields.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is active or not.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is required or not.\"}},\"example\":{\"Id\":3,\"Name\":\"Mensagem\",\"Keys\":[\"nome;20\",\"foto;40\"],\"Fields\":[{\"FieldName\":\"nome\",\"MaxCaracters\":\"20\",\"DomainValues\":\"Adalberto,Pedro,João\"},{\"FieldName\":\"foto\",\"MaxCaracters\":\"40\",\"DomainValues\":null}],\"IsActive\":true,\"IsRequired\":false}},\"description\":\"Array with Attachments ID that are related to the SKU.\"},\"Collections\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Collection ID.\"},\"description\":\"Array with Collection IDs that are related to the product.\"},\"SkuSellers\":{\"type\":\"array\",\"items\":{\"required\":[\"SellerId\",\"StockKeepingUnitId\",\"SellerStockKeepingUnitId\",\"IsActive\",\"FreightCommissionPercentage\",\"ProductCommissionPercentage\"],\"type\":\"object\",\"description\":\"Object containing related SKU sellers data.\",\"properties\":{\"SellerId\":{\"type\":\"string\",\"description\":\"SKU seller ID. This is the ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.\"},\"StockKeepingUnitId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"SellerStockKeepingUnitId\":{\"type\":\"string\",\"description\":\"SKU ID for the SKU seller.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active.\"},\"FreightCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller Freight Commission.\"},\"ProductCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller product Commission.\"}},\"example\":{\"SellerId\":\"1\",\"StockKeepingUnitId\":2001773,\"SellerStockKeepingUnitId\":\"2001773\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}},\"description\":\"Array with SKU sellers data.\"},\"SalesChannels\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Trade policy ID.\"},\"description\":\"Array with the ID of all the trade policies that are related to the product.\"},\"Images\":{\"type\":\"array\",\"items\":{\"required\":[\"ImageUrl\",\"ImageName\",\"FileId\"],\"type\":\"object\",\"description\":\"Object containing SKU images details.\",\"properties\":{\"ImageUrl\":{\"type\":\"string\",\"description\":\"Image URL.\"},\"ImageName\":{\"type\":[\"string\",\"null\"],\"description\":\"Image label.\"},\"FileId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU image ID.\"}},\"example\":{\"ImageUrl\":\"http://ambienteqa.vteximg.com.br/arquivos/ids/168952/7508800GG.jpg\",\"ImageName\":\"\",\"FileId\":168952}},\"description\":\"Array with SKU images.\"},\"SkuSpecifications\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"description\":\"Object containing related SKU specifications.\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification field Name.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}},\"example\":{\"FieldId\":102,\"FieldName\":\"Cor\",\"FieldValueIds\":[266],\"FieldValues\":[\"Padrão\"]}},\"description\":\"Array with related SKU specifications.\"},\"ProductSpecifications\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}},\"example\":{\"FieldId\":7,\"FieldName\":\"Faixa Etária\",\"FieldValueIds\":[58,56,55,52],\"FieldValues\":[\"5 a 6 anos\",\"7 a 8 anos\",\"9 a 10 anos\",\"Acima de 10 anos\"]}},\"description\":\"Array with related product specifications.\"},\"ProductClustersIds\":{\"type\":\"string\",\"description\":\"Product clusters IDs.\"},\"ProductCategoryIds\":{\"type\":\"string\",\"description\":\"Category hierarchy with category IDs.\"},\"ProductGlobalCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Global category ID.\"},\"ProductCategories\":{\"type\":\"object\",\"description\":\"Object containing product categories. Structure: \\\"{CategoryID}\\\": \\\"{CategoryName}\\\".\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category name.\"}}},\"CommercialConditionId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Commercial condition ID, used to define SKU specific promotions or installment rules. In case of no specific condition, use `1` (default value). This field does not accept `0`. Learn more at [Registering a commercial condition](https://help.vtex.com/tutorial/registering-a-commercial-condition--tutorials_445).\",\"default\":1},\"RewardValue\":{\"type\":\"number\",\"description\":\"Credit that the customer receives when finalizing an order that includes the SKU. By filling this field out with `1`, the customer receives credit on the site in the selected currency, e.g. U$ 1.\"},\"AlternateIds\":{\"type\":\"object\",\"description\":\"Array with alternate SKU IDs, such as EAN and `RefId`.\",\"properties\":{\"Ean\":{\"type\":\"string\",\"description\":\"SKU EAN.\"},\"RefId\":{\"type\":\"string\",\"description\":\"SKU reference ID.\"}},\"example\":{\"Ean\":\"8781\",\"RefId\":\"878181\"}},\"AlternateIdValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Alternative SKU ID.\"},\"description\":\"Array with values of alternative SKU IDs.\"},\"EstimatedDateArrival\":{\"type\":[\"string\",\"null\"],\"description\":\"To add the product as pre-sale, enter the product estimated arrival date in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. You must take into consideration both the launch date and the freight calculation for the arrival date.\"},\"MeasurementUnit\":{\"type\":\"string\",\"description\":\"Measurement unit. This field should only be used when it is necessary to convert the unit of measure for sale. For example, if a product is sold in boxes, but customers want to buy per square meter (m²). In common cases, use `\\\"un\\\"`.\"},\"UnitMultiplier\":{\"type\":\"number\",\"description\":\"Multiple number of SKU. If the multiplier is 5.0000, the product can be added in multiple quantities of 5, 10, 15, 20, onward.\"},\"InformationSource\":{\"type\":[\"string\",\"null\"],\"description\":\"Information source.\"},\"ModalType\":{\"type\":[\"string\",\"null\"],\"description\":\"Links an unusual type of SKU that needs special transportation, such as meat, glass, or a mattress, to a carrier specialized in delivering it. This field should be filled in with the name of the modal (e.g. \\\"Chemicals\\\" or \\\"Refrigerated products\\\"). To learn more about this feature, read our articles [How the modal works](https://help.vtex.com/en/tutorial/how-does-the-modal-work--tutorials_125) and [Setting up modal for carriers](https://help.vtex.com/en/tutorial/configure-modal--3jhLqxuPhuiq24UoykCcqy).\"},\"KeyWords\":{\"type\":[\"string\",\"null\"],\"description\":\"Keywords related to the product.\"},\"ReleaseDate\":{\"type\":[\"string\",\"null\"],\"description\":\"Release date of the product.\"},\"ProductIsVisible\":{\"type\":\"boolean\",\"description\":\"Defines if the product is visible or not.\"},\"ShowIfNotAvailable\":{\"type\":\"boolean\",\"description\":\"Defines if the product will be shown if it is not available.\"},\"IsProductActive\":{\"type\":\"boolean\",\"description\":\"Defines if the product is active or not.\"},\"ProductFinalScore\":{\"type\":\"integer\",\"description\":\"Product final score.\"}},\"example\":{\"Id\":310118450,\"ProductId\":2,\"NameComplete\":\"Caixa de Areia Azul Petmate sku test\",\"ComplementName\":\"\",\"ProductName\":\"Caixa de Areia Azul Petmate\",\"ProductDescription\":\"\",\"ProductRefId\":\"\",\"TaxCode\":\"\",\"SkuName\":\"sku test\",\"IsActive\":true,\"IsTransported\":true,\"IsInventoried\":true,\"IsGiftCardRecharge\":false,\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451-55-55/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"DetailUrl\":\"/caixa-de-areia-azul-petmate/p\",\"CSCIdentification\":null,\"BrandId\":\"2000005\",\"BrandName\":\"Petmate\",\"IsBrandActive\":true,\"Dimension\":{\"cubicweight\":0.2083,\"height\":10,\"length\":10,\"weight\":10,\"width\":10},\"RealDimension\":{\"realCubicWeight\":0,\"realHeight\":0,\"realLength\":0,\"realWeight\":0,\"realWidth\":0},\"ManufacturerCode\":\"123\",\"IsKit\":false,\"KitItems\":[],\"Services\":[],\"Categories\":[],\"CategoriesFullPath\":[\"/3/15/\",\"/3/\",\"/1/\"],\"Attachments\":[],\"Collections\":[],\"SkuSellers\":[{\"SellerId\":\"1\",\"StockKeepingUnitId\":310118450,\"SellerStockKeepingUnitId\":\"310118450\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}],\"SalesChannels\":[1,3],\"Images\":[{\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"ImageName\":null,\"FileId\":155451}],\"Videos\":[],\"SkuSpecifications\":[],\"ProductSpecifications\":[],\"ProductClustersIds\":\"151,158\",\"PositionsInClusters\":{\"151\":1,\"158\":2},\"ProductClusterNames\":{\"151\":\"asdfghj\",\"158\":\"Coleção halloween\"},\"ProductClusterHighlights\":{\"151\":\"asdfghj\"},\"ProductCategoryIds\":\"/3/15/\",\"IsDirectCategoryActive\":true,\"ProductGlobalCategoryId\":5000,\"ProductCategories\":{\"1\":\"Alimentação\",\"3\":\"Higiene\",\"15\":\"Caixa de Areia\"},\"CommercialConditionId\":1,\"RewardValue\":0,\"AlternateIds\":{\"RefId\":\"1\"},\"AlternateIdValues\":[\"1\"],\"EstimatedDateArrival\":null,\"MeasurementUnit\":\"un\",\"UnitMultiplier\":1,\"InformationSource\":null,\"ModalType\":null,\"KeyWords\":\"\",\"ReleaseDate\":\"2020-01-06T00:00:00Z\",\"ProductIsVisible\":true,\"ShowIfNotAvailable\":true,\"IsProductActive\":true,\"ProductFinalScore\":0}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyid/:skuId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"required\":[\"Id\",\"ProductId\",\"NameComplete\",\"ProductName\",\"ProductDescription\",\"SkuName\",\"IsActive\",\"IsTransported\",\"IsInventoried\",\"IsGiftCardRecharge\",\"ImageUrl\",\"DetailUrl\",\"CSCIdentification\",\"BrandId\",\"BrandName\",\"Dimension\",\"RealDimension\",\"ManufacturerCode\",\"IsKit\",\"KitItems\",\"Services\",\"Categories\",\"Attachments\",\"Collections\",\"SkuSellers\",\"SalesChannels\",\"Images\",\"SkuSpecifications\",\"ProductSpecifications\",\"ProductClustersIds\",\"ProductCategoryIds\",\"ProductGlobalCategoryId\",\"ProductCategories\",\"CommercialConditionId\",\"RewardValue\",\"AlternateIds\",\"AlternateIdValues\",\"EstimatedDateArrival\",\"MeasurementUnit\",\"UnitMultiplier\",\"InformationSource\",\"ModalType\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"ProductId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"ID of the related product.\"},\"NameComplete\":{\"type\":\"string\",\"description\":\"Product Name and SKU Name concatenated.\"},\"ComplementName\":{\"type\":\"string\",\"description\":\"Product Complement Name.\"},\"ProductName\":{\"type\":\"string\",\"description\":\"Product Name.\"},\"ProductDescription\":{\"type\":\"string\",\"description\":\"Product Description. HTML is allowed.\"},\"ProductRefId\":{\"type\":\"string\",\"description\":\"Reference ID of the related product.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"SKU Tax Code.\"},\"SkuName\":{\"type\":\"string\",\"description\":\"SKU Name.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active or not.\"},\"IsTransported\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Deprecated field.\"},\"IsInventoried\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Deprecated field.\"},\"IsGiftCardRecharge\":{\"type\":\"boolean\",\"description\":\"Defines if the purchase will generate a reward.\"},\"ImageUrl\":{\"type\":\"string\",\"description\":\"SKU image URL.\"},\"DetailUrl\":{\"type\":\"string\",\"description\":\"Product URL.\"},\"CSCIdentification\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU seller identification.\"},\"BrandId\":{\"type\":\"string\",\"description\":\"Product brand ID.\"},\"BrandName\":{\"type\":\"string\",\"description\":\"Product brand Name.\"},\"Dimension\":{\"required\":[\"cubicweight\",\"height\",\"length\",\"weight\",\"width\"],\"type\":\"object\",\"description\":\"Object containing the SKU dimensions to be used on the shipping calculation.\",\"properties\":{\"cubicweight\":{\"type\":\"number\",\"description\":\"SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"height\":{\"type\":\"number\",\"description\":\"SKU height.\"},\"length\":{\"type\":\"number\",\"description\":\"SKU length.\"},\"weight\":{\"type\":\"number\",\"description\":\"SKU weight.\"},\"width\":{\"type\":\"number\",\"description\":\"SKU width.\"}}},\"RealDimension\":{\"required\":[\"realCubicWeight\",\"realHeight\",\"realLength\",\"realWeight\",\"realWidth\"],\"type\":\"object\",\"description\":\"Object containing the real SKU dimensions, which appear in the product page.\",\"properties\":{\"realCubicWeight\":{\"type\":\"number\",\"description\":\"Real SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"realHeight\":{\"type\":\"number\",\"description\":\"Real SKU height.\"},\"realLength\":{\"type\":\"number\",\"description\":\"Real SKU length.\"},\"realWeight\":{\"type\":\"number\",\"description\":\"Real SKU weight.\"},\"realWidth\":{\"type\":\"number\",\"description\":\"Real SKU width.\"}}},\"ManufacturerCode\":{\"type\":\"string\",\"description\":\"Product Supplier ID.\"},\"IsKit\":{\"type\":\"boolean\",\"description\":\"Defines whether the SKU is made up of one or more SKUs (part of a kit) (`true`) or not (`false`). Must be enabled if you are adding a kit. Once activated, this definition cannot be reverted.\"},\"KitItems\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"SKU ID.\"},\"description\":\"Array with SKU IDs of bundle components.\"},\"Services\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Service ID.\"},\"description\":\"Array with Service IDs that are related to the SKU.\"},\"Categories\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Category ID.\"},\"description\":\"Array with Categories from the related product.\"},\"Attachments\":{\"type\":\"array\",\"items\":{\"required\":[\"Id\",\"Name\",\"Keys\",\"Fields\",\"IsActive\",\"IsRequired\"],\"type\":\"object\",\"description\":\"Object containing information about SKU attachments.\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment Name.\"},\"Keys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Attachment Keys.\"},\"Fields\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldName\",\"MaxCaracters\",\"DomainValues\"],\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment field name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters accepted in the attachment field.\"},\"DomainValues\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed key values.\"}}},\"description\":\"Array containing Attachment fields.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is active or not.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is required or not.\"}}},\"description\":\"Array with Attachments ID that are related to the SKU.\"},\"Collections\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Collection ID.\"},\"description\":\"Array with Collection IDs that are related to the product.\"},\"SkuSellers\":{\"type\":\"array\",\"items\":{\"required\":[\"SellerId\",\"StockKeepingUnitId\",\"SellerStockKeepingUnitId\",\"IsActive\",\"FreightCommissionPercentage\",\"ProductCommissionPercentage\"],\"type\":\"object\",\"description\":\"Object containing related SKU sellers data.\",\"properties\":{\"SellerId\":{\"type\":\"string\",\"description\":\"SKU seller ID. This is the ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.\"},\"StockKeepingUnitId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"SellerStockKeepingUnitId\":{\"type\":\"string\",\"description\":\"SKU ID for the SKU seller.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active.\"},\"FreightCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller Freight Commission.\"},\"ProductCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller product Commission.\"}}},\"description\":\"Array with SKU sellers data.\"},\"SalesChannels\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Trade policy ID.\"},\"description\":\"Array with the ID of all the trade policies that are related to the product.\"},\"Images\":{\"type\":\"array\",\"items\":{\"required\":[\"ImageUrl\",\"ImageName\",\"FileId\"],\"type\":\"object\",\"description\":\"Object containing SKU images details.\",\"properties\":{\"ImageUrl\":{\"type\":\"string\",\"description\":\"Image URL.\"},\"ImageName\":{\"type\":[\"string\",\"null\"],\"description\":\"Image label.\"},\"FileId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU image ID.\"}}},\"description\":\"Array with SKU images.\"},\"SkuSpecifications\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"description\":\"Object containing related SKU specifications.\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification field Name.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}}},\"description\":\"Array with related SKU specifications.\"},\"ProductSpecifications\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}}},\"description\":\"Array with related product specifications.\"},\"ProductClustersIds\":{\"type\":\"string\",\"description\":\"Product clusters IDs.\"},\"ProductCategoryIds\":{\"type\":\"string\",\"description\":\"Category hierarchy with category IDs.\"},\"ProductGlobalCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Global category ID.\"},\"ProductCategories\":{\"type\":\"object\",\"description\":\"Object containing product categories. Structure: \\\"{CategoryID}\\\": \\\"{CategoryName}\\\".\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category name.\"}}},\"CommercialConditionId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Commercial condition ID, used to define SKU specific promotions or installment rules. In case of no specific condition, use `1` (default value). This field does not accept `0`. Learn more at [Registering a commercial condition](https://help.vtex.com/tutorial/registering-a-commercial-condition--tutorials_445).\",\"default\":1},\"RewardValue\":{\"type\":\"number\",\"description\":\"Credit that the customer receives when finalizing an order that includes the SKU. By filling this field out with `1`, the customer receives credit on the site in the selected currency, e.g. U$ 1.\"},\"AlternateIds\":{\"type\":\"object\",\"description\":\"Array with alternate SKU IDs, such as EAN and `RefId`.\",\"properties\":{\"Ean\":{\"type\":\"string\",\"description\":\"SKU EAN.\"},\"RefId\":{\"type\":\"string\",\"description\":\"SKU reference ID.\"}}},\"AlternateIdValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Alternative SKU ID.\"},\"description\":\"Array with values of alternative SKU IDs.\"},\"EstimatedDateArrival\":{\"type\":[\"string\",\"null\"],\"description\":\"To add the product as pre-sale, enter the product estimated arrival date in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. You must take into consideration both the launch date and the freight calculation for the arrival date.\"},\"MeasurementUnit\":{\"type\":\"string\",\"description\":\"Measurement unit. This field should only be used when it is necessary to convert the unit of measure for sale. For example, if a product is sold in boxes, but customers want to buy per square meter (m²). In common cases, use `\\\"un\\\"`.\"},\"UnitMultiplier\":{\"type\":\"number\",\"description\":\"Multiple number of SKU. If the multiplier is 5.0000, the product can be added in multiple quantities of 5, 10, 15, 20, onward.\"},\"InformationSource\":{\"type\":[\"string\",\"null\"],\"description\":\"Information source.\"},\"ModalType\":{\"type\":[\"string\",\"null\"],\"description\":\"Links an unusual type of SKU that needs special transportation, such as meat, glass, or a mattress, to a carrier specialized in delivering it. This field should be filled in with the name of the modal (e.g. \\\"Chemicals\\\" or \\\"Refrigerated products\\\"). To learn more about this feature, read our articles [How the modal works](https://help.vtex.com/en/tutorial/how-does-the-modal-work--tutorials_125) and [Setting up modal for carriers](https://help.vtex.com/en/tutorial/configure-modal--3jhLqxuPhuiq24UoykCcqy).\"},\"KeyWords\":{\"type\":[\"string\",\"null\"],\"description\":\"Keywords related to the product.\"},\"ReleaseDate\":{\"type\":[\"string\",\"null\"],\"description\":\"Release date of the product.\"},\"ProductIsVisible\":{\"type\":\"boolean\",\"description\":\"Defines if the product is visible or not.\"},\"ShowIfNotAvailable\":{\"type\":\"boolean\",\"description\":\"Defines if the product will be shown if it is not available.\"},\"IsProductActive\":{\"type\":\"boolean\",\"description\":\"Defines if the product is active or not.\"},\"ProductFinalScore\":{\"type\":\"integer\",\"description\":\"Product final score.\"}},\"example\":{\"Id\":310118450,\"ProductId\":2,\"NameComplete\":\"Caixa de Areia Azul Petmate sku test\",\"ComplementName\":\"\",\"ProductName\":\"Caixa de Areia Azul Petmate\",\"ProductDescription\":\"\",\"ProductRefId\":\"\",\"TaxCode\":\"\",\"SkuName\":\"sku test\",\"IsActive\":true,\"IsTransported\":true,\"IsInventoried\":true,\"IsGiftCardRecharge\":false,\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451-55-55/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"DetailUrl\":\"/caixa-de-areia-azul-petmate/p\",\"CSCIdentification\":null,\"BrandId\":\"2000005\",\"BrandName\":\"Petmate\",\"IsBrandActive\":true,\"Dimension\":{\"cubicweight\":0.2083,\"height\":10,\"length\":10,\"weight\":10,\"width\":10},\"RealDimension\":{\"realCubicWeight\":0,\"realHeight\":0,\"realLength\":0,\"realWeight\":0,\"realWidth\":0},\"ManufacturerCode\":\"123\",\"IsKit\":false,\"KitItems\":[],\"Services\":[],\"Categories\":[],\"CategoriesFullPath\":[\"/3/15/\",\"/3/\",\"/1/\"],\"Attachments\":[],\"Collections\":[],\"SkuSellers\":[{\"SellerId\":\"1\",\"StockKeepingUnitId\":310118450,\"SellerStockKeepingUnitId\":\"310118450\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}],\"SalesChannels\":[1,3],\"Images\":[{\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"ImageName\":null,\"FileId\":155451}],\"Videos\":[],\"SkuSpecifications\":[],\"ProductSpecifications\":[],\"ProductClustersIds\":\"151,158\",\"PositionsInClusters\":{\"151\":1,\"158\":2},\"ProductClusterNames\":{\"151\":\"asdfghj\",\"158\":\"Coleção halloween\"},\"ProductClusterHighlights\":{\"151\":\"asdfghj\"},\"ProductCategoryIds\":\"/3/15/\",\"IsDirectCategoryActive\":true,\"ProductGlobalCategoryId\":5000,\"ProductCategories\":{\"1\":\"Alimentação\",\"3\":\"Higiene\",\"15\":\"Caixa de Areia\"},\"CommercialConditionId\":1,\"RewardValue\":0,\"AlternateIds\":{\"RefId\":\"1\"},\"AlternateIdValues\":[\"1\"],\"EstimatedDateArrival\":null,\"MeasurementUnit\":\"un\",\"UnitMultiplier\":1,\"InformationSource\":null,\"ModalType\":null,\"KeyWords\":\"\",\"ReleaseDate\":\"2020-01-06T00:00:00Z\",\"ProductIsVisible\":true,\"ShowIfNotAvailable\":true,\"IsProductActive\":true,\"ProductFinalScore\":0}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyid/:skuId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -10877,7 +8833,7 @@ } }, { - "id": "28269502-4431-4cca-9083-093f5fdaa2f3", + "id": "a483bdb1-7dcf-4caf-a787-7d9ab8d99b35", "name": "Get SKU by RefId", "request": { "name": "Get SKU by RefId", @@ -10906,26 +8862,7 @@ "value": "1" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -10945,16 +8882,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "332a1b60-905f-490b-a1c6-d30de3edb585", + "id": "8650e500-7c32-4f8b-8156-b817e4fefb61", "name": "OK", "originalRequest": { "url": { @@ -10969,40 +8911,18 @@ ], "query": [ { - "key": "RefId", - "value": "1" - } - ], - "variable": [ - { - "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": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "(Required) SKU reference ID.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "RefId", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -11024,6 +8944,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -11045,7 +8973,7 @@ { "listen": "test", "script": { - "id": "a4153152-e2ae-4e2f-a1e8-84cb5758f99b", + "id": "ce9160d3-91c3-4e0e-9413-f261bd53d39e", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -11061,7 +8989,7 @@ } }, { - "id": "850f9ed9-1459-4be9-97f5-43480fdf422a", + "id": "1b527354-1650-4b8d-a182-4757d6a3f00b", "name": "Create SKU", "request": { "name": "Create SKU", @@ -11080,26 +9008,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -11119,6 +9028,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -11127,6 +9044,7 @@ "raw": "{\n \"ProductId\": 42,\n \"Name\": \"Size 10\",\n \"PackagedHeight\": 10,\n \"PackagedLength\": 10,\n \"PackagedWidth\": 10,\n \"PackagedWeightKg\": 10,\n \"Id\": 1,\n \"IsActive\": false,\n \"ActivateIfPossible\": true,\n \"RefId\": \"B096QW8Y8Z\",\n \"Ean\": \"8949461894984\",\n \"Height\": 1,\n \"Length\": 1,\n \"Width\": 1,\n \"WeightKg\": 1,\n \"CubicWeight\": 0.1667,\n \"IsKit\": false,\n \"CreationDate\": \"2020-01-25T15:51:29.2614605\",\n \"RewardValue\": 1,\n \"EstimatedDateArrival\": null,\n \"ManufacturerCode\": \"123\",\n \"CommercialConditionId\": 1,\n \"MeasurementUnit\": \"un\",\n \"UnitMultiplier\": 2,\n \"ModalType\": null,\n \"KitItensSellApart\": false,\n \"Videos\": [\n \"https://www.youtube.com/\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -11137,7 +9055,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "c5eb3683-2b36-473b-936c-4a0e4bfe37d9", + "id": "bc044c05-b71e-4277-90f6-60db078ebfd2", "name": "OK", "originalRequest": { "url": { @@ -11151,36 +9069,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -11199,9 +9090,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -11210,6 +9113,7 @@ "raw": "{\n \"ProductId\": 42,\n \"Name\": \"Size 10\",\n \"PackagedHeight\": 10,\n \"PackagedLength\": 10,\n \"PackagedWidth\": 10,\n \"PackagedWeightKg\": 10,\n \"Id\": 1,\n \"IsActive\": false,\n \"ActivateIfPossible\": true,\n \"RefId\": \"B096QW8Y8Z\",\n \"Ean\": \"8949461894984\",\n \"Height\": 1,\n \"Length\": 1,\n \"Width\": 1,\n \"WeightKg\": 1,\n \"CubicWeight\": 0.1667,\n \"IsKit\": false,\n \"CreationDate\": \"2020-01-25T15:51:29.2614605\",\n \"RewardValue\": 1,\n \"EstimatedDateArrival\": null,\n \"ManufacturerCode\": \"123\",\n \"CommercialConditionId\": 1,\n \"MeasurementUnit\": \"un\",\n \"UnitMultiplier\": 2,\n \"ModalType\": null,\n \"KitItensSellApart\": false,\n \"Videos\": [\n \"https://www.youtube.com/\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -11231,7 +9135,7 @@ { "listen": "test", "script": { - "id": "57f7cad0-f846-47cf-8014-f4a61ce16b78", + "id": "734b4018-168f-4b20-ab3c-f633ac9aae05", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/stockkeepingunit - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -11247,7 +9151,7 @@ } }, { - "id": "6423f0d2-425d-4db8-ace1-f241635e247e", + "id": "4845c20d-06fc-4b56-a9fb-d63eeb150a63", "name": "Get SKU ID by reference ID", "request": { "name": "Get SKU ID by reference ID", @@ -11269,6 +9173,10 @@ ], "query": [], "variable": [ + { + "type": "any", + "key": "refId" + }, { "disabled": false, "description": { @@ -11278,24 +9186,6 @@ "type": "any", "value": "0001", "key": "RefId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -11317,16 +9207,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "c753068f-eed3-4cbf-bf9b-079e97394fe4", + "id": "ec32a0b2-30d6-404b-afcd-d87db30f5cea", "name": "OK", "originalRequest": { "url": { @@ -11342,46 +9237,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU reference ID.", - "type": "text/plain" - }, - "type": "any", - "value": "0001", - "key": "RefId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -11403,6 +9261,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -11416,7 +9282,7 @@ "value": "application/json" } ], - "body": "\"1\"", + "body": "1", "cookie": [] } ], @@ -11424,7 +9290,7 @@ { "listen": "test", "script": { - "id": "11df200b-26b8-4cb7-95e2-f4c1230cdc31", + "id": "ced30959-b6c8-468e-9ccd-4593c162f35d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitidbyrefid/:refId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -11440,7 +9306,7 @@ } }, { - "id": "157601da-ca57-4904-8d5d-b72a3569fd53", + "id": "0e4971a9-d7a7-4dfc-97cd-8056cd060219", "name": "Get SKU by alternate ID", "request": { "name": "Get SKU by alternate ID", @@ -11471,24 +9337,6 @@ "type": "any", "value": "10", "key": "alternateId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -11510,16 +9358,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "83e2ffca-b315-4a84-83b8-a4e3fa481a20", + "id": "967a10a4-5980-481e-b332-9ef9258cf43a", "name": "OK", "originalRequest": { "url": { @@ -11535,46 +9388,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product EAN or `RefId`.", - "type": "text/plain" - }, - "type": "any", - "value": "10", - "key": "alternateId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -11596,6 +9412,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -11617,13 +9441,13 @@ { "listen": "test", "script": { - "id": "f3f31429-6bf1-4e9e-af22-5ce273a11111", + "id": "046f86a3-7724-482b-ba1b-83dcb0e6b676", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyalternateId/:alternateId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyalternateId/:alternateId - 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]::/api/catalog_system/pvt/sku/stockkeepingunitbyalternateId/:alternateId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"required\":[\"Id\",\"ProductId\",\"NameComplete\",\"ProductName\",\"ProductDescription\",\"SkuName\",\"IsActive\",\"IsTransported\",\"IsInventoried\",\"IsGiftCardRecharge\",\"ImageUrl\",\"DetailUrl\",\"CSCIdentification\",\"BrandId\",\"BrandName\",\"Dimension\",\"RealDimension\",\"ManufacturerCode\",\"IsKit\",\"KitItems\",\"Services\",\"Categories\",\"Attachments\",\"Collections\",\"SkuSellers\",\"SalesChannels\",\"Images\",\"SkuSpecifications\",\"ProductSpecifications\",\"ProductClustersIds\",\"ProductCategoryIds\",\"ProductGlobalCategoryId\",\"ProductCategories\",\"CommercialConditionId\",\"RewardValue\",\"AlternateIds\",\"AlternateIdValues\",\"EstimatedDateArrival\",\"MeasurementUnit\",\"UnitMultiplier\",\"InformationSource\",\"ModalType\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"ProductId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Product ID.\"},\"NameComplete\":{\"type\":\"string\",\"description\":\"Product name and SKU name combined.\"},\"ComplementName\":{\"type\":\"string\",\"description\":\"Product complement name.\"},\"ProductName\":{\"type\":\"string\",\"description\":\"Product name.\"},\"ProductDescription\":{\"type\":\"string\",\"description\":\"Product description. HTML is allowed.\"},\"ProductRefId\":{\"type\":\"string\",\"description\":\"Product reference ID.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"SKU tax code.\"},\"SkuName\":{\"type\":\"string\",\"description\":\"SKU name.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active or not.\"},\"IsTransported\":{\"type\":\"boolean\",\"deprecated\":true,\"description\":\"Deprecated field.\"},\"IsInventoried\":{\"type\":\"boolean\",\"deprecated\":true,\"description\":\"Deprecated field.\"},\"IsGiftCardRecharge\":{\"type\":\"boolean\",\"description\":\"Defines if the purchase of the SKU will generate reward value for the customer.\"},\"ImageUrl\":{\"type\":\"string\",\"description\":\"SKU image URL.\"},\"DetailUrl\":{\"type\":\"string\",\"description\":\"Product slug.\"},\"CSCIdentification\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU seller identification.\"},\"BrandId\":{\"type\":\"string\",\"description\":\"Brand ID.\"},\"BrandName\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"Dimension\":{\"required\":[\"cubicweight\",\"height\",\"length\",\"weight\",\"width\"],\"type\":\"object\",\"description\":\"Object containing the SKU dimensions to be used on the shipping calculation.\",\"properties\":{\"cubicweight\":{\"type\":\"number\",\"description\":\"SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"height\":{\"type\":\"number\",\"description\":\"SKU height.\"},\"length\":{\"type\":\"number\",\"description\":\"SKU length.\"},\"weight\":{\"type\":\"number\",\"description\":\"SKU weight.\"},\"width\":{\"type\":\"number\",\"description\":\"SKU width.\"}},\"example\":{\"cubicweight\":81.6833,\"height\":65,\"length\":58,\"weight\":10000,\"width\":130}},\"RealDimension\":{\"required\":[\"realCubicWeight\",\"realHeight\",\"realLength\",\"realWeight\",\"realWidth\"],\"type\":\"object\",\"description\":\"Object containing the real SKU dimensions, which appear in the product page.\",\"properties\":{\"realCubicWeight\":{\"type\":\"number\",\"description\":\"Real SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"realHeight\":{\"type\":\"number\",\"description\":\"Real SKU height.\"},\"realLength\":{\"type\":\"number\",\"description\":\"Real SKU length.\"},\"realWeight\":{\"type\":\"number\",\"description\":\"Real SKU weight.\"},\"realWidth\":{\"type\":\"number\",\"description\":\"Real SKU width.\"}},\"example\":{\"realCubicWeight\":274.1375,\"realHeight\":241,\"realLength\":65,\"realWeight\":9800,\"realWidth\":105}},\"ManufacturerCode\":{\"type\":\"string\",\"description\":\"Identifier provided by the manufacturers to identify their product. This field should be filled in if the product has a specific manufacturer's code.\"},\"IsKit\":{\"type\":\"boolean\",\"description\":\"Defines whether the SKU is made up of one or more SKUs (part of a kit) (`true`) or not (`false`). Must be enabled if you are adding a kit. Once activated, this definition cannot be reverted.\"},\"KitItems\":{\"type\":\"array\",\"description\":\"Array with SKU IDs of bundle components.\",\"items\":{\"type\":\"string\",\"description\":\"SKU ID of each bundle component.\"}},\"Services\":{\"type\":\"array\",\"description\":\"Array with service IDs that are related to the SKU.\",\"items\":{\"type\":\"string\",\"description\":\"Service IDs of each service related to the SKU.\"}},\"Categories\":{\"type\":\"array\",\"description\":\"Categories of the related product.\",\"items\":{\"type\":\"string\",\"description\":\"Category ID.\"}},\"CategoriesFullPath\":{\"type\":\"array\",\"description\":\"Path of categories of the related product.\",\"items\":{\"type\":\"string\",\"description\":\"Path composed by category IDs separated by `/`.\"}},\"Attachments\":{\"type\":\"array\",\"description\":\"Array with attachment IDs that are related to the product.\",\"items\":{\"required\":[\"Id\",\"Name\",\"Keys\",\"Fields\",\"IsActive\",\"IsRequired\"],\"type\":\"object\",\"description\":\"Object containing information about SKU attachments.\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment Name.\"},\"Keys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Attachment Keys.\"},\"Fields\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldName\",\"MaxCaracters\",\"DomainValues\"],\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment field name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters accepted in the attachment field.\"},\"DomainValues\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed key values.\"}},\"example\":{\"FieldName\":\"nome\",\"MaxCaracters\":\"20\",\"DomainValues\":\"Adalberto,Pedro,João\"}},\"description\":\"Array containing Attachment fields.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is active or not.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is required or not.\"}},\"example\":{\"Id\":3,\"Name\":\"Mensagem\",\"Keys\":[\"nome;20\",\"foto;40\"],\"Fields\":[{\"FieldName\":\"nome\",\"MaxCaracters\":\"20\",\"DomainValues\":\"Adalberto,Pedro,João\"},{\"FieldName\":\"foto\",\"MaxCaracters\":\"40\",\"DomainValues\":null}],\"IsActive\":true,\"IsRequired\":false}}},\"Collections\":{\"type\":\"array\",\"description\":\"Array with collections IDs that are related to the product.\",\"items\":{\"type\":\"string\",\"description\":\"Collection ID.\"}},\"SkuSellers\":{\"type\":\"array\",\"description\":\"Array with related sellers data.\",\"items\":{\"required\":[\"SellerId\",\"StockKeepingUnitId\",\"SellerStockKeepingUnitId\",\"IsActive\",\"FreightCommissionPercentage\",\"ProductCommissionPercentage\"],\"type\":\"object\",\"description\":\"Object containing related SKU sellers data.\",\"properties\":{\"SellerId\":{\"type\":\"string\",\"description\":\"SKU seller ID. This is the ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.\"},\"StockKeepingUnitId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"SellerStockKeepingUnitId\":{\"type\":\"string\",\"description\":\"SKU ID for the SKU seller.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active.\"},\"FreightCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller Freight Commission.\"},\"ProductCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller product Commission.\"}},\"example\":{\"SellerId\":\"1\",\"StockKeepingUnitId\":2001773,\"SellerStockKeepingUnitId\":\"2001773\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}}},\"SalesChannels\":{\"type\":\"array\",\"description\":\"Array of trade policy IDs.\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Trade policy ID.\"}},\"Images\":{\"type\":\"array\",\"description\":\"Array of objects with SKU image details.\",\"items\":{\"required\":[\"ImageUrl\",\"ImageName\",\"FileId\"],\"type\":\"object\",\"description\":\"Object containing SKU images details.\",\"properties\":{\"ImageUrl\":{\"type\":\"string\",\"description\":\"Image URL.\"},\"ImageName\":{\"type\":[\"string\",\"null\"],\"description\":\"Image label.\"},\"FileId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU image ID.\"}},\"example\":{\"ImageUrl\":\"http://ambienteqa.vteximg.com.br/arquivos/ids/168952/7508800GG.jpg\",\"ImageName\":\"\",\"FileId\":168952}}},\"SkuSpecifications\":{\"type\":\"array\",\"description\":\"Array with related SKU specifications.\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"description\":\"Object containing related SKU specifications.\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification field Name.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}},\"example\":{\"FieldId\":102,\"FieldName\":\"Cor\",\"FieldValueIds\":[266],\"FieldValues\":[\"Padrão\"]}}},\"ProductSpecifications\":{\"type\":\"array\",\"description\":\"Array with related product specifications.\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}},\"example\":{\"FieldId\":7,\"FieldName\":\"Faixa Etária\",\"FieldValueIds\":[58,56,55,52],\"FieldValues\":[\"5 a 6 anos\",\"7 a 8 anos\",\"9 a 10 anos\",\"Acima de 10 anos\"]}}},\"ProductClustersIds\":{\"type\":\"string\",\"description\":\"Product cluster IDs separated by comma (`,`).\"},\"PositionsInClusters\":{\"type\":\"object\",\"description\":\"Product clusters position in each cluster. Structure: \\\"{Product cluster ID}\\\": {Position}.\\n\\n`{Product cluster ID}` is a string, while `{Position}` is an integer.\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Position.\"}}},\"ProductClusterNames\":{\"type\":\"object\",\"description\":\"Product clusters names. Structure: \\\"{Product cluster ID}\\\": \\\"{Product cluster name}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster name.\"}}},\"ProductClusterHighlights\":{\"type\":\"object\",\"description\":\"Product clusters highlights. Structure: \\\"{Product cluster ID}\\\": \\\"{Product cluster name}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster highlight.\"}}},\"ProductCategoryIds\":{\"type\":\"string\",\"description\":\"Category path composed by category IDs separated by `/`.\"},\"IsDirectCategoryActive\":{\"type\":\"boolean\",\"description\":\"Indicates if the direct product category is active or not.\"},\"ProductGlobalCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Product global category ID.\"},\"ProductCategories\":{\"type\":\"object\",\"description\":\"Object containing product categories. Structure: \\\"{CategoryID}\\\": \\\"{CategoryName}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category name.\"}}},\"CommercialConditionId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Commercial condition ID, used to define SKU specific promotions or installment rules. In case of no specific condition, use `1` (default value). This field does not accept `0`. Learn more at [Registering a commercial condition](https://help.vtex.com/tutorial/registering-a-commercial-condition--tutorials_445).\",\"default\":1},\"RewardValue\":{\"type\":\"number\",\"description\":\"Credit that the customer receives when finalizing an order that includes the SKU. By filling this field out with `1`, the customer receives credit on the site in the selected currency, e.g. U$ 1.\"},\"AlternateIds\":{\"type\":\"object\",\"description\":\"Array with alternate SKU IDs, such as EAN and `RefId`.\",\"properties\":{\"Ean\":{\"type\":\"string\",\"description\":\"SKU EAN.\"},\"RefId\":{\"type\":\"string\",\"description\":\"SKU reference ID.\"}},\"example\":{\"Ean\":\"8781\",\"RefId\":\"878181\"}},\"AlternateIdValues\":{\"type\":\"array\",\"description\":\"Array with values of alternative SKU IDs.\",\"items\":{\"type\":\"string\",\"description\":\"Alternative SKU ID.\"}},\"EstimatedDateArrival\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU estimated arrival date in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format, when the product is on pre-sale. You must take into consideration both the launch date and the freight calculation for the arrival date.\"},\"MeasurementUnit\":{\"type\":\"string\",\"description\":\"Measurement unit. This field should only be used when it is necessary to convert the unit of measure for sale. For example, if a product is sold in boxes, but customers want to buy per square meter (m²). In common cases, use `\\\"un\\\"`.\"},\"UnitMultiplier\":{\"type\":\"number\",\"description\":\"Multiple number of SKU. If the multiplier is 5.0000, the product can be added in multiple quantities of 5, 10, 15, 20, onward.\"},\"InformationSource\":{\"type\":[\"string\",\"null\"],\"description\":\"Information source.\"},\"ModalType\":{\"type\":[\"string\",\"null\"],\"description\":\"Links an unusual type of SKU that needs special transportation, such as meat, glass, or a mattress, to a carrier specialized in delivering it. This field should be filled in with the name of the modal (e.g. \\\"Chemicals\\\" or \\\"Refrigerated products\\\"). To learn more about this feature, read our articles [How the modal works](https://help.vtex.com/en/tutorial/how-does-the-modal-work--tutorials_125) and [Setting up modal for carriers](https://help.vtex.com/en/tutorial/configure-modal--3jhLqxuPhuiq24UoykCcqy).\"},\"KeyWords\":{\"type\":[\"string\",\"null\"],\"description\":\"Keywords related to the product.\"},\"ReleaseDate\":{\"type\":[\"string\",\"null\"],\"description\":\"Release date of the product.\"},\"ProductIsVisible\":{\"type\":\"boolean\",\"description\":\"Defines if the product is visible or not.\"},\"ShowIfNotAvailable\":{\"type\":\"boolean\",\"description\":\"Defines if the product will be shown if it is not available.\"},\"IsProductActive\":{\"type\":\"boolean\",\"description\":\"Defines if the product is active or not.\"},\"ProductFinalScore\":{\"type\":\"integer\",\"description\":\"Product final score.\"}},\"example\":{\"Id\":310118450,\"ProductId\":2,\"NameComplete\":\"Caixa de Areia Azul Petmate sku test\",\"ComplementName\":\"\",\"ProductName\":\"Caixa de Areia Azul Petmate\",\"ProductDescription\":\"\",\"ProductRefId\":\"\",\"TaxCode\":\"\",\"SkuName\":\"sku test\",\"IsActive\":true,\"IsTransported\":true,\"IsInventoried\":true,\"IsGiftCardRecharge\":false,\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451-55-55/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"DetailUrl\":\"/caixa-de-areia-azul-petmate/p\",\"CSCIdentification\":null,\"BrandId\":\"2000005\",\"BrandName\":\"Petmate\",\"IsBrandActive\":true,\"Dimension\":{\"cubicweight\":0.2083,\"height\":10,\"length\":10,\"weight\":10,\"width\":10},\"RealDimension\":{\"realCubicWeight\":0,\"realHeight\":0,\"realLength\":0,\"realWeight\":0,\"realWidth\":0},\"ManufacturerCode\":\"123\",\"IsKit\":false,\"KitItems\":[],\"Services\":[],\"Categories\":[],\"CategoriesFullPath\":[\"/3/15/\",\"/3/\",\"/1/\"],\"Attachments\":[],\"Collections\":[],\"SkuSellers\":[{\"SellerId\":\"1\",\"StockKeepingUnitId\":310118450,\"SellerStockKeepingUnitId\":\"310118450\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}],\"SalesChannels\":[1,3],\"Images\":[{\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"ImageName\":null,\"FileId\":155451}],\"Videos\":[],\"SkuSpecifications\":[],\"ProductSpecifications\":[],\"ProductClustersIds\":\"151,158\",\"PositionsInClusters\":{\"151\":1,\"158\":2},\"ProductClusterNames\":{\"151\":\"asdfghj\",\"158\":\"Coleção halloween\"},\"ProductClusterHighlights\":{\"151\":\"asdfghj\"},\"ProductCategoryIds\":\"/3/15/\",\"IsDirectCategoryActive\":true,\"ProductGlobalCategoryId\":5000,\"ProductCategories\":{\"1\":\"Alimentação\",\"3\":\"Higiene\",\"15\":\"Caixa de Areia\"},\"CommercialConditionId\":1,\"RewardValue\":0,\"AlternateIds\":{\"RefId\":\"1\"},\"AlternateIdValues\":[\"1\"],\"EstimatedDateArrival\":null,\"MeasurementUnit\":\"un\",\"UnitMultiplier\":1,\"InformationSource\":null,\"ModalType\":null,\"KeyWords\":\"\",\"ReleaseDate\":\"2020-01-06T00:00:00Z\",\"ProductIsVisible\":true,\"ShowIfNotAvailable\":true,\"IsProductActive\":true,\"ProductFinalScore\":0}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyalternateId/:alternateId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"required\":[\"Id\",\"ProductId\",\"NameComplete\",\"ProductName\",\"ProductDescription\",\"SkuName\",\"IsActive\",\"IsTransported\",\"IsInventoried\",\"IsGiftCardRecharge\",\"ImageUrl\",\"DetailUrl\",\"CSCIdentification\",\"BrandId\",\"BrandName\",\"Dimension\",\"RealDimension\",\"ManufacturerCode\",\"IsKit\",\"KitItems\",\"Services\",\"Categories\",\"Attachments\",\"Collections\",\"SkuSellers\",\"SalesChannels\",\"Images\",\"SkuSpecifications\",\"ProductSpecifications\",\"ProductClustersIds\",\"ProductCategoryIds\",\"ProductGlobalCategoryId\",\"ProductCategories\",\"CommercialConditionId\",\"RewardValue\",\"AlternateIds\",\"AlternateIdValues\",\"EstimatedDateArrival\",\"MeasurementUnit\",\"UnitMultiplier\",\"InformationSource\",\"ModalType\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"ProductId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Product ID.\"},\"NameComplete\":{\"type\":\"string\",\"description\":\"Product name and SKU name combined.\"},\"ComplementName\":{\"type\":\"string\",\"description\":\"Product complement name.\"},\"ProductName\":{\"type\":\"string\",\"description\":\"Product name.\"},\"ProductDescription\":{\"type\":\"string\",\"description\":\"Product description. HTML is allowed.\"},\"ProductRefId\":{\"type\":\"string\",\"description\":\"Product reference ID.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"SKU tax code.\"},\"SkuName\":{\"type\":\"string\",\"description\":\"SKU name.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active or not.\"},\"IsTransported\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\"},\"IsInventoried\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\"},\"IsGiftCardRecharge\":{\"type\":\"boolean\",\"description\":\"Defines if the purchase of the SKU will generate reward value for the customer.\"},\"ImageUrl\":{\"type\":\"string\",\"description\":\"SKU image URL.\"},\"DetailUrl\":{\"type\":\"string\",\"description\":\"Product slug.\"},\"CSCIdentification\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU seller identification.\"},\"BrandId\":{\"type\":\"string\",\"description\":\"Brand ID.\"},\"BrandName\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"Dimension\":{\"required\":[\"cubicweight\",\"height\",\"length\",\"weight\",\"width\"],\"type\":\"object\",\"description\":\"Object containing the SKU dimensions to be used on the shipping calculation.\",\"properties\":{\"cubicweight\":{\"type\":\"number\",\"description\":\"SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"height\":{\"type\":\"number\",\"description\":\"SKU height.\"},\"length\":{\"type\":\"number\",\"description\":\"SKU length.\"},\"weight\":{\"type\":\"number\",\"description\":\"SKU weight.\"},\"width\":{\"type\":\"number\",\"description\":\"SKU width.\"}}},\"RealDimension\":{\"required\":[\"realCubicWeight\",\"realHeight\",\"realLength\",\"realWeight\",\"realWidth\"],\"type\":\"object\",\"description\":\"Object containing the real SKU dimensions, which appear in the product page.\",\"properties\":{\"realCubicWeight\":{\"type\":\"number\",\"description\":\"Real SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"realHeight\":{\"type\":\"number\",\"description\":\"Real SKU height.\"},\"realLength\":{\"type\":\"number\",\"description\":\"Real SKU length.\"},\"realWeight\":{\"type\":\"number\",\"description\":\"Real SKU weight.\"},\"realWidth\":{\"type\":\"number\",\"description\":\"Real SKU width.\"}}},\"ManufacturerCode\":{\"type\":\"string\",\"description\":\"Identifier provided by the manufacturers to identify their product. This field should be filled in if the product has a specific manufacturer's code.\"},\"IsKit\":{\"type\":\"boolean\",\"description\":\"Defines whether the SKU is made up of one or more SKUs (part of a kit) (`true`) or not (`false`). Must be enabled if you are adding a kit. Once activated, this definition cannot be reverted.\"},\"KitItems\":{\"type\":\"array\",\"description\":\"Array with SKU IDs of bundle components.\",\"items\":{\"type\":\"string\",\"description\":\"SKU ID of each bundle component.\"}},\"Services\":{\"type\":\"array\",\"description\":\"Array with service IDs that are related to the SKU.\",\"items\":{\"type\":\"string\",\"description\":\"Service IDs of each service related to the SKU.\"}},\"Categories\":{\"type\":\"array\",\"description\":\"Categories of the related product.\",\"items\":{\"type\":\"string\",\"description\":\"Category ID.\"}},\"CategoriesFullPath\":{\"type\":\"array\",\"description\":\"Path of categories of the related product.\",\"items\":{\"type\":\"string\",\"description\":\"Path composed by category IDs separated by `/`.\"}},\"Attachments\":{\"type\":\"array\",\"description\":\"Array with attachment IDs that are related to the product.\",\"items\":{\"required\":[\"Id\",\"Name\",\"Keys\",\"Fields\",\"IsActive\",\"IsRequired\"],\"type\":\"object\",\"description\":\"Object containing information about SKU attachments.\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment Name.\"},\"Keys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Attachment Keys.\"},\"Fields\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldName\",\"MaxCaracters\",\"DomainValues\"],\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment field name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters accepted in the attachment field.\"},\"DomainValues\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed key values.\"}}},\"description\":\"Array containing Attachment fields.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is active or not.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is required or not.\"}}}},\"Collections\":{\"type\":\"array\",\"description\":\"Array with collections IDs that are related to the product.\",\"items\":{\"type\":\"string\",\"description\":\"Collection ID.\"}},\"SkuSellers\":{\"type\":\"array\",\"description\":\"Array with related sellers data.\",\"items\":{\"required\":[\"SellerId\",\"StockKeepingUnitId\",\"SellerStockKeepingUnitId\",\"IsActive\",\"FreightCommissionPercentage\",\"ProductCommissionPercentage\"],\"type\":\"object\",\"description\":\"Object containing related SKU sellers data.\",\"properties\":{\"SellerId\":{\"type\":\"string\",\"description\":\"SKU seller ID. This is the ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.\"},\"StockKeepingUnitId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"SellerStockKeepingUnitId\":{\"type\":\"string\",\"description\":\"SKU ID for the SKU seller.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active.\"},\"FreightCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller Freight Commission.\"},\"ProductCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller product Commission.\"}}}},\"SalesChannels\":{\"type\":\"array\",\"description\":\"Array of trade policy IDs.\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Trade policy ID.\"}},\"Images\":{\"type\":\"array\",\"description\":\"Array of objects with SKU image details.\",\"items\":{\"required\":[\"ImageUrl\",\"ImageName\",\"FileId\"],\"type\":\"object\",\"description\":\"Object containing SKU images details.\",\"properties\":{\"ImageUrl\":{\"type\":\"string\",\"description\":\"Image URL.\"},\"ImageName\":{\"type\":[\"string\",\"null\"],\"description\":\"Image label.\"},\"FileId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU image ID.\"}}}},\"SkuSpecifications\":{\"type\":\"array\",\"description\":\"Array with related SKU specifications.\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"description\":\"Object containing related SKU specifications.\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification field Name.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}}}},\"ProductSpecifications\":{\"type\":\"array\",\"description\":\"Array with related product specifications.\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}}}},\"ProductClustersIds\":{\"type\":\"string\",\"description\":\"Product cluster IDs separated by comma (`,`).\"},\"PositionsInClusters\":{\"type\":\"object\",\"description\":\"Product clusters position in each cluster. Structure: \\\"{Product cluster ID}\\\": {Position}.\\n\\n`{Product cluster ID}` is a string, while `{Position}` is an integer.\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Position.\"}}},\"ProductClusterNames\":{\"type\":\"object\",\"description\":\"Product clusters names. Structure: \\\"{Product cluster ID}\\\": \\\"{Product cluster name}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster name.\"}}},\"ProductClusterHighlights\":{\"type\":\"object\",\"description\":\"Product clusters highlights. Structure: \\\"{Product cluster ID}\\\": \\\"{Product cluster name}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster highlight.\"}}},\"ProductCategoryIds\":{\"type\":\"string\",\"description\":\"Category path composed by category IDs separated by `/`.\"},\"IsDirectCategoryActive\":{\"type\":\"boolean\",\"description\":\"Indicates if the direct product category is active or not.\"},\"ProductGlobalCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Product global category ID.\"},\"ProductCategories\":{\"type\":\"object\",\"description\":\"Object containing product categories. Structure: \\\"{CategoryID}\\\": \\\"{CategoryName}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category name.\"}}},\"CommercialConditionId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Commercial condition ID, used to define SKU specific promotions or installment rules. In case of no specific condition, use `1` (default value). This field does not accept `0`. Learn more at [Registering a commercial condition](https://help.vtex.com/tutorial/registering-a-commercial-condition--tutorials_445).\",\"default\":1},\"RewardValue\":{\"type\":\"number\",\"description\":\"Credit that the customer receives when finalizing an order that includes the SKU. By filling this field out with `1`, the customer receives credit on the site in the selected currency, e.g. U$ 1.\"},\"AlternateIds\":{\"type\":\"object\",\"description\":\"Array with alternate SKU IDs, such as EAN and `RefId`.\",\"properties\":{\"Ean\":{\"type\":\"string\",\"description\":\"SKU EAN.\"},\"RefId\":{\"type\":\"string\",\"description\":\"SKU reference ID.\"}}},\"AlternateIdValues\":{\"type\":\"array\",\"description\":\"Array with values of alternative SKU IDs.\",\"items\":{\"type\":\"string\",\"description\":\"Alternative SKU ID.\"}},\"EstimatedDateArrival\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU estimated arrival date in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format, when the product is on pre-sale. You must take into consideration both the launch date and the freight calculation for the arrival date.\"},\"MeasurementUnit\":{\"type\":\"string\",\"description\":\"Measurement unit. This field should only be used when it is necessary to convert the unit of measure for sale. For example, if a product is sold in boxes, but customers want to buy per square meter (m²). In common cases, use `\\\"un\\\"`.\"},\"UnitMultiplier\":{\"type\":\"number\",\"description\":\"Multiple number of SKU. If the multiplier is 5.0000, the product can be added in multiple quantities of 5, 10, 15, 20, onward.\"},\"InformationSource\":{\"type\":[\"string\",\"null\"],\"description\":\"Information source.\"},\"ModalType\":{\"type\":[\"string\",\"null\"],\"description\":\"Links an unusual type of SKU that needs special transportation, such as meat, glass, or a mattress, to a carrier specialized in delivering it. This field should be filled in with the name of the modal (e.g. \\\"Chemicals\\\" or \\\"Refrigerated products\\\"). To learn more about this feature, read our articles [How the modal works](https://help.vtex.com/en/tutorial/how-does-the-modal-work--tutorials_125) and [Setting up modal for carriers](https://help.vtex.com/en/tutorial/configure-modal--3jhLqxuPhuiq24UoykCcqy).\"},\"KeyWords\":{\"type\":[\"string\",\"null\"],\"description\":\"Keywords related to the product.\"},\"ReleaseDate\":{\"type\":[\"string\",\"null\"],\"description\":\"Release date of the product.\"},\"ProductIsVisible\":{\"type\":\"boolean\",\"description\":\"Defines if the product is visible or not.\"},\"ShowIfNotAvailable\":{\"type\":\"boolean\",\"description\":\"Defines if the product will be shown if it is not available.\"},\"IsProductActive\":{\"type\":\"boolean\",\"description\":\"Defines if the product is active or not.\"},\"ProductFinalScore\":{\"type\":\"integer\",\"description\":\"Product final score.\"}},\"example\":{\"Id\":310118450,\"ProductId\":2,\"NameComplete\":\"Caixa de Areia Azul Petmate sku test\",\"ComplementName\":\"\",\"ProductName\":\"Caixa de Areia Azul Petmate\",\"ProductDescription\":\"\",\"ProductRefId\":\"\",\"TaxCode\":\"\",\"SkuName\":\"sku test\",\"IsActive\":true,\"IsTransported\":true,\"IsInventoried\":true,\"IsGiftCardRecharge\":false,\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451-55-55/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"DetailUrl\":\"/caixa-de-areia-azul-petmate/p\",\"CSCIdentification\":null,\"BrandId\":\"2000005\",\"BrandName\":\"Petmate\",\"IsBrandActive\":true,\"Dimension\":{\"cubicweight\":0.2083,\"height\":10,\"length\":10,\"weight\":10,\"width\":10},\"RealDimension\":{\"realCubicWeight\":0,\"realHeight\":0,\"realLength\":0,\"realWeight\":0,\"realWidth\":0},\"ManufacturerCode\":\"123\",\"IsKit\":false,\"KitItems\":[],\"Services\":[],\"Categories\":[],\"CategoriesFullPath\":[\"/3/15/\",\"/3/\",\"/1/\"],\"Attachments\":[],\"Collections\":[],\"SkuSellers\":[{\"SellerId\":\"1\",\"StockKeepingUnitId\":310118450,\"SellerStockKeepingUnitId\":\"310118450\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}],\"SalesChannels\":[1,3],\"Images\":[{\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"ImageName\":null,\"FileId\":155451}],\"Videos\":[],\"SkuSpecifications\":[],\"ProductSpecifications\":[],\"ProductClustersIds\":\"151,158\",\"PositionsInClusters\":{\"151\":1,\"158\":2},\"ProductClusterNames\":{\"151\":\"asdfghj\",\"158\":\"Coleção halloween\"},\"ProductClusterHighlights\":{\"151\":\"asdfghj\"},\"ProductCategoryIds\":\"/3/15/\",\"IsDirectCategoryActive\":true,\"ProductGlobalCategoryId\":5000,\"ProductCategories\":{\"1\":\"Alimentação\",\"3\":\"Higiene\",\"15\":\"Caixa de Areia\"},\"CommercialConditionId\":1,\"RewardValue\":0,\"AlternateIds\":{\"RefId\":\"1\"},\"AlternateIdValues\":[\"1\"],\"EstimatedDateArrival\":null,\"MeasurementUnit\":\"un\",\"UnitMultiplier\":1,\"InformationSource\":null,\"ModalType\":null,\"KeyWords\":\"\",\"ReleaseDate\":\"2020-01-06T00:00:00Z\",\"ProductIsVisible\":true,\"ShowIfNotAvailable\":true,\"IsProductActive\":true,\"ProductFinalScore\":0}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyalternateId/:alternateId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -11633,7 +9457,7 @@ } }, { - "id": "6cffb2ae-1ac2-4bf3-b776-20a727a49bb2", + "id": "53632582-ce33-4661-82b0-2844f74fa121", "name": "Get SKU list by product ID", "request": { "name": "Get SKU list by product ID", @@ -11664,24 +9488,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -11703,16 +9509,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "c4c89c7b-5494-4fea-9495-9b648f9a2039", + "id": "692df16a-fba9-4e39-b3fe-996c62ddeaef", "name": "OK", "originalRequest": { "url": { @@ -11728,46 +9539,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -11789,6 +9563,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -11810,13 +9592,13 @@ { "listen": "test", "script": { - "id": "84d93010-e50c-45f9-8030-06bde399cdb1", + "id": "0432545c-853c-4b53-ae27-99747c5fc0f2", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitByProductId/:productId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitByProductId/:productId - 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]::/api/catalog_system/pvt/sku/stockkeepingunitByProductId/:productId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"description\":\"Array with information of all SKUs with the same product ID.\",\"items\":{\"type\":\"object\",\"properties\":{\"IsPersisted\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is persisted.\"},\"IsRemoved\":{\"type\":\"boolean\",\"deprecated\":true,\"description\":\"Defines if the SKU is removed.\"},\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"ProductId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Product ID.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active or not.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU name.\"},\"Height\":{\"type\":\"number\",\"description\":\"SKU height.\"},\"RealHeight\":{\"type\":[\"number\",\"null\"],\"description\":\"Real SKU height.\"},\"Width\":{\"type\":\"number\",\"description\":\"SKU width.\"},\"RealWidth\":{\"type\":[\"number\",\"null\"],\"description\":\"Real SKU width.\"},\"Length\":{\"type\":\"number\",\"description\":\"SKU length.\"},\"RealLength\":{\"type\":[\"number\",\"null\"],\"description\":\"Real SKU length.\"},\"WeightKg\":{\"type\":[\"number\",\"null\"],\"description\":\"Weight of the SKU in the measurement [configured in the store](https://help.vtex.com/en/tutorial/filling-in-system-settings--tutorials_269), which by default is in grams.\"},\"RealWeightKg\":{\"type\":[\"number\",\"null\"],\"description\":\"Real weight of the SKU in the measurement unit [configured in the store](https://help.vtex.com/en/tutorial/filling-in-system-settings--tutorials_269), which by default is in grams.\"},\"ModalId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Delivery method (modal type) ID.\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product reference ID.\"},\"CubicWeight\":{\"type\":\"number\",\"description\":\"[Cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"IsKit\":{\"type\":\"boolean\",\"description\":\"Defines whether the SKU is made up of one or more SKUs (part of a kit) (`true`) or not (`false`). Must be enabled if you are adding a kit. Once activated, this definition cannot be reverted.\"},\"IsDynamicKit\":{\"type\":[\"string\",\"null\"],\"deprecated\":true,\"description\":\"Deprecated field.\"},\"InternalNote\":{\"type\":[\"string\",\"null\"],\"description\":\"Internal note.\"},\"DateUpdated\":{\"type\":\"string\",\"description\":\"Date when the product was updated for the most recent time.\"},\"RewardValue\":{\"type\":[\"number\",\"null\"],\"description\":\"Credit that the customer receives when finalizing an order that includes the SKU. By filling this field out with `1`, the customer receives credit on the site in the selected currency, e.g. U$ 1.\"},\"CommercialConditionId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Commercial condition ID, used to define SKU specific promotions or installment rules. In case of no specific condition, use `1` (default value). This field does not accept `0`. Learn more at [Registering a commercial condition](https://help.vtex.com/tutorial/registering-a-commercial-condition--tutorials_445).\",\"default\":1},\"EstimatedDateArrival\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU estimated arrival date in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format, when the product is on pre-sale. You must take into consideration both the launch date and the freight calculation for the arrival date.\"},\"FlagKitItensSellApart\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU bundle items can be sold separately.\"},\"ManufacturerCode\":{\"type\":\"string\",\"description\":\"Identifier provided by the manufacturers to identify their product. This field should be filled in if the product has a specific manufacturer's code.\"},\"ReferenceStockKeepingUnitId\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU reference ID.\"},\"Position\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU position.\"},\"ActivateIfPossible\":{\"type\":\"boolean\",\"description\":\"When set to `true`, this attribute will automatically update the SKU as active once associated with an image or an active component.\"},\"MeasurementUnit\":{\"type\":\"string\",\"description\":\"Measurement unit. This field should only be used when it is necessary to convert the unit of measure for sale. For example, if a product is sold in boxes, but customers want to buy per square meter (m²). In common cases, use `\\\"un\\\"`.\"},\"UnitMultiplier\":{\"type\":\"number\",\"description\":\"Multiple number of SKU. If the multiplier is 5.0000, the product can be added in multiple quantities of 5, 10, 15, 20, onward.\"},\"IsInventoried\":{\"type\":[\"boolean\",\"null\"],\"deprecated\":true,\"description\":\"Deprecated field.\"},\"IsTransported\":{\"type\":[\"boolean\",\"null\"],\"deprecated\":true,\"description\":\"Deprecated field.\"},\"IsGiftCardRecharge\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Defines if the purchase of the SKU will generate reward value for the customer.\"},\"ModalType\":{\"type\":[\"string\",\"null\"],\"description\":\"Links an unusual type of SKU that needs special transportation, such as meat, glass, or a mattress, to a carrier specialized in delivering it. This field should be filled in with the name of the modal (e.g. \\\"Chemicals\\\" or \\\"Refrigerated products\\\"). To learn more about this feature, read our articles [How the modal works](https://help.vtex.com/en/tutorial/how-does-the-modal-work--tutorials_125) and [Setting up modal for carriers](https://help.vtex.com/en/tutorial/configure-modal--3jhLqxuPhuiq24UoykCcqy).\"},\"isKitOptimized\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is an optimized bundle.\"}},\"example\":{\"IsPersisted\":true,\"Id\":1,\"ProductId\":1,\"IsActive\":true,\"Name\":\"Ração Royal Canin Feline Urinary 500g\",\"Height\":6.5,\"RealHeight\":2.2,\"Width\":14,\"RealWidth\":3.3,\"Length\":24,\"RealLength\":4.4,\"WeightKg\":550,\"RealWeightKg\":1.1,\"ModalId\":1,\"RefId\":\"0001\",\"CubicWeight\":1,\"IsKit\":false,\"InternalNote\":null,\"DateUpdated\":\"2021-10-29T18:25:00\",\"RewardValue\":null,\"CommercialConditionId\":1,\"EstimatedDateArrival\":null,\"FlagKitItensSellApart\":false,\"ManufacturerCode\":\"\",\"ReferenceStockKeepingUnitId\":null,\"Position\":1,\"ActivateIfPossible\":true,\"MeasurementUnit\":\"un\",\"UnitMultiplier\":300,\"IsInventoried\":true,\"IsTransported\":true,\"IsGiftCardRecharge\":false,\"ModalType\":null,\"isKitOptimized\":false}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitByProductId/:productId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"array\",\"description\":\"Array with information of all SKUs with the same product ID.\",\"items\":{\"type\":\"object\",\"properties\":{\"IsPersisted\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is persisted.\"},\"IsRemoved\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is removed.\"},\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"ProductId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Product ID.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active or not.\"},\"Name\":{\"type\":\"string\",\"description\":\"SKU name.\"},\"Height\":{\"type\":\"number\",\"description\":\"SKU height.\"},\"RealHeight\":{\"type\":[\"number\",\"null\"],\"description\":\"Real SKU height.\"},\"Width\":{\"type\":\"number\",\"description\":\"SKU width.\"},\"RealWidth\":{\"type\":[\"number\",\"null\"],\"description\":\"Real SKU width.\"},\"Length\":{\"type\":\"number\",\"description\":\"SKU length.\"},\"RealLength\":{\"type\":[\"number\",\"null\"],\"description\":\"Real SKU length.\"},\"WeightKg\":{\"type\":[\"number\",\"null\"],\"description\":\"Weight of the SKU in the measurement [configured in the store](https://help.vtex.com/en/tutorial/filling-in-system-settings--tutorials_269), which by default is in grams.\"},\"RealWeightKg\":{\"type\":[\"number\",\"null\"],\"description\":\"Real weight of the SKU in the measurement unit [configured in the store](https://help.vtex.com/en/tutorial/filling-in-system-settings--tutorials_269), which by default is in grams.\"},\"ModalId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Delivery method (modal type) ID.\"},\"RefId\":{\"type\":\"string\",\"description\":\"Product reference ID.\"},\"CubicWeight\":{\"type\":\"number\",\"description\":\"[Cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"IsKit\":{\"type\":\"boolean\",\"description\":\"Defines whether the SKU is made up of one or more SKUs (part of a kit) (`true`) or not (`false`). Must be enabled if you are adding a kit. Once activated, this definition cannot be reverted.\"},\"IsDynamicKit\":{\"type\":[\"string\",\"null\"],\"description\":\"Deprecated field.\"},\"InternalNote\":{\"type\":[\"string\",\"null\"],\"description\":\"Internal note.\"},\"DateUpdated\":{\"type\":\"string\",\"description\":\"Date when the product was updated for the most recent time.\"},\"RewardValue\":{\"type\":[\"number\",\"null\"],\"description\":\"Credit that the customer receives when finalizing an order that includes the SKU. By filling this field out with `1`, the customer receives credit on the site in the selected currency, e.g. U$ 1.\"},\"CommercialConditionId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Commercial condition ID, used to define SKU specific promotions or installment rules. In case of no specific condition, use `1` (default value). This field does not accept `0`. Learn more at [Registering a commercial condition](https://help.vtex.com/tutorial/registering-a-commercial-condition--tutorials_445).\",\"default\":1},\"EstimatedDateArrival\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU estimated arrival date in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format, when the product is on pre-sale. You must take into consideration both the launch date and the freight calculation for the arrival date.\"},\"FlagKitItensSellApart\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU bundle items can be sold separately.\"},\"ManufacturerCode\":{\"type\":\"string\",\"description\":\"Identifier provided by the manufacturers to identify their product. This field should be filled in if the product has a specific manufacturer's code.\"},\"ReferenceStockKeepingUnitId\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU reference ID.\"},\"Position\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU position.\"},\"ActivateIfPossible\":{\"type\":\"boolean\",\"description\":\"When set to `true`, this attribute will automatically update the SKU as active once associated with an image or an active component.\"},\"MeasurementUnit\":{\"type\":\"string\",\"description\":\"Measurement unit. This field should only be used when it is necessary to convert the unit of measure for sale. For example, if a product is sold in boxes, but customers want to buy per square meter (m²). In common cases, use `\\\"un\\\"`.\"},\"UnitMultiplier\":{\"type\":\"number\",\"description\":\"Multiple number of SKU. If the multiplier is 5.0000, the product can be added in multiple quantities of 5, 10, 15, 20, onward.\"},\"IsInventoried\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Deprecated field.\"},\"IsTransported\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Deprecated field.\"},\"IsGiftCardRecharge\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Defines if the purchase of the SKU will generate reward value for the customer.\"},\"ModalType\":{\"type\":[\"string\",\"null\"],\"description\":\"Links an unusual type of SKU that needs special transportation, such as meat, glass, or a mattress, to a carrier specialized in delivering it. This field should be filled in with the name of the modal (e.g. \\\"Chemicals\\\" or \\\"Refrigerated products\\\"). To learn more about this feature, read our articles [How the modal works](https://help.vtex.com/en/tutorial/how-does-the-modal-work--tutorials_125) and [Setting up modal for carriers](https://help.vtex.com/en/tutorial/configure-modal--3jhLqxuPhuiq24UoykCcqy).\"},\"isKitOptimized\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is an optimized bundle.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitByProductId/:productId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -11826,7 +9608,7 @@ } }, { - "id": "50458daf-6410-4557-8fc8-3e5f848b943a", + "id": "d0a7c3b8-2606-40f8-9cf4-84dbdef13d73", "name": "Retrieve SKU ID list by reference ID list", "request": { "name": "Retrieve SKU ID list by reference ID list", @@ -11846,26 +9628,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -11885,6 +9648,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -11893,6 +9664,7 @@ "raw": "[\n \"799\",\n \"799\"\n]", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -11903,7 +9675,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "7715ab42-c1cd-4e11-a156-3e90d211886c", + "id": "e1137d40-1c5c-4d96-ada6-1d50ba977717", "name": "OK", "originalRequest": { "url": { @@ -11918,36 +9690,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -11966,9 +9711,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -11977,6 +9734,7 @@ "raw": "[\n \"799\",\n \"799\"\n]", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -11997,7 +9755,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "15d61292-5777-48a2-91e7-893418a908f8", + "id": "d818e764-43d7-460d-9002-c9f618ffc2b5", "name": "Internal Server Error", "originalRequest": { "url": { @@ -12012,36 +9770,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -12059,6 +9790,18 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -12067,6 +9810,7 @@ "raw": "[\n \"799\",\n \"799\"\n]", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -12074,13 +9818,7 @@ }, "status": "Internal Server Error", "code": 500, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -12088,7 +9826,7 @@ { "listen": "test", "script": { - "id": "8c9f80d5-d762-4287-bdf1-9e07ac514cef", + "id": "a06d3caa-d902-4d19-99c4-bb27907afefa", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pub/sku/stockkeepingunitidsbyrefids - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -12104,7 +9842,7 @@ } }, { - "id": "9e174ee2-24d2-46d4-bd15-a9bd6ed6a65d", + "id": "1cc4a02a-f629-4606-83ae-16539c882992", "name": "Get SKU", "request": { "name": "Get SKU", @@ -12134,24 +9872,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -12173,16 +9893,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "02d1316a-8c63-44c8-869e-8920f9550885", + "id": "7c6ea237-4e65-4b1f-bc92-b61eff272aa9", "name": "OK", "originalRequest": { "url": { @@ -12197,46 +9922,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU unique identifier number.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -12258,6 +9946,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -12279,7 +9975,7 @@ { "listen": "test", "script": { - "id": "6fad272a-aea6-4cfa-b52a-6278228ace76", + "id": "3e715626-eabc-4c4c-8fa4-d871904f0eeb", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -12295,7 +9991,7 @@ } }, { - "id": "ad69dec1-96af-4f89-986d-e7f4b1760159", + "id": "32590599-2244-447c-a25b-165095564946", "name": "Update SKU", "request": { "name": "Update SKU", @@ -12325,24 +10021,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -12364,6 +10042,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -12372,6 +10058,7 @@ "raw": "{\n \"ProductId\": 42,\n \"Name\": \"Size 10\",\n \"PackagedHeight\": 10,\n \"PackagedLength\": 10,\n \"PackagedWidth\": 10,\n \"PackagedWeightKg\": 10,\n \"IsActive\": false,\n \"ActivateIfPossible\": false,\n \"RefId\": \"B096QW8Y8Z\",\n \"Height\": 1,\n \"Length\": 1,\n \"Width\": 1,\n \"WeightKg\": 1,\n \"CubicWeight\": 0.1667,\n \"IsKit\": false,\n \"CreationDate\": \"2020-01-25T15:51:00\",\n \"RewardValue\": 1,\n \"EstimatedDateArrival\": null,\n \"ManufacturerCode\": \"123\",\n \"CommercialConditionId\": 1,\n \"MeasurementUnit\": \"un\",\n \"UnitMultiplier\": 2,\n \"ModalType\": null,\n \"KitItensSellApart\": false,\n \"Videos\": [\n \"https://www.youtube.com/\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -12382,7 +10069,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "9483b0dc-a5e3-470c-aed0-88626f7385ad", + "id": "ce62c82a-6eb5-465d-8207-762e01b257ba", "name": "OK", "originalRequest": { "url": { @@ -12397,46 +10084,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -12455,9 +10105,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -12466,6 +10128,7 @@ "raw": "{\n \"ProductId\": 42,\n \"Name\": \"Size 10\",\n \"PackagedHeight\": 10,\n \"PackagedLength\": 10,\n \"PackagedWidth\": 10,\n \"PackagedWeightKg\": 10,\n \"IsActive\": false,\n \"ActivateIfPossible\": false,\n \"RefId\": \"B096QW8Y8Z\",\n \"Height\": 1,\n \"Length\": 1,\n \"Width\": 1,\n \"WeightKg\": 1,\n \"CubicWeight\": 0.1667,\n \"IsKit\": false,\n \"CreationDate\": \"2020-01-25T15:51:00\",\n \"RewardValue\": 1,\n \"EstimatedDateArrival\": null,\n \"ManufacturerCode\": \"123\",\n \"CommercialConditionId\": 1,\n \"MeasurementUnit\": \"un\",\n \"UnitMultiplier\": 2,\n \"ModalType\": null,\n \"KitItensSellApart\": false,\n \"Videos\": [\n \"https://www.youtube.com/\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -12487,7 +10150,7 @@ { "listen": "test", "script": { - "id": "547265f1-8da2-4bc3-b715-2cc803d48dd3", + "id": "64a395de-edbf-478c-bc39-756d1f5191c1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/stockkeepingunit/:skuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -12506,7 +10169,7 @@ "event": [] }, { - "id": "50af7d4e-f628-44dd-a942-018a0b01381b", + "id": "32fe57d5-3771-4b8f-9b68-a520826c5bea", "name": "SKU EAN", "description": { "content": "", @@ -12514,7 +10177,7 @@ }, "item": [ { - "id": "86f911d5-73a3-466c-a9df-d958c3d1f9d1", + "id": "a522079d-5145-4b7a-96c1-bb09c45b3e55", "name": "Get SKU by EAN", "request": { "name": "Get SKU by EAN", @@ -12545,24 +10208,6 @@ "type": "any", "value": "1234567890123", "key": "ean" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -12584,16 +10229,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "76584ca4-445b-446e-824a-473aa6dc6f22", + "id": "8f280ed9-9d7f-4c29-ac6c-2f8ebe7fbd67", "name": "OK", "originalRequest": { "url": { @@ -12609,46 +10259,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) EAN of the SKU which you need to retrieve details from.", - "type": "text/plain" - }, - "type": "any", - "value": "1234567890123", - "key": "ean" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -12670,6 +10283,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -12691,13 +10312,13 @@ { "listen": "test", "script": { - "id": "89dba9ed-181a-4343-b7a6-078ed8971100", + "id": "15ddb6e0-03c4-4e7d-9d3e-176e140d0955", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyean/:ean - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyean/:ean - 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]::/api/catalog_system/pvt/sku/stockkeepingunitbyean/:ean - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"required\":[\"Id\",\"ProductId\",\"NameComplete\",\"ProductName\",\"ProductDescription\",\"SkuName\",\"IsActive\",\"IsTransported\",\"IsInventoried\",\"IsGiftCardRecharge\",\"ImageUrl\",\"DetailUrl\",\"CSCIdentification\",\"BrandId\",\"BrandName\",\"Dimension\",\"RealDimension\",\"ManufacturerCode\",\"IsKit\",\"KitItems\",\"Services\",\"Categories\",\"Attachments\",\"Collections\",\"SkuSellers\",\"SalesChannels\",\"Images\",\"SkuSpecifications\",\"ProductSpecifications\",\"ProductClustersIds\",\"ProductCategoryIds\",\"ProductGlobalCategoryId\",\"ProductCategories\",\"CommercialConditionId\",\"RewardValue\",\"AlternateIds\",\"AlternateIdValues\",\"EstimatedDateArrival\",\"MeasurementUnit\",\"UnitMultiplier\",\"InformationSource\",\"ModalType\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"ProductId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Product ID.\"},\"NameComplete\":{\"type\":\"string\",\"description\":\"Product name and SKU name combined.\"},\"ComplementName\":{\"type\":\"string\",\"description\":\"Product complement name.\"},\"ProductName\":{\"type\":\"string\",\"description\":\"Product name.\"},\"ProductDescription\":{\"type\":\"string\",\"description\":\"Product description. HTML is allowed.\"},\"ProductRefId\":{\"type\":\"string\",\"description\":\"Product reference ID.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"SKU tax code.\"},\"SkuName\":{\"type\":\"string\",\"description\":\"SKU name.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active or not.\"},\"IsTransported\":{\"type\":\"boolean\",\"deprecated\":true,\"description\":\"Deprecated field.\"},\"IsInventoried\":{\"type\":\"boolean\",\"deprecated\":true,\"description\":\"Deprecated field.\"},\"IsGiftCardRecharge\":{\"type\":\"boolean\",\"description\":\"Defines if the purchase of the SKU will generate reward value for the customer.\"},\"ImageUrl\":{\"type\":\"string\",\"description\":\"SKU image URL.\"},\"DetailUrl\":{\"type\":\"string\",\"description\":\"Product slug.\"},\"CSCIdentification\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU seller identification.\"},\"BrandId\":{\"type\":\"string\",\"description\":\"Brand ID.\"},\"BrandName\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"Dimension\":{\"required\":[\"cubicweight\",\"height\",\"length\",\"weight\",\"width\"],\"type\":\"object\",\"description\":\"Object containing the SKU dimensions to be used on the shipping calculation.\",\"properties\":{\"cubicweight\":{\"type\":\"number\",\"description\":\"SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"height\":{\"type\":\"number\",\"description\":\"SKU height.\"},\"length\":{\"type\":\"number\",\"description\":\"SKU length.\"},\"weight\":{\"type\":\"number\",\"description\":\"SKU weight.\"},\"width\":{\"type\":\"number\",\"description\":\"SKU width.\"}},\"example\":{\"cubicweight\":81.6833,\"height\":65,\"length\":58,\"weight\":10000,\"width\":130}},\"RealDimension\":{\"required\":[\"realCubicWeight\",\"realHeight\",\"realLength\",\"realWeight\",\"realWidth\"],\"type\":\"object\",\"description\":\"Object containing the real SKU dimensions, which appear in the product page.\",\"properties\":{\"realCubicWeight\":{\"type\":\"number\",\"description\":\"Real SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"realHeight\":{\"type\":\"number\",\"description\":\"Real SKU height.\"},\"realLength\":{\"type\":\"number\",\"description\":\"Real SKU length.\"},\"realWeight\":{\"type\":\"number\",\"description\":\"Real SKU weight.\"},\"realWidth\":{\"type\":\"number\",\"description\":\"Real SKU width.\"}},\"example\":{\"realCubicWeight\":274.1375,\"realHeight\":241,\"realLength\":65,\"realWeight\":9800,\"realWidth\":105}},\"ManufacturerCode\":{\"type\":\"string\",\"description\":\"Identifier provided by the manufacturers to identify their product. This field should be filled in if the product has a specific manufacturer's code.\"},\"IsKit\":{\"type\":\"boolean\",\"description\":\"Defines whether the SKU is made up of one or more SKUs (part of a kit) (`true`) or not (`false`). Must be enabled if you are adding a kit. Once activated, this definition cannot be reverted.\"},\"KitItems\":{\"type\":\"array\",\"description\":\"Array with SKU IDs of bundle components.\",\"items\":{\"type\":\"string\",\"description\":\"SKU ID of each bundle component.\"}},\"Services\":{\"type\":\"array\",\"description\":\"Array with service IDs that are related to the SKU.\",\"items\":{\"type\":\"string\",\"description\":\"Service IDs of each service related to the SKU.\"}},\"Categories\":{\"type\":\"array\",\"description\":\"Categories of the related product.\",\"items\":{\"type\":\"string\",\"description\":\"Category ID.\"}},\"CategoriesFullPath\":{\"type\":\"array\",\"description\":\"Path of categories of the related product.\",\"items\":{\"type\":\"string\",\"description\":\"Path composed by category IDs separated by `/`.\"}},\"Attachments\":{\"type\":\"array\",\"description\":\"Array with attachment IDs that are related to the product.\",\"items\":{\"required\":[\"Id\",\"Name\",\"Keys\",\"Fields\",\"IsActive\",\"IsRequired\"],\"type\":\"object\",\"description\":\"Object containing information about SKU attachments.\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment Name.\"},\"Keys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Attachment Keys.\"},\"Fields\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldName\",\"MaxCaracters\",\"DomainValues\"],\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment field name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters accepted in the attachment field.\"},\"DomainValues\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed key values.\"}},\"example\":{\"FieldName\":\"nome\",\"MaxCaracters\":\"20\",\"DomainValues\":\"Adalberto,Pedro,João\"}},\"description\":\"Array containing Attachment fields.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is active or not.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is required or not.\"}},\"example\":{\"Id\":3,\"Name\":\"Mensagem\",\"Keys\":[\"nome;20\",\"foto;40\"],\"Fields\":[{\"FieldName\":\"nome\",\"MaxCaracters\":\"20\",\"DomainValues\":\"Adalberto,Pedro,João\"},{\"FieldName\":\"foto\",\"MaxCaracters\":\"40\",\"DomainValues\":null}],\"IsActive\":true,\"IsRequired\":false}}},\"Collections\":{\"type\":\"array\",\"description\":\"Array with collections IDs that are related to the product.\",\"items\":{\"type\":\"string\",\"description\":\"Collection ID.\"}},\"SkuSellers\":{\"type\":\"array\",\"description\":\"Array with related sellers data.\",\"items\":{\"required\":[\"SellerId\",\"StockKeepingUnitId\",\"SellerStockKeepingUnitId\",\"IsActive\",\"FreightCommissionPercentage\",\"ProductCommissionPercentage\"],\"type\":\"object\",\"description\":\"Object containing related SKU sellers data.\",\"properties\":{\"SellerId\":{\"type\":\"string\",\"description\":\"SKU seller ID. This is the ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.\"},\"StockKeepingUnitId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"SellerStockKeepingUnitId\":{\"type\":\"string\",\"description\":\"SKU ID for the SKU seller.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active.\"},\"FreightCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller Freight Commission.\"},\"ProductCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller product Commission.\"}},\"example\":{\"SellerId\":\"1\",\"StockKeepingUnitId\":2001773,\"SellerStockKeepingUnitId\":\"2001773\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}}},\"SalesChannels\":{\"type\":\"array\",\"description\":\"Array of trade policy IDs.\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Trade policy ID.\"}},\"Images\":{\"type\":\"array\",\"description\":\"Array of objects with SKU image details.\",\"items\":{\"required\":[\"ImageUrl\",\"ImageName\",\"FileId\"],\"type\":\"object\",\"description\":\"Object containing SKU images details.\",\"properties\":{\"ImageUrl\":{\"type\":\"string\",\"description\":\"Image URL.\"},\"ImageName\":{\"type\":[\"string\",\"null\"],\"description\":\"Image label.\"},\"FileId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU image ID.\"}},\"example\":{\"ImageUrl\":\"http://ambienteqa.vteximg.com.br/arquivos/ids/168952/7508800GG.jpg\",\"ImageName\":\"\",\"FileId\":168952}}},\"SkuSpecifications\":{\"type\":\"array\",\"description\":\"Array with related SKU specifications.\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"description\":\"Object containing related SKU specifications.\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification field Name.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}},\"example\":{\"FieldId\":102,\"FieldName\":\"Cor\",\"FieldValueIds\":[266],\"FieldValues\":[\"Padrão\"]}}},\"ProductSpecifications\":{\"type\":\"array\",\"description\":\"Array with related product specifications.\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}},\"example\":{\"FieldId\":7,\"FieldName\":\"Faixa Etária\",\"FieldValueIds\":[58,56,55,52],\"FieldValues\":[\"5 a 6 anos\",\"7 a 8 anos\",\"9 a 10 anos\",\"Acima de 10 anos\"]}}},\"ProductClustersIds\":{\"type\":\"string\",\"description\":\"Product cluster IDs separated by comma (`,`).\"},\"PositionsInClusters\":{\"type\":\"object\",\"description\":\"Product clusters position in each cluster. Structure: \\\"{Product cluster ID}\\\": {Position}.\\n\\n`{Product cluster ID}` is a string, while `{Position}` is an integer.\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Position.\"}}},\"ProductClusterNames\":{\"type\":\"object\",\"description\":\"Product clusters names. Structure: \\\"{Product cluster ID}\\\": \\\"{Product cluster name}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster name.\"}}},\"ProductClusterHighlights\":{\"type\":\"object\",\"description\":\"Product clusters highlights. Structure: \\\"{Product cluster ID}\\\": \\\"{Product cluster name}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster highlight.\"}}},\"ProductCategoryIds\":{\"type\":\"string\",\"description\":\"Category path composed by category IDs separated by `/`.\"},\"IsDirectCategoryActive\":{\"type\":\"boolean\",\"description\":\"Indicates if the direct product category is active or not.\"},\"ProductGlobalCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Product global category ID.\"},\"ProductCategories\":{\"type\":\"object\",\"description\":\"Object containing product categories. Structure: \\\"{CategoryID}\\\": \\\"{CategoryName}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category name.\"}}},\"CommercialConditionId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Commercial condition ID, used to define SKU specific promotions or installment rules. In case of no specific condition, use `1` (default value). This field does not accept `0`. Learn more at [Registering a commercial condition](https://help.vtex.com/tutorial/registering-a-commercial-condition--tutorials_445).\",\"default\":1},\"RewardValue\":{\"type\":\"number\",\"description\":\"Credit that the customer receives when finalizing an order that includes the SKU. By filling this field out with `1`, the customer receives credit on the site in the selected currency, e.g. U$ 1.\"},\"AlternateIds\":{\"type\":\"object\",\"description\":\"Array with alternate SKU IDs, such as EAN and `RefId`.\",\"properties\":{\"Ean\":{\"type\":\"string\",\"description\":\"SKU EAN.\"},\"RefId\":{\"type\":\"string\",\"description\":\"SKU reference ID.\"}},\"example\":{\"Ean\":\"8781\",\"RefId\":\"878181\"}},\"AlternateIdValues\":{\"type\":\"array\",\"description\":\"Array with values of alternative SKU IDs.\",\"items\":{\"type\":\"string\",\"description\":\"Alternative SKU ID.\"}},\"EstimatedDateArrival\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU estimated arrival date in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format, when the product is on pre-sale. You must take into consideration both the launch date and the freight calculation for the arrival date.\"},\"MeasurementUnit\":{\"type\":\"string\",\"description\":\"Measurement unit. This field should only be used when it is necessary to convert the unit of measure for sale. For example, if a product is sold in boxes, but customers want to buy per square meter (m²). In common cases, use `\\\"un\\\"`.\"},\"UnitMultiplier\":{\"type\":\"number\",\"description\":\"Multiple number of SKU. If the multiplier is 5.0000, the product can be added in multiple quantities of 5, 10, 15, 20, onward.\"},\"InformationSource\":{\"type\":[\"string\",\"null\"],\"description\":\"Information source.\"},\"ModalType\":{\"type\":[\"string\",\"null\"],\"description\":\"Links an unusual type of SKU that needs special transportation, such as meat, glass, or a mattress, to a carrier specialized in delivering it. This field should be filled in with the name of the modal (e.g. \\\"Chemicals\\\" or \\\"Refrigerated products\\\"). To learn more about this feature, read our articles [How the modal works](https://help.vtex.com/en/tutorial/how-does-the-modal-work--tutorials_125) and [Setting up modal for carriers](https://help.vtex.com/en/tutorial/configure-modal--3jhLqxuPhuiq24UoykCcqy).\"},\"KeyWords\":{\"type\":[\"string\",\"null\"],\"description\":\"Keywords related to the product.\"},\"ReleaseDate\":{\"type\":[\"string\",\"null\"],\"description\":\"Release date of the product.\"},\"ProductIsVisible\":{\"type\":\"boolean\",\"description\":\"Defines if the product is visible or not.\"},\"ShowIfNotAvailable\":{\"type\":\"boolean\",\"description\":\"Defines if the product will be shown if it is not available.\"},\"IsProductActive\":{\"type\":\"boolean\",\"description\":\"Defines if the product is active or not.\"},\"ProductFinalScore\":{\"type\":\"integer\",\"description\":\"Product final score.\"}},\"example\":{\"Id\":310118450,\"ProductId\":2,\"NameComplete\":\"Caixa de Areia Azul Petmate sku test\",\"ComplementName\":\"\",\"ProductName\":\"Caixa de Areia Azul Petmate\",\"ProductDescription\":\"\",\"ProductRefId\":\"\",\"TaxCode\":\"\",\"SkuName\":\"sku test\",\"IsActive\":true,\"IsTransported\":true,\"IsInventoried\":true,\"IsGiftCardRecharge\":false,\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451-55-55/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"DetailUrl\":\"/caixa-de-areia-azul-petmate/p\",\"CSCIdentification\":null,\"BrandId\":\"2000005\",\"BrandName\":\"Petmate\",\"IsBrandActive\":true,\"Dimension\":{\"cubicweight\":0.2083,\"height\":10,\"length\":10,\"weight\":10,\"width\":10},\"RealDimension\":{\"realCubicWeight\":0,\"realHeight\":0,\"realLength\":0,\"realWeight\":0,\"realWidth\":0},\"ManufacturerCode\":\"123\",\"IsKit\":false,\"KitItems\":[],\"Services\":[],\"Categories\":[],\"CategoriesFullPath\":[\"/3/15/\",\"/3/\",\"/1/\"],\"Attachments\":[],\"Collections\":[],\"SkuSellers\":[{\"SellerId\":\"1\",\"StockKeepingUnitId\":310118450,\"SellerStockKeepingUnitId\":\"310118450\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}],\"SalesChannels\":[1,3],\"Images\":[{\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"ImageName\":null,\"FileId\":155451}],\"Videos\":[],\"SkuSpecifications\":[],\"ProductSpecifications\":[],\"ProductClustersIds\":\"151,158\",\"PositionsInClusters\":{\"151\":1,\"158\":2},\"ProductClusterNames\":{\"151\":\"asdfghj\",\"158\":\"Coleção halloween\"},\"ProductClusterHighlights\":{\"151\":\"asdfghj\"},\"ProductCategoryIds\":\"/3/15/\",\"IsDirectCategoryActive\":true,\"ProductGlobalCategoryId\":5000,\"ProductCategories\":{\"1\":\"Alimentação\",\"3\":\"Higiene\",\"15\":\"Caixa de Areia\"},\"CommercialConditionId\":1,\"RewardValue\":0,\"AlternateIds\":{\"RefId\":\"1\"},\"AlternateIdValues\":[\"1\"],\"EstimatedDateArrival\":null,\"MeasurementUnit\":\"un\",\"UnitMultiplier\":1,\"InformationSource\":null,\"ModalType\":null,\"KeyWords\":\"\",\"ReleaseDate\":\"2020-01-06T00:00:00Z\",\"ProductIsVisible\":true,\"ShowIfNotAvailable\":true,\"IsProductActive\":true,\"ProductFinalScore\":0}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyean/:ean - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"required\":[\"Id\",\"ProductId\",\"NameComplete\",\"ProductName\",\"ProductDescription\",\"SkuName\",\"IsActive\",\"IsTransported\",\"IsInventoried\",\"IsGiftCardRecharge\",\"ImageUrl\",\"DetailUrl\",\"CSCIdentification\",\"BrandId\",\"BrandName\",\"Dimension\",\"RealDimension\",\"ManufacturerCode\",\"IsKit\",\"KitItems\",\"Services\",\"Categories\",\"Attachments\",\"Collections\",\"SkuSellers\",\"SalesChannels\",\"Images\",\"SkuSpecifications\",\"ProductSpecifications\",\"ProductClustersIds\",\"ProductCategoryIds\",\"ProductGlobalCategoryId\",\"ProductCategories\",\"CommercialConditionId\",\"RewardValue\",\"AlternateIds\",\"AlternateIdValues\",\"EstimatedDateArrival\",\"MeasurementUnit\",\"UnitMultiplier\",\"InformationSource\",\"ModalType\"],\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"ProductId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Product ID.\"},\"NameComplete\":{\"type\":\"string\",\"description\":\"Product name and SKU name combined.\"},\"ComplementName\":{\"type\":\"string\",\"description\":\"Product complement name.\"},\"ProductName\":{\"type\":\"string\",\"description\":\"Product name.\"},\"ProductDescription\":{\"type\":\"string\",\"description\":\"Product description. HTML is allowed.\"},\"ProductRefId\":{\"type\":\"string\",\"description\":\"Product reference ID.\"},\"TaxCode\":{\"type\":\"string\",\"description\":\"SKU tax code.\"},\"SkuName\":{\"type\":\"string\",\"description\":\"SKU name.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active or not.\"},\"IsTransported\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\"},\"IsInventoried\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\"},\"IsGiftCardRecharge\":{\"type\":\"boolean\",\"description\":\"Defines if the purchase of the SKU will generate reward value for the customer.\"},\"ImageUrl\":{\"type\":\"string\",\"description\":\"SKU image URL.\"},\"DetailUrl\":{\"type\":\"string\",\"description\":\"Product slug.\"},\"CSCIdentification\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU seller identification.\"},\"BrandId\":{\"type\":\"string\",\"description\":\"Brand ID.\"},\"BrandName\":{\"type\":\"string\",\"description\":\"Brand name.\"},\"Dimension\":{\"required\":[\"cubicweight\",\"height\",\"length\",\"weight\",\"width\"],\"type\":\"object\",\"description\":\"Object containing the SKU dimensions to be used on the shipping calculation.\",\"properties\":{\"cubicweight\":{\"type\":\"number\",\"description\":\"SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"height\":{\"type\":\"number\",\"description\":\"SKU height.\"},\"length\":{\"type\":\"number\",\"description\":\"SKU length.\"},\"weight\":{\"type\":\"number\",\"description\":\"SKU weight.\"},\"width\":{\"type\":\"number\",\"description\":\"SKU width.\"}}},\"RealDimension\":{\"required\":[\"realCubicWeight\",\"realHeight\",\"realLength\",\"realWeight\",\"realWidth\"],\"type\":\"object\",\"description\":\"Object containing the real SKU dimensions, which appear in the product page.\",\"properties\":{\"realCubicWeight\":{\"type\":\"number\",\"description\":\"Real SKU [cubic weight](https://help.vtex.com/en/tutorial/understanding-the-cubic-weight-factor--tutorials_128).\"},\"realHeight\":{\"type\":\"number\",\"description\":\"Real SKU height.\"},\"realLength\":{\"type\":\"number\",\"description\":\"Real SKU length.\"},\"realWeight\":{\"type\":\"number\",\"description\":\"Real SKU weight.\"},\"realWidth\":{\"type\":\"number\",\"description\":\"Real SKU width.\"}}},\"ManufacturerCode\":{\"type\":\"string\",\"description\":\"Identifier provided by the manufacturers to identify their product. This field should be filled in if the product has a specific manufacturer's code.\"},\"IsKit\":{\"type\":\"boolean\",\"description\":\"Defines whether the SKU is made up of one or more SKUs (part of a kit) (`true`) or not (`false`). Must be enabled if you are adding a kit. Once activated, this definition cannot be reverted.\"},\"KitItems\":{\"type\":\"array\",\"description\":\"Array with SKU IDs of bundle components.\",\"items\":{\"type\":\"string\",\"description\":\"SKU ID of each bundle component.\"}},\"Services\":{\"type\":\"array\",\"description\":\"Array with service IDs that are related to the SKU.\",\"items\":{\"type\":\"string\",\"description\":\"Service IDs of each service related to the SKU.\"}},\"Categories\":{\"type\":\"array\",\"description\":\"Categories of the related product.\",\"items\":{\"type\":\"string\",\"description\":\"Category ID.\"}},\"CategoriesFullPath\":{\"type\":\"array\",\"description\":\"Path of categories of the related product.\",\"items\":{\"type\":\"string\",\"description\":\"Path composed by category IDs separated by `/`.\"}},\"Attachments\":{\"type\":\"array\",\"description\":\"Array with attachment IDs that are related to the product.\",\"items\":{\"required\":[\"Id\",\"Name\",\"Keys\",\"Fields\",\"IsActive\",\"IsRequired\"],\"type\":\"object\",\"description\":\"Object containing information about SKU attachments.\",\"properties\":{\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Attachment ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Attachment Name.\"},\"Keys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Attachment Keys.\"},\"Fields\":{\"type\":\"array\",\"items\":{\"required\":[\"FieldName\",\"MaxCaracters\",\"DomainValues\"],\"type\":\"object\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment field name.\"},\"MaxCaracters\":{\"type\":\"string\",\"description\":\"Maximum number of characters accepted in the attachment field.\"},\"DomainValues\":{\"type\":[\"string\",\"null\"],\"description\":\"Allowed key values.\"}}},\"description\":\"Array containing Attachment fields.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is active or not.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the Attachment is required or not.\"}}}},\"Collections\":{\"type\":\"array\",\"description\":\"Array with collections IDs that are related to the product.\",\"items\":{\"type\":\"string\",\"description\":\"Collection ID.\"}},\"SkuSellers\":{\"type\":\"array\",\"description\":\"Array with related sellers data.\",\"items\":{\"required\":[\"SellerId\",\"StockKeepingUnitId\",\"SellerStockKeepingUnitId\",\"IsActive\",\"FreightCommissionPercentage\",\"ProductCommissionPercentage\"],\"type\":\"object\",\"description\":\"Object containing related SKU sellers data.\",\"properties\":{\"SellerId\":{\"type\":\"string\",\"description\":\"SKU seller ID. This is the ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.\"},\"StockKeepingUnitId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU ID.\"},\"SellerStockKeepingUnitId\":{\"type\":\"string\",\"description\":\"SKU ID for the SKU seller.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the SKU is active.\"},\"FreightCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller Freight Commission.\"},\"ProductCommissionPercentage\":{\"type\":\"number\",\"description\":\"Registered value for Seller product Commission.\"}}}},\"SalesChannels\":{\"type\":\"array\",\"description\":\"Array of trade policy IDs.\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Trade policy ID.\"}},\"Images\":{\"type\":\"array\",\"description\":\"Array of objects with SKU image details.\",\"items\":{\"required\":[\"ImageUrl\",\"ImageName\",\"FileId\"],\"type\":\"object\",\"description\":\"Object containing SKU images details.\",\"properties\":{\"ImageUrl\":{\"type\":\"string\",\"description\":\"Image URL.\"},\"ImageName\":{\"type\":[\"string\",\"null\"],\"description\":\"Image label.\"},\"FileId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"SKU image ID.\"}}}},\"SkuSpecifications\":{\"type\":\"array\",\"description\":\"Array with related SKU specifications.\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"description\":\"Object containing related SKU specifications.\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification field Name.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}}}},\"ProductSpecifications\":{\"type\":\"array\",\"description\":\"Array with related product specifications.\",\"items\":{\"required\":[\"FieldId\",\"FieldName\",\"FieldValueIds\",\"FieldValues\"],\"type\":\"object\",\"properties\":{\"FieldId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field ID.\"},\"FieldName\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"FieldValueIds\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification value ID.\"},\"description\":\"Array with related specification values IDs.\"},\"FieldValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array with related specification values.\"}}}},\"ProductClustersIds\":{\"type\":\"string\",\"description\":\"Product cluster IDs separated by comma (`,`).\"},\"PositionsInClusters\":{\"type\":\"object\",\"description\":\"Product clusters position in each cluster. Structure: \\\"{Product cluster ID}\\\": {Position}.\\n\\n`{Product cluster ID}` is a string, while `{Position}` is an integer.\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"integer\",\"description\":\"Position.\"}}},\"ProductClusterNames\":{\"type\":\"object\",\"description\":\"Product clusters names. Structure: \\\"{Product cluster ID}\\\": \\\"{Product cluster name}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster name.\"}}},\"ProductClusterHighlights\":{\"type\":\"object\",\"description\":\"Product clusters highlights. Structure: \\\"{Product cluster ID}\\\": \\\"{Product cluster name}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Product cluster highlight.\"}}},\"ProductCategoryIds\":{\"type\":\"string\",\"description\":\"Category path composed by category IDs separated by `/`.\"},\"IsDirectCategoryActive\":{\"type\":\"boolean\",\"description\":\"Indicates if the direct product category is active or not.\"},\"ProductGlobalCategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Product global category ID.\"},\"ProductCategories\":{\"type\":\"object\",\"description\":\"Object containing product categories. Structure: \\\"{CategoryID}\\\": \\\"{CategoryName}\\\". Both the key and the value are strings.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category ID.\",\"additionalProperties\":{\"type\":\"string\",\"description\":\"Category name.\"}}},\"CommercialConditionId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Commercial condition ID, used to define SKU specific promotions or installment rules. In case of no specific condition, use `1` (default value). This field does not accept `0`. Learn more at [Registering a commercial condition](https://help.vtex.com/tutorial/registering-a-commercial-condition--tutorials_445).\",\"default\":1},\"RewardValue\":{\"type\":\"number\",\"description\":\"Credit that the customer receives when finalizing an order that includes the SKU. By filling this field out with `1`, the customer receives credit on the site in the selected currency, e.g. U$ 1.\"},\"AlternateIds\":{\"type\":\"object\",\"description\":\"Array with alternate SKU IDs, such as EAN and `RefId`.\",\"properties\":{\"Ean\":{\"type\":\"string\",\"description\":\"SKU EAN.\"},\"RefId\":{\"type\":\"string\",\"description\":\"SKU reference ID.\"}}},\"AlternateIdValues\":{\"type\":\"array\",\"description\":\"Array with values of alternative SKU IDs.\",\"items\":{\"type\":\"string\",\"description\":\"Alternative SKU ID.\"}},\"EstimatedDateArrival\":{\"type\":[\"string\",\"null\"],\"description\":\"SKU estimated arrival date in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format, when the product is on pre-sale. You must take into consideration both the launch date and the freight calculation for the arrival date.\"},\"MeasurementUnit\":{\"type\":\"string\",\"description\":\"Measurement unit. This field should only be used when it is necessary to convert the unit of measure for sale. For example, if a product is sold in boxes, but customers want to buy per square meter (m²). In common cases, use `\\\"un\\\"`.\"},\"UnitMultiplier\":{\"type\":\"number\",\"description\":\"Multiple number of SKU. If the multiplier is 5.0000, the product can be added in multiple quantities of 5, 10, 15, 20, onward.\"},\"InformationSource\":{\"type\":[\"string\",\"null\"],\"description\":\"Information source.\"},\"ModalType\":{\"type\":[\"string\",\"null\"],\"description\":\"Links an unusual type of SKU that needs special transportation, such as meat, glass, or a mattress, to a carrier specialized in delivering it. This field should be filled in with the name of the modal (e.g. \\\"Chemicals\\\" or \\\"Refrigerated products\\\"). To learn more about this feature, read our articles [How the modal works](https://help.vtex.com/en/tutorial/how-does-the-modal-work--tutorials_125) and [Setting up modal for carriers](https://help.vtex.com/en/tutorial/configure-modal--3jhLqxuPhuiq24UoykCcqy).\"},\"KeyWords\":{\"type\":[\"string\",\"null\"],\"description\":\"Keywords related to the product.\"},\"ReleaseDate\":{\"type\":[\"string\",\"null\"],\"description\":\"Release date of the product.\"},\"ProductIsVisible\":{\"type\":\"boolean\",\"description\":\"Defines if the product is visible or not.\"},\"ShowIfNotAvailable\":{\"type\":\"boolean\",\"description\":\"Defines if the product will be shown if it is not available.\"},\"IsProductActive\":{\"type\":\"boolean\",\"description\":\"Defines if the product is active or not.\"},\"ProductFinalScore\":{\"type\":\"integer\",\"description\":\"Product final score.\"}},\"example\":{\"Id\":310118450,\"ProductId\":2,\"NameComplete\":\"Caixa de Areia Azul Petmate sku test\",\"ComplementName\":\"\",\"ProductName\":\"Caixa de Areia Azul Petmate\",\"ProductDescription\":\"\",\"ProductRefId\":\"\",\"TaxCode\":\"\",\"SkuName\":\"sku test\",\"IsActive\":true,\"IsTransported\":true,\"IsInventoried\":true,\"IsGiftCardRecharge\":false,\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451-55-55/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"DetailUrl\":\"/caixa-de-areia-azul-petmate/p\",\"CSCIdentification\":null,\"BrandId\":\"2000005\",\"BrandName\":\"Petmate\",\"IsBrandActive\":true,\"Dimension\":{\"cubicweight\":0.2083,\"height\":10,\"length\":10,\"weight\":10,\"width\":10},\"RealDimension\":{\"realCubicWeight\":0,\"realHeight\":0,\"realLength\":0,\"realWeight\":0,\"realWidth\":0},\"ManufacturerCode\":\"123\",\"IsKit\":false,\"KitItems\":[],\"Services\":[],\"Categories\":[],\"CategoriesFullPath\":[\"/3/15/\",\"/3/\",\"/1/\"],\"Attachments\":[],\"Collections\":[],\"SkuSellers\":[{\"SellerId\":\"1\",\"StockKeepingUnitId\":310118450,\"SellerStockKeepingUnitId\":\"310118450\",\"IsActive\":true,\"FreightCommissionPercentage\":0,\"ProductCommissionPercentage\":0}],\"SalesChannels\":[1,3],\"Images\":[{\"ImageUrl\":\"https://lojadobreno.vteximg.com.br/arquivos/ids/155451/caixa-areia-azul-petmate.jpg?v=637139451191670000\",\"ImageName\":null,\"FileId\":155451}],\"Videos\":[],\"SkuSpecifications\":[],\"ProductSpecifications\":[],\"ProductClustersIds\":\"151,158\",\"PositionsInClusters\":{\"151\":1,\"158\":2},\"ProductClusterNames\":{\"151\":\"asdfghj\",\"158\":\"Coleção halloween\"},\"ProductClusterHighlights\":{\"151\":\"asdfghj\"},\"ProductCategoryIds\":\"/3/15/\",\"IsDirectCategoryActive\":true,\"ProductGlobalCategoryId\":5000,\"ProductCategories\":{\"1\":\"Alimentação\",\"3\":\"Higiene\",\"15\":\"Caixa de Areia\"},\"CommercialConditionId\":1,\"RewardValue\":0,\"AlternateIds\":{\"RefId\":\"1\"},\"AlternateIdValues\":[\"1\"],\"EstimatedDateArrival\":null,\"MeasurementUnit\":\"un\",\"UnitMultiplier\":1,\"InformationSource\":null,\"ModalType\":null,\"KeyWords\":\"\",\"ReleaseDate\":\"2020-01-06T00:00:00Z\",\"ProductIsVisible\":true,\"ShowIfNotAvailable\":true,\"IsProductActive\":true,\"ProductFinalScore\":0}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/sku/stockkeepingunitbyean/:ean - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -12707,7 +10328,7 @@ } }, { - "id": "cc08106d-5d81-422b-80f0-4b9a28706c62", + "id": "b5586243-dc85-40f7-9db0-cb3a9cd99746", "name": "Get EAN by SKU ID", "request": { "name": "Get EAN by SKU ID", @@ -12738,24 +10359,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -12777,16 +10380,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "dfb7ccfc-7aff-4970-856b-0533472c4391", + "id": "ecb83fcb-cc27-4b91-8028-49ff652b9d19", "name": "OK", "originalRequest": { "url": { @@ -12802,46 +10410,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -12863,6 +10434,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -12884,7 +10463,7 @@ { "listen": "test", "script": { - "id": "fc661b18-7b32-4f2d-ae9c-aa5e1868a21a", + "id": "ef5b560b-9aca-4826-ab64-e27aedd184ea", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/ean - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -12900,7 +10479,7 @@ } }, { - "id": "20a22394-7d58-477d-8c2d-32787299b1c9", + "id": "7dc66cce-2ac3-4727-8746-f59943762f4a", "name": "Delete all SKU EAN values", "request": { "name": "Delete all SKU EAN values", @@ -12931,24 +10510,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -12972,14 +10533,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "582b94fe-5c96-44cb-987b-0dc8219bc32b", + "id": "e3804ecf-722d-4725-bf72-8d9a171d2395", "name": "OK", "originalRequest": { "url": { @@ -12995,46 +10557,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -13052,6 +10577,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -13059,13 +10592,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -13073,7 +10600,7 @@ { "listen": "test", "script": { - "id": "0b0b2775-dbff-4349-9f83-2867ca32668d", + "id": "4019c2ee-750a-4e5c-8349-831158014131", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunit/:skuId/ean - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -13086,7 +10613,7 @@ } }, { - "id": "1d5648f8-44fe-4a69-a934-2a4e6c71c73e", + "id": "400ef5c8-c779-48ee-b26e-30f99b4ede32", "name": "Create SKU EAN", "request": { "name": "Create SKU EAN", @@ -13128,24 +10655,6 @@ "type": "any", "value": "1234567", "key": "ean" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -13169,14 +10678,15 @@ "value": "application/json" } ], - "method": "POST" + "method": "POST", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "a8fefdcb-5b60-4e1c-92da-ff0a92d851e0", + "id": "b38bb233-fdd7-4550-834a-52cf7a342189", "name": "OK", "originalRequest": { "url": { @@ -13193,56 +10703,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "disabled": false, - "description": { - "content": "(Required) EAN.", - "type": "text/plain" - }, - "type": "any", - "value": "1234567", - "key": "ean" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -13260,6 +10723,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -13267,13 +10738,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -13281,7 +10746,7 @@ { "listen": "test", "script": { - "id": "bc839400-93c4-4c8e-9fb6-30d2fb2d74b3", + "id": "f144b87b-7133-41bc-95c7-e1b20fdcd8b1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/stockkeepingunit/:skuId/ean/:ean - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -13294,7 +10759,7 @@ } }, { - "id": "949bf7ee-7e6b-4446-91c9-936f78d91f4d", + "id": "96089b47-75ad-433d-abf7-33067444624b", "name": "Delete SKU EAN", "request": { "name": "Delete SKU EAN", @@ -13336,24 +10801,6 @@ "type": "any", "value": "ABC123", "key": "ean" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -13377,14 +10824,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "38ea1c39-9363-4045-8bae-410d12948803", + "id": "c402ea1b-e46a-4dc8-937e-970fdb06a27c", "name": "OK", "originalRequest": { "url": { @@ -13401,56 +10849,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "disabled": false, - "description": { - "content": "(Required) EAN number.", - "type": "text/plain" - }, - "type": "any", - "value": "ABC123", - "key": "ean" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -13468,6 +10869,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -13475,13 +10884,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -13489,7 +10892,7 @@ { "listen": "test", "script": { - "id": "bf8be4b6-40b7-4bb7-92eb-7fe58d9fa9a8", + "id": "0ac7eb40-0476-40fe-8d32-14598292b9b8", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunit/:skuId/ean/:ean - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -13505,7 +10908,7 @@ "event": [] }, { - "id": "40f580c5-3291-4c91-b62f-0983e0e1fa92", + "id": "dc9e0c7b-a6e1-4e2b-baa0-6b563a5863a7", "name": "SKU file", "description": { "content": "", @@ -13513,7 +10916,7 @@ }, "item": [ { - "id": "9f23a33c-79bc-481a-9d7b-c9f248fb30f5", + "id": "81b0b5e2-ee31-4446-a5a0-27547974aa69", "name": "Get SKU files", "request": { "name": "Get SKU files", @@ -13544,24 +10947,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -13583,16 +10968,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "a6c38384-c40c-443a-ae1d-b473348213a1", + "id": "80bbde81-6f3b-4b8a-9a6c-bf2fc19cf394", "name": "OK", "originalRequest": { "url": { @@ -13608,46 +10998,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -13669,6 +11022,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -13690,7 +11051,7 @@ { "listen": "test", "script": { - "id": "0a6b7060-a94a-4442-a951-07c74ebb1f8f", + "id": "efaa5cf1-94e7-4b47-b7a0-f6f880c84815", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/file - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -13706,7 +11067,7 @@ } }, { - "id": "f22bfda8-d353-43d8-81be-3ee274973e6a", + "id": "c8a8cba8-2703-48b3-84b5-f699b79bf014", "name": "Create SKU file", "request": { "name": "Create SKU file", @@ -13737,24 +11098,6 @@ "type": "any", "value": "123456", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -13776,6 +11119,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -13784,6 +11135,7 @@ "raw": "{\n \"Name\": \"Nike-Red-Janoski-1\",\n \"Url\": \"https://m.media-amazon.com/images/I/610G2-sJx5L._AC_UX695_.jpg\",\n \"IsMain\": true,\n \"Label\": \"Main\",\n \"Text\": \"Nike-Red-Janoski\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -13794,7 +11146,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "8360d071-f48c-4e18-8c5b-f03a7a8aa9b0", + "id": "1e62ff86-3db3-4afe-9111-47707e324685", "name": "OK", "originalRequest": { "url": { @@ -13810,46 +11162,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "123456", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -13868,17 +11183,30 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" - } - ], - "method": "POST", + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" + } + ], + "method": "POST", "body": { "mode": "raw", "raw": "{\n \"Name\": \"Nike-Red-Janoski-1\",\n \"Url\": \"https://m.media-amazon.com/images/I/610G2-sJx5L._AC_UX695_.jpg\",\n \"IsMain\": true,\n \"Label\": \"Main\",\n \"Text\": \"Nike-Red-Janoski\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -13900,7 +11228,7 @@ { "listen": "test", "script": { - "id": "e163871f-1e4d-4094-9115-8052176e8bdb", + "id": "4ee0ff67-396e-49b7-b9d5-ea4a750f642c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/stockkeepingunit/:skuId/file - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -13916,7 +11244,7 @@ } }, { - "id": "3fe1f28e-16c9-4b28-8f9e-deb7841bba62", + "id": "99f7450c-afaa-4496-879c-da5e850060e7", "name": "Delete all SKU files", "request": { "name": "Delete all SKU files", @@ -13947,24 +11275,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -13988,14 +11298,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "07decece-237d-4f69-acd7-6cc25b67b15a", + "id": "d7534ee7-bceb-4066-ba7e-4f6bbe03f521", "name": "OK", "originalRequest": { "url": { @@ -14011,46 +11322,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -14068,6 +11342,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -14075,13 +11357,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -14089,7 +11365,7 @@ { "listen": "test", "script": { - "id": "895fb241-57db-4855-b5eb-3fb104a47615", + "id": "713fc1d1-6a8d-4556-abe1-48ae04255f6c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunit/:skuId/file - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -14102,7 +11378,7 @@ } }, { - "id": "e3958f7c-8eb6-4772-bb96-066de2d47d66", + "id": "99c577e4-45f9-4cf6-b9ef-c1413cd7bbf1", "name": "Update SKU file", "request": { "name": "Update SKU file", @@ -14144,24 +11420,6 @@ "type": "any", "value": "517", "key": "skuFileId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -14183,6 +11441,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -14191,6 +11457,7 @@ "raw": "{\n \"Name\": \"Nike-Red-Janoski-1\",\n \"Url\": \"https://m.media-amazon.com/images/I/610G2-sJx5L._AC_UX695_.jpg\",\n \"IsMain\": true,\n \"Label\": \"Main\",\n \"Text\": \"Nike-Red-Janoski\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -14201,7 +11468,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "eb28f283-427c-447e-a7fe-04177d865110", + "id": "16ed8a8e-9870-40fc-a4f9-4ea2913ea04f", "name": "OK", "originalRequest": { "url": { @@ -14218,56 +11485,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "123456", - "key": "skuId" - }, - { - "disabled": false, - "description": { - "content": "(Required) ID of the association of the SKU and the image, which can be obtained by placing a request to the [Get SKU file](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-sku-file) endpoint and copying the `Id` field.", - "type": "text/plain" - }, - "type": "any", - "value": "517", - "key": "skuFileId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -14286,9 +11506,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -14297,6 +11529,7 @@ "raw": "{\n \"Name\": \"Nike-Red-Janoski-1\",\n \"Url\": \"https://m.media-amazon.com/images/I/610G2-sJx5L._AC_UX695_.jpg\",\n \"IsMain\": true,\n \"Label\": \"Main\",\n \"Text\": \"Nike-Red-Janoski\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -14318,7 +11551,7 @@ { "listen": "test", "script": { - "id": "3d23ee7d-570c-400d-915a-d8e4bb43bdc9", + "id": "d52268cd-53fc-4517-bcfc-5161e1fbda89", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/stockkeepingunit/:skuId/file/:skuFileId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -14334,7 +11567,7 @@ } }, { - "id": "222d064a-c731-4a03-9dd4-0c87943bedd9", + "id": "f79523ab-09cf-4754-9616-dc83a9e85ebb", "name": "Delete SKU image file", "request": { "name": "Delete SKU image file", @@ -14376,24 +11609,6 @@ "type": "any", "value": "1", "key": "skuFileId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -14417,14 +11632,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "af8b384b-7314-4d35-9d90-a6daf9030736", + "id": "33ce99d7-cfd9-4375-aabd-ffc565b94f1c", "name": "OK", "originalRequest": { "url": { @@ -14441,56 +11657,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "disabled": false, - "description": { - "content": "(Required) ID of the association of the SKU and the image, which can be obtained by placing a request to the [Get SKU file](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-sku-file) endpoint and copying the `Id` field.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuFileId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -14508,6 +11677,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -14515,13 +11692,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -14529,7 +11700,7 @@ { "listen": "test", "script": { - "id": "78ee6e70-e160-45e8-9285-3c5e2ed9b57d", + "id": "4f5c98be-5ccc-4f1b-b7f0-262a637c6f54", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunit/:skuId/file/:skuFileId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -14542,7 +11713,7 @@ } }, { - "id": "1149a32e-1c23-4c38-9fce-4e515773a048", + "id": "da5a03f4-abcb-4f84-99a7-1a994a0e76ee", "name": "Copy files from an SKU to another SKU", "request": { "name": "Copy files from an SKU to another SKU", @@ -14585,24 +11756,6 @@ "type": "any", "value": "2", "key": "skuIdto" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -14624,16 +11777,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "PUT" + "method": "PUT", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "e634bccb-3357-446b-995f-38b2edb3932e", + "id": "eedf8649-26c5-468e-8d35-e89699595df5", "name": "OK", "originalRequest": { "url": { @@ -14651,56 +11809,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) __Origin__ SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuIdfrom" - }, - { - "disabled": false, - "description": { - "content": "(Required) __Target__ SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "2", - "key": "skuIdto" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -14722,6 +11833,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -14743,7 +11862,7 @@ { "listen": "test", "script": { - "id": "383713e6-0832-4b1b-b434-32e4d64afc67", + "id": "8cab9282-74ef-4c50-94f5-5cbaa805c2e9", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/stockkeepingunit/copy/:skuIdfrom/:skuIdto/file - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -14759,7 +11878,7 @@ } }, { - "id": "1532613d-39c2-4ea5-8b60-6604fb26ab5c", + "id": "c375a703-20cd-45f4-b692-139675f970fd", "name": "Disassociate SKU file", "request": { "name": "Disassociate SKU file", @@ -14802,24 +11921,6 @@ "type": "any", "value": "32", "key": "skuFileId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -14843,14 +11944,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "f4666a85-c30b-4b3f-aa7a-81a06fc9cd63", + "id": "c62a222a-87a2-4e60-bc7b-101233ec2fba", "name": "OK", "originalRequest": { "url": { @@ -14868,56 +11970,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "disabled": false, - "description": { - "content": "(Required) ID of the association of the SKU and the image, which can be obtained by placing a request to the [Get SKU file](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-sku-file) endpoint and copying the `Id` field.", - "type": "text/plain" - }, - "type": "any", - "value": "32", - "key": "skuFileId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -14935,6 +11990,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -14942,13 +12005,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -14956,7 +12013,7 @@ { "listen": "test", "script": { - "id": "b3a517e2-7d30-4e4b-9261-5a0c02f7eea2", + "id": "58124346-e640-4c4a-a7e6-7e84a7052e1b", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunit/disassociate/:skuId/file/:skuFileId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -14972,7 +12029,7 @@ "event": [] }, { - "id": "789b3111-e2ea-44d4-bb8d-09f1cdea3c5f", + "id": "2b5c1130-0184-46df-acf0-92dab8fb1828", "name": "SKU kit", "description": { "content": "", @@ -14980,7 +12037,7 @@ }, "item": [ { - "id": "cbe4d25b-c4ee-4ba8-8d68-5b5fc597989f", + "id": "94bb101b-6b63-432e-ba38-5f315e562a9b", "name": "Get SKU kit by SKU ID or Parent SKU ID", "request": { "name": "Get SKU kit by SKU ID or Parent SKU ID", @@ -15018,26 +12075,7 @@ "value": "1" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -15057,16 +12095,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "a89d4b8b-cf11-42be-8f9b-cf5f9a884ccb", + "id": "b86d3d1f-0216-4912-83cd-a9785bddc468", "name": "OK", "originalRequest": { "url": { @@ -15081,44 +12124,27 @@ ], "query": [ { - "key": "skuId", - "value": "1" - }, - { - "key": "parentSkuId", - "value": "1" - } - ], - "variable": [ - { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "SKU's unique numerical identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "skuId", + "value": "1" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "Parent SKU's unique numerical identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "parentSkuId", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -15140,6 +12166,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -15161,7 +12195,7 @@ { "listen": "test", "script": { - "id": "ca8c88bb-320f-4f22-beb3-441d2bec59ae", + "id": "27c0e7fb-d874-431b-9c2a-5502d19da819", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunitkit - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -15177,7 +12211,7 @@ } }, { - "id": "51d9e558-197a-4781-b336-bdf890a5d60f", + "id": "85d75bc3-738e-4283-8fc7-d9d1c2ff95d3", "name": "Create SKU kit", "request": { "name": "Create SKU kit", @@ -15196,26 +12230,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -15235,6 +12250,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -15243,6 +12266,7 @@ "raw": "{\n \"StockKeepingUnitParent\": 31018373,\n \"StockKeepingUnitId\": 31018374,\n \"Quantity\": 3,\n \"UnitPrice\": 15.5\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -15253,7 +12277,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "f54a9853-a9be-4501-9961-934d07a91ea7", + "id": "657ce3f9-d88c-4db2-bb5f-e43c2a06eed1", "name": "OK", "originalRequest": { "url": { @@ -15267,36 +12291,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -15315,9 +12312,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -15326,6 +12335,7 @@ "raw": "{\n \"StockKeepingUnitParent\": 31018373,\n \"StockKeepingUnitId\": 31018374,\n \"Quantity\": 3,\n \"UnitPrice\": 15.5\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -15347,7 +12357,7 @@ { "listen": "test", "script": { - "id": "e57bdad5-4dc3-44a9-b2b5-b17df97c18cf", + "id": "336a065e-e650-47dd-a2b4-a86d26c2716b", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/stockkeepingunitkit - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -15363,7 +12373,7 @@ } }, { - "id": "560fc4ea-36db-4f65-9edd-fbfb7b132269", + "id": "aa24e0ce-ef61-441e-b341-e939f40cd89e", "name": "Delete SKU kit by SKU ID or parent SKU ID", "request": { "name": "Delete SKU kit by SKU ID or parent SKU ID", @@ -15401,26 +12411,7 @@ "value": "1" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -15442,14 +12433,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "006286e5-f8be-4e4c-a368-af23b0d8e474", + "id": "8643b5e2-9987-4966-ac1b-fd457dfcdc7e", "name": "OK", "originalRequest": { "url": { @@ -15464,44 +12456,27 @@ ], "query": [ { - "key": "skuId", - "value": "1" - }, - { - "key": "parentSkuId", - "value": "1" - } - ], - "variable": [ - { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "SKU's unique numerical identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "skuId", + "value": "1" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "Parent SKU's unique numerical identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "parentSkuId", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -15519,6 +12494,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -15526,13 +12509,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -15540,7 +12517,7 @@ { "listen": "test", "script": { - "id": "581ac902-c433-4e75-bec0-352dba0d1da7", + "id": "008c9297-c411-4b8b-baaf-c61f113b68e1", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunitkit - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -15553,7 +12530,7 @@ } }, { - "id": "503a926f-cd4f-4dd9-a8e7-63dfccfe4ec2", + "id": "970c5682-b850-45a3-8a01-0fc9435ce0d2", "name": "Get SKU kit", "request": { "name": "Get SKU kit", @@ -15583,24 +12560,6 @@ "type": "any", "value": "1", "key": "kitId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -15622,16 +12581,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "4e826dc3-7128-4172-8640-6ff4626107ba", + "id": "7f32ef4b-1031-464f-98fa-10605f3f3398", "name": "OK", "originalRequest": { "url": { @@ -15646,46 +12610,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Kit's unique numerical identifier", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "kitId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -15707,6 +12634,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -15728,7 +12663,7 @@ { "listen": "test", "script": { - "id": "0c1eeecf-70aa-4ba4-91e6-97d3221c3c2f", + "id": "b4823fc2-d35a-4704-9c72-60362fbe2c74", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunitkit/:kitId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -15744,7 +12679,7 @@ } }, { - "id": "1614429f-c1a3-43f8-80bf-8f17d80a1c66", + "id": "a703e6ba-b29a-4441-a90c-95f08d176e92", "name": "Delete SKU kit by kit ID", "request": { "name": "Delete SKU kit by kit ID", @@ -15774,24 +12709,6 @@ "type": "any", "value": "1", "key": "kitId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -15815,14 +12732,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "1dc8ef49-8ab6-4a16-b1ab-a59fe04aecd5", + "id": "11f960ba-3c11-44c8-b708-77c5d779f752", "name": "OK", "originalRequest": { "url": { @@ -15837,46 +12755,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Kit's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "kitId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -15894,6 +12775,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -15901,13 +12790,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -15915,7 +12798,7 @@ { "listen": "test", "script": { - "id": "a449c3d7-719c-4ba0-95b2-70abe5792c3a", + "id": "8399b765-d955-4b7b-84c6-a253dd0c10f7", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunitkit/:kitId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -15931,7 +12814,7 @@ "event": [] }, { - "id": "fe33a391-8e1f-4e39-bdf4-3b19d97c421b", + "id": "e0fce214-a0a5-40fa-9293-9f3d2ccb7e43", "name": "SKU specification", "description": { "content": "", @@ -15939,7 +12822,7 @@ }, "item": [ { - "id": "644ed5d1-a5db-4f96-b746-a40d2f2cee64", + "id": "c9f2d833-0865-4271-ba3e-2f6065c9f25a", "name": "Get SKU specifications", "request": { "name": "Get SKU specifications", @@ -15970,24 +12853,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -16009,16 +12874,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "986a215f-8cc2-4f6f-b7c8-97df087987e0", + "id": "90b415f7-6865-42a9-a79a-38a288c79685", "name": "OK", "originalRequest": { "url": { @@ -16034,46 +12904,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -16095,6 +12928,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -16116,13 +12957,13 @@ { "listen": "test", "script": { - "id": "705b7ab9-cb77-401a-983e-432fa64d261c", + "id": "e2d67709-4d2e-45d2-9ab7-19e787e4e7cd", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - 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]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"ID of the association of the specification and the SKU. This ID is used to update or delete the specification.\"},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\"},\"FieldValueId\":{\"type\":\"integer\",\"description\":\"Specification value ID. Required only for `FieldTypeId` as `5`, `6` and `7`.\"},\"Text\":{\"type\":\"string\",\"description\":\"Value of specification. Only for `FieldTypeId` different from `5`, `6` and `7`.\"}},\"example\":{\"Id\":1505,\"SkuId\":1234568387,\"FieldId\":193,\"FieldValueId\":360,\"Text\":\"Size 10\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - 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\":{\"Id\":{\"type\":\"integer\",\"description\":\"ID of the association of the specification and the SKU. This ID is used to update or delete the specification.\"},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\"},\"FieldValueId\":{\"type\":\"integer\",\"description\":\"Specification value ID. Required only for `FieldTypeId` as `5`, `6` and `7`.\"},\"Text\":{\"type\":\"string\",\"description\":\"Value of specification. Only for `FieldTypeId` different from `5`, `6` and `7`.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -16132,7 +12973,7 @@ } }, { - "id": "f7910350-fc5c-4852-b6af-fa6fec3a6cb5", + "id": "a1b74a3a-26bf-4d4e-b021-90d5703c70f6", "name": "Associate SKU specification", "request": { "name": "Associate SKU specification", @@ -16163,24 +13004,6 @@ "type": "any", "value": "1234568387", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -16202,6 +13025,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -16210,6 +13041,7 @@ "raw": "{\n \"FieldId\": 13,\n \"FieldValueId\": 101\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -16220,7 +13052,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "945998f4-ef46-4ea2-9e5b-c6ce37cad288", + "id": "6285c6e1-f0aa-47bf-8d3f-6686abb1685b", "name": "OK", "originalRequest": { "url": { @@ -16236,46 +13068,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1234568387", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -16294,9 +13089,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -16305,6 +13112,7 @@ "raw": "{\n \"FieldId\": 13,\n \"FieldValueId\": 101\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -16326,7 +13134,7 @@ { "listen": "test", "script": { - "id": "088462ce-5c5d-4e12-b00e-c38120e91aef", + "id": "e054b8d7-4bcc-4dff-ae36-80e2fcd234d8", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -16342,7 +13150,7 @@ } }, { - "id": "efe1f951-98d4-468c-a1f3-72ac4ba5a91f", + "id": "80dcb32a-b49f-4980-b2c6-681b95f7d400", "name": "Update SKU specification", "request": { "name": "Update SKU specification", @@ -16373,24 +13181,6 @@ "type": "any", "value": "21", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -16412,6 +13202,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -16420,6 +13218,7 @@ "raw": "{\n \"Id\": 65,\n \"FieldId\": 32,\n \"FieldValueId\": 131,\n \"SkuId\": 21,\n \"Text\": \"Red\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -16430,7 +13229,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "fc1ace05-19ec-4483-b254-ede96c1a3299", + "id": "2f003253-e70c-4ce6-9ae3-9ec8ae15f064", "name": "OK", "originalRequest": { "url": { @@ -16446,46 +13245,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "21", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -16504,9 +13266,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -16515,6 +13289,7 @@ "raw": "{\n \"Id\": 65,\n \"FieldId\": 32,\n \"FieldValueId\": 131,\n \"SkuId\": 21,\n \"Text\": \"Red\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -16536,13 +13311,13 @@ { "listen": "test", "script": { - "id": "26be8efa-8727-47cf-9a1e-d4831011727a", + "id": "03151f91-91c0-4148-8960-9689a262ec20", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - 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]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"ID of the association of the specification and the SKU. This ID is used to update or delete the specification.\"},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\"},\"FieldValueId\":{\"type\":\"integer\",\"description\":\"Specification value ID. Required only for `FieldTypeId` as `5`, `6` and `7`.\"},\"Text\":{\"type\":\"string\",\"description\":\"Value of specification. Only for `FieldTypeId` different from `5`, `6` and `7`.\"}},\"example\":{\"Id\":1505,\"SkuId\":1234568387,\"FieldId\":193,\"FieldValueId\":360,\"Text\":\"Size 10\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - 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\":{\"Id\":{\"type\":\"integer\",\"description\":\"ID of the association of the specification and the SKU. This ID is used to update or delete the specification.\"},\"SkuId\":{\"type\":\"integer\",\"description\":\"SKU ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\"},\"FieldValueId\":{\"type\":\"integer\",\"description\":\"Specification value ID. Required only for `FieldTypeId` as `5`, `6` and `7`.\"},\"Text\":{\"type\":\"string\",\"description\":\"Value of specification. Only for `FieldTypeId` different from `5`, `6` and `7`.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -16552,7 +13327,7 @@ } }, { - "id": "8059740b-726a-4b0f-ae6d-c9fd9e9de6d2", + "id": "daff3541-ce2c-468e-b081-65512057b732", "name": "Delete all SKU specifications", "request": { "name": "Delete all SKU specifications", @@ -16583,24 +13358,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -16624,14 +13381,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "4eed7652-625b-4c8f-985a-5f31785391fc", + "id": "95506d09-a4d6-4858-9bf9-8e376f83c156", "name": "OK", "originalRequest": { "url": { @@ -16647,46 +13405,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -16704,20 +13425,22 @@ }, "key": "Accept", "value": "application/json" - } - ], - "method": "DELETE", - "body": {} - }, - "status": "OK", - "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" + } + ], + "method": "DELETE", + "body": {} + }, + "status": "OK", + "code": 200, + "header": [], "cookie": [] } ], @@ -16725,7 +13448,7 @@ { "listen": "test", "script": { - "id": "ba38b0d9-fbae-43f5-a3ad-c786d135fe9f", + "id": "09ea9ffa-0e31-431a-ab76-a8de28b10adf", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunit/:skuId/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -16738,7 +13461,7 @@ } }, { - "id": "6a6b5cc2-c6a3-4a77-a50a-308636c8eff3", + "id": "7a154ab0-9cc8-4a7f-9b0e-4a3cf282519f", "name": "Delete SKU specification", "request": { "name": "Delete SKU specification", @@ -16780,24 +13503,6 @@ "type": "any", "value": "1", "key": "specificationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -16821,14 +13526,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "6c550456-b063-4390-ae24-428d3bcfb090", + "id": "42a71b34-9126-4142-b19d-68651f46c2f7", "name": "OK", "originalRequest": { "url": { @@ -16845,56 +13551,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Specification's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "specificationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -16912,6 +13571,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -16919,13 +13586,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -16933,7 +13594,7 @@ { "listen": "test", "script": { - "id": "ffe08ffb-be04-42d6-89d2-0b6f3c0d787b", + "id": "b23aebac-eaa0-4e3e-a7a5-cf874ebb88f4", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/stockkeepingunit/:skuId/specification/:specificationId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -16946,7 +13607,7 @@ } }, { - "id": "210872ab-9e28-4fa5-a2e9-2a08d3507886", + "id": "94dbe9c5-8253-4ca8-83b8-ed391300d9c2", "name": "Associate SKU specification using specification name and group name", "request": { "name": "Associate SKU specification using specification name and group name", @@ -16977,24 +13638,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -17016,6 +13659,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -17024,6 +13675,7 @@ "raw": "{\n \"FieldName\": \"Size\",\n \"GroupName\": \"Sizes\",\n \"RootLevelSpecification\": true,\n \"FieldValues\": [\n \"M\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -17034,7 +13686,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "0e51ece1-5c20-4958-8309-b0a7c93c408d", + "id": "3a935384-c106-4659-8f27-ac60dfea864b", "name": "OK", "originalRequest": { "url": { @@ -17050,46 +13702,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -17108,17 +13723,30 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", "body": { "mode": "raw", - "raw": "{\n \"FieldName\": \"Material\",\n \"GroupName\": \"Composition\",\n \"RootLevelSpecification\": true,\n \"FieldValues\": [\n \"M\"\n ]\n}", + "raw": "{\n \"FieldName\": \"Size\",\n \"GroupName\": \"Sizes\",\n \"RootLevelSpecification\": true,\n \"FieldValues\": [\n \"M\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -17140,7 +13768,7 @@ { "listen": "test", "script": { - "id": "ce9c87ec-578e-461a-b35b-1dcb217defd4", + "id": "2b064081-3944-451e-9fe9-15f48bded272", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/stockkeepingunit/:skuId/specificationvalue - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -17159,7 +13787,7 @@ "event": [] }, { - "id": "b9b84e82-e42a-4a76-bc95-927dc0019c8c", + "id": "7d1a5a6b-cfc1-4862-9f27-9a851fc63d5c", "name": "SKU attachment", "description": { "content": "", @@ -17167,7 +13795,7 @@ }, "item": [ { - "id": "7cbf33dd-f1dc-4324-af7b-7187c827c4cf", + "id": "98dc2016-04e8-45f2-84ee-3536c3b36a39", "name": "Associate SKU attachment", "request": { "name": "Associate SKU attachment", @@ -17186,26 +13814,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -17225,6 +13834,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -17233,6 +13850,7 @@ "raw": "{\n \"AttachmentId\": 1,\n \"SkuId\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -17243,7 +13861,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "6dec36f8-919f-4f1d-8260-f7c9f109eb0c", + "id": "732322c4-1a44-40a5-ad53-854a7bd55c81", "name": "OK", "originalRequest": { "url": { @@ -17257,36 +13875,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -17305,9 +13896,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -17316,6 +13919,7 @@ "raw": "{\n \"AttachmentId\": 1,\n \"SkuId\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -17337,7 +13941,7 @@ { "listen": "test", "script": { - "id": "4ea7a864-a068-4853-b1a0-f5fc274f850a", + "id": "9ec97676-23f5-4161-9a34-8444b7f529bd", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/skuattachment - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -17353,7 +13957,7 @@ } }, { - "id": "703e893b-49dc-450a-8b62-d525f4c7add8", + "id": "d4b20ba3-1266-4368-9458-9648b9f9853a", "name": "Dissociate attachments and SKUs", "request": { "name": "Dissociate attachments and SKUs", @@ -17391,26 +13995,7 @@ "value": "1" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -17432,14 +14017,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "75f29c49-5d8a-40bf-979e-c25b565a81f0", + "id": "0f870c39-8e1e-4a1e-bf75-1aa74752a740", "name": "OK", "originalRequest": { "url": { @@ -17454,44 +14040,27 @@ ], "query": [ { - "key": "skuId", - "value": "1" - }, - { - "key": "attachmentId", - "value": "1" - } - ], - "variable": [ - { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "SKU ID. By using this query param, you can dissociate all the attachments from an SKU based on its SKU ID.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "skuId", + "value": "1" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "Attachment ID. By using this query param, you can dissociate the given attachment from all previously associated SKUs.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "attachmentId", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -17509,6 +14078,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -17516,13 +14093,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -17530,7 +14101,7 @@ { "listen": "test", "script": { - "id": "78a9aee8-9d24-425a-8406-47a30cf19dbf", + "id": "2b6d7ae9-2122-4188-8c3b-d12bed84f70a", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/skuattachment - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -17543,7 +14114,7 @@ } }, { - "id": "269b7c2b-894b-4cd4-bcd7-42722f945fb9", + "id": "8796e4c5-9e49-469f-a7b6-01eb0e5f7d33", "name": "Get SKU attachments by SKU ID", "request": { "name": "Get SKU attachments by SKU ID", @@ -17574,24 +14145,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -17613,16 +14166,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "801d0b23-707a-4ba7-a05e-c7b2a69aa521", + "id": "fed2e2a4-98a1-4692-8d98-31762e74c6de", "name": "OK", "originalRequest": { "url": { @@ -17638,46 +14196,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -17699,6 +14220,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -17720,7 +14249,7 @@ { "listen": "test", "script": { - "id": "83a9cbe9-f711-484d-b85b-0338714297b0", + "id": "75b63a9e-fff6-42d3-ae9b-1122cd0d5893", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/attachment - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -17736,7 +14265,7 @@ } }, { - "id": "35532633-612d-4f37-8c58-c022de1a0069", + "id": "bcf2c741-a4c2-4cc5-86ea-61f1dcf6a73a", "name": "Delete SKU attachment by attachment association ID", "request": { "name": "Delete SKU attachment by attachment association ID", @@ -17766,24 +14295,6 @@ "type": "any", "value": "1", "key": "skuAttachmentAssociationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -17807,14 +14318,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "10d95d60-39c8-45cf-85af-385dfb85922c", + "id": "06c649b4-7839-4e36-9868-661a84d73615", "name": "OK", "originalRequest": { "url": { @@ -17829,46 +14341,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ID of the association between the attachment and the SKU, which corresponds to the `Id` in the response body of the [Associate SKU attachment](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-post-sku-attachment) and the [Get SKU attachment by SKU ID](https://developers.vtex.com/vtex-rest-api/reference/get_api-catalog-pvt-stockkeepingunit-skuid-attachment) endpoints.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuAttachmentAssociationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -17886,6 +14361,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -17893,13 +14376,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -17907,7 +14384,7 @@ { "listen": "test", "script": { - "id": "1eb265f1-6350-40b4-9954-8e46809a28f7", + "id": "1baec3df-ab59-429f-acdb-3f3030e7ebc6", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/skuattachment/:skuAttachmentAssociationId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -17920,7 +14397,7 @@ } }, { - "id": "82403495-e432-4146-95a9-c69357d47a0b", + "id": "6a5cc833-a307-45c9-b887-4cb36dc7c31a", "name": "Associate attachments to an SKU", "request": { "name": "Associate attachments to an SKU", @@ -17940,26 +14417,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -17979,6 +14437,10 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], "method": "POST", @@ -17987,6 +14449,7 @@ "raw": "{\n \"SkuId\": 1,\n \"AttachmentNames\": [\n \"T-Shirt Customization\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -17997,7 +14460,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "cda52d9c-8a6f-4c1d-9b3f-274c729d575c", + "id": "a038fd1c-816a-447b-9230-e55f27ad99d0", "name": "OK", "originalRequest": { "url": { @@ -18012,36 +14475,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -18059,6 +14495,18 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -18067,6 +14515,7 @@ "raw": "{\n \"SkuId\": 1,\n \"AttachmentNames\": [\n \"T-Shirt Customization\"\n ]\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -18074,13 +14523,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -18088,7 +14531,7 @@ { "listen": "test", "script": { - "id": "7d6672c4-faeb-439a-b468-193fba5af3a6", + "id": "8626d5a8-4039-4d11-a946-e9201853ad6a", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pvt/sku/associateattachments - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -18104,7 +14547,7 @@ "event": [] }, { - "id": "d86177e5-f6f2-4217-9d07-b047b51f4d0f", + "id": "b836d8c9-c2f5-4450-b32c-c334204908f2", "name": "SKU complement", "description": { "content": "", @@ -18112,7 +14555,7 @@ }, "item": [ { - "id": "0cf39474-1420-4e51-8ead-3b64d9cacbf5", + "id": "afcfb4c3-70aa-426d-a35d-400cf222f4c2", "name": "Get SKU complement by SKU ID", "request": { "name": "Get SKU complement by SKU ID", @@ -18143,24 +14586,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -18182,16 +14607,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "9c91797c-070f-485b-9105-fabc52eb2ada", + "id": "9f52f541-38d2-4313-b482-4a0f65362879", "name": "OK", "originalRequest": { "url": { @@ -18207,46 +14637,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -18268,6 +14661,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -18289,7 +14690,7 @@ { "listen": "test", "script": { - "id": "0864ce4b-0882-4549-813a-f70234b5ef7d", + "id": "297d45cf-5cb7-459e-aea7-4ca45e172ca3", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/complement - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -18305,7 +14706,7 @@ } }, { - "id": "be02aab0-c3bd-4867-beca-59e4ba05bd9e", + "id": "fd668c16-9f86-48e4-8d8a-9981bb1e5f54", "name": "Get SKU complements by complement type ID", "request": { "name": "Get SKU complements by complement type ID", @@ -18347,24 +14748,6 @@ "type": "any", "value": "1", "key": "complementTypeId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -18386,16 +14769,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "7eadad6a-ce13-4e92-aeac-ae7530cb7f01", + "id": "786efb2f-b5d2-4911-86fd-ea775692a39d", "name": "OK", "originalRequest": { "url": { @@ -18412,56 +14800,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ID of the SKU which will be inserted as a complement in the parent SKU.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Complement type ID. This represents the type of the complement. The possible values are: `1` for **Accessory**; `2` for **Suggestion**; `3` for **Similar product**; `5` for **Show together**.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "complementTypeId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -18483,6 +14824,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -18504,7 +14853,7 @@ { "listen": "test", "script": { - "id": "bfff9d81-cf45-47e0-8637-672efc18b239", + "id": "22f38811-3d43-48f7-9bac-32f871030522", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/stockkeepingunit/:skuId/complement/:complementTypeId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -18520,7 +14869,7 @@ } }, { - "id": "f7d44dfb-8467-4432-ae5c-422ae6ef751f", + "id": "4c3dfef4-0ee0-4c34-84b5-e36d40a98010", "name": "Get SKU complements by type", "request": { "name": "Get SKU complements by type", @@ -18562,24 +14911,6 @@ "type": "any", "value": "1", "key": "type" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -18601,16 +14932,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "f54cc323-ee84-459c-bd44-4a2efae93e4d", + "id": "80398261-3b1f-4763-a293-f74b91db7744", "name": "OK", "originalRequest": { "url": { @@ -18627,56 +14963,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ID of the parent SKU, where the complement is inserted.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "parentSkuId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Complement type ID. This represents the type of the complement. The possible values are: `1` for **Accessory**; `2` for **Suggestion**; `3` for **Similar product**; `5` for **Show together**.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "type" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -18698,6 +14987,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -18719,7 +15016,7 @@ { "listen": "test", "script": { - "id": "c300af09-67f2-4e7a-a9bf-5fd07e6e800f", + "id": "bbec98cd-7d81-4a44-8250-8bb75fd84f82", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sku/complements/:parentSkuId/:type - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -18735,7 +15032,7 @@ } }, { - "id": "f8a5862c-cd64-460d-a307-93c6790191d6", + "id": "8fc3d266-1451-4c34-8618-5fba60609a0b", "name": "Create SKU complement", "request": { "name": "Create SKU complement", @@ -18754,26 +15051,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -18793,6 +15071,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -18801,6 +15087,7 @@ "raw": "{\n \"ParentSkuId\": 1,\n \"SkuId\": 2,\n \"ComplementTypeId\": 2\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -18811,7 +15098,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "d595e79a-797f-4fc1-a584-33248c5e6284", + "id": "79b0e943-151f-40b1-9a76-ed505a07b93a", "name": "OK", "originalRequest": { "url": { @@ -18825,36 +15112,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -18873,9 +15133,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -18884,6 +15156,7 @@ "raw": "{\n \"ParentSkuId\": 1,\n \"SkuId\": 2,\n \"ComplementTypeId\": 2\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -18905,7 +15178,7 @@ { "listen": "test", "script": { - "id": "5d411342-b015-4801-ad22-f87ea04c9f98", + "id": "5afbc582-e1e0-45d0-9316-846059f9a0eb", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/skucomplement - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -18921,7 +15194,7 @@ } }, { - "id": "36acb8a2-720c-48a7-9a30-f901b17a971a", + "id": "87e1bab2-7c62-46e6-9e37-7d802748b458", "name": "Get SKU complement by SKU complement ID", "request": { "name": "Get SKU complement by SKU complement ID", @@ -18951,24 +15224,6 @@ "type": "any", "value": "1", "key": "skuComplementId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -18990,16 +15245,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "06619321-19aa-4a8b-b35f-9906426373a4", + "id": "600f229e-e490-4444-9d37-6e4c4fa40049", "name": "OK", "originalRequest": { "url": { @@ -19014,46 +15274,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU complement's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuComplementId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -19075,6 +15298,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -19096,7 +15327,7 @@ { "listen": "test", "script": { - "id": "5175771f-138c-49ff-bf43-160eab53dc46", + "id": "6e06f56c-c080-4607-bee5-edd494bfe7e0", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/skucomplement/:skuComplementId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -19112,7 +15343,7 @@ } }, { - "id": "dbc505d7-60ec-402e-b732-0f605bdbcff7", + "id": "ee2bab7b-e018-424a-87dc-74d7ac779dec", "name": "Delete SKU complement by SKU complement ID", "request": { "name": "Delete SKU complement by SKU complement ID", @@ -19142,24 +15373,6 @@ "type": "any", "value": "1", "key": "skuComplementId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -19183,14 +15396,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "d164306b-fec7-44b4-b667-ca48d573ffa0", + "id": "7c343a76-ac6e-4ead-bd3b-2491bd02d2f1", "name": "OK", "originalRequest": { "url": { @@ -19205,46 +15419,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) SKU complement's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuComplementId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -19262,6 +15439,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -19269,13 +15454,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -19283,7 +15462,7 @@ { "listen": "test", "script": { - "id": "fe4a9c0c-2976-4ff9-8081-f0c9317e2c27", + "id": "3f2f87bd-6bc2-4b4b-a857-b6e691c3f73a", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/skucomplement/:skuComplementId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -19299,7 +15478,7 @@ "event": [] }, { - "id": "41541464-9f5a-4aa8-a75c-73c01c2dd855", + "id": "606efe47-d468-47f8-882a-494e38c64157", "name": "Non-structured specification", "description": { "content": "", @@ -19307,7 +15486,7 @@ }, "item": [ { - "id": "e7a2e0b0-58bb-40b2-80b6-4bce4cebae76", + "id": "df2abd9b-70ba-4bed-90ac-8581a71abc7b", "name": "Get non-structured specification by ID", "request": { "name": "Get non-structured specification by ID", @@ -19338,24 +15517,6 @@ "type": "any", "value": "1010", "key": "Id" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -19377,16 +15538,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "053a9b8a-987e-4e3a-a2e2-6509779699a4", + "id": "68d59941-4f2f-4917-bf48-dc65c3859d82", "name": "OK", "originalRequest": { "url": { @@ -19402,46 +15568,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Non-structured specification's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1010", - "key": "Id" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -19463,6 +15592,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -19484,7 +15621,7 @@ { "listen": "test", "script": { - "id": "60782c30-3abd-4d00-a5d8-ff75bf0f07e0", + "id": "ed8e6c38-5caa-4746-9c9b-8e4bd7fbe090", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/specification/nonstructured/:Id - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -19500,7 +15637,7 @@ } }, { - "id": "6e187a3a-139a-45f3-8335-e4fc0d164456", + "id": "4904507f-44c8-4a62-a637-dcaba44f4010", "name": "Delete non-structured specification", "request": { "name": "Delete non-structured specification", @@ -19531,24 +15668,6 @@ "type": "any", "value": "1", "key": "Id" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -19572,14 +15691,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "ab8dd208-9f51-4405-b830-3a16a405b741", + "id": "94c4dac3-b333-4c88-a2e5-bee32d8343bc", "name": "OK", "originalRequest": { "url": { @@ -19595,46 +15715,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Non-structured specification's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "Id" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -19652,6 +15735,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -19659,13 +15750,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -19673,7 +15758,7 @@ { "listen": "test", "script": { - "id": "ed2700b6-f6d3-4204-9611-b56c773e8179", + "id": "b3d26bbe-5c5e-401d-bee6-1f56ce1bf2aa", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/specification/nonstructured/:Id - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -19686,7 +15771,7 @@ } }, { - "id": "4b868a15-3f06-4218-943d-f85491020772", + "id": "94185d5b-70f0-408c-b0e1-653017520641", "name": "Get non-structured specification by SKU ID", "request": { "name": "Get non-structured specification by SKU ID", @@ -19716,26 +15801,7 @@ "value": "1" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -19755,16 +15821,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "018ac00e-1bef-451e-b9d6-a8535ba83e6f", + "id": "24d862ab-ebc8-4b7f-b99b-737aa6b4db0b", "name": "OK", "originalRequest": { "url": { @@ -19780,40 +15851,18 @@ ], "query": [ { - "key": "skuId", - "value": "1" - } - ], - "variable": [ - { - "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": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "(Required) SKU's unique numerical identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "skuId", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -19835,6 +15884,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -19856,7 +15913,7 @@ { "listen": "test", "script": { - "id": "290c8448-d2d2-4760-acac-d6390edee7d5", + "id": "8b634f8d-a712-4d61-bd42-04e1ddf62f9c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/specification/nonstructured - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -19872,7 +15929,7 @@ } }, { - "id": "408c5d25-b70e-4213-b502-63b5262d9c9f", + "id": "00976eb5-45d6-4f8b-95cf-31d4a90c0185", "name": "Delete non-structured specification by SKU ID", "request": { "name": "Delete non-structured specification by SKU ID", @@ -19902,26 +15959,7 @@ "value": "1" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -19943,14 +15981,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "11304980-0590-45e9-828a-585bebdf51ad", + "id": "1984cd71-d6db-4708-8e56-0316a014a18b", "name": "OK", "originalRequest": { "url": { @@ -19966,40 +16005,18 @@ ], "query": [ { - "key": "skuId", - "value": "1" - } - ], - "variable": [ - { - "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": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "(Required) SKU's unique numerical identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "skuId", + "value": "1" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -20017,6 +16034,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -20024,13 +16049,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -20038,7 +16057,7 @@ { "listen": "test", "script": { - "id": "4f723492-6a4b-4ee7-b54c-451cb3f05d30", + "id": "5b1e0f22-50f8-449f-92d6-d8c1ce6522d9", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/specification/nonstructured - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -20054,7 +16073,7 @@ "event": [] }, { - "id": "99da5698-8967-42a2-870d-5b1e7726f65c", + "id": "b7e884a2-c28d-4994-8041-7c46da68f4b4", "name": "Specification field", "description": { "content": "", @@ -20062,7 +16081,7 @@ }, "item": [ { - "id": "b359373f-ed88-4d4b-a092-9e61bb90c16a", + "id": "fd6929c5-a9bd-4766-ae0f-be90f4054bab", "name": "Get specification field", "request": { "name": "Get specification field", @@ -20093,24 +16112,6 @@ "type": "any", "value": "88", "key": "fieldId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -20132,16 +16133,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "d28ebd4b-0699-4969-9514-1ef186dcf6e4", + "id": "55d16dd5-21d3-4cdc-aa59-19d0b3538bf2", "name": "OK", "originalRequest": { "url": { @@ -20157,46 +16163,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Specification field ID.", - "type": "text/plain" - }, - "type": "any", - "value": "88", - "key": "fieldId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -20218,6 +16187,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -20239,13 +16216,13 @@ { "listen": "test", "script": { - "id": "21c160e8-efaa-41f0-8054-eaabd6362ebe", + "id": "3eb3934d-ca1b-4ee4-ad3c-1d1fae946e8c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pub/specification/fieldGet/:fieldId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pub/specification/fieldGet/:fieldId - 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]::/api/catalog_system/pub/specification/fieldGet/:fieldId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Name\":{\"type\":\"string\",\"description\":\"Specification field name.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Makes the specification mandatory (`true`) or optional (`false`).\"},\"FieldTypeId\":{\"type\":\"integer\",\"description\":\"Field type ID can be `1 - Text`, `2 - Multi-Line Text`, `4 - Number`, `5 - Combo`, `6 - Radio`, `7 - Checkbox`, `8 - Indexed Text`, `9 - Indexed Multi-Line Text`.\"},\"FieldTypeName\":{\"type\":\"string\",\"description\":\"Field type name, which can be `Text`, `Multi-Line Text`, `Number`, `Combo`, `Radio`, `Checkbox`, `Indexed Text` or `Indexed Multi-Line Text`.\"},\"FieldValueId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Specification value ID.\"},\"Description\":{\"type\":[\"string\",\"null\"],\"deprecated\":true},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"If `true`, it will be added as a SKU specification. If `false`, it will be added as a product specification field.\"},\"IsFilter\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To allow the specification to be used as a facet (filter) on the search navigation bar.\"},\"IsOnProductDetails\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal -If specification is visible on the product page.\"},\"Position\":{\"type\":\"integer\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - This position number is used in ordering the specifications both in the navigation menu and in the specification listing on the product page.\"},\"IsWizard\":{\"type\":[\"boolean\",\"null\"],\"deprecated\":true,\"description\":\"Deprecated field.\"},\"IsTopMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification visible in the store's upper menu.\"},\"IsSideMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification field clickable in the search navigation bar.\"},\"DefaultValue\":{\"type\":[\"string\",\"null\"],\"description\":\"Specification default value.\"},\"FieldGroupId\":{\"type\":\"integer\",\"description\":\"ID of the group of specifications that contains the new specification.\"},\"FieldGroupName\":{\"type\":\"string\",\"description\":\"Specification field group name.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/specification/fieldGet/:fieldId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Name\":{\"type\":\"string\",\"description\":\"Specification field name.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Makes the specification mandatory (`true`) or optional (`false`).\"},\"FieldTypeId\":{\"type\":\"integer\",\"description\":\"Field type ID can be `1 - Text`, `2 - Multi-Line Text`, `4 - Number`, `5 - Combo`, `6 - Radio`, `7 - Checkbox`, `8 - Indexed Text`, `9 - Indexed Multi-Line Text`.\"},\"FieldTypeName\":{\"type\":\"string\",\"description\":\"Field type name, which can be `Text`, `Multi-Line Text`, `Number`, `Combo`, `Radio`, `Checkbox`, `Indexed Text` or `Indexed Multi-Line Text`.\"},\"FieldValueId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Specification value ID.\"},\"Description\":{\"type\":[\"string\",\"null\"]},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"If `true`, it will be added as a SKU specification. If `false`, it will be added as a product specification field.\"},\"IsFilter\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To allow the specification to be used as a facet (filter) on the search navigation bar.\"},\"IsOnProductDetails\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal -If specification is visible on the product page.\"},\"Position\":{\"type\":\"integer\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - This position number is used in ordering the specifications both in the navigation menu and in the specification listing on the product page.\"},\"IsWizard\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Deprecated field.\"},\"IsTopMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification visible in the store's upper menu.\"},\"IsSideMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification field clickable in the search navigation bar.\"},\"DefaultValue\":{\"type\":[\"string\",\"null\"],\"description\":\"Specification default value.\"},\"FieldGroupId\":{\"type\":\"integer\",\"description\":\"ID of the group of specifications that contains the new specification.\"},\"FieldGroupName\":{\"type\":\"string\",\"description\":\"Specification field group name.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/specification/fieldGet/:fieldId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -20255,7 +16232,7 @@ } }, { - "id": "12801adf-c446-43a0-ad27-3e47f3fc6d2f", + "id": "4888d248-6459-45bd-af86-4aac34daeef6", "name": "Create specification field", "request": { "name": "Create specification field", @@ -20275,26 +16252,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -20314,6 +16272,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -20322,6 +16288,7 @@ "raw": "{\n \"Name\": \"Material\",\n \"CategoryId\": 4,\n \"FieldId\": 88,\n \"IsActive\": true,\n \"IsRequired\": true,\n \"FieldTypeId\": 1,\n \"FieldValueId\": 1,\n \"IsStockKeepingUnit\": false,\n \"Description\": \"Composition of the product.\",\n \"IsFilter\": true,\n \"IsOnProductDetails\": false,\n \"Position\": 1,\n \"IsWizard\": false,\n \"IsTopMenuLinkActive\": true,\n \"IsSideMenuLinkActive\": true,\n \"DefaultValue\": null,\n \"FieldGroupId\": 20,\n \"FieldGroupName\": \"Clothes specifications\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -20332,7 +16299,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "651e3978-22ca-40ea-8b52-10472697366b", + "id": "c21b3e82-cb4a-45ed-90b7-0e8eadd4ae78", "name": "OK", "originalRequest": { "url": { @@ -20347,36 +16314,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -20395,9 +16335,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -20406,6 +16358,7 @@ "raw": "{\n \"Name\": \"Material\",\n \"CategoryId\": 4,\n \"FieldId\": 88,\n \"IsActive\": true,\n \"IsRequired\": true,\n \"FieldTypeId\": 1,\n \"FieldValueId\": 1,\n \"IsStockKeepingUnit\": false,\n \"Description\": \"Composition of the product.\",\n \"IsFilter\": true,\n \"IsOnProductDetails\": false,\n \"Position\": 1,\n \"IsWizard\": false,\n \"IsTopMenuLinkActive\": true,\n \"IsSideMenuLinkActive\": true,\n \"DefaultValue\": null,\n \"FieldGroupId\": 20,\n \"FieldGroupName\": \"Clothes specifications\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -20427,7 +16380,7 @@ { "listen": "test", "script": { - "id": "361aab9e-cff6-4a03-9c27-8db9eadc00d2", + "id": "84af5bb1-f93c-459f-a5f4-0bbc96098515", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pvt/specification/field - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -20443,7 +16396,7 @@ } }, { - "id": "6fda8f28-21dc-4b81-8ce1-735f87ce868c", + "id": "3b196c10-cab8-4311-8366-fe0e0516625d", "name": "Update specification field", "request": { "name": "Update specification field", @@ -20463,26 +16416,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -20502,6 +16436,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -20510,6 +16452,7 @@ "raw": "{\n \"FieldId\": 89,\n \"Name\": \"Material\",\n \"CategoryId\": 4,\n \"IsActive\": true,\n \"IsRequired\": true,\n \"FieldTypeId\": 1,\n \"Description\": \"Composition of the product.\",\n \"IsStockKeepingUnit\": false,\n \"IsFilter\": true,\n \"IsOnProductDetails\": true,\n \"Position\": 1,\n \"IsWizard\": false,\n \"IsTopMenuLinkActive\": false,\n \"IsSideMenuLinkActive\": false,\n \"DefaultValue\": \"Cotton\",\n \"FieldGroupId\": 20,\n \"FieldGroupName\": \"Clothes specifications\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -20520,7 +16463,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "197b9574-9d40-471a-8bd7-d567155026f4", + "id": "18732a99-8e9c-489e-aebc-9698fe88a6b5", "name": "OK", "originalRequest": { "url": { @@ -20535,36 +16478,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -20583,9 +16499,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -20594,6 +16522,7 @@ "raw": "{\n \"FieldId\": 89,\n \"Name\": \"Material\",\n \"CategoryId\": 4,\n \"IsActive\": true,\n \"IsRequired\": true,\n \"FieldTypeId\": 1,\n \"Description\": \"Composition of the product.\",\n \"IsStockKeepingUnit\": false,\n \"IsFilter\": true,\n \"IsOnProductDetails\": true,\n \"Position\": 1,\n \"IsWizard\": false,\n \"IsTopMenuLinkActive\": false,\n \"IsSideMenuLinkActive\": false,\n \"DefaultValue\": \"Cotton\",\n \"FieldGroupId\": 20,\n \"FieldGroupName\": \"Clothes specifications\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -20615,7 +16544,7 @@ { "listen": "test", "script": { - "id": "c263a157-113d-41d6-8a8a-93343e7132e8", + "id": "2c4f5c36-dd52-49a8-95e6-f39b38fe26b2", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog_system/pvt/specification/field - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -20634,7 +16563,7 @@ "event": [] }, { - "id": "71a6979a-c2e6-4033-97fe-85e83ab1e20d", + "id": "56ddce43-6fa4-4ac3-a263-a4a634a394fe", "name": "Specification group", "description": { "content": "", @@ -20642,7 +16571,7 @@ }, "item": [ { - "id": "7463b79a-0f04-4392-a630-db7b7fd1012b", + "id": "7bc197bd-9fa5-413e-9976-fd690131d268", "name": "List specification group by category", "request": { "name": "List specification group by category", @@ -20673,24 +16602,6 @@ "type": "any", "value": "1", "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -20712,16 +16623,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "febf98e0-c8ea-43a6-a24c-c9814442d850", + "id": "47defe9f-47b5-4278-8db8-a20ef878e19d", "name": "OK", "originalRequest": { "url": { @@ -20737,46 +16653,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Category ID.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -20798,6 +16677,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -20819,13 +16706,13 @@ { "listen": "test", "script": { - "id": "8a6c2b00-1535-472e-9a62-d06c7f7ef571", + "id": "0ee77613-92aa-489b-af5b-83929fbc8893", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/specification/groupbycategory/:categoryId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/specification/groupbycategory/:categoryId - 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]::/api/catalog_system/pvt/specification/groupbycategory/:categoryId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"required\":[\"CategoryId\",\"Id\",\"Name\",\"Position\"],\"type\":\"object\",\"properties\":{\"CategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Category ID.\"},\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification group ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification group name.\"},\"Position\":{\"type\":[\"integer\",\"null\"],\"format\":\"int32\",\"description\":\"Specification group position.\"}},\"example\":{\"CategoryId\":1,\"Id\":4,\"Name\":\"Sizes\",\"Position\":1}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/specification/groupbycategory/:categoryId - 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\":{\"required\":[\"CategoryId\",\"Id\",\"Name\",\"Position\"],\"type\":\"object\",\"properties\":{\"CategoryId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Category ID.\"},\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification group ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification group name.\"},\"Position\":{\"type\":[\"integer\",\"null\"],\"format\":\"int32\",\"description\":\"Specification group position.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/specification/groupbycategory/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -20835,7 +16722,7 @@ } }, { - "id": "cbeac04a-580b-4384-9d51-4cc622e4e075", + "id": "28204c58-155e-457d-8ebf-ea56c4a5a425", "name": "Get specification group", "request": { "name": "Get specification group", @@ -20866,24 +16753,6 @@ "type": "any", "value": "6", "key": "groupId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -20905,16 +16774,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "9d2b9bf6-6024-477f-aa29-054af2800cb8", + "id": "1f4b8940-5f19-4ddf-b8cd-2e8af8121a90", "name": "OK", "originalRequest": { "url": { @@ -20930,46 +16804,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Specification group ID.", - "type": "text/plain" - }, - "type": "any", - "value": "6", - "key": "groupId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -20991,6 +16828,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -21012,7 +16857,7 @@ { "listen": "test", "script": { - "id": "1b9bd9bd-1999-441a-921c-a4a6a7a1d9ea", + "id": "e016303d-672f-4521-b337-344c9b3e8540", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pub/specification/groupGet/:groupId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -21028,7 +16873,7 @@ } }, { - "id": "32869c59-2925-499e-b2d5-1de2e108e7cc", + "id": "b6d9a4c8-8d09-4af1-a98e-8d519bac71ff", "name": "Create specification group", "request": { "name": "Create specification group", @@ -21047,26 +16892,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -21086,6 +16912,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -21094,6 +16928,7 @@ "raw": "{\n \"CategoryId\": 1,\n \"Name\": \"Sizes\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -21104,7 +16939,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "0a6ab700-4be9-4f41-b857-0683bcab59d0", + "id": "cfeccfcb-fba0-46fa-909f-f5dcaa74b0a1", "name": "OK", "originalRequest": { "url": { @@ -21118,36 +16953,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -21166,9 +16974,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -21177,6 +16997,7 @@ "raw": "{\n \"CategoryId\": 1,\n \"Name\": \"Sizes\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -21198,7 +17019,7 @@ { "listen": "test", "script": { - "id": "31e28e05-1fef-48b1-8fe0-5d64b3abc264", + "id": "370126bd-96f9-4990-a325-d8db967dc4d2", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/specificationgroup - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -21214,7 +17035,7 @@ } }, { - "id": "842eaad3-e298-4d87-97da-04607fe2c831", + "id": "cdb72d52-2dd5-4195-8b51-c94d7a79ae38", "name": "Update specification group", "request": { "name": "Update specification group", @@ -21244,24 +17065,6 @@ "type": "any", "value": "1", "key": "groupId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -21283,6 +17086,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -21291,6 +17102,7 @@ "raw": "{\n \"CategoryId\": 1,\n \"Name\": \"Sizes\",\n \"Id\": 24,\n \"Position\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -21301,7 +17113,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "ec221a59-cf52-4f02-8176-c91ec6ce4f73", + "id": "14ca64c3-3281-4d30-ad89-48e7ac532be3", "name": "OK", "originalRequest": { "url": { @@ -21316,46 +17128,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Group's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "groupId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -21374,17 +17149,30 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" - } - ], - "method": "PUT", - "body": { - "mode": "raw", - "raw": "{\n \"CategoryId\": 1,\n \"Name\": \"Sizes\",\n \"Id\": 24,\n \"Position\": 1\n}", + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" + } + ], + "method": "PUT", + "body": { + "mode": "raw", + "raw": "{\n \"CategoryId\": 1,\n \"Name\": \"Sizes\",\n \"Id\": 24,\n \"Position\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -21406,13 +17194,13 @@ { "listen": "test", "script": { - "id": "1c8d7c12-91c3-433e-85fc-d061f7876c63", + "id": "5386559d-b17f-49f3-8bf0-fa7dae30bd55", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/specificationgroup/:groupId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/specificationgroup/:groupId - 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]::/api/catalog/pvt/specificationgroup/:groupId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID where the specification Group is contained.\",\"example\":1},\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification group ID.\",\"example\":24},\"Name\":{\"type\":\"string\",\"description\":\"Specification group Name.\",\"example\":\"Sizes\"},\"Position\":{\"type\":\"integer\",\"description\":\"Specification group Position.\",\"example\":1}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/specificationgroup/:groupId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID where the specification Group is contained.\"},\"Id\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification group ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification group Name.\"},\"Position\":{\"type\":\"integer\",\"description\":\"Specification group Position.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/specificationgroup/:groupId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -21425,7 +17213,7 @@ "event": [] }, { - "id": "ddbf352e-3e3e-433c-8f79-aba84b741b33", + "id": "8ac3526b-9995-48a9-a729-4bb2af7c845e", "name": "Specification value", "description": { "content": "", @@ -21433,7 +17221,7 @@ }, "item": [ { - "id": "a4f1a1d6-395a-4601-85e3-8fcb4659563b", + "id": "09cbed1f-a7e1-4bf4-9d94-94c8f4a48411", "name": "Get specification value", "request": { "name": "Get specification value", @@ -21463,24 +17251,6 @@ "type": "any", "value": "143", "key": "specificationValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -21502,16 +17272,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "feeefdf4-3874-4fb7-b6f7-6ff7a2418d8b", + "id": "da695cb6-0b0f-46d3-8405-464be12e2c83", "name": "OK", "originalRequest": { "url": { @@ -21526,46 +17301,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Specification value's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "143", - "key": "specificationValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -21587,6 +17325,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -21608,7 +17354,7 @@ { "listen": "test", "script": { - "id": "048e69de-6806-4c7c-881f-64f4b6198cf6", + "id": "f0717582-5fb7-42a7-9ba2-27e6b2eaba19", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/specificationvalue/:specificationValueId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -21624,7 +17370,7 @@ } }, { - "id": "8fb14930-8e4d-452c-a636-139d4ec23aa6", + "id": "712b5309-5388-491c-be1a-7cfc0c8e6ce4", "name": "Update specification value", "request": { "name": "Update specification value", @@ -21654,24 +17400,6 @@ "type": "any", "value": "1", "key": "specificationValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -21693,14 +17421,23 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", "body": { "mode": "raw", - "raw": "{\n \"FieldId\": 193,\n \"Name\": \"Metal\",\n \"Text\": \"ve\",\n \"IsActive\": true,\n \"Position\": 1\n}", + "raw": "{\n \"FieldId\": 193,\n \"Name\": \"Metal\",\n \"Text\": \"amet proide\",\n \"IsActive\": true,\n \"Position\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -21711,7 +17448,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "0409f139-0143-4053-9c39-0c8ee8ba5e64", + "id": "7615e645-320b-40f6-8ea8-63b354ade3ed", "name": "OK", "originalRequest": { "url": { @@ -21726,46 +17463,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) specification value's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "specificationValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -21784,17 +17484,30 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", "body": { "mode": "raw", - "raw": "{\n \"FieldId\": 193,\n \"Name\": \"Metal\",\n \"Text\": \"ve\",\n \"IsActive\": true,\n \"Position\": 1\n}", + "raw": "{\n \"FieldId\": 193,\n \"Name\": \"Metal\",\n \"Text\": \"amet proide\",\n \"IsActive\": true,\n \"Position\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -21816,13 +17529,13 @@ { "listen": "test", "script": { - "id": "3c9c8509-d7ac-4b90-b7fb-7d801c752ba4", + "id": "65fdba19-f2da-4ea1-8116-1110f88bc829", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/specificationvalue/:specificationValueId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/specificationvalue/:specificationValueId - 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]::/api/catalog/pvt/specificationvalue/:specificationValueId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"FieldValueId\":{\"type\":\"integer\",\"description\":\"Specification value ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID associated with this specification value.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification value name.\"},\"Text\":{\"type\":[\"string\",\"null\"],\"deprecated\":true,\"description\":\"Specification value text.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification value.\"},\"Position\":{\"type\":\"integer\",\"description\":\"The position of the value to be shown on product registration page (`/admin/Site/Produto.aspx`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/specificationvalue/:specificationValueId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"FieldValueId\":{\"type\":\"integer\",\"description\":\"Specification value ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID associated with this specification value.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification value name.\"},\"Text\":{\"type\":[\"string\",\"null\"],\"description\":\"Specification value text.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification value.\"},\"Position\":{\"type\":\"integer\",\"description\":\"The position of the value to be shown on product registration page (`/admin/Site/Produto.aspx`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/specificationvalue/:specificationValueId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -21832,7 +17545,7 @@ } }, { - "id": "720feafb-1d08-4e21-afc5-b8d5b788422d", + "id": "6741c6f4-74b8-4563-a8a6-75f709b3df65", "name": "Create specification value", "request": { "name": "Create specification value", @@ -21851,26 +17564,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -21890,14 +17584,23 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"FieldId\": 193,\n \"Name\": \"Metal\",\n \"Text\": \"qui deserun\",\n \"IsActive\": true,\n \"Position\": 1\n}", + "raw": "{\n \"FieldId\": 193,\n \"Name\": \"Metal\",\n \"Text\": \"dolore amet\",\n \"IsActive\": true,\n \"Position\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -21908,7 +17611,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "5b2128cc-d4e2-4316-a83e-292954bcaf6e", + "id": "0d8dd2c7-4686-4943-b4de-af4f97351ff1", "name": "OK", "originalRequest": { "url": { @@ -21922,36 +17625,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -21970,17 +17646,30 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"FieldId\": 193,\n \"Name\": \"Metal\",\n \"Text\": \"qui deserun\",\n \"IsActive\": true,\n \"Position\": 1\n}", + "raw": "{\n \"FieldId\": 193,\n \"Name\": \"Metal\",\n \"Text\": \"dolore amet\",\n \"IsActive\": true,\n \"Position\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -22002,13 +17691,13 @@ { "listen": "test", "script": { - "id": "7ba156ab-b734-44a3-808f-c391a4ea97f8", + "id": "3b852636-aab8-4c4c-b3f5-52b338ae42bf", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/specificationvalue - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/specificationvalue - 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(\"[POST]::/api/catalog/pvt/specificationvalue - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"FieldValueId\":{\"type\":\"integer\",\"description\":\"Specification value ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID associated with this specification value.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification value name.\"},\"Text\":{\"type\":[\"string\",\"null\"],\"deprecated\":true,\"description\":\"Specification value text.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification value.\"},\"Position\":{\"type\":\"integer\",\"description\":\"The position of the value to be shown on product registration page (`/admin/Site/Produto.aspx`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/specificationvalue - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"FieldValueId\":{\"type\":\"integer\",\"description\":\"Specification value ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID associated with this specification value.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification value name.\"},\"Text\":{\"type\":[\"string\",\"null\"],\"description\":\"Specification value text.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification value.\"},\"Position\":{\"type\":\"integer\",\"description\":\"The position of the value to be shown on product registration page (`/admin/Site/Produto.aspx`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/specificationvalue - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -22021,7 +17710,7 @@ "event": [] }, { - "id": "50fdeda6-6cb9-442a-b7b9-c583d66c2a11", + "id": "e6189015-1e43-4f0f-9a71-78545b441de8", "name": "Specification field value", "description": { "content": "", @@ -22029,7 +17718,7 @@ }, "item": [ { - "id": "28b5df08-7c1a-412e-a710-c6a1715911d4", + "id": "056bd156-bae3-4aa9-8c0d-ed523c17811f", "name": "Get specification field value", "request": { "name": "Get specification field value", @@ -22060,24 +17749,6 @@ "type": "any", "value": "143", "key": "fieldValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -22099,16 +17770,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "0da7e6d5-aaca-459f-9eaa-00bc8ae4483d", + "id": "a01d394c-876a-4368-8a70-0f51ee7a3555", "name": "OK", "originalRequest": { "url": { @@ -22124,46 +17800,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Specification value ID.", - "type": "text/plain" - }, - "type": "any", - "value": "143", - "key": "fieldValueId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -22185,6 +17824,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -22206,7 +17853,7 @@ { "listen": "test", "script": { - "id": "1948793d-9279-42ee-ad1e-25770fabdb8d", + "id": "05b6cb00-6746-4c3e-84f3-b1856b7f4177", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/specification/fieldValue/:fieldValueId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -22222,7 +17869,7 @@ } }, { - "id": "f71cad43-8b7f-4aee-9a03-6c392420ea01", + "id": "81d34432-6a06-46a5-ac0e-db3706a280a8", "name": "Get specification values by specification field ID", "request": { "name": "Get specification values by specification field ID", @@ -22253,24 +17900,6 @@ "type": "any", "value": "34", "key": "fieldId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -22292,16 +17921,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "49baa7d5-c345-417a-9d6e-199218d3e35f", + "id": "07bfe0b5-2d31-4df5-aa07-4c02b19b83b3", "name": "OK", "originalRequest": { "url": { @@ -22317,48 +17951,11 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Specification field ID.", - "type": "text/plain" - }, - "type": "any", - "value": "34", - "key": "fieldId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, - { - "disabled": false, + "disabled": false, "description": { "content": "(Required) Type of the content being sent.", "type": "text/plain" @@ -22378,6 +17975,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -22399,13 +18004,13 @@ { "listen": "test", "script": { - "id": "207611aa-c397-45b0-8859-cc0a33a021da", + "id": "cd748b87-6e7b-429a-99c4-ba277e02d51e", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pub/specification/fieldvalue/:fieldId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pub/specification/fieldvalue/:fieldId - 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]::/api/catalog_system/pub/specification/fieldvalue/:fieldId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"required\":[\"FieldValueId\",\"Value\",\"IsActive\",\"Position\"],\"type\":\"object\",\"properties\":{\"FieldValueId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field value ID.\"},\"Value\":{\"type\":\"string\",\"description\":\"Specification field value.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification field is active (`true`) or inactive (`false`).\"},\"Position\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field value position.\"}},\"example\":{\"FieldValueId\":52,\"Value\":\"0 a 6 meses\",\"IsActive\":true,\"Position\":1}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/specification/fieldvalue/:fieldId - 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\":{\"required\":[\"FieldValueId\",\"Value\",\"IsActive\",\"Position\"],\"type\":\"object\",\"properties\":{\"FieldValueId\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field value ID.\"},\"Value\":{\"type\":\"string\",\"description\":\"Specification field value.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification field is active (`true`) or inactive (`false`).\"},\"Position\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"Specification field value position.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/specification/fieldvalue/:fieldId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -22415,7 +18020,7 @@ } }, { - "id": "87d6bdcc-0ef0-4fea-9c94-f1c9e58d66dd", + "id": "07c50cfb-9c1a-42ee-b78d-36f7639f38b2", "name": "Create specification field value", "request": { "name": "Create specification field value", @@ -22435,26 +18040,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -22474,6 +18060,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -22482,6 +18076,7 @@ "raw": "{\n \"FieldId\": 34,\n \"Name\": \"Cotton\",\n \"Text\": \"Cotton fibers\",\n \"IsActive\": true,\n \"Position\": 100\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -22492,7 +18087,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "92ac5b27-b309-4fdc-be97-1910e7a7e964", + "id": "109e2a4a-9d8b-4b24-b3d5-6988857e3194", "name": "OK", "originalRequest": { "url": { @@ -22507,36 +18102,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -22555,9 +18123,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -22566,6 +18146,7 @@ "raw": "{\n \"FieldId\": 34,\n \"Name\": \"Cotton\",\n \"Text\": \"Cotton fibers\",\n \"IsActive\": true,\n \"Position\": 100\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -22587,7 +18168,7 @@ { "listen": "test", "script": { - "id": "11057aec-4da2-467d-9ce9-2eaa9782a38a", + "id": "7a97b6ae-2047-4902-8b5d-246cafb511a6", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pvt/specification/fieldValue - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -22603,7 +18184,7 @@ } }, { - "id": "b76f59c6-3a93-470e-ae2a-d221113ffbfb", + "id": "d186db24-b62d-415f-8a7b-6b557b2a9b4c", "name": "Update specification field value", "request": { "name": "Update specification field value", @@ -22623,26 +18204,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -22662,6 +18224,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -22670,6 +18240,7 @@ "raw": "{\n \"FieldId\": 1,\n \"FieldValueId\": 143,\n \"Name\": \"Cotton\",\n \"Text\": \"Cotton fibers\",\n \"IsActive\": true,\n \"Position\": 100\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -22680,7 +18251,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "24eae472-c1ae-45c6-adb8-42b96614f024", + "id": "de9eaa78-7ad3-4629-84e7-0f1f3ee64fcc", "name": "OK", "originalRequest": { "url": { @@ -22695,36 +18266,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -22743,9 +18287,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -22754,6 +18310,7 @@ "raw": "{\n \"FieldId\": 1,\n \"FieldValueId\": 143,\n \"Name\": \"Cotton\",\n \"Text\": \"Cotton fibers\",\n \"IsActive\": true,\n \"Position\": 100\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -22767,7 +18324,7 @@ "value": "application/json" } ], - "body": "\"Field Value Updated\"", + "body": "Field Value Updated", "cookie": [] } ], @@ -22775,7 +18332,7 @@ { "listen": "test", "script": { - "id": "0a7d4edc-6085-4c91-b8b6-672f9c3a647d", + "id": "7fc96ac9-c800-42f1-8df6-54d729d586fb", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog_system/pvt/specification/fieldValue - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -22794,7 +18351,7 @@ "event": [] }, { - "id": "e9c0790c-92ac-4485-bcdb-217dcd013993", + "id": "0162030b-5f2d-45be-9221-1abbe070fc93", "name": "Category specification", "description": { "content": "", @@ -22802,7 +18359,7 @@ }, "item": [ { - "id": "5040c644-a806-4cfc-b3d7-1e180f39bf25", + "id": "b4cf25e7-7f08-4876-ad62-bf5b78980ab1", "name": "Get specifications by category ID", "request": { "name": "Get specifications by category ID", @@ -22834,24 +18391,6 @@ "type": "any", "value": "1", "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -22873,16 +18412,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "cc2cf154-97ff-4971-9661-ab6c9a207f51", + "id": "7b05b8de-a651-4bb7-b8fb-6f8066d51bb5", "name": "OK", "originalRequest": { "url": { @@ -22899,46 +18443,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Category ID.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -22960,6 +18467,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -22981,13 +18496,13 @@ { "listen": "test", "script": { - "id": "17680e4f-73d3-4e32-993d-41b5cc41fbee", + "id": "a836bb3e-ca62-41bd-a8c4-55f40b488648", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pub/specification/field/listByCategoryId/:categoryId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pub/specification/field/listByCategoryId/:categoryId - 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]::/api/catalog_system/pub/specification/field/listByCategoryId/:categoryId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"required\":[\"Name\",\"CategoryId\",\"FieldId\",\"IsActive\",\"IsStockKeepingUnit\"],\"type\":\"array\",\"description\":\"Array of objects.\",\"items\":{\"type\":\"object\",\"description\":\"Object containing specification information.\",\"properties\":{\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\",\"example\":\"Composition\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID.\",\"example\":1},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\",\"example\":1},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is active.\",\"example\":true},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"Defines if it is an SKU specification.\",\"example\":true}}},\"example\":[{\"Name\":\"Specification A\",\"CategoryId\":1,\"FieldId\":33,\"IsActive\":true,\"IsStockKeepingUnit\":false},{\"Name\":\"Specification B\",\"CategoryId\":1,\"FieldId\":34,\"IsActive\":true,\"IsStockKeepingUnit\":false},{\"Name\":\"Specification C\",\"CategoryId\":1,\"FieldId\":35,\"IsActive\":false,\"IsStockKeepingUnit\":false}]}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/specification/field/listByCategoryId/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"required\":[\"Name\",\"CategoryId\",\"FieldId\",\"IsActive\",\"IsStockKeepingUnit\"],\"type\":\"array\",\"description\":\"Array of objects.\",\"items\":{\"type\":\"object\",\"description\":\"Object containing specification information.\",\"properties\":{\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is active.\"},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"Defines if it is an SKU specification.\"}}},\"example\":[{\"Name\":\"Specification A\",\"CategoryId\":1,\"FieldId\":33,\"IsActive\":true,\"IsStockKeepingUnit\":false},{\"Name\":\"Specification B\",\"CategoryId\":1,\"FieldId\":34,\"IsActive\":true,\"IsStockKeepingUnit\":false},{\"Name\":\"Specification C\",\"CategoryId\":1,\"FieldId\":35,\"IsActive\":false,\"IsStockKeepingUnit\":false}]}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/specification/field/listByCategoryId/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -22997,7 +18512,7 @@ } }, { - "id": "a7aef546-224f-410b-ac20-6c3a57d11008", + "id": "4c5d2ef5-5c7a-4ef5-b0f5-561f47b57a2f", "name": "Get specifications tree by category ID", "request": { "name": "Get specifications tree by category ID", @@ -23029,24 +18544,6 @@ "type": "any", "value": "1", "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -23068,16 +18565,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "a6478ca6-2a66-4616-af41-7f9b758a068c", + "id": "6388938a-e71d-404e-aabc-7628b1dd44f7", "name": "OK", "originalRequest": { "url": { @@ -23094,46 +18596,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Category ID.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -23155,6 +18620,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -23176,13 +18649,13 @@ { "listen": "test", "script": { - "id": "a6e14743-4670-469c-8597-38676d17b47c", + "id": "480869cb-ea21-4700-a324-a0d241b483e3", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pub/specification/field/listTreeByCategoryId/:categoryId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pub/specification/field/listTreeByCategoryId/:categoryId - 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]::/api/catalog_system/pub/specification/field/listTreeByCategoryId/:categoryId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"required\":[\"Name\",\"CategoryId\",\"FieldId\",\"IsActive\",\"IsStockKeepingUnit\"],\"type\":\"array\",\"description\":\"Array of objects.\",\"items\":{\"type\":\"object\",\"description\":\"Object containing specification information.\",\"properties\":{\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\",\"example\":\"Composition\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID.\",\"example\":1},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\",\"example\":1},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is active.\",\"example\":true},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"Defines if it is an SKU specification.\",\"example\":true}}},\"example\":[{\"Name\":\"Specification A\",\"CategoryId\":1,\"FieldId\":33,\"IsActive\":true,\"IsStockKeepingUnit\":false},{\"Name\":\"Specification B\",\"CategoryId\":1,\"FieldId\":34,\"IsActive\":true,\"IsStockKeepingUnit\":false},{\"Name\":\"Specification C\",\"CategoryId\":1,\"FieldId\":35,\"IsActive\":false,\"IsStockKeepingUnit\":false}]}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/specification/field/listTreeByCategoryId/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"required\":[\"Name\",\"CategoryId\",\"FieldId\",\"IsActive\",\"IsStockKeepingUnit\"],\"type\":\"array\",\"description\":\"Array of objects.\",\"items\":{\"type\":\"object\",\"description\":\"Object containing specification information.\",\"properties\":{\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID.\"},\"FieldId\":{\"type\":\"integer\",\"description\":\"Specification field ID.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is active.\"},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"Defines if it is an SKU specification.\"}}},\"example\":[{\"Name\":\"Specification A\",\"CategoryId\":1,\"FieldId\":33,\"IsActive\":true,\"IsStockKeepingUnit\":false},{\"Name\":\"Specification B\",\"CategoryId\":1,\"FieldId\":34,\"IsActive\":true,\"IsStockKeepingUnit\":false},{\"Name\":\"Specification C\",\"CategoryId\":1,\"FieldId\":35,\"IsActive\":false,\"IsStockKeepingUnit\":false}]}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/specification/field/listTreeByCategoryId/:categoryId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -23195,7 +18668,7 @@ "event": [] }, { - "id": "589156d0-61d5-482c-8a8b-be395e53362b", + "id": "68ecadc1-ecb0-4718-8018-9d878cf3ae1a", "name": "Specification", "description": { "content": "", @@ -23203,7 +18676,7 @@ }, "item": [ { - "id": "391e6686-00f5-487d-b9aa-9ed9ff66fd60", + "id": "4b7a8156-7fe6-4377-9ec9-3e0fa39d77f0", "name": "Get specification by specification ID", "request": { "name": "Get specification by specification ID", @@ -23233,24 +18706,6 @@ "type": "any", "value": "1", "key": "specificationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -23272,16 +18727,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "02a6fad1-e509-4e92-b5a1-3d1a8569795a", + "id": "5b44044a-319c-4561-8b13-1a2539c49b3f", "name": "OK", "originalRequest": { "url": { @@ -23296,48 +18756,11 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Specification's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "specificationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, - { - "disabled": false, + "disabled": false, "description": { "content": "(Required) Type of the content being sent.", "type": "text/plain" @@ -23357,6 +18780,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -23378,13 +18809,13 @@ { "listen": "test", "script": { - "id": "987abb6b-feff-40db-8ea0-d8b9fd513137", + "id": "e9d263e0-e196-4c30-a81b-9e00d4161236", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/specification/:specificationId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog/pvt/specification/:specificationId - 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]::/api/catalog/pvt/specification/:specificationId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"Id\",\"FieldTypeId\",\"CategoryId\",\"FieldGroupId\",\"Name\",\"Description\",\"Position\",\"IsFilter\",\"IsRequired\",\"IsOnProductDetails\",\"IsStockKeepingUnit\",\"IsWizard\",\"IsActive\",\"IsTopMenuLinkActive\",\"IsSideMenuLinkActive\",\"DefaultValue\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Created specification's ID.\"},\"FieldTypeId\":{\"type\":\"integer\",\"description\":\"Field type can be `1 - Text`, `2 - Multi-Line Text`, `4 - Number`, `5 - Combo`, `6 - Radio`, `7 - Checkbox`, `8 - Indexed Text`, `9 - Indexed Multi-Line Text`.\",\"enum\":[1,2,4,5,6,7,8,9]},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Specification category ID.\"},\"FieldGroupId\":{\"type\":\"integer\",\"description\":\"Numerical ID of the specification group that contains the new specification.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"Description\":{\"type\":\"string\",\"description\":\"Specification description.\"},\"Position\":{\"type\":\"integer\",\"description\":\"The current specification's position in comparison to the other specifications.\"},\"IsFilter\":{\"type\":\"boolean\",\"description\":\"Defines if the specification can be used as a filter.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is required or not.\"},\"IsOnProductDetails\":{\"type\":\"boolean\",\"description\":\"Defines if the specification will be shown on the product screen in the specification area.\"},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is applied to a specific SKU.\"},\"IsWizard\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\",\"deprecated\":true},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is active or not.\"},\"IsTopMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is shown in the main menu of the site.\"},\"IsSideMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is shown in the side menu.\"},\"DefaultValue\":{\"type\":[\"string\",\"null\"],\"description\":\"Specification default value.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/specification/:specificationId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"required\":[\"Id\",\"FieldTypeId\",\"CategoryId\",\"FieldGroupId\",\"Name\",\"Description\",\"Position\",\"IsFilter\",\"IsRequired\",\"IsOnProductDetails\",\"IsStockKeepingUnit\",\"IsWizard\",\"IsActive\",\"IsTopMenuLinkActive\",\"IsSideMenuLinkActive\",\"DefaultValue\"],\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Created specification's ID.\"},\"FieldTypeId\":{\"type\":\"integer\",\"description\":\"Field type can be `1 - Text`, `2 - Multi-Line Text`, `4 - Number`, `5 - Combo`, `6 - Radio`, `7 - Checkbox`, `8 - Indexed Text`, `9 - Indexed Multi-Line Text`.\",\"enum\":[1,2,4,5,6,7,8,9]},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Specification category ID.\"},\"FieldGroupId\":{\"type\":\"integer\",\"description\":\"Numerical ID of the specification group that contains the new specification.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"Description\":{\"type\":\"string\",\"description\":\"Specification description.\"},\"Position\":{\"type\":\"integer\",\"description\":\"The current specification's position in comparison to the other specifications.\"},\"IsFilter\":{\"type\":\"boolean\",\"description\":\"Defines if the specification can be used as a filter.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is required or not.\"},\"IsOnProductDetails\":{\"type\":\"boolean\",\"description\":\"Defines if the specification will be shown on the product screen in the specification area.\"},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is applied to a specific SKU.\"},\"IsWizard\":{\"type\":\"boolean\",\"description\":\"Deprecated field.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is active or not.\"},\"IsTopMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is shown in the main menu of the site.\"},\"IsSideMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Defines if the specification is shown in the side menu.\"},\"DefaultValue\":{\"type\":[\"string\",\"null\"],\"description\":\"Specification default value.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog/pvt/specification/:specificationId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -23394,7 +18825,7 @@ } }, { - "id": "5faca476-a341-4d7e-9c17-f014664a1c0d", + "id": "8745d177-24de-4776-afae-4e4bd885c0fa", "name": "Update specification", "request": { "name": "Update specification", @@ -23424,24 +18855,6 @@ "type": "any", "value": "88", "key": "specificationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -23463,6 +18876,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -23471,6 +18892,7 @@ "raw": "{\n \"FieldTypeId\": 1,\n \"CategoryId\": 0,\n \"FieldGroupId\": 0,\n \"Name\": \"Material\",\n \"Description\": \"Composition of the product.\",\n \"Position\": 1,\n \"IsFilter\": false,\n \"IsRequired\": false,\n \"IsOnProductDetails\": false,\n \"IsStockKeepingUnit\": false,\n \"IsWizard\": false,\n \"IsActive\": false,\n \"IsTopMenuLinkActive\": false,\n \"IsSideMenuLinkActive\": false,\n \"DefaultValue\": \"Leather\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -23481,7 +18903,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "b838d21e-20bd-4d24-b0af-837a49268c6d", + "id": "75aeb64a-ca6c-4952-8235-beab0e17e610", "name": "OK", "originalRequest": { "url": { @@ -23496,46 +18918,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Specification's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "88", - "key": "specificationId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -23554,9 +18939,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -23565,6 +18962,7 @@ "raw": "{\n \"FieldTypeId\": 1,\n \"CategoryId\": 0,\n \"FieldGroupId\": 0,\n \"Name\": \"Material\",\n \"Description\": \"Composition of the product.\",\n \"Position\": 1,\n \"IsFilter\": false,\n \"IsRequired\": false,\n \"IsOnProductDetails\": false,\n \"IsStockKeepingUnit\": false,\n \"IsWizard\": false,\n \"IsActive\": false,\n \"IsTopMenuLinkActive\": false,\n \"IsSideMenuLinkActive\": false,\n \"DefaultValue\": \"Leather\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -23586,13 +18984,13 @@ { "listen": "test", "script": { - "id": "278deea0-5d37-4d53-a906-675c0613eb6e", + "id": "2f893589-4221-474b-82c3-7876427c864a", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/specification/:specificationId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/specification/:specificationId - 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]::/api/catalog/pvt/specification/:specificationId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Specification ID.\"},\"FieldTypeId\":{\"type\":\"integer\",\"description\":\"Field type ID can be `1 - Text`, `2 - Multi-Line Text`, `4 - Number`, `5 - Combo`, `6 - Radio`, `7 - Checkbox`, `8 - Indexed Text`, `9 - Indexed Multi-Line Text`.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this specification.\"},\"FieldGroupId\":{\"type\":\"integer\",\"description\":\"ID of the group of specifications that contains the new specification.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"Description\":{\"type\":[\"string\",\"null\"],\"deprecated\":true},\"Position\":{\"type\":\"integer\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - This position number is used in ordering the specifications both in the navigation menu and in the specification listing on the product page.\"},\"IsFilter\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To allow the specification to be used as a facet (filter) on the search navigation bar.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Makes the specification mandatory (`true`) or optional (`false`).\"},\"IsOnProductDetails\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal -If specification is visible on the product page.\"},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"If `true`, it will be added as a SKU specification. If `false`, it will be added as a product specification field.\"},\"IsWizard\":{\"type\":[\"boolean\",\"null\"],\"deprecated\":true,\"description\":\"Deprecated field.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification.\"},\"IsTopMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification visible in the store's upper menu.\"},\"IsSideMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification field clickable in the search navigation bar.\"},\"DefaultValue\":{\"type\":\"string\",\"description\":\"Specification default value.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/specification/:specificationId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Specification ID.\"},\"FieldTypeId\":{\"type\":\"integer\",\"description\":\"Field type ID can be `1 - Text`, `2 - Multi-Line Text`, `4 - Number`, `5 - Combo`, `6 - Radio`, `7 - Checkbox`, `8 - Indexed Text`, `9 - Indexed Multi-Line Text`.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this specification.\"},\"FieldGroupId\":{\"type\":\"integer\",\"description\":\"ID of the group of specifications that contains the new specification.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"Description\":{\"type\":[\"string\",\"null\"]},\"Position\":{\"type\":\"integer\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - This position number is used in ordering the specifications both in the navigation menu and in the specification listing on the product page.\"},\"IsFilter\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To allow the specification to be used as a facet (filter) on the search navigation bar.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Makes the specification mandatory (`true`) or optional (`false`).\"},\"IsOnProductDetails\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal -If specification is visible on the product page.\"},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"If `true`, it will be added as a SKU specification. If `false`, it will be added as a product specification field.\"},\"IsWizard\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Deprecated field.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification.\"},\"IsTopMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification visible in the store's upper menu.\"},\"IsSideMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification field clickable in the search navigation bar.\"},\"DefaultValue\":{\"type\":\"string\",\"description\":\"Specification default value.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/specification/:specificationId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -23602,7 +19000,7 @@ } }, { - "id": "c25aa360-794b-43ef-91a7-06629b2391af", + "id": "b3a246fb-c310-4e31-a947-ae98620cc245", "name": "Create specification", "request": { "name": "Create specification", @@ -23621,26 +19019,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -23660,6 +19039,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -23668,6 +19055,7 @@ "raw": "{\n \"FieldTypeId\": 1,\n \"FieldGroupId\": 22,\n \"Name\": \"Material\",\n \"CategoryId\": 1,\n \"Description\": \"Composition of the product.\",\n \"Position\": 1,\n \"IsFilter\": false,\n \"IsRequired\": false,\n \"IsOnProductDetails\": true,\n \"IsStockKeepingUnit\": false,\n \"IsWizard\": null,\n \"IsActive\": true,\n \"IsTopMenuLinkActive\": false,\n \"IsSideMenuLinkActive\": false,\n \"DefaultValue\": \"Cotton\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -23678,7 +19066,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "e299887c-2fb6-438c-bd7b-925907c2b1d9", + "id": "0a8e78fa-2609-4e91-bec7-7d31b97cc75a", "name": "OK", "originalRequest": { "url": { @@ -23692,36 +19080,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -23740,9 +19101,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -23751,6 +19124,7 @@ "raw": "{\n \"FieldTypeId\": 1,\n \"FieldGroupId\": 22,\n \"Name\": \"Material\",\n \"CategoryId\": 1,\n \"Description\": \"Composition of the product.\",\n \"Position\": 1,\n \"IsFilter\": false,\n \"IsRequired\": false,\n \"IsOnProductDetails\": true,\n \"IsStockKeepingUnit\": false,\n \"IsWizard\": null,\n \"IsActive\": true,\n \"IsTopMenuLinkActive\": false,\n \"IsSideMenuLinkActive\": false,\n \"DefaultValue\": \"Cotton\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -23772,13 +19146,13 @@ { "listen": "test", "script": { - "id": "561df44c-86f8-4c00-8f79-5db61a3c503f", + "id": "a3836d06-b3c5-4f29-8935-94e5f6f6e6ee", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/specification - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/specification - 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(\"[POST]::/api/catalog/pvt/specification - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Specification ID.\"},\"FieldTypeId\":{\"type\":\"integer\",\"description\":\"Field type ID can be `1 - Text`, `2 - Multi-Line Text`, `4 - Number`, `5 - Combo`, `6 - Radio`, `7 - Checkbox`, `8 - Indexed Text`, `9 - Indexed Multi-Line Text`.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this specification.\"},\"FieldGroupId\":{\"type\":\"integer\",\"description\":\"ID of the group of specifications that contains the new specification.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"Description\":{\"type\":[\"string\",\"null\"],\"deprecated\":true},\"Position\":{\"type\":\"integer\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - This position number is used in ordering the specifications both in the navigation menu and in the specification listing on the product page.\"},\"IsFilter\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To allow the specification to be used as a facet (filter) on the search navigation bar.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Makes the specification mandatory (`true`) or optional (`false`).\"},\"IsOnProductDetails\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal -If specification is visible on the product page.\"},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"If `true`, it will be added as a SKU specification. If `false`, it will be added as a product specification field.\"},\"IsWizard\":{\"type\":[\"boolean\",\"null\"],\"deprecated\":true},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification.\"},\"IsTopMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification visible in the store's upper menu.\"},\"IsSideMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification field clickable in the search navigation bar.\"},\"DefaultValue\":{\"type\":\"string\",\"description\":\"Specification default value.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/specification - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Specification ID.\"},\"FieldTypeId\":{\"type\":\"integer\",\"description\":\"Field type ID can be `1 - Text`, `2 - Multi-Line Text`, `4 - Number`, `5 - Combo`, `6 - Radio`, `7 - Checkbox`, `8 - Indexed Text`, `9 - Indexed Multi-Line Text`.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Category ID associated with this specification.\"},\"FieldGroupId\":{\"type\":\"integer\",\"description\":\"ID of the group of specifications that contains the new specification.\"},\"Name\":{\"type\":\"string\",\"description\":\"Specification name. Limited to 100 characters.\"},\"Description\":{\"type\":[\"string\",\"null\"]},\"Position\":{\"type\":\"integer\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - This position number is used in ordering the specifications both in the navigation menu and in the specification listing on the product page.\"},\"IsFilter\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To allow the specification to be used as a facet (filter) on the search navigation bar.\"},\"IsRequired\":{\"type\":\"boolean\",\"description\":\"Makes the specification mandatory (`true`) or optional (`false`).\"},\"IsOnProductDetails\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal -If specification is visible on the product page.\"},\"IsStockKeepingUnit\":{\"type\":\"boolean\",\"description\":\"If `true`, it will be added as a SKU specification. If `false`, it will be added as a product specification field.\"},\"IsWizard\":{\"type\":[\"boolean\",\"null\"]},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Enable (`true`) or disable (`false`) specification.\"},\"IsTopMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification visible in the store's upper menu.\"},\"IsSideMenuLinkActive\":{\"type\":\"boolean\",\"description\":\"Store Framework - Deprecated.\\r\\nLegacy CMS Portal - To make the specification field clickable in the search navigation bar.\"},\"DefaultValue\":{\"type\":\"string\",\"description\":\"Specification default value.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/specification - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -23791,7 +19165,7 @@ "event": [] }, { - "id": "9660e7e4-fa31-4574-bc17-d0c36c1e8f3d", + "id": "3132ec80-b009-475e-84c4-47a0efd06f99", "name": "Legacy collection", "description": { "content": "", @@ -23799,7 +19173,7 @@ }, "item": [ { - "id": "87e67a9f-5816-43da-9d5d-a317b2dff875", + "id": "aa08d38a-d297-436e-8459-91b9d35069a3", "name": "Get collection by ID", "request": { "name": "Get collection by ID", @@ -23829,24 +19203,6 @@ "type": "any", "value": "151", "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -23868,16 +19224,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "eebe246f-36e2-4fd1-bc0e-5b8b324627fa", + "id": "c227c3e3-6848-41f6-ac26-b7d794eb5e65", "name": "OK", "originalRequest": { "url": { @@ -23892,46 +19253,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Collection's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "151", - "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -23953,6 +19277,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -23974,7 +19306,7 @@ { "listen": "test", "script": { - "id": "13a730bf-ab2c-44f8-8b53-d93f23fff11d", + "id": "869f1c5f-ebf5-419a-9627-45a0de815d2c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/collection/:collectionId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -23990,7 +19322,7 @@ } }, { - "id": "f4a52428-8e0f-4604-af9e-285ab5f2d809", + "id": "802b1569-8564-4605-9e5e-16bf38c08da6", "name": "Update Collection", "request": { "name": "Update Collection", @@ -24020,24 +19352,6 @@ "type": "any", "value": "151", "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -24059,6 +19373,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -24067,6 +19389,7 @@ "raw": "{\n \"Name\": \"Test\",\n \"Searchable\": true,\n \"Highlight\": false,\n \"DateFrom\": \"2017-09-27T10:47:00\",\n \"DateTo\": \"2017-09-27T10:47:00\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -24077,7 +19400,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "b4acaf0c-bb81-4033-8817-036c47372fcf", + "id": "5be98317-c13a-4a2b-b3f8-13738dd4f76b", "name": "OK", "originalRequest": { "url": { @@ -24092,46 +19415,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Collection's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "151", - "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -24150,9 +19436,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -24161,6 +19459,7 @@ "raw": "{\n \"Name\": \"Test\",\n \"Searchable\": true,\n \"Highlight\": false,\n \"DateFrom\": \"2017-09-27T10:47:00\",\n \"DateTo\": \"2017-09-27T10:47:00\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -24182,7 +19481,7 @@ { "listen": "test", "script": { - "id": "f13707a0-88bd-47b4-93ca-2ec8396e3112", + "id": "05cdd832-14c8-4556-b82e-5e404cf710ac", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/collection/:collectionId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -24198,7 +19497,7 @@ } }, { - "id": "d82e6593-2e40-4018-988c-dd77da54e557", + "id": "a1c2ac7e-2e1e-4514-8945-98c835df8553", "name": "Delete Collection", "request": { "name": "Delete Collection", @@ -24228,24 +19527,6 @@ "type": "any", "value": "151", "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -24269,14 +19550,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "b2a248c8-b55b-41c6-a842-d3b55e7ec858", + "id": "da2ec352-5d62-4c28-9097-c75906c1a849", "name": "OK", "originalRequest": { "url": { @@ -24291,63 +19573,34 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Collection's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "151", - "key": "collectionId" + "variable": [] + }, + "header": [ + { + "disabled": false, + "description": { + "content": "(Required) Type of the content being sent.", + "type": "text/plain" }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] - }, - "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" + "key": "Content-Type", + "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) Type of the content being sent.", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { - "disabled": false, "description": { - "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", + "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, - "key": "Accept", - "value": "application/json" + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -24355,13 +19608,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -24369,7 +19616,7 @@ { "listen": "test", "script": { - "id": "cf7a8212-646b-4789-8a9d-6548b59c776d", + "id": "a84382c5-f6e7-4e79-9efa-7793696e26e9", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/collection/:collectionId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -24382,7 +19629,7 @@ } }, { - "id": "dce5c5a7-db2c-46a0-8497-c334df2af92e", + "id": "68cf9e32-0d28-456c-afcb-f0480691b4ad", "name": "Create collection", "request": { "name": "Create collection", @@ -24401,26 +19648,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -24440,6 +19668,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -24448,6 +19684,7 @@ "raw": "{\n \"Name\": \"Test\",\n \"Searchable\": true,\n \"Highlight\": false,\n \"DateFrom\": \"2017-09-27T10:47:00\",\n \"DateTo\": \"2017-09-27T10:47:00\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -24458,7 +19695,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "08fabeca-e529-4708-a7e0-e714b58095dd", + "id": "e7609c9f-3918-4e84-8217-abbb032e5d04", "name": "OK", "originalRequest": { "url": { @@ -24472,36 +19709,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -24520,9 +19730,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -24531,6 +19753,7 @@ "raw": "{\n \"Name\": \"Test\",\n \"Searchable\": true,\n \"Highlight\": false,\n \"DateFrom\": \"2017-09-27T10:47:00\",\n \"DateTo\": \"2017-09-27T10:47:00\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -24552,7 +19775,7 @@ { "listen": "test", "script": { - "id": "05ec47b4-c86b-42bf-baba-11628d5d7e2a", + "id": "f5ba47c7-d420-4a40-ba52-f4da793fc745", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/collection - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -24571,7 +19794,7 @@ "event": [] }, { - "id": "827e09f5-0f94-4c67-9996-e7f9b3a2d26e", + "id": "2de474e3-5329-4268-a04e-5cc976b731fd", "name": "Legacy subcollection", "description": { "content": "", @@ -24579,7 +19802,7 @@ }, "item": [ { - "id": "d7849c73-3f4c-485e-9ce1-54d78ec60284", + "id": "07efd7fc-40b9-4d39-868a-7db5da40b970", "name": "Add SKU to subcollection", "request": { "name": "Add SKU to subcollection", @@ -24610,24 +19833,6 @@ "type": "any", "value": "1", "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -24649,6 +19854,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -24657,6 +19870,7 @@ "raw": "{\n \"SkuId\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -24667,7 +19881,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "6be17cd9-666f-4286-8469-a4e9a857d8d9", + "id": "6b0406d5-bac1-4c17-a538-c00e407e94b7", "name": "OK", "originalRequest": { "url": { @@ -24683,46 +19897,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection'''s unique numerical identifier, which can be obtained by placing a request to [Get subcollection by collection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -24741,9 +19918,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -24752,6 +19941,7 @@ "raw": "{\n \"SkuId\": 1\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -24773,13 +19963,13 @@ { "listen": "test", "script": { - "id": "a1d3f120-7ec6-4638-b04e-70a067abac63", + "id": "5f27aa77-3cda-479d-8738-75af75fa96f6", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/stockkeepingunit - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/stockkeepingunit - 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(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/stockkeepingunit - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"SubCollectionId\":{\"type\":\"integer\",\"description\":\"Subcollection's unique numerical identifier.\",\"example\":17},\"SkuId\":{\"type\":\"integer\",\"description\":\"Unique identifier of the SKU.\",\"example\":1}},\"example\":{\"SubCollectionId\":17,\"SkuId\":1}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/stockkeepingunit - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"SubCollectionId\":{\"type\":\"integer\",\"description\":\"Subcollection's unique numerical identifier.\"},\"SkuId\":{\"type\":\"integer\",\"description\":\"Unique identifier of the SKU.\"}},\"example\":{\"SubCollectionId\":17,\"SkuId\":1}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/stockkeepingunit - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -24789,7 +19979,7 @@ } }, { - "id": "cd300a4e-6d45-4148-93a0-1a36ba9aac39", + "id": "95abc5d3-18d6-4d5d-a18d-3525a0450078", "name": "Delete SKU from subcollection", "request": { "name": "Delete SKU from subcollection", @@ -24831,24 +20021,6 @@ "type": "any", "value": "1", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -24872,14 +20044,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "7c9b289b-258b-4159-9173-7f4bbaac8341", + "id": "00bdb6e8-73d3-4925-bd2e-99d4c37dea0c", "name": "OK", "originalRequest": { "url": { @@ -24896,56 +20069,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection'''s unique numerical identifier, which can be obtained by placing a request to [Get subcollection by collection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "subCollectionId" - }, - { - "disabled": false, - "description": { - "content": "(Required) SKU's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -24963,6 +20089,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -24970,13 +20104,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -24984,7 +20112,7 @@ { "listen": "test", "script": { - "id": "a966d373-341a-4bf7-8853-df4ee4cc07af", + "id": "f5faa832-b0a6-452b-883a-db71f234e202", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/subcollection/:subCollectionId/stockkeepingunit/:skuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -24997,7 +20125,7 @@ } }, { - "id": "f45e704e-effb-4487-a041-df102a1defce", + "id": "21bb3c23-f4b0-481b-8a4f-95429843dae2", "name": "Associate category to subcollection", "request": { "name": "Associate category to subcollection", @@ -25028,24 +20156,6 @@ "type": "any", "value": "1", "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -25067,6 +20177,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -25075,6 +20193,7 @@ "raw": "{\n \"CategoryId\": 0\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -25085,7 +20204,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "2b8549ec-eafa-425a-aac9-82df8f0791f3", + "id": "33318c6a-2226-4889-aeb8-6f7612adaa92", "name": "OK", "originalRequest": { "url": { @@ -25101,46 +20220,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection's unique numerical identifier, which can be obtained by placing a request to [Get subcollection by collection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -25160,8 +20242,20 @@ "value": "application/json" }, { - "key": "Accept", + "key": "Content-Type", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -25170,6 +20264,7 @@ "raw": "{\n \"CategoryId\": 0\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -25191,13 +20286,13 @@ { "listen": "test", "script": { - "id": "28c2746e-30f1-4198-a7c8-2adec4d1c285", + "id": "e538f1e1-e882-4648-9c42-fdbf328c2e3d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/category - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/category - 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(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/category - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"SubCollectionId\":{\"type\":\"integer\",\"description\":\"Subcollection's unique numerical identifier.\",\"example\":17},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Unique identifier of the category.\",\"example\":1}},\"example\":{\"SubCollectionId\":17,\"CategoryId\":1}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/category - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"SubCollectionId\":{\"type\":\"integer\",\"description\":\"Subcollection's unique numerical identifier.\"},\"CategoryId\":{\"type\":\"integer\",\"description\":\"Unique identifier of the category.\"}},\"example\":{\"SubCollectionId\":17,\"CategoryId\":1}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/category - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -25207,7 +20302,7 @@ } }, { - "id": "19f21047-739b-4fa9-b9a5-5ccecd4b2122", + "id": "5c1945a8-dad5-4144-a6c8-101c81263584", "name": "Delete category from Subcollection", "request": { "name": "Delete category from Subcollection", @@ -25249,24 +20344,6 @@ "type": "any", "value": "1", "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -25290,14 +20367,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "e17d8e89-ef95-4f1d-8e34-45b5dd715510", + "id": "135ea131-b917-40fd-aeb8-d4eda3c0886c", "name": "OK", "originalRequest": { "url": { @@ -25314,56 +20392,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection's unique numerical identifier, which can be obtained by placing a request to [Get subcollection by dollection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "subCollectionId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Category's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "categoryId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -25381,6 +20412,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -25388,13 +20427,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -25402,7 +20435,7 @@ { "listen": "test", "script": { - "id": "67f5137a-9471-4d78-b19c-ef5bb00755da", + "id": "749a8d2d-2244-4eda-9220-9844605f836b", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/subcollection/:subCollectionId/brand/:categoryId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -25415,7 +20448,7 @@ } }, { - "id": "5b590e0c-ed90-421c-b435-8bbac2209c30", + "id": "8fb0f05d-1384-4ccc-ac69-71a4478eb568", "name": "Associate brand to subcollection", "request": { "name": "Associate brand to subcollection", @@ -25446,24 +20479,6 @@ "type": "any", "value": "1", "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -25485,6 +20500,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -25493,6 +20516,7 @@ "raw": "{\n \"BrandId\": 2000000\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -25503,7 +20527,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "830afb76-7619-4c8a-b1e0-85063327ff42", + "id": "6e8d2dfa-f70a-4433-b5e4-867e2e8b1bf0", "name": "OK", "originalRequest": { "url": { @@ -25519,46 +20543,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection's unique numerical identifier, which can be obtained by placing a request to [Get subcollection by collection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -25577,9 +20564,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -25588,6 +20587,7 @@ "raw": "{\n \"BrandId\": 2000000\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -25609,13 +20609,13 @@ { "listen": "test", "script": { - "id": "735cc9cc-568b-4ece-aa18-f21ccf3faa57", + "id": "1f319a74-0b43-4afe-b81f-9b9a5a0a6a0d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/brand - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/brand - 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(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/brand - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"SubCollectionId\":{\"type\":\"integer\",\"description\":\"Subcollection's unique numerical identifier.\",\"example\":17},\"BrandId\":{\"type\":\"integer\",\"description\":\"Unique identifier of the brand.\",\"example\":2000000}},\"example\":{\"SubCollectionId\":17,\"BrandId\":2000000}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/brand - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"SubCollectionId\":{\"type\":\"integer\",\"description\":\"Subcollection's unique numerical identifier.\"},\"BrandId\":{\"type\":\"integer\",\"description\":\"Unique identifier of the brand.\"}},\"example\":{\"SubCollectionId\":17,\"BrandId\":2000000}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/subcollection/:subCollectionId/brand - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -25625,7 +20625,7 @@ } }, { - "id": "1b533977-576e-4837-94b7-c927436a2e26", + "id": "9c1b5d0f-49e6-492d-ac65-0aa64eeee6fa", "name": "Delete brand from subcollection", "request": { "name": "Delete brand from subcollection", @@ -25667,24 +20667,6 @@ "type": "any", "value": "1", "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -25708,14 +20690,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "e0849281-de09-486f-988c-39421b87c934", + "id": "b8bb14f9-3b41-482d-9137-dea4df5f8ebb", "name": "OK", "originalRequest": { "url": { @@ -25732,56 +20715,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection's unique numerical identifier, which can be obtained by placing a request to [Get subcollection by collection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "subCollectionId" - }, - { - "disabled": false, - "description": { - "content": "(Required) Brand's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "brandId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -25799,6 +20735,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -25806,13 +20750,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -25820,7 +20758,7 @@ { "listen": "test", "script": { - "id": "a91c7c61-6298-446f-9da8-ebdd83983d3f", + "id": "6c411d14-b810-4b52-aef7-4bb763692d22", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/subcollection/:subCollectionId/brand/:brandId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -25833,7 +20771,7 @@ } }, { - "id": "a8bf78ef-12ae-4b41-a2a2-9aeeabee123a", + "id": "32757b37-f0fd-4c46-89ae-11d0a4b355e9", "name": "Get subcollection by collection ID", "request": { "name": "Get subcollection by collection ID", @@ -25864,24 +20802,6 @@ "type": "any", "value": "151", "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -25903,16 +20823,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "197cff41-62d1-4452-b9da-34dec7fdcc59", + "id": "5e89768e-51ca-4b42-afcd-6a5e5da3437c", "name": "OK", "originalRequest": { "url": { @@ -25928,46 +20853,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Collection's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "151", - "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -25989,6 +20877,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -26010,7 +20906,7 @@ { "listen": "test", "script": { - "id": "f4a3aebd-9ad9-4e8f-984c-e832f9f35e4b", + "id": "19986b0b-8990-40bd-af39-cacba7fb0d1a", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/collection/:collectionId/subcollection - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -26026,7 +20922,7 @@ } }, { - "id": "4cb2d811-b1ba-4c75-854d-d92714490dab", + "id": "4455f351-1dff-4831-bceb-07f0d5b2e1e4", "name": "Get subcollection by subcollection ID", "request": { "name": "Get subcollection by subcollection ID", @@ -26056,24 +20952,6 @@ "type": "any", "value": "17", "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -26095,16 +20973,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "5cc4ff90-15ad-4b7a-83bf-25b69662bbb7", + "id": "0418373a-f30b-4611-897b-1cb2aa207f75", "name": "OK", "originalRequest": { "url": { @@ -26119,46 +21002,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection's unique numerical identifier, which can be obtained by placing a request to [Get subcollection by collection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "17", - "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -26180,6 +21026,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -26201,7 +21055,7 @@ { "listen": "test", "script": { - "id": "49c1415d-2bcb-47a5-9bc9-7669cae6b926", + "id": "58591df9-3d48-4e11-ab85-ada6ce5c0322", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/subcollection/:subCollectionId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -26217,7 +21071,7 @@ } }, { - "id": "aee33b01-9a21-414a-a538-79bd81797391", + "id": "a8feb345-b106-473c-8a1c-e4221be11eab", "name": "Update subcollection", "request": { "name": "Update subcollection", @@ -26247,24 +21101,6 @@ "type": "any", "value": "17", "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -26286,6 +21122,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -26294,6 +21138,7 @@ "raw": "{\n \"CollectionId\": 17,\n \"Name\": \"group 1\",\n \"Type\": \"Inclusive\",\n \"PreSale\": false,\n \"Release\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -26304,7 +21149,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "6bf510fa-4e31-4774-9826-b6cb9a10ad01", + "id": "235e593d-5f15-4a8c-a425-253b4600e936", "name": "OK", "originalRequest": { "url": { @@ -26319,46 +21164,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection's unique numerical identifier, which can be obtained by placing a request to [Get subcollection by collection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "17", - "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -26377,9 +21185,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -26388,6 +21208,7 @@ "raw": "{\n \"CollectionId\": 17,\n \"Name\": \"group 1\",\n \"Type\": \"Inclusive\",\n \"PreSale\": false,\n \"Release\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -26409,7 +21230,7 @@ { "listen": "test", "script": { - "id": "478eade6-a0cd-48e7-8386-0d8459bfe477", + "id": "a000d949-c4df-48b7-8811-fced6b99deb5", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/subcollection/:subCollectionId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -26425,7 +21246,7 @@ } }, { - "id": "d3d027d1-6695-45ca-9843-7c34763920dd", + "id": "377bb43e-5a83-49ba-9e5d-e038932fcf8c", "name": "Delete subcollection", "request": { "name": "Delete subcollection", @@ -26455,24 +21276,6 @@ "type": "any", "value": "1", "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -26496,14 +21299,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "04facd69-3f5e-4bfd-a9c2-975444392b97", + "id": "1af00d11-c8dc-428c-85e5-1c24509c7446", "name": "OK", "originalRequest": { "url": { @@ -26518,46 +21322,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Subcollection's unique numerical identifier, which can be obtained by placing a request to [Get subcollection by collection ID](https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-subcollection-collectionid).", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "subCollectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -26575,6 +21342,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -26582,13 +21357,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -26596,7 +21365,7 @@ { "listen": "test", "script": { - "id": "b67e88b5-2e05-4113-87b5-944ae68a88c1", + "id": "2a2f3268-d0fa-42c0-9498-b430831f9b8c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/subcollection/:subCollectionId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -26609,7 +21378,7 @@ } }, { - "id": "38ffb722-701c-4ef6-96df-6c0bf56e3b30", + "id": "d1b344d9-a611-4147-b5d4-eafe79d5b7bc", "name": "Create subcollection", "request": { "name": "Create subcollection", @@ -26628,26 +21397,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -26667,6 +21417,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -26675,6 +21433,7 @@ "raw": "{\n \"CollectionId\": 17,\n \"Name\": \"group 1\",\n \"Type\": \"Inclusive\",\n \"PreSale\": false,\n \"Release\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -26685,7 +21444,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "a0dd8ce3-5bb1-427f-9d94-235b7a99d21a", + "id": "29675c95-e994-43af-b1b4-9f9559c24c15", "name": "OK", "originalRequest": { "url": { @@ -26699,36 +21458,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -26747,9 +21479,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -26758,6 +21502,7 @@ "raw": "{\n \"CollectionId\": 17,\n \"Name\": \"group 1\",\n \"Type\": \"Inclusive\",\n \"PreSale\": false,\n \"Release\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -26779,7 +21524,7 @@ { "listen": "test", "script": { - "id": "fd52e662-6ad8-4648-bd8f-2f43f575471f", + "id": "ff6b7add-6130-4ee7-a4bc-e5055f81ba29", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/subcollection - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -26795,7 +21540,7 @@ } }, { - "id": "eba369cd-71d9-423d-aa8c-bb128bb8d0a2", + "id": "5c03f1ae-9f07-4106-97e4-6d5d59b9ea52", "name": "Reposition SKU on the subcollection", "request": { "name": "Reposition SKU on the subcollection", @@ -26826,24 +21571,6 @@ "type": "any", "value": "151", "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -26865,6 +21592,10 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" } ], "method": "POST", @@ -26873,6 +21604,7 @@ "raw": "{\n \"skuId\": 1,\n \"position\": 1,\n \"subCollectionId\": 17\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -26883,7 +21615,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "1b11276c-9660-4274-b1f5-383c53f32bc2", + "id": "82275bb5-9c33-410d-b0b4-4d5a69a52ad4", "name": "OK", "originalRequest": { "url": { @@ -26899,46 +21631,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Collection's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "151", - "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -26956,6 +21651,18 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -26964,6 +21671,7 @@ "raw": "{\n \"skuId\": 1,\n \"position\": 1,\n \"subCollectionId\": 17\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -26971,13 +21679,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -26985,7 +21687,7 @@ { "listen": "test", "script": { - "id": "ab4c8412-ae30-4e91-826c-93770c1ac53f", + "id": "98b8bc8b-daea-4b29-9e1d-489ca8846161", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/collection/:collectionId/position - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -27001,7 +21703,7 @@ "event": [] }, { - "id": "6d00b842-5d3d-4822-a340-ed8b83bf79ac", + "id": "faea8c10-2512-43a7-83e8-46f1d9531b8e", "name": "Collection Beta", "description": { "content": "", @@ -27009,7 +21711,7 @@ }, "item": [ { - "id": "9b3eb172-8d14-4e86-94a5-838a1a3693a2", + "id": "725043f3-c0d9-4bd7-b58c-a5c919d728d9", "name": "Get all collections", "request": { "name": "Get all collections", @@ -27057,26 +21759,7 @@ "value": "true" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -27096,16 +21779,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "df355fac-ed69-470d-9c6a-9fd2d8d6d7c2", + "id": "551ef227-85ec-46bd-8065-6bfc276a1751", "name": "OK", "originalRequest": { "url": { @@ -27121,48 +21809,36 @@ ], "query": [ { + "disabled": false, + "description": { + "content": "(Required) Page number.", + "type": "text/plain" + }, "key": "page", "value": "2" }, { - "key": "pageSize", - "value": "15" - }, - { - "key": "orderByAsc", - "value": "true" - } - ], - "variable": [ - { + "disabled": false, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "(Required) Number of the items of the page.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "pageSize", + "value": "15" }, { + "disabled": false, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "(Required) Defines if the items of the page are in ascending order.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "orderByAsc", + "value": "true" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -27184,6 +21860,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -27205,7 +21889,7 @@ { "listen": "test", "script": { - "id": "4cfe89a6-077a-45ad-a120-c223af2df636", + "id": "fb4dd1ca-f195-40ef-8ed6-a40013919512", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/collection/search - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -27221,7 +21905,7 @@ } }, { - "id": "b1b3d52e-1fff-43d9-9995-d2f13c26e58e", + "id": "fc402bd5-d6e4-412e-be6f-c37b5b4e4698", "name": "Get all inactive collections", "request": { "name": "Get all inactive collections", @@ -27241,26 +21925,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -27280,16 +21945,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "b55e5048-5572-4597-8d2d-fbee05ffd9ab", + "id": "e32bba03-d445-415e-b2df-242aee214b1e", "name": "OK", "originalRequest": { "url": { @@ -27304,36 +21974,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -27355,6 +21998,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -27376,7 +22027,7 @@ { "listen": "test", "script": { - "id": "bdfb299a-268e-445a-98cc-99e07a3071a1", + "id": "0735688a-5e77-44b5-9613-b36afe9492cd", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/collection/inactive - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -27392,7 +22043,7 @@ } }, { - "id": "881fe1cd-4ed9-474c-96bc-531f5585086f", + "id": "09927529-4105-4fb8-bb57-ccc82ea073bc", "name": "Create Collection", "request": { "name": "Create Collection", @@ -27412,26 +22063,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -27451,14 +22083,23 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"Name\": \"Halloween costumes\",\n \"Description\": \"HomeHalloween\",\n \"Searchable\": false,\n \"Highlight\": false,\n \"DateFrom\": \"2020-11-26T15:23:00\",\n \"DateTo\": \"2069-11-26T15:23:00\",\n \"TotalProducts\": \"dolore eu\",\n \"Type\": 25363283.245952755\n}", + "raw": "{\n \"Name\": \"Halloween costumes\",\n \"Description\": \"HomeHalloween\",\n \"Searchable\": false,\n \"Highlight\": false,\n \"DateFrom\": \"2020-11-26T15:23:00\",\n \"DateTo\": \"2069-11-26T15:23:00\",\n \"TotalProducts\": -40178767,\n \"Type\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -27469,7 +22110,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "902c8a72-626f-48ec-94ee-364303759750", + "id": "994a222f-5b99-49d7-bfa6-31e76523066f", "name": "OK", "originalRequest": { "url": { @@ -27484,36 +22125,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -27532,17 +22146,30 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"Name\": \"Halloween costumes\",\n \"Description\": \"HomeHalloween\",\n \"Searchable\": false,\n \"Highlight\": false,\n \"DateFrom\": \"2020-11-26T15:23:00\",\n \"DateTo\": \"2069-11-26T15:23:00\",\n \"TotalProducts\": \"dolore eu\",\n \"Type\": 25363283.245952755\n}", + "raw": "{\n \"Name\": \"Halloween costumes\",\n \"Description\": \"HomeHalloween\",\n \"Searchable\": false,\n \"Highlight\": false,\n \"DateFrom\": \"2020-11-26T15:23:00\",\n \"DateTo\": \"2069-11-26T15:23:00\",\n \"TotalProducts\": -40178767,\n \"Type\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -27564,7 +22191,7 @@ { "listen": "test", "script": { - "id": "d1a8b695-7f80-4893-8ea0-1154c399f62d", + "id": "94966153-de8f-47d3-8818-651ed492eed5", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/collection/ - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -27580,7 +22207,7 @@ } }, { - "id": "d5d0c95f-4e91-4667-8a1d-b9ede622d40b", + "id": "8648fd35-048f-4fba-b3ee-dcc731b45992", "name": "Get Collections by search terms", "request": { "name": "Get Collections by search terms", @@ -27639,24 +22266,6 @@ "type": "any", "value": "costume", "key": "searchTerms" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -27678,16 +22287,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "4a800ddd-7338-43c1-8f8c-acdce1a4763a", + "id": "ca8e0274-7150-4cba-91f7-c18817349ba3", "name": "OK", "originalRequest": { "url": { @@ -27704,58 +22318,36 @@ ], "query": [ { - "key": "page", - "value": "2" - }, - { - "key": "pageSize", - "value": "15" - }, - { - "key": "orderByAsc", - "value": "true" - } - ], - "variable": [ - { - "disabled": false, + "disabled": true, "description": { - "content": "(Required) String that will search for a collection related to it.", + "content": "Page number.", "type": "text/plain" }, - "type": "any", - "value": "costume", - "key": "searchTerms" + "key": "page", + "value": "2" }, { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "Number of the items of the page.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "pageSize", + "value": "15" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "Defines if the items of the page are in ascending order.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "orderByAsc", + "value": "true" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -27777,6 +22369,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -27798,7 +22398,7 @@ { "listen": "test", "script": { - "id": "a1449972-4665-431c-8698-4e0ef43f15a6", + "id": "3e250518-f820-4f3e-8f45-5e0ac4a44a3f", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/collection/search/:searchTerms - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -27814,7 +22414,7 @@ } }, { - "id": "3c846a54-c5b7-435f-b3cc-805f8cea37c1", + "id": "4b6d0cfa-7588-4456-8d4a-379ba0250642", "name": "Import collection file example", "request": { "name": "Import collection file example", @@ -27835,26 +22435,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -27874,16 +22455,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/xml" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "xml" }, - "id": "57991829-9e86-4374-838a-2832a72dbe49", + "id": "931f2d69-02ab-416e-8415-014296da3e64", "name": "OK", "originalRequest": { "url": { @@ -27899,36 +22485,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -27950,6 +22509,14 @@ { "key": "Accept", "value": "application/xml" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -27963,7 +22530,7 @@ "value": "application/xml" } ], - "body": "\n\n", + "body": "", "cookie": [] } ], @@ -27971,7 +22538,7 @@ { "listen": "test", "script": { - "id": "63379d6a-2fc4-45f9-893d-1b5e97a84bde", + "id": "4ade1e35-0723-4608-acc7-45f3e1f48c82", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/collection/stockkeepingunit/importfileexample - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -27985,7 +22552,7 @@ } }, { - "id": "552e1ce3-19e0-4de6-962a-c355d1c22dd1", + "id": "7a8c8c8f-96f8-4e15-a75d-a7f8dd550fc2", "name": "Add products to collection by imported file", "request": { "name": "Add products to collection by imported file", @@ -28017,33 +22584,15 @@ "type": "any", "value": "1", "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] - }, - "header": [ - { - "disabled": false, - "description": { - "content": "(Required) Type of the content being sent.", - "type": "text/plain" + } + ] + }, + "header": [ + { + "disabled": false, + "description": { + "content": "(Required) Type of the content being sent.", + "type": "text/plain" }, "key": "Content-Type", "value": "application/json" @@ -28056,6 +22605,10 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "multipart/form-data" } ], "method": "POST", @@ -28068,7 +22621,7 @@ "type": "text/plain" }, "key": "file", - "value": "{}", + "value": "[object Object]", "type": "text" } ] @@ -28079,7 +22632,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "defcd94e-970f-4775-bead-576ebab980ef", + "id": "0a5b46d3-e760-45d6-8174-d9b789c80788", "name": "OK", "originalRequest": { "url": { @@ -28096,46 +22649,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Collection's unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -28153,6 +22669,18 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -28165,7 +22693,7 @@ "type": "text/plain" }, "key": "file", - "value": "{}", + "value": "[object Object]", "type": "text" } ] @@ -28173,13 +22701,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -28187,7 +22709,7 @@ { "listen": "test", "script": { - "id": "db89331a-d54f-4fd8-b7cf-f55bf8a41ab8", + "id": "1b2da0a3-830b-4708-98a2-b5c90b4011bb", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/collection/:collectionId/stockkeepingunit/importinsert - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -28200,7 +22722,7 @@ } }, { - "id": "5edfa95f-d19c-410b-9eab-ad3454f4bf06", + "id": "0663b61b-69e3-4a23-8824-431ccee028d6", "name": "Remove products from collection by imported file", "request": { "name": "Remove products from collection by imported file", @@ -28232,24 +22754,6 @@ "type": "any", "value": "1", "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -28271,6 +22775,10 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "multipart/form-data" } ], "method": "POST", @@ -28283,7 +22791,7 @@ "type": "text/plain" }, "key": "file", - "value": "{}", + "value": "[object Object]", "type": "text" } ] @@ -28294,7 +22802,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "fed5c279-435d-45e8-b494-9494a5695c2d", + "id": "e7e911de-f561-4a0d-a02a-809b9c0341a4", "name": "OK", "originalRequest": { "url": { @@ -28311,46 +22819,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Collection's unique identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -28368,6 +22839,18 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -28380,7 +22863,7 @@ "type": "text/plain" }, "key": "file", - "value": "{}", + "value": "[object Object]", "type": "text" } ] @@ -28388,13 +22871,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -28402,7 +22879,7 @@ { "listen": "test", "script": { - "id": "f3c1b049-e5cd-4df7-84c6-692c6b4e4db5", + "id": "61aec984-efc5-401d-9d3b-35928c8b3f3c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/collection/:collectionId/stockkeepingunit/importexclude - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -28415,7 +22892,7 @@ } }, { - "id": "484ecba4-2d2d-4002-8d88-80cf5003f991", + "id": "6c507b08-8223-4485-a642-d3b6266d8b39", "name": "Get products from a collection", "request": { "name": "Get products from a collection", @@ -28564,24 +23041,6 @@ "type": "any", "value": "1", "key": "collectionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -28603,16 +23062,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "64845f43-6ee8-40b9-a196-2d08e477c9b1", + "id": "41f5a03a-d106-485a-ace4-c47bd3b248e0", "name": "OK", "originalRequest": { "url": { @@ -28629,98 +23093,126 @@ ], "query": [ { + "disabled": true, + "description": { + "content": "Page number.", + "type": "text/plain" + }, "key": "page", "value": "2" }, { + "disabled": true, + "description": { + "content": "Number of the items of the page.", + "type": "text/plain" + }, "key": "pageSize", "value": "15" }, { + "disabled": true, + "description": { + "content": "Filter used to refine the collection's products.", + "type": "text/plain" + }, "key": "Filter", "value": "Pre launch" }, { + "disabled": true, + "description": { + "content": "Defines if the status of the product is active or not.", + "type": "text/plain" + }, "key": "Active", "value": "true" }, { + "disabled": true, + "description": { + "content": "Defines if the product is visible on the store or not.", + "type": "text/plain" + }, "key": "Visible", "value": "true" }, { + "disabled": true, + "description": { + "content": "Product's category unique identifier.", + "type": "text/plain" + }, "key": "CategoryId", "value": "12" }, { + "disabled": true, + "description": { + "content": "Product's brand unique identifier.", + "type": "text/plain" + }, "key": "BrandId", "value": "3" }, { + "disabled": true, + "description": { + "content": "Product's supplier unique identifier.", + "type": "text/plain" + }, "key": "SupplierId", "value": "1" }, { + "disabled": true, + "description": { + "content": "Product's trade policy unique identifier.", + "type": "text/plain" + }, "key": "SalesChannelId", "value": "1" }, { + "disabled": true, + "description": { + "content": "Product past release date.", + "type": "text/plain" + }, "key": "ReleaseFrom", "value": "2069-11-26T15:23:00" }, { - "key": "ReleaseTo", - "value": "2069-11-26T15:23:00" - }, - { - "key": "SpecificationProduct", - "value": "M" - }, - { - "key": "SpecificationFieldId", - "value": "40" - } - ], - "variable": [ - { - "disabled": false, + "disabled": true, "description": { - "content": "(Required) Collection's unique identifier.", + "content": "Product future release date.", "type": "text/plain" }, - "type": "any", - "value": "1", - "key": "collectionId" + "key": "ReleaseTo", + "value": "2069-11-26T15:23:00" }, { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "Product specification field Value. You must also fill in `SpecificationFieldId` to use this parameter.", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "SpecificationProduct", + "value": "M" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "Product specification field unique identifier.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "SpecificationFieldId", + "value": "40" } - ] + ], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -28742,6 +23234,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -28763,7 +23263,7 @@ { "listen": "test", "script": { - "id": "41eceb4a-1dfe-4ff0-9a49-947df02bfb00", + "id": "d75d2fb7-a3bf-4f38-9569-157c3af481f7", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog/pvt/collection/:collectionId/products - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -28782,7 +23282,7 @@ "event": [] }, { - "id": "5833a69a-c944-471c-82a7-e88a617806f4", + "id": "1e58d945-7b7d-420e-8d8b-bcb457cd3593", "name": "Supplier", "description": { "content": "", @@ -28790,7 +23290,7 @@ }, "item": [ { - "id": "f7b63052-761a-4e57-8336-ec6a7d17f5c4", + "id": "731613ae-b876-46b7-afbb-bf55657b6998", "name": "Create Supplier", "request": { "name": "Create Supplier", @@ -28809,26 +23309,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -28848,6 +23329,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -28856,6 +23345,7 @@ "raw": "{\n \"Name\": \"Supplier\",\n \"CorporateName\": \"TopStore\",\n \"StateInscription\": \"123456\",\n \"Cnpj\": \"33304981001272\",\n \"Phone\": \"3333333333\",\n \"CellPhone\": \"4444444444\",\n \"CorportePhone\": \"5555555555\",\n \"Email\": \"email@email.com\",\n \"IsActive\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -28866,7 +23356,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "4e7a23b8-e203-484d-b446-7196ae1c667b", + "id": "19ec5e43-1840-42a8-8a97-e52860a84372", "name": "OK", "originalRequest": { "url": { @@ -28880,36 +23370,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -28928,17 +23391,30 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" - } - ], - "method": "POST", - "body": { + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" + } + ], + "method": "POST", + "body": { "mode": "raw", "raw": "{\n \"Name\": \"Supplier\",\n \"CorporateName\": \"TopStore\",\n \"StateInscription\": \"123456\",\n \"Cnpj\": \"33304981001272\",\n \"Phone\": \"3333333333\",\n \"CellPhone\": \"4444444444\",\n \"CorportePhone\": \"5555555555\",\n \"Email\": \"email@email.com\",\n \"IsActive\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -28960,13 +23436,13 @@ { "listen": "test", "script": { - "id": "4f2cbfa1-73d6-49ea-b846-3ee620ddae8f", + "id": "51558568-d1aa-4295-b166-ee17f7cde2c5", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog/pvt/supplier - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[POST]::/api/catalog/pvt/supplier - 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(\"[POST]::/api/catalog/pvt/supplier - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Supplier unique identifier code.\",\"example\":123},\"Name\":{\"type\":\"string\",\"description\":\"Supplier Name.\",\"example\":\"Supplier\"},\"CorporateName\":{\"type\":\"string\",\"description\":\"Supplier Corporate Name.\",\"example\":\"TopStore\"},\"StateInscription\":{\"type\":\"string\",\"description\":\"State Inscription.\",\"example\":\"123456\"},\"Cnpj\":{\"type\":\"string\",\"description\":\"Corporate legal ID.\",\"example\":\"33304981001272\"},\"Phone\":{\"type\":\"string\",\"description\":\"Supplier Phone.\",\"example\":\"3333333333\"},\"CellPhone\":{\"type\":\"string\",\"description\":\"Supplier Cellphone.\",\"example\":\"4444444444\"},\"CorportePhone\":{\"type\":\"string\",\"description\":\"Supplier Corporate Phone.\",\"example\":\"5555555555\"},\"Email\":{\"type\":\"string\",\"description\":\"Supplier email.\",\"example\":\"email@email.com\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Supplier is active (`true`) or not (`false`).\",\"example\":false}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/supplier - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Supplier unique identifier code.\"},\"Name\":{\"type\":\"string\",\"description\":\"Supplier Name.\"},\"CorporateName\":{\"type\":\"string\",\"description\":\"Supplier Corporate Name.\"},\"StateInscription\":{\"type\":\"string\",\"description\":\"State Inscription.\"},\"Cnpj\":{\"type\":\"string\",\"description\":\"Corporate legal ID.\"},\"Phone\":{\"type\":\"string\",\"description\":\"Supplier Phone.\"},\"CellPhone\":{\"type\":\"string\",\"description\":\"Supplier Cellphone.\"},\"CorportePhone\":{\"type\":\"string\",\"description\":\"Supplier Corporate Phone.\"},\"Email\":{\"type\":\"string\",\"description\":\"Supplier email.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Supplier is active (`true`) or not (`false`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[POST]::/api/catalog/pvt/supplier - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -28976,7 +23452,7 @@ } }, { - "id": "5fce8997-22e4-4408-b590-29b7d7dd94db", + "id": "4c971876-ff90-4fa5-a4c1-fb6a952a2eab", "name": "Update Supplier", "request": { "name": "Update Supplier", @@ -29006,24 +23482,6 @@ "type": "any", "value": "1", "key": "supplierId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -29045,6 +23503,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -29053,6 +23519,7 @@ "raw": "{\n \"Name\": \"Supplier\",\n \"CorporateName\": \"TopStore\",\n \"StateInscription\": \"123456\",\n \"Cnpj\": \"33304981001272\",\n \"Phone\": \"3333333333\",\n \"CellPhone\": \"4444444444\",\n \"CorportePhone\": \"5555555555\",\n \"Email\": \"email@email.com\",\n \"IsActive\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -29063,7 +23530,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "4c45ede7-ceff-4500-b3a0-be5c1789981e", + "id": "25bf69ff-e425-4e07-a501-ecfbf82c8e3d", "name": "OK", "originalRequest": { "url": { @@ -29078,46 +23545,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Supplier's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "supplierId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -29136,9 +23566,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -29147,6 +23589,7 @@ "raw": "{\n \"Name\": \"Supplier\",\n \"CorporateName\": \"TopStore\",\n \"StateInscription\": \"123456\",\n \"Cnpj\": \"33304981001272\",\n \"Phone\": \"3333333333\",\n \"CellPhone\": \"4444444444\",\n \"CorportePhone\": \"5555555555\",\n \"Email\": \"email@email.com\",\n \"IsActive\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -29168,13 +23611,13 @@ { "listen": "test", "script": { - "id": "7d74bffd-6590-4e10-84ce-ab0ab831dc21", + "id": "4eb4aa4c-cd37-48ea-ba40-2c015610b15d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog/pvt/supplier/:supplierId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[PUT]::/api/catalog/pvt/supplier/:supplierId - 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]::/api/catalog/pvt/supplier/:supplierId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Supplier unique identifier code.\",\"example\":123},\"Name\":{\"type\":\"string\",\"description\":\"Supplier Name.\",\"example\":\"Supplier\"},\"CorporateName\":{\"type\":\"string\",\"description\":\"Supplier Corporate Name.\",\"example\":\"TopStore\"},\"StateInscription\":{\"type\":\"string\",\"description\":\"State Inscription.\",\"example\":\"123456\"},\"Cnpj\":{\"type\":\"string\",\"description\":\"Corporate legal ID.\",\"example\":\"33304981001272\"},\"Phone\":{\"type\":\"string\",\"description\":\"Supplier Phone.\",\"example\":\"3333333333\"},\"CellPhone\":{\"type\":\"string\",\"description\":\"Supplier Cellphone.\",\"example\":\"4444444444\"},\"CorportePhone\":{\"type\":\"string\",\"description\":\"Supplier Corporate Phone.\",\"example\":\"5555555555\"},\"Email\":{\"type\":\"string\",\"description\":\"Supplier email.\",\"example\":\"email@email.com\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Supplier is active (`true`) or not (`false`).\",\"example\":false}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/supplier/:supplierId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Supplier unique identifier code.\"},\"Name\":{\"type\":\"string\",\"description\":\"Supplier Name.\"},\"CorporateName\":{\"type\":\"string\",\"description\":\"Supplier Corporate Name.\"},\"StateInscription\":{\"type\":\"string\",\"description\":\"State Inscription.\"},\"Cnpj\":{\"type\":\"string\",\"description\":\"Corporate legal ID.\"},\"Phone\":{\"type\":\"string\",\"description\":\"Supplier Phone.\"},\"CellPhone\":{\"type\":\"string\",\"description\":\"Supplier Cellphone.\"},\"CorportePhone\":{\"type\":\"string\",\"description\":\"Supplier Corporate Phone.\"},\"Email\":{\"type\":\"string\",\"description\":\"Supplier email.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Supplier is active (`true`) or not (`false`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[PUT]::/api/catalog/pvt/supplier/:supplierId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -29184,7 +23627,7 @@ } }, { - "id": "d2f45bcd-e9ce-43a0-9be7-d28e20b9a4ea", + "id": "24210f26-a2bd-4e62-8e38-c3166a56e0f2", "name": "Delete Supplier", "request": { "name": "Delete Supplier", @@ -29214,24 +23657,6 @@ "type": "any", "value": "1", "key": "supplierId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -29255,14 +23680,15 @@ "value": "application/json" } ], - "method": "DELETE" + "method": "DELETE", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "ab5ccebb-c896-4f6a-b806-2c54339008b2", + "id": "e2abe9f4-3ed3-4921-8ac6-8922065cd29d", "name": "OK", "originalRequest": { "url": { @@ -29277,46 +23703,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Supplier's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "supplierId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -29334,6 +23723,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "DELETE", @@ -29341,13 +23738,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -29355,7 +23746,7 @@ { "listen": "test", "script": { - "id": "43a775ea-523b-4e22-9cfd-54322c4a7774", + "id": "3d1c8cb5-3290-4ff4-b327-3f27a3659e79", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[DELETE]::/api/catalog/pvt/supplier/:supplierId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -29371,7 +23762,7 @@ "event": [] }, { - "id": "1d2a72b6-9c4d-4fda-8f5d-e6311731d58e", + "id": "d91ff9f3-76a7-41b8-be5c-2c8f73fb1814", "name": "Sales channel", "description": { "content": "", @@ -29379,7 +23770,7 @@ }, "item": [ { - "id": "ab445c23-1531-4d31-9e83-70f44140096f", + "id": "be7d2be3-4ed4-4a4d-8045-3f91a2097bfd", "name": "Get Sales channel list", "request": { "name": "Get Sales channel list", @@ -29399,26 +23790,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -29438,16 +23810,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "421b5770-2c00-4fe4-81a2-bba41acf583d", + "id": "1170388e-6d54-4ced-8eae-c2169ef52f18", "name": "OK", "originalRequest": { "url": { @@ -29462,36 +23839,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -29513,6 +23863,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -29526,7 +23884,7 @@ "value": "application/json" } ], - "body": "[\n {\n \"Id\": 1,\n \"Name\": \"Loja Principal\",\n \"IsActive\": true,\n \"ProductClusterId\": null,\n \"CountryCode\": \"BRA\",\n \"CultureInfo\": \"pt-BR\",\n \"TimeZone\": \"E. South America Standard Time\",\n \"CurrencyCode\": \"BRL\",\n \"CurrencySymbol\": \"R$\",\n \"CurrencyLocale\": 1046,\n \"CurrencyFormatInfo\": {\n \"CurrencyDecimalDigits\": 1,\n \"CurrencyDecimalSeparator\": \",\",\n \"CurrencyGroupSeparator\": \".\",\n \"CurrencyGroupSize\": 3,\n \"StartsWithCurrencySymbol\": true\n },\n \"Origin\": null,\n \"Position\": 1,\n \"ConditionRule\": \"approved=true\",\n \"CurrencyDecimalDigits\": 1\n },\n {\n \"Id\": 1,\n \"Name\": \"Loja Principal\",\n \"IsActive\": true,\n \"ProductClusterId\": null,\n \"CountryCode\": \"BRA\",\n \"CultureInfo\": \"pt-BR\",\n \"TimeZone\": \"E. South America Standard Time\",\n \"CurrencyCode\": \"BRL\",\n \"CurrencySymbol\": \"R$\",\n \"CurrencyLocale\": 1046,\n \"CurrencyFormatInfo\": {\n \"CurrencyDecimalDigits\": 1,\n \"CurrencyDecimalSeparator\": \",\",\n \"CurrencyGroupSeparator\": \".\",\n \"CurrencyGroupSize\": 3,\n \"StartsWithCurrencySymbol\": true\n },\n \"Origin\": null,\n \"Position\": 1,\n \"ConditionRule\": \"approved=true\",\n \"CurrencyDecimalDigits\": 1\n }\n]", + "body": "[\n {\n \"Id\": 1,\n \"Name\": \"Loja Principal\",\n \"IsActive\": true,\n \"ProductClusterId\": null,\n \"CountryCode\": \"BRA\",\n \"CultureInfo\": \"pt-BR\",\n \"TimeZone\": \"E. South America Standard Time\",\n \"CurrencyCode\": \"BRL\",\n \"CurrencySymbol\": \"R$\",\n \"CurrencyLocale\": 1046,\n \"CurrencyFormatInfo\": {\n \"CurrencyDecimalDigits\": 1,\n \"CurrencyDecimalSeparator\": \",\",\n \"CurrencyGroupSeparator\": \".\",\n \"CurrencyGroupSize\": 3,\n \"StartsWithCurrencySymbol\": true\n },\n \"Origin\": null,\n \"Position\": 1,\n \"ConditionRule\": \"approved=true\",\n \"CurrencyDecimalDigits\": 1\n },\n {\n \"Id\": 1,\n \"Name\": \"Loja Principal\",\n \"IsActive\": false,\n \"ProductClusterId\": null,\n \"CountryCode\": \"BRA\",\n \"CultureInfo\": \"pt-BR\",\n \"TimeZone\": \"E. South America Standard Time\",\n \"CurrencyCode\": \"BRL\",\n \"CurrencySymbol\": \"R$\",\n \"CurrencyLocale\": 1046,\n \"CurrencyFormatInfo\": {\n \"CurrencyDecimalDigits\": 1,\n \"CurrencyDecimalSeparator\": \",\",\n \"CurrencyGroupSeparator\": \".\",\n \"CurrencyGroupSize\": 3,\n \"StartsWithCurrencySymbol\": true\n },\n \"Origin\": null,\n \"Position\": 1,\n \"ConditionRule\": \"approved=true\",\n \"CurrencyDecimalDigits\": 1\n }\n]", "cookie": [] } ], @@ -29534,13 +23892,13 @@ { "listen": "test", "script": { - "id": "e9e176e0-c1e9-40cb-91b4-12964b7a7fe7", + "id": "d105f068-cd22-4757-96dc-50c367048451", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/saleschannel/list - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/saleschannel/list - 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]::/api/catalog_system/pvt/saleschannel/list - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Sales channel unique identifier.\",\"example\":1},\"Name\":{\"type\":\"string\",\"description\":\"Sales channel name.\",\"example\":\"Loja Principal\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Sales channel is active (`true`) or not (`false`).\"},\"ProductClusterId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Product Cluster ID, if the Sales channel has releated product Cluster.\",\"example\":null},\"CountryCode\":{\"type\":\"string\",\"description\":\"Country Code in ISO 3166-1 alfa-3 Standard.\",\"example\":\"BRA\"},\"CultureInfo\":{\"type\":\"string\",\"description\":\"Language Country code in LCIDstring Standard.\",\"example\":\"pt-BR\"},\"TimeZone\":{\"type\":\"string\",\"description\":\"Name of Time Zone.\",\"example\":\"E. South America Standard Time\"},\"CurrencyCode\":{\"type\":\"string\",\"description\":\"Currency Code in ISO 4217 standard.\",\"example\":\"BRL\"},\"CurrencySymbol\":{\"type\":\"string\",\"description\":\"Currency symbol.\",\"example\":\"R$\"},\"CurrencyLocale\":{\"type\":\"integer\",\"description\":\"Currency Locale Code in LCID standard.\",\"example\":1046},\"CurrencyFormatInfo\":{\"type\":\"object\",\"description\":\"Object with currency format.\",\"properties\":{\"CurrencyDecimalDigits\":{\"type\":\"integer\",\"description\":\"Quantity of Currency Decimal Digits.\",\"example\":1},\"CurrencyDecimalSeparator\":{\"type\":\"string\",\"description\":\"Defines which Currency Decimal Separator will be applied.\",\"example\":\",\"},\"CurrencyGroupSeparator\":{\"type\":\"string\",\"description\":\"Defines which Currency Group Separator will be applied.\",\"example\":\".\"},\"CurrencyGroupSize\":{\"type\":\"integer\",\"description\":\"Define how many characters will be grouped.\",\"example\":3},\"StartsWithCurrencySymbol\":{\"type\":\"boolean\",\"description\":\"Defines if all prices will be initiated with Currency Symbol (`true`) or not (`false`).\",\"example\":true}}},\"Origin\":{\"type\":[\"string\",\"null\"],\"description\":\"Origin of products in the Sales channel.\",\"example\":null},\"Position\":{\"type\":[\"integer\",\"null\"],\"description\":\"Defines the position on index.\",\"example\":1},\"ConditionRule\":{\"type\":[\"string\",\"null\"],\"description\":\"Defines what is the conditional rule to activate de Sales channel.\",\"example\":\"approved=true\"},\"CurrencyDecimalDigits\":{\"type\":\"integer\",\"description\":\"Quantity of Currency Decimal Digits.\",\"example\":1}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/saleschannel/list - 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\":{\"Id\":{\"type\":\"integer\",\"description\":\"Sales channel unique identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Sales channel name.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Sales channel is active (`true`) or not (`false`).\"},\"ProductClusterId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Product Cluster ID, if the Sales channel has releated product Cluster.\"},\"CountryCode\":{\"type\":\"string\",\"description\":\"Country Code in ISO 3166-1 alfa-3 Standard.\"},\"CultureInfo\":{\"type\":\"string\",\"description\":\"Language Country code in LCIDstring Standard.\"},\"TimeZone\":{\"type\":\"string\",\"description\":\"Name of Time Zone.\"},\"CurrencyCode\":{\"type\":\"string\",\"description\":\"Currency Code in ISO 4217 standard.\"},\"CurrencySymbol\":{\"type\":\"string\",\"description\":\"Currency symbol.\"},\"CurrencyLocale\":{\"type\":\"integer\",\"description\":\"Currency Locale Code in LCID standard.\"},\"CurrencyFormatInfo\":{\"type\":\"object\",\"description\":\"Object with currency format.\",\"properties\":{\"CurrencyDecimalDigits\":{\"type\":\"integer\",\"description\":\"Quantity of Currency Decimal Digits.\"},\"CurrencyDecimalSeparator\":{\"type\":\"string\",\"description\":\"Defines which Currency Decimal Separator will be applied.\"},\"CurrencyGroupSeparator\":{\"type\":\"string\",\"description\":\"Defines which Currency Group Separator will be applied.\"},\"CurrencyGroupSize\":{\"type\":\"integer\",\"description\":\"Define how many characters will be grouped.\"},\"StartsWithCurrencySymbol\":{\"type\":\"boolean\",\"description\":\"Defines if all prices will be initiated with Currency Symbol (`true`) or not (`false`).\"}}},\"Origin\":{\"type\":[\"string\",\"null\"],\"description\":\"Origin of products in the Sales channel.\"},\"Position\":{\"type\":[\"integer\",\"null\"],\"description\":\"Defines the position on index.\"},\"ConditionRule\":{\"type\":[\"string\",\"null\"],\"description\":\"Defines what is the conditional rule to activate de Sales channel.\"},\"CurrencyDecimalDigits\":{\"type\":\"integer\",\"description\":\"Quantity of Currency Decimal Digits.\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/saleschannel/list - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -29550,7 +23908,7 @@ } }, { - "id": "b0345737-0dfb-49d1-b005-2360c0a59d67", + "id": "db8c13cb-a905-4c29-a097-e638c6960680", "name": "Get Sales channel by ID", "request": { "name": "Get Sales channel by ID", @@ -29580,24 +23938,6 @@ "type": "any", "value": "1", "key": "salesChannelId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -29619,16 +23959,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "7bf6ec1d-e087-4f6a-a195-6c12a90773d4", + "id": "c963310f-bcce-4114-870d-045c449ce61f", "name": "OK", "originalRequest": { "url": { @@ -29643,46 +23988,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "salesChannelId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -29704,6 +24012,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -29717,7 +24033,7 @@ "value": "application/json" } ], - "body": "{\n \"Id\": 1,\n \"Name\": \"Loja Principal\",\n \"IsActive\": false,\n \"ProductClusterId\": null,\n \"CountryCode\": \"BRA\",\n \"CultureInfo\": \"pt-BR\",\n \"TimeZone\": \"E. South America Standard Time\",\n \"CurrencyCode\": \"BRL\",\n \"CurrencySymbol\": \"R$\",\n \"CurrencyLocale\": 1046,\n \"CurrencyFormatInfo\": {\n \"CurrencyDecimalDigits\": 1,\n \"CurrencyDecimalSeparator\": \",\",\n \"CurrencyGroupSeparator\": \".\",\n \"CurrencyGroupSize\": 3,\n \"StartsWithCurrencySymbol\": true\n },\n \"Origin\": null,\n \"Position\": 1,\n \"ConditionRule\": \"approved=true\",\n \"CurrencyDecimalDigits\": 1\n}", + "body": "{\n \"Id\": 1,\n \"Name\": \"Loja Principal\",\n \"IsActive\": true,\n \"ProductClusterId\": null,\n \"CountryCode\": \"BRA\",\n \"CultureInfo\": \"pt-BR\",\n \"TimeZone\": \"E. South America Standard Time\",\n \"CurrencyCode\": \"BRL\",\n \"CurrencySymbol\": \"R$\",\n \"CurrencyLocale\": 1046,\n \"CurrencyFormatInfo\": {\n \"CurrencyDecimalDigits\": 1,\n \"CurrencyDecimalSeparator\": \",\",\n \"CurrencyGroupSeparator\": \".\",\n \"CurrencyGroupSize\": 3,\n \"StartsWithCurrencySymbol\": true\n },\n \"Origin\": null,\n \"Position\": 1,\n \"ConditionRule\": \"approved=true\",\n \"CurrencyDecimalDigits\": 1\n}", "cookie": [] } ], @@ -29725,13 +24041,13 @@ { "listen": "test", "script": { - "id": "65604bfc-e16e-480c-a24f-4766ef6ead9d", + "id": "b24efaac-cc5a-41b6-a6a4-9b7b83c2d049", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pub/saleschannel/:salesChannelId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pub/saleschannel/:salesChannelId - 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]::/api/catalog_system/pub/saleschannel/:salesChannelId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Sales channel unique identifier.\",\"example\":1},\"Name\":{\"type\":\"string\",\"description\":\"Sales channel name.\",\"example\":\"Loja Principal\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Sales channel is active (`true`) or not (`false`).\"},\"ProductClusterId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Product Cluster ID, if the Sales channel has releated product Cluster.\",\"example\":null},\"CountryCode\":{\"type\":\"string\",\"description\":\"Country Code in ISO 3166-1 alfa-3 Standard.\",\"example\":\"BRA\"},\"CultureInfo\":{\"type\":\"string\",\"description\":\"Language Country code in LCIDstring Standard.\",\"example\":\"pt-BR\"},\"TimeZone\":{\"type\":\"string\",\"description\":\"Name of Time Zone.\",\"example\":\"E. South America Standard Time\"},\"CurrencyCode\":{\"type\":\"string\",\"description\":\"Currency Code in ISO 4217 standard.\",\"example\":\"BRL\"},\"CurrencySymbol\":{\"type\":\"string\",\"description\":\"Currency symbol.\",\"example\":\"R$\"},\"CurrencyLocale\":{\"type\":\"integer\",\"description\":\"Currency Locale Code in LCID standard.\",\"example\":1046},\"CurrencyFormatInfo\":{\"type\":\"object\",\"description\":\"Object with currency format.\",\"properties\":{\"CurrencyDecimalDigits\":{\"type\":\"integer\",\"description\":\"Quantity of Currency Decimal Digits.\",\"example\":1},\"CurrencyDecimalSeparator\":{\"type\":\"string\",\"description\":\"Defines which Currency Decimal Separator will be applied.\",\"example\":\",\"},\"CurrencyGroupSeparator\":{\"type\":\"string\",\"description\":\"Defines which Currency Group Separator will be applied.\",\"example\":\".\"},\"CurrencyGroupSize\":{\"type\":\"integer\",\"description\":\"Define how many characters will be grouped.\",\"example\":3},\"StartsWithCurrencySymbol\":{\"type\":\"boolean\",\"description\":\"Defines if all prices will be initiated with Currency Symbol (`true`) or not (`false`).\",\"example\":true}}},\"Origin\":{\"type\":[\"string\",\"null\"],\"description\":\"Origin of products in the Sales channel.\",\"example\":null},\"Position\":{\"type\":[\"integer\",\"null\"],\"description\":\"Defines the position on index.\",\"example\":1},\"ConditionRule\":{\"type\":[\"string\",\"null\"],\"description\":\"Defines what is the conditional rule to activate de Sales channel.\",\"example\":\"approved=true\"},\"CurrencyDecimalDigits\":{\"type\":\"integer\",\"description\":\"Quantity of Currency Decimal Digits.\",\"example\":1}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/saleschannel/:salesChannelId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Sales channel unique identifier.\"},\"Name\":{\"type\":\"string\",\"description\":\"Sales channel name.\"},\"IsActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Sales channel is active (`true`) or not (`false`).\"},\"ProductClusterId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Product Cluster ID, if the Sales channel has releated product Cluster.\"},\"CountryCode\":{\"type\":\"string\",\"description\":\"Country Code in ISO 3166-1 alfa-3 Standard.\"},\"CultureInfo\":{\"type\":\"string\",\"description\":\"Language Country code in LCIDstring Standard.\"},\"TimeZone\":{\"type\":\"string\",\"description\":\"Name of Time Zone.\"},\"CurrencyCode\":{\"type\":\"string\",\"description\":\"Currency Code in ISO 4217 standard.\"},\"CurrencySymbol\":{\"type\":\"string\",\"description\":\"Currency symbol.\"},\"CurrencyLocale\":{\"type\":\"integer\",\"description\":\"Currency Locale Code in LCID standard.\"},\"CurrencyFormatInfo\":{\"type\":\"object\",\"description\":\"Object with currency format.\",\"properties\":{\"CurrencyDecimalDigits\":{\"type\":\"integer\",\"description\":\"Quantity of Currency Decimal Digits.\"},\"CurrencyDecimalSeparator\":{\"type\":\"string\",\"description\":\"Defines which Currency Decimal Separator will be applied.\"},\"CurrencyGroupSeparator\":{\"type\":\"string\",\"description\":\"Defines which Currency Group Separator will be applied.\"},\"CurrencyGroupSize\":{\"type\":\"integer\",\"description\":\"Define how many characters will be grouped.\"},\"StartsWithCurrencySymbol\":{\"type\":\"boolean\",\"description\":\"Defines if all prices will be initiated with Currency Symbol (`true`) or not (`false`).\"}}},\"Origin\":{\"type\":[\"string\",\"null\"],\"description\":\"Origin of products in the Sales channel.\"},\"Position\":{\"type\":[\"integer\",\"null\"],\"description\":\"Defines the position on index.\"},\"ConditionRule\":{\"type\":[\"string\",\"null\"],\"description\":\"Defines what is the conditional rule to activate de Sales channel.\"},\"CurrencyDecimalDigits\":{\"type\":\"integer\",\"description\":\"Quantity of Currency Decimal Digits.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pub/saleschannel/:salesChannelId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -29744,7 +24060,7 @@ "event": [] }, { - "id": "2a5e83be-5e85-44a2-8a59-9a154c1e1efa", + "id": "68049d01-cfef-43fc-8b87-437543b85136", "name": "Seller", "description": { "content": "", @@ -29752,7 +24068,7 @@ }, "item": [ { - "id": "12ec147e-70b0-41f4-b8d6-379276dbf02c", + "id": "17b2c1e6-8e15-4644-803a-2a60ec3d0be9", "name": "Get Seller list", "request": { "name": "Get Seller list", @@ -29784,7 +24100,7 @@ { "disabled": true, "description": { - "content": "Seller type.", + "content": "Seller type. There are two possible values for this parameter:\n\r- `1`: Regular sellers\n\r- `2`: White label sellers", "type": "text/plain" }, "key": "sellerType", @@ -29800,26 +24116,7 @@ "value": "false" } ], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -29839,16 +24136,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "3b90090c-b237-43a9-aa8f-3552e8fc353a", + "id": "a622c4ec-d740-4b8a-9210-f464d8a85165", "name": "OK", "originalRequest": { "url": { @@ -29864,52 +24166,40 @@ ], "query": [ { + "disabled": true, + "description": { + "content": "Trade policy ID.", + "type": "text/plain" + }, "key": "sc", "value": "1" }, { - "key": "sellerType", - "value": "1" - }, - { - "key": "isBetterScope", - "value": "false" - } - ], - "variable": [ - { + "disabled": true, "description": { - "content": "Name of the VTEX account. Used as part of the URL.", + "content": "Seller type. There are two possible values for this parameter:\n\r- `1`: Regular sellers\n\r- `2`: White label sellers", "type": "text/plain" }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" + "key": "sellerType", + "value": "1" }, { + "disabled": true, "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", + "content": "If the seller is better scope.", "type": "text/plain" }, - "type": "any", - "value": "{{environment}}", - "key": "environment" + "key": "isBetterScope", + "value": "false" } - ] + ], + "variable": [] }, "header": [ { + "disabled": false, "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, - { - "disabled": false, - "description": { - "content": "(Required) Type of the content being sent.", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", @@ -29927,6 +24217,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -29948,7 +24246,7 @@ { "listen": "test", "script": { - "id": "e2595978-c3a7-4441-8ea8-d507cd0f2670", + "id": "9fa1a5dc-76b9-4824-97a6-3a289ea080c9", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/seller/list - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -29964,7 +24262,7 @@ } }, { - "id": "8f135377-a4d8-48aa-8e49-ac7e80fd069c", + "id": "f20df5d3-9fc8-4e30-99f5-c3c5e0b4946e", "name": "Get Seller by ID", "request": { "name": "Get Seller by ID", @@ -29994,24 +24292,6 @@ "type": "any", "value": "pedrostore", "key": "sellerId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -30033,16 +24313,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "ce53cadf-ed00-4ece-9fdc-f0feafe5a864", + "id": "0fc8cb51-5669-4ecf-8f38-a16e2f9a7c10", "name": "OK", "originalRequest": { "url": { @@ -30057,46 +24342,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.", - "type": "text/plain" - }, - "type": "any", - "value": "pedrostore", - "key": "sellerId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -30118,6 +24366,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -30139,7 +24395,7 @@ { "listen": "test", "script": { - "id": "83cc5b16-812e-45ff-ae30-0ccf1ffa1b11", + "id": "52068a26-910e-452c-a353-c88f1e05526c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/seller/:sellerId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -30155,7 +24411,7 @@ } }, { - "id": "c83bced3-859b-48d3-9e01-05a76b02b812", + "id": "ce65c94b-fcfb-404c-85f8-52dbdf239b00", "name": "Update Seller", "request": { "name": "Update Seller", @@ -30174,26 +24430,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -30213,6 +24450,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "PUT", @@ -30221,6 +24466,7 @@ "raw": "{\n \"SellerId\": \"pedrostore\",\n \"Name\": \"My pedrostore\",\n \"Email\": \"breno@breno.com\",\n \"Description\": \"Brief description\",\n \"ExchangeReturnPolicy\": \"Exchange return policy text\",\n \"DeliveryPolicy\": \"Delivery policy text\",\n \"UseHybridPaymentOptions\": false,\n \"UserName\": \"myseller\",\n \"Password\": \"passoword\",\n \"SecutityPrivacyPolicy\": \"Secutity privacy policy text\",\n \"CNPJ\": \"12035072751\",\n \"CSCIdentification\": \"pedrostore\",\n \"ArchiveId\": 1,\n \"UrlLogo\": \"/myseller\",\n \"ProductCommissionPercentage\": 0,\n \"FreightCommissionPercentage\": 0,\n \"FulfillmentEndpoint\": \"http://pedrostore.vtexcommercestable.com.br/api/fulfillment?affiliateid=LDB&sc=1\",\n \"CatalogSystemEndpoint\": \"http://pedrostore.vtexcommercestable.com.br/api/catalog_system/\",\n \"IsActive\": true,\n \"FulfillmentSellerId\": 1,\n \"SellerType\": 1,\n \"IsBetterScope\": false,\n \"CategoryCommissionPercentage\": \"[{\\\"CategoryId\\\":14,\\\"ProductCommission\\\":15.0,\\\"FreightCommission\\\":0.0}]\",\n \"MerchantName\": \"pedrostore\",\n \"TrustPolicy\": \"Default\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -30231,7 +24477,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "0b273cc6-b4d8-4e84-958a-a8991105fbf4", + "id": "6a00785a-966d-42e8-ae80-d373144ae131", "name": "OK", "originalRequest": { "url": { @@ -30245,36 +24491,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -30293,9 +24512,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "PUT", @@ -30304,6 +24535,7 @@ "raw": "{\n \"SellerId\": \"pedrostore\",\n \"Name\": \"My pedrostore\",\n \"Email\": \"breno@breno.com\",\n \"Description\": \"Brief description\",\n \"ExchangeReturnPolicy\": \"Exchange return policy text\",\n \"DeliveryPolicy\": \"Delivery policy text\",\n \"UseHybridPaymentOptions\": false,\n \"UserName\": \"myseller\",\n \"Password\": \"passoword\",\n \"SecutityPrivacyPolicy\": \"Secutity privacy policy text\",\n \"CNPJ\": \"12035072751\",\n \"CSCIdentification\": \"pedrostore\",\n \"ArchiveId\": 1,\n \"UrlLogo\": \"/myseller\",\n \"ProductCommissionPercentage\": 0,\n \"FreightCommissionPercentage\": 0,\n \"FulfillmentEndpoint\": \"http://pedrostore.vtexcommercestable.com.br/api/fulfillment?affiliateid=LDB&sc=1\",\n \"CatalogSystemEndpoint\": \"http://pedrostore.vtexcommercestable.com.br/api/catalog_system/\",\n \"IsActive\": true,\n \"FulfillmentSellerId\": 1,\n \"SellerType\": 1,\n \"IsBetterScope\": false,\n \"CategoryCommissionPercentage\": \"[{\\\"CategoryId\\\":14,\\\"ProductCommission\\\":15.0,\\\"FreightCommission\\\":0.0}]\",\n \"MerchantName\": \"pedrostore\",\n \"TrustPolicy\": \"Default\"\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -30325,7 +24557,7 @@ { "listen": "test", "script": { - "id": "9e047240-7827-42b0-977e-22c836d61963", + "id": "3a7f7e68-bdc7-4b56-a677-4f5d13ed0e11", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/catalog_system/pvt/seller - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -30341,7 +24573,7 @@ } }, { - "id": "5b72ef39-18e3-4d8c-848b-964e01f8933f", + "id": "358c45b2-af09-46c3-91c9-e756ee1892c8", "name": "Create Seller", "request": { "name": "Create Seller", @@ -30360,26 +24592,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -30399,6 +24612,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], "method": "POST", @@ -30407,6 +24628,7 @@ "raw": "{\n \"SellerId\": \"myseller\",\n \"Name\": \"My Seller\",\n \"Email\": \"myseller@vtex.com\",\n \"Description\": \"\",\n \"ExchangeReturnPolicy\": \"\",\n \"DeliveryPolicy\": \"\",\n \"UseHybridPaymentOptions\": false,\n \"UserName\": \"\",\n \"Password\": \"\",\n \"SecutityPrivacyPolicy\": \"\",\n \"CNPJ\": \"12345678912345\",\n \"CSCIdentification\": \"myseller\",\n \"ArchiveId\": 1,\n \"UrlLogo\": \"\",\n \"ProductCommissionPercentage\": 1.5,\n \"FreightCommissionPercentage\": 0,\n \"FulfillmentEndpoint\": \"http://fulfillment.vtexcommerce.com.br/api/fulfillment?affiliateid=VTX&sc=1&an=myseller\",\n \"CatalogSystemEndpoint\": \"http://myseller.vtexcommercestable.com.br/api/catalog_system/\",\n \"IsActive\": true,\n \"FulfillmentSellerId\": 2,\n \"SellerType\": 1,\n \"IsBetterScope\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -30417,7 +24639,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "041151d9-a2e7-4c89-baf7-a4531332c694", + "id": "dcfa4f42-d8b6-47ec-a935-81f5bc8ff549", "name": "OK", "originalRequest": { "url": { @@ -30431,36 +24653,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -30479,9 +24674,21 @@ "key": "Accept", "value": "application/json" }, + { + "key": "Content-Type", + "value": "application/json" + }, { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -30490,6 +24697,7 @@ "raw": "{\n \"SellerId\": \"myseller\",\n \"Name\": \"My Seller\",\n \"Email\": \"myseller@vtex.com\",\n \"Description\": \"\",\n \"ExchangeReturnPolicy\": \"\",\n \"DeliveryPolicy\": \"\",\n \"UseHybridPaymentOptions\": false,\n \"UserName\": \"\",\n \"Password\": \"\",\n \"SecutityPrivacyPolicy\": \"\",\n \"CNPJ\": \"12345678912345\",\n \"CSCIdentification\": \"myseller\",\n \"ArchiveId\": 1,\n \"UrlLogo\": \"\",\n \"ProductCommissionPercentage\": 1.5,\n \"FreightCommissionPercentage\": 0,\n \"FulfillmentEndpoint\": \"http://fulfillment.vtexcommerce.com.br/api/fulfillment?affiliateid=VTX&sc=1&an=myseller\",\n \"CatalogSystemEndpoint\": \"http://myseller.vtexcommercestable.com.br/api/catalog_system/\",\n \"IsActive\": true,\n \"FulfillmentSellerId\": 2,\n \"SellerType\": 1,\n \"IsBetterScope\": false\n}", "options": { "raw": { + "headerFamily": "json", "language": "json" } } @@ -30511,7 +24719,7 @@ { "listen": "test", "script": { - "id": "9c83268b-cd0b-42fb-9514-3f2af152f990", + "id": "b665a5fe-eb5d-4ec7-aa52-17535ba606e2", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pvt/seller - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -30527,7 +24735,7 @@ } }, { - "id": "42912ae5-4ddd-4a6a-a5e7-c0bd7e09d29d", + "id": "7ceb9d23-ff85-4cc4-ba3c-737e8c06e2c7", "name": "Get Seller by ID", "request": { "name": "Get Seller by ID", @@ -30557,24 +24765,6 @@ "type": "any", "value": "pedrostore", "key": "sellerId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -30596,16 +24786,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "cd58ceff-6516-4199-927b-33f6f4d9b891", + "id": "dc513394-2e3a-41c1-9c06-7710cca5499e", "name": "OK", "originalRequest": { "url": { @@ -30620,46 +24815,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.", - "type": "text/plain" - }, - "type": "any", - "value": "pedrostore", - "key": "sellerId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -30681,6 +24839,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -30702,7 +24868,7 @@ { "listen": "test", "script": { - "id": "34922298-53c0-4e69-9e4f-ceb2a51bc45d", + "id": "bcddeb14-d6e8-494d-8edc-6ca26f490dca", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/sellers/:sellerId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -30721,7 +24887,7 @@ "event": [] }, { - "id": "99b110fd-462c-4a9a-b3bc-20ec8c2813ad", + "id": "9141d117-5b0d-4cbe-b515-4845d4eef6de", "name": "SKU seller", "description": { "content": "", @@ -30729,7 +24895,7 @@ }, "item": [ { - "id": "ae42cdd2-9f15-436b-949b-4cbcacfe8813", + "id": "8169ccf2-689b-481f-9b81-f06180e33f0d", "name": "Get details of a seller's SKU", "request": { "name": "Get details of a seller's SKU", @@ -30770,24 +24936,6 @@ "type": "any", "value": "1", "key": "sellerSkuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -30809,16 +24957,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "6e51074d-4f2d-4aa7-bcdd-a52a8eae270a", + "id": "209a1148-3956-4f05-9b48-ca0354279f21", "name": "OK", "originalRequest": { "url": { @@ -30834,56 +24987,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.", - "type": "text/plain" - }, - "type": "any", - "value": "101", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) SKU ID in the seller's store.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "sellerSkuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -30905,6 +25011,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -30926,7 +25040,7 @@ { "listen": "test", "script": { - "id": "b2786111-f6b1-4ef4-8746-d60fc2892e3c", + "id": "256f0804-c5e2-4093-a0cd-a84d4b58de1c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/skuseller/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -30942,7 +25056,7 @@ } }, { - "id": "c59002c1-76a8-4ddd-b1b4-99573a7a0e21", + "id": "0423dfb9-c07a-410b-b7df-6d55e4c0a141", "name": "Remove a seller's SKU binding", "request": { "name": "Remove a seller's SKU binding", @@ -30984,24 +25098,6 @@ "type": "any", "value": "1", "key": "sellerSkuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -31025,14 +25121,15 @@ "value": "application/json" } ], - "method": "POST" + "method": "POST", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "d384e9fc-4b5b-487d-b83d-5c578b45e7c2", + "id": "85e61609-d3c7-4156-92c7-07a3fc7d1f65", "name": "OK", "originalRequest": { "url": { @@ -31049,56 +25146,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.", - "type": "text/plain" - }, - "type": "any", - "value": "101", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) SKU ID in the seller's store.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "sellerSkuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -31116,6 +25166,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -31123,13 +25181,7 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -31137,7 +25189,7 @@ { "listen": "test", "script": { - "id": "13624f66-be7e-4435-894e-f75645ce288d", + "id": "9a9b7e5b-ecd8-47fe-9676-49c53b9db211", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pvt/skuseller/remove/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -31150,7 +25202,7 @@ } }, { - "id": "342cd2cc-938a-4a19-910b-7c47c0db4cb2", + "id": "d3d9910d-3c0b-4afc-bf10-d8d3e6d960ef", "name": "Change notification with seller ID and seller SKU ID", "request": { "name": "Change notification with seller ID and seller SKU ID", @@ -31192,24 +25244,6 @@ "type": "any", "value": "1", "key": "sellerSkuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -31233,14 +25267,15 @@ "value": "application/json" } ], - "method": "POST" + "method": "POST", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "ecd38fb3-0114-472a-bdc5-73998eab06f8", + "id": "a765015a-8f3d-4ed6-8ec7-6d5659e631fe", "name": "No Content", "originalRequest": { "url": { @@ -31257,56 +25292,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) ID that identifies the seller in the marketplace. It can be the same as the seller name or a unique number. Check the **Sellers management** section in the Admin to get the correct ID.", - "type": "text/plain" - }, - "type": "any", - "value": "101", - "key": "sellerId" - }, - { - "disabled": false, - "description": { - "content": "(Required) ID of the binding of the seller with the SKU.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "sellerSkuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -31324,6 +25312,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -31331,13 +25327,7 @@ }, "status": "No Content", "code": 204, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -31345,7 +25335,7 @@ { "listen": "test", "script": { - "id": "f03ee726-08ce-4f87-bd62-b849e170c484", + "id": "e41398c0-9845-4544-8e69-295c9e8c6c5e", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pvt/skuseller/changenotification/:sellerId/:sellerSkuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -31359,7 +25349,7 @@ } }, { - "id": "00a05e77-745f-4b2a-a2fa-8a54124ba657", + "id": "49431c9b-8a0a-4296-81c5-a95e99fcb620", "name": "Change notification with SKU ID", "request": { "name": "Change notification with SKU ID", @@ -31390,24 +25380,6 @@ "type": "any", "value": "10", "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -31429,16 +25401,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "text/plain" } ], - "method": "POST" + "method": "POST", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "0b1b19da-6400-4301-8b29-2817479cacaa", + "id": "713eff3c-943f-4d01-b4eb-5fb448d0fcfa", "name": "OK", "originalRequest": { "url": { @@ -31454,46 +25431,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the SKU in the marketplace. This is the ID that the marketplace will use to look for the SKU whose change the seller wants to inform. If the marketplace finds this ID, it responds with status code 200. Otherwise, it responds with status code 404.", - "type": "text/plain" - }, - "type": "any", - "value": "10", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -31511,6 +25451,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -31518,20 +25466,14 @@ }, "status": "OK", "code": 200, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] }, { "_": { "postman_previewlanguage": "text" }, - "id": "237b3c3b-e2f0-4c0d-968f-78134cfa22e8", + "id": "bf118ad4-3b54-451a-b4a6-8f81ed5d02d9", "name": "Forbidden", "originalRequest": { "url": { @@ -31547,46 +25489,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the SKU in the marketplace. This is the ID that the marketplace will use to look for the SKU whose change the seller wants to inform. If the marketplace finds this ID, it responds with status code 200. Otherwise, it responds with status code 404.", - "type": "text/plain" - }, - "type": "any", - "value": "10", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -31604,6 +25509,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -31611,20 +25524,14 @@ }, "status": "Forbidden", "code": 403, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] }, { "_": { "postman_previewlanguage": "text" }, - "id": "b8ae3a0c-12ef-48fe-b945-c54286406383", + "id": "65fa9f80-b366-440e-b4c8-ca175d967fac", "name": "Not found", "originalRequest": { "url": { @@ -31638,48 +25545,11 @@ ], "host": [ "{{baseUrl}}" - ], - "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the SKU in the marketplace. This is the ID that the marketplace will use to look for the SKU whose change the seller wants to inform. If the marketplace finds this ID, it responds with status code 200. Otherwise, it responds with status code 404.", - "type": "text/plain" - }, - "type": "any", - "value": "10", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + ], + "query": [], + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -31701,6 +25571,14 @@ { "key": "Accept", "value": "text/plain" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -31721,7 +25599,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "763b60d9-e6da-4a75-9ec5-0f2a10285527", + "id": "98929f4d-d4a4-4b0f-ad5b-4b4f742ca8ba", "name": "Too many requests", "originalRequest": { "url": { @@ -31737,46 +25615,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) A string that identifies the SKU in the marketplace. This is the ID that the marketplace will use to look for the SKU whose change the seller wants to inform. If the marketplace finds this ID, it responds with status code 200. Otherwise, it responds with status code 404.", - "type": "text/plain" - }, - "type": "any", - "value": "10", - "key": "skuId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -31794,6 +25635,14 @@ }, "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "POST", @@ -31801,13 +25650,7 @@ }, "status": "Too Many Requests", "code": 429, - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "body": "", + "header": [], "cookie": [] } ], @@ -31815,7 +25658,7 @@ { "listen": "test", "script": { - "id": "e2ecba3a-2901-441f-8f4b-0c1fb55374b3", + "id": "32627b55-2d8c-4381-9030-65bd6e1706e8", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/catalog_system/pvt/skuseller/changenotification/:skuId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -31831,7 +25674,7 @@ "event": [] }, { - "id": "9b5b7c53-6e75-4b0b-88c7-1bc9ab4a2387", + "id": "6dc1cf24-cf29-4d6c-8693-6fea0fd91f04", "name": "Product indexing", "description": { "content": "", @@ -31839,7 +25682,7 @@ }, "item": [ { - "id": "9b6524f2-7d8d-4d3c-a90b-5b75e1c4783b", + "id": "a6e1352f-da59-4dfa-9df3-b1104fa8d8b5", "name": "Get product Indexed Information", "request": { "name": "Get product Indexed Information", @@ -31870,24 +25713,6 @@ "type": "any", "value": "1", "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -31909,16 +25734,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "xml" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "text" }, - "id": "c11a3465-d8a6-4b15-a1cf-5320fc1c1695", + "id": "fd112561-ec0f-4d29-a027-a6464587db8b", "name": "OK", "originalRequest": { "url": { @@ -31934,46 +25764,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Product's unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "productId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -31995,6 +25788,14 @@ { "key": "Accept", "value": "xml" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -32016,7 +25817,7 @@ { "listen": "test", "script": { - "id": "a8491dcb-a3e8-46af-b5bd-b16e95b9cf6b", + "id": "c8418482-6083-4a7c-aabb-2d9879b45767", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/products/GetIndexedInfo/:productId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -32033,7 +25834,7 @@ "event": [] }, { - "id": "240a776d-7ff3-4a66-9ce1-0b845900080d", + "id": "700088fc-96cf-48e6-9e61-4a09031e86dc", "name": "Commercial conditions", "description": { "content": "", @@ -32041,7 +25842,7 @@ }, "item": [ { - "id": "12e44364-3ed6-41bc-859c-5947dce6278c", + "id": "3c1e9b49-4e02-4139-a891-035e786df070", "name": "Get all commercial conditions", "request": { "name": "Get all commercial conditions", @@ -32061,26 +25862,7 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ { @@ -32100,16 +25882,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "fdc1bb56-1d3a-4dfe-8182-722bdff12c61", + "id": "2f2d59bc-4eac-4b8e-ac22-51a28e99db66", "name": "OK", "originalRequest": { "url": { @@ -32124,36 +25911,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -32175,6 +25935,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -32196,13 +25964,13 @@ { "listen": "test", "script": { - "id": "28fd8ccd-5272-412e-b9a5-855f20bb4e1b", + "id": "0600ac0d-f4aa-4b01-8000-409e42a83870", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/commercialcondition/list - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/commercialcondition/list - 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]::/api/catalog_system/pvt/commercialcondition/list - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"array\",\"example\":[{\"Id\":1,\"Name\":\"Padrão\",\"IsDefault\":true},{\"Id\":2,\"Name\":\"Secundária\",\"IsDefault\":false},{\"Id\":3,\"Name\":\"Parcelamento 18x\",\"IsDefault\":false}],\"items\":{\"type\":\"object\",\"description\":\"Object with information of the commercial condition.\",\"example\":{\"Id\":1,\"Name\":\"Padrão\",\"IsDefault\":true},\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Commercial condition ID.\",\"example\":1},\"Name\":{\"type\":\"string\",\"description\":\"Commercial condition name.\",\"example\":\"Padrão\"},\"IsDefault\":{\"type\":\"boolean\",\"description\":\"Defines if the commercial condition is default (`true`) or not (`false`).\",\"example\":true}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/commercialcondition/list - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"array\",\"example\":[{\"Id\":1,\"Name\":\"Padrão\",\"IsDefault\":true},{\"Id\":2,\"Name\":\"Secundária\",\"IsDefault\":false},{\"Id\":3,\"Name\":\"Parcelamento 18x\",\"IsDefault\":false}],\"items\":{\"type\":\"object\",\"description\":\"Object with information of the commercial condition.\",\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Commercial condition ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Commercial condition name.\"},\"IsDefault\":{\"type\":\"boolean\",\"description\":\"Defines if the commercial condition is default (`true`) or not (`false`).\"}}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/commercialcondition/list - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -32212,7 +25980,7 @@ } }, { - "id": "4273e7d4-c2dd-448f-ad15-e732cfe3d763", + "id": "b51cb9f8-1d2a-4653-af0e-038c93676850", "name": "Get commercial condition", "request": { "name": "Get commercial condition", @@ -32242,24 +26010,6 @@ "type": "any", "value": "1", "key": "commercialConditionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -32281,16 +26031,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "acfbc0f2-6ee4-47ed-94d0-46ad1833dc6f", + "id": "4a15a18e-8fc8-40d5-975d-8882bf12e38b", "name": "OK", "originalRequest": { "url": { @@ -32305,46 +26060,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Commercial condition unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "commercialConditionId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -32366,6 +26084,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -32387,13 +26113,13 @@ { "listen": "test", "script": { - "id": "145925a0-e85b-4a61-aa09-83d1d7f986f9", + "id": "004a11bb-a6ff-49e6-8ff4-18c7e8721ca3", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/catalog_system/pvt/commercialcondition/:commercialConditionId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/catalog_system/pvt/commercialcondition/:commercialConditionId - 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]::/api/catalog_system/pvt/commercialcondition/:commercialConditionId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object with information of the commercial condition.\",\"example\":{\"Id\":1,\"Name\":\"Padrão\",\"IsDefault\":true},\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Commercial condition ID.\",\"example\":1},\"Name\":{\"type\":\"string\",\"description\":\"Commercial condition name.\",\"example\":\"Padrão\"},\"IsDefault\":{\"type\":\"boolean\",\"description\":\"If the commercial condition is default (`true`) or not (`false`).\",\"example\":true}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/commercialcondition/:commercialConditionId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object with information of the commercial condition.\",\"example\":{\"Id\":1,\"Name\":\"Padrão\",\"IsDefault\":true},\"properties\":{\"Id\":{\"type\":\"integer\",\"description\":\"Commercial condition ID.\"},\"Name\":{\"type\":\"string\",\"description\":\"Commercial condition name.\"},\"IsDefault\":{\"type\":\"boolean\",\"description\":\"If the commercial condition is default (`true`) or not (`false`).\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/catalog_system/pvt/commercialcondition/:commercialConditionId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -32406,7 +26132,7 @@ "event": [] }, { - "id": "d805abc1-9067-46b3-a655-7b31fb024d96", + "id": "e9e66518-cba7-426f-a010-77cdff5e8839", "name": "Gift list", "description": { "content": "", @@ -32414,7 +26140,7 @@ }, "item": [ { - "id": "2a3ddc37-7c24-43e4-b955-85b9daa0e154", + "id": "2fb8b8b3-4fa5-486f-b7f5-1e7b5b764aa7", "name": "Get Gift list", "request": { "name": "Get Gift list", @@ -32445,24 +26171,6 @@ "type": "any", "value": "1", "key": "listId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" } ] }, @@ -32484,16 +26192,21 @@ }, "key": "Accept", "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" } ], - "method": "GET" + "method": "GET", + "body": {} }, "response": [ { "_": { "postman_previewlanguage": "json" }, - "id": "61e1de3d-a8ee-4d31-a2c8-eac5e8a7f4d1", + "id": "4342e010-26f9-4c2b-8e2d-d0ba29f13751", "name": "OK", "originalRequest": { "url": { @@ -32509,46 +26222,9 @@ "{{baseUrl}}" ], "query": [], - "variable": [ - { - "disabled": false, - "description": { - "content": "(Required) Gift list unique numerical identifier.", - "type": "text/plain" - }, - "type": "any", - "value": "1", - "key": "listId" - }, - { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, - "type": "any", - "value": "{{accountName}}", - "key": "accountName" - }, - { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, - "type": "any", - "value": "{{environment}}", - "key": "environment" - } - ] + "variable": [] }, "header": [ - { - "description": { - "content": "Added as a part of security scheme: apikey", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "" - }, { "disabled": false, "description": { @@ -32570,6 +26246,14 @@ { "key": "Accept", "value": "application/json" + }, + { + "description": { + "content": "Added as a part of security scheme: apikey", + "type": "text/plain" + }, + "key": "X-VTEX-API-AppKey", + "value": "" } ], "method": "GET", @@ -32591,13 +26275,13 @@ { "listen": "test", "script": { - "id": "7b1ae22f-c69d-4810-9c5f-ac7478dd48b4", + "id": "6a289ac0-dfba-4123-a5a3-db13c6bddf11", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/addon/pvt/giftlist/get/:listId - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", "// Validate if response header has matching content-type\npm.test(\"[GET]::/api/addon/pvt/giftlist/get/:listId - 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]::/api/addon/pvt/giftlist/get/:listId - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", - "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object with information about the Gift list.\",\"example\":{\"giftListId\":1,\"name\":\"My list\",\"userId\":\"010956A4-A74A-4375-8B7B-3B3B7B89B483\",\"clientId\":3,\"fileId\":null,\"giftListTypeId\":1,\"giftListTypeName\":\"Lista de Casamento\",\"giftCardId\":2,\"message\":\"mensageeeem\",\"urlFolder\":\"lili\",\"dateCreated\":\"2011-05-04T13:23:00\",\"profileSystemUserAddressName\":\"CASA\",\"profileSystemUserId\":\"010956A4-A74A-4375-8B7B-3B3B7B89B483\",\"eventDate\":\"2012-12-21T00:00:00\",\"eventLocation\":\"\",\"eventCity\":\"\",\"eventState\":\"\",\"telemarketingId\":null,\"telemarketingObservation\":\"\",\"IsPublic\":false,\"isActive\":false,\"shipsToOwner\":false,\"isAddressOk\":true,\"version\":1,\"giftCardRechargeSkuId\":null,\"memberNames\":\"sei lá\",\"giftListMembers\":[],\"giftListSkuIds\":[],\"address\":null,\"fileUrl\":null},\"properties\":{\"giftListId\":{\"type\":\"integer\",\"description\":\"Gift list ID.\",\"example\":1},\"name\":{\"type\":\"string\",\"description\":\"Gift list name.\",\"example\":\"My list\"},\"userId\":{\"type\":\"string\",\"description\":\"User ID.\",\"example\":\"a6e7d995-e884-409d-911f-36b25c40169a\"},\"fileId\":{\"type\":[\"integer\",\"null\"],\"description\":\"File ID.\",\"example\":155233},\"giftListTypeId\":{\"type\":\"integer\",\"description\":\"Gift list Type ID.\",\"example\":1},\"giftListTypeName\":{\"type\":\"string\",\"description\":\"Gift list Type name.\",\"example\":\"Wedding list\"},\"giftCardId\":{\"type\":\"integer\",\"description\":\"Gift Card ID.\",\"example\":2},\"message\":{\"type\":\"string\",\"description\":\"Gift list message.\",\"example\":\"This is a gift list for my wedding.\"},\"urlFolder\":{\"type\":\"string\",\"description\":\"Slug of the gift list that will be part of its URL.\",\"example\":\"myweddinglist\"},\"dateCreated\":{\"type\":\"string\",\"description\":\"Date when the gift list was created.\",\"example\":\"2013-10-31T19:03:00\"},\"profileSystemUserAddressName\":{\"type\":\"string\",\"description\":\"Name of the user's address.\",\"example\":\"CASA\"},\"profileSystemUserId\":{\"type\":\"string\",\"description\":\"User ID on Profile System.\",\"example\":\"a6e7d995-e884-409d-911f-36b25c40169a\"},\"eventDate\":{\"type\":\"string\",\"description\":\"Date of the event associated with the Gift list.\",\"example\":\"2014-07-20T00:00:00\"},\"eventLocation\":{\"type\":\"string\",\"description\":\"Location of the event associated with the Gift list.\",\"example\":\"Botafogo\"},\"eventCity\":{\"type\":\"string\",\"description\":\"City of the event associated with the Gift list.\",\"example\":\"Rio de Janeiro\"},\"eventState\":{\"type\":\"string\",\"description\":\"State of the event associated with the Gift list.\",\"example\":\"RJ\"},\"telemarketingId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Telemarketing ID.\",\"example\":1},\"telemarketingObservation\":{\"type\":\"string\",\"description\":\"Telemarketing observation.\",\"example\":\"\"},\"IsPublic\":{\"type\":\"boolean\",\"description\":\"Defines if the gift list is public.\",\"example\":true},\"isActive\":{\"type\":\"boolean\",\"description\":\"Defines if the gift list is active.\",\"example\":true},\"shipsToOwner\":{\"type\":\"boolean\",\"description\":\"Defines if items purchased from the gift list will be shipped to the owner of the gift list.\",\"example\":false},\"isAddressOk\":{\"type\":\"boolean\",\"description\":\"Validates the address of the gift list.\",\"example\":false},\"version\":{\"type\":\"integer\",\"description\":\"Version of the gift list.\",\"example\":1},\"giftCardRechargeSkuId\":{\"type\":[\"integer\",\"null\"],\"description\":\"ID of the SKU that recharges the gift card.\",\"example\":1},\"memberNames\":{\"type\":\"string\",\"description\":\"Name of the members of the gift list.\",\"example\":\"Rafael Villa-Verde\"},\"giftListMembers\":{\"type\":\"array\",\"description\":\"Array of members of the gift list.\",\"items\":{\"type\":\"object\",\"description\":\"Object with information about each gift list member.\",\"properties\":{\"giftListMemberId\":{\"type\":\"integer\",\"description\":\"Gift list member ID.\"},\"giftListId\":{\"type\":\"integer\",\"description\":\"Gift list ID.\"},\"userId\":{\"type\":\"string\",\"description\":\"User ID.\"},\"clientId\":{\"type\":[\"string\",\"null\"],\"description\":\"Client ID.\"},\"title\":{\"type\":[\"string\",\"null\"],\"description\":\"Title of the Gift list member.\"},\"name\":{\"type\":\"string\",\"description\":\"Name of the Gift list member.\"},\"surname\":{\"type\":\"string\",\"description\":\"Surname of the Gift list member.\"},\"isAdmin\":{\"type\":\"boolean\",\"description\":\"Defines if the Gift list member is an administrator of the Gift list or not.\"},\"isActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Gift list user is active or not.\"},\"text1\":{\"type\":[\"string\",\"null\"],\"description\":\"Complementary text.\"},\"text2\":{\"type\":[\"string\",\"null\"],\"description\":\"Complementary text.\"}},\"example\":{\"giftListMemberId\":1,\"giftListId\":2,\"userId\":\"010956A4-A74A-4375-8B7B-3B3B7B89B483\",\"clientId\":null,\"title\":null,\"name\":\"Rafael\",\"surname\":\"Villa-Verde\",\"isAdmin\":true,\"isActive\":true,\"text1\":null,\"text2\":null}}},\"giftListSkuIds\":{\"type\":\"array\",\"description\":\"Array with the IDs of SKUs that are part of the gift list.\",\"items\":{\"type\":\"string\",\"description\":\"SKU ID.\"}},\"address\":{\"type\":[\"string\",\"null\"],\"description\":\"Address of the gift list.\",\"example\":\"Botafogo\"},\"fileUrl\":{\"type\":[\"string\",\"null\"],\"description\":\"File URL.\",\"example\":\"/arquivos/ids/155233-800-800/gl-0_635266293044683588.jpg\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/addon/pvt/giftlist/get/:listId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + "// Response Validation\nconst schema = {\"type\":\"object\",\"description\":\"Object with information about the Gift list.\",\"example\":{\"giftListId\":1,\"name\":\"My list\",\"userId\":\"010956A4-A74A-4375-8B7B-3B3B7B89B483\",\"clientId\":3,\"fileId\":null,\"giftListTypeId\":1,\"giftListTypeName\":\"Lista de Casamento\",\"giftCardId\":2,\"message\":\"mensageeeem\",\"urlFolder\":\"lili\",\"dateCreated\":\"2011-05-04T13:23:00\",\"profileSystemUserAddressName\":\"CASA\",\"profileSystemUserId\":\"010956A4-A74A-4375-8B7B-3B3B7B89B483\",\"eventDate\":\"2012-12-21T00:00:00\",\"eventLocation\":\"\",\"eventCity\":\"\",\"eventState\":\"\",\"telemarketingId\":null,\"telemarketingObservation\":\"\",\"IsPublic\":false,\"isActive\":false,\"shipsToOwner\":false,\"isAddressOk\":true,\"version\":1,\"giftCardRechargeSkuId\":null,\"memberNames\":\"sei lá\",\"giftListMembers\":[],\"giftListSkuIds\":[],\"address\":null,\"fileUrl\":null},\"properties\":{\"giftListId\":{\"type\":\"integer\",\"description\":\"Gift list ID.\"},\"name\":{\"type\":\"string\",\"description\":\"Gift list name.\"},\"userId\":{\"type\":\"string\",\"description\":\"User ID.\"},\"fileId\":{\"type\":[\"integer\",\"null\"],\"description\":\"File ID.\"},\"giftListTypeId\":{\"type\":\"integer\",\"description\":\"Gift list Type ID.\"},\"giftListTypeName\":{\"type\":\"string\",\"description\":\"Gift list Type name.\"},\"giftCardId\":{\"type\":\"integer\",\"description\":\"Gift Card ID.\"},\"message\":{\"type\":\"string\",\"description\":\"Gift list message.\"},\"urlFolder\":{\"type\":\"string\",\"description\":\"Slug of the gift list that will be part of its URL.\"},\"dateCreated\":{\"type\":\"string\",\"description\":\"Date when the gift list was created.\"},\"profileSystemUserAddressName\":{\"type\":\"string\",\"description\":\"Name of the user's address.\"},\"profileSystemUserId\":{\"type\":\"string\",\"description\":\"User ID on Profile System.\"},\"eventDate\":{\"type\":\"string\",\"description\":\"Date of the event associated with the Gift list.\"},\"eventLocation\":{\"type\":\"string\",\"description\":\"Location of the event associated with the Gift list.\"},\"eventCity\":{\"type\":\"string\",\"description\":\"City of the event associated with the Gift list.\"},\"eventState\":{\"type\":\"string\",\"description\":\"State of the event associated with the Gift list.\"},\"telemarketingId\":{\"type\":[\"integer\",\"null\"],\"description\":\"Telemarketing ID.\"},\"telemarketingObservation\":{\"type\":\"string\",\"description\":\"Telemarketing observation.\"},\"IsPublic\":{\"type\":\"boolean\",\"description\":\"Defines if the gift list is public.\"},\"isActive\":{\"type\":\"boolean\",\"description\":\"Defines if the gift list is active.\"},\"shipsToOwner\":{\"type\":\"boolean\",\"description\":\"Defines if items purchased from the gift list will be shipped to the owner of the gift list.\"},\"isAddressOk\":{\"type\":\"boolean\",\"description\":\"Validates the address of the gift list.\"},\"version\":{\"type\":\"integer\",\"description\":\"Version of the gift list.\"},\"giftCardRechargeSkuId\":{\"type\":[\"integer\",\"null\"],\"description\":\"ID of the SKU that recharges the gift card.\"},\"memberNames\":{\"type\":\"string\",\"description\":\"Name of the members of the gift list.\"},\"giftListMembers\":{\"type\":\"array\",\"description\":\"Array of members of the gift list.\",\"items\":{\"type\":\"object\",\"description\":\"Object with information about each gift list member.\",\"properties\":{\"giftListMemberId\":{\"type\":\"integer\",\"description\":\"Gift list member ID.\"},\"giftListId\":{\"type\":\"integer\",\"description\":\"Gift list ID.\"},\"userId\":{\"type\":\"string\",\"description\":\"User ID.\"},\"clientId\":{\"type\":[\"string\",\"null\"],\"description\":\"Client ID.\"},\"title\":{\"type\":[\"string\",\"null\"],\"description\":\"Title of the Gift list member.\"},\"name\":{\"type\":\"string\",\"description\":\"Name of the Gift list member.\"},\"surname\":{\"type\":\"string\",\"description\":\"Surname of the Gift list member.\"},\"isAdmin\":{\"type\":\"boolean\",\"description\":\"Defines if the Gift list member is an administrator of the Gift list or not.\"},\"isActive\":{\"type\":\"boolean\",\"description\":\"Defines if the Gift list user is active or not.\"},\"text1\":{\"type\":[\"string\",\"null\"],\"description\":\"Complementary text.\"},\"text2\":{\"type\":[\"string\",\"null\"],\"description\":\"Complementary text.\"}}}},\"giftListSkuIds\":{\"type\":\"array\",\"description\":\"Array with the IDs of SKUs that are part of the gift list.\",\"items\":{\"type\":\"string\",\"description\":\"SKU ID.\"}},\"address\":{\"type\":[\"string\",\"null\"],\"description\":\"Address of the gift list.\"},\"fileUrl\":{\"type\":[\"string\",\"null\"],\"description\":\"File URL.\"}}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/api/addon/pvt/giftlist/get/:listId - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" ] } } @@ -32633,31 +26317,23 @@ "event": [], "variable": [ { - "description": { - "content": "Name of the VTEX account. Used as part of the URL.", - "type": "text/plain" - }, "type": "any", "value": "apiexamples", "key": "accountName" }, { - "description": { - "content": "Environment to use. Used as part of the URL. (This can only be one of vtexcommercestable)", - "type": "text/plain" - }, "type": "any", "value": "vtexcommercestable", "key": "environment" }, { - "type": "string", + "type": "any", "value": "https://{{accountName}}.{{environment}}.com.br", "key": "baseUrl" } ], "info": { - "_postman_id": "a7295500-39ac-4398-a9e8-e304c8ea1807", + "_postman_id": "5ead316f-5436-4408-a9b9-768cfbb79f95", "name": "Catalog API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": {