diff --git a/PostmanCollections/VTEX - Ad Network API.json b/PostmanCollections/VTEX - Ad Network API.json index 4176d1c48..4f7090684 100644 --- a/PostmanCollections/VTEX - Ad Network API.json +++ b/PostmanCollections/VTEX - Ad Network API.json @@ -1,10 +1,10 @@ { "_": { - "postman_id": "06794637-1db0-44cd-8785-0d7de218fc68" + "postman_id": "adec2e55-5086-4d4c-a285-440c2ba1edbe" }, "item": [ { - "id": "1ad9e7df-bdb2-4cae-9739-5ff04670d1c9", + "id": "9b33d170-b9f4-4200-9639-a75051842a85", "name": "Sponsored products", "description": { "content": "", @@ -12,7 +12,7 @@ }, "item": [ { - "id": "110d80df-e237-455a-8c7c-7a42522619a9", + "id": "6b17180d-04fb-4920-a833-86bf7576e6e3", "name": "Get sponsored products for a query", "request": { "name": "Get sponsored products for a query", @@ -21,21 +21,12 @@ "type": "text/plain" }, "url": { - "protocol": "https", "path": [ - "api", - "io", - "_v", - "api", - "intelligent-search", "sponsored_products", ":facets" ], "host": [ - "{{accountName}}", - "{{environment}}", - "com", - "br" + "{{baseUrl}}" ], "query": [ { @@ -129,25 +120,16 @@ "_": { "postman_previewlanguage": "json" }, - "id": "5f3be82a-4be0-4b77-bcb1-de257508fdfa", + "id": "761cddf9-3d07-42b4-acf9-54935ec773ec", "name": "OK", "originalRequest": { "url": { - "protocol": "https", "path": [ - "api", - "io", - "_v", - "api", - "intelligent-search", "sponsored_products", ":facets" ], "host": [ - "{{accountName}}", - "{{environment}}", - "com", - "br" + "{{baseUrl}}" ], "query": [ { @@ -237,7 +219,21 @@ "cookie": [] } ], - "event": [], + "event": [ + { + "listen": "test", + "script": { + "id": "e1f69d83-ebf3-4f87-911c-165f06b34e40", + "type": "text/javascript", + "exec": [ + "// Validate status 2xx \npm.test(\"[GET]::/sponsored_products/:facets - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", + "// Validate if response header has matching content-type\npm.test(\"[GET]::/sponsored_products/:facets - 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]::/sponsored_products/:facets - Response has JSON Body\", function () {\n pm.response.to.have.jsonBody();\n});\n", + "// Response Validation\nconst schema = {\"type\":\"array\",\"description\":\"List of sponsored products.\",\"items\":{\"type\":\"object\",\"description\":\"Sponsored product information.\",\"allOf\":[{\"properties\":{\"advertisement\":{\"description\":\"Data related to sponsored information.\",\"type\":\"object\",\"properties\":{\"adId\":{\"description\":\"The unique Ad ID for this product.\",\"type\":\"string\"},\"campaignId\":{\"description\":\"The campaign ID associated with this ad.\",\"type\":\"string\"},\"actionCost\":{\"description\":\"The cost charged to the advertiser for the specific action (e.g.: cost per click).\",\"type\":\"number\"},\"adRequestId\":{\"description\":\"ID for the ad request. Unique for each request.\",\"type\":\"string\"},\"adResponseId\":{\"description\":\"ID for the ad response. Unique for each request.\",\"type\":\"string\"}}}}},{\"type\":\"object\",\"description\":\"Product information.\",\"properties\":{\"cacheId\":{\"description\":\"Cache ID.\",\"type\":\"string\"},\"productId\":{\"description\":\"Product unique identifier.\",\"type\":\"string\"},\"description\":{\"description\":\"Product description.\",\"type\":\"string\"},\"productName\":{\"description\":\"Product name.\",\"type\":\"string\"},\"productReference\":{\"description\":\"Product reference code.\",\"type\":\"string\"},\"linkText\":{\"description\":\"Product text link.\",\"type\":\"string\"},\"brand\":{\"description\":\"Brand name.\",\"type\":\"string\"},\"brandId\":{\"description\":\"Brand unique identifier.\",\"type\":\"number\"},\"link\":{\"description\":\"Product slug in the store.\",\"type\":\"string\"},\"categories\":{\"description\":\"Category path.\",\"type\":\"array\",\"items\":{\"description\":\"Category name.\",\"type\":\"string\"}},\"categoryId\":{\"description\":\"Category unique identifier.\",\"type\":\"string\"},\"categoriesIds\":{\"description\":\"List of category IDs in the corresponding category path.\",\"type\":\"array\",\"items\":{\"description\":\"Category ID.\",\"type\":\"string\"}},\"priceRange\":{\"description\":\"Price range information.\",\"type\":\"object\",\"properties\":{\"sellingPrice\":{\"description\":\"Selling price.\",\"type\":\"object\",\"properties\":{\"highPrice\":{\"description\":\"Highest selling price.\",\"type\":\"number\"},\"lowPrice\":{\"description\":\"Lowest selling price.\",\"type\":\"number\"}}},\"listPrice\":{\"description\":\"List price information.\",\"type\":\"object\",\"properties\":{\"highPrice\":{\"description\":\"Highest list price.\",\"type\":\"number\"},\"lowPrice\":{\"description\":\"Lowest list price.\",\"type\":\"number\"}}}}},\"specificationGroups\":{\"description\":\"Specification groups information.\",\"type\":\"array\",\"items\":{\"description\":\"Specification group information.\",\"type\":\"object\",\"properties\":{\"originalName\":{\"description\":\"Speficiation group original name.\",\"type\":\"string\"},\"name\":{\"description\":\"Specification group name.\",\"type\":\"string\"},\"specifications\":{\"description\":\"List of specifications.\",\"type\":\"array\",\"items\":{\"description\":\"Specification information.\",\"type\":\"object\",\"properties\":{\"originalName\":{\"description\":\"Specification original name.\",\"type\":\"string\"},\"name\":{\"description\":\"Specification name.\",\"type\":\"string\"},\"values\":{\"description\":\"Specification values.\",\"type\":\"array\",\"items\":{\"description\":\"Specification value.\",\"type\":\"string\"}}}}}}}},\"skuSpecifications\":{\"description\":\"SKU specifications.\",\"type\":\"array\",\"items\":{\"description\":\"SKU specification information.\",\"type\":\"object\",\"properties\":{\"field\":{\"description\":\"SKU specification field information.\",\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"SKU specification field name.\",\"type\":\"string\"},\"originalName\":{\"description\":\"SKU specification field original name.\",\"type\":\"string\"}}},\"values\":{\"description\":\"SKU specification field values.\",\"type\":\"array\",\"items\":{\"description\":\"SKU specification value.\",\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"SKU specification value name.\",\"type\":\"string\"},\"originalName\":{\"description\":\"SKU specification value original name.\",\"type\":\"string\"}}}}}}},\"productClusters\":{\"description\":\"Product clusters information.\",\"type\":\"array\",\"items\":{\"description\":\"Product cluster information.\",\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Product cluster unique identifier.\",\"type\":\"string\"},\"name\":{\"description\":\"Product cluster name.\",\"type\":\"string\"}}}},\"clusterHighlights\":{\"description\":\"Cluster highlights information.\",\"type\":\"array\",\"items\":{\"description\":\"Cluster highlight information.\",\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Product cluster unique identifier.\",\"type\":\"string\"},\"name\":{\"description\":\"Product cluster name.\",\"type\":\"string\"}}}},\"properties\":{\"description\":\"Product properties.\",\"type\":\"array\",\"items\":{\"description\":\"Product property.\",\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Property name.\",\"type\":\"string\"},\"originalName\":{\"description\":\"Property original name.\",\"type\":\"string\"},\"values\":{\"description\":\"Property values.\",\"type\":\"array\",\"items\":{\"description\":\"Property value.\",\"type\":\"string\"}}}}},\"items\":{\"description\":\"Information about the related SKUs.\",\"type\":\"array\",\"items\":{\"description\":\"SKU information.\",\"type\":\"object\",\"additionalProperties\":true,\"properties\":{\"sellers\":{\"description\":\"List of sellers.\",\"type\":\"array\",\"items\":{\"description\":\"Seller information.\",\"type\":\"object\",\"properties\":{\"sellerId\":{\"description\":\"Seller unique identifier.\",\"type\":\"string\"},\"sellerName\":{\"description\":\"Seller name.\",\"type\":\"string\"},\"addToCartLink\":{\"description\":\"Add to cart link.\",\"type\":\"string\"},\"sellerDefault\":{\"description\":\"Default seller.\",\"type\":\"boolean\"},\"commertialOffer\":{\"description\":\"Commercial offer information.\",\"type\":\"object\",\"properties\":{\"DeliverySlaSamplesPerRegion\":{\"description\":\"Delivery SLA samples per region.\",\"type\":\"object\",\"additionalProperties\":true},\"DeliverySlaSamples\":{\"description\":\"Delivery SLA samples.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"description\":\"Delivery SLA sample.\",\"properties\":{\"DeliverySlaPerTypes\":{\"type\":\"array\",\"description\":\"Delivery SLA per types.\",\"items\":{\"type\":\"object\",\"description\":\"Delivery SLA information.\",\"properties\":{\"Price\":{\"type\":\"integer\",\"description\":\"Price of the delivery SLA type in cents.\"},\"TypeName\":{\"type\":\"string\",\"description\":\"SLA type name.\"},\"EstimatedTimeSpanToDelivery\":{\"type\":\"integer\",\"description\":\"Estimated delivery time span.\"}}}},\"Region\":{\"type\":[\"string\",\"null\"],\"description\":\"Region ID.\"}}}},\"AvailableQuantity\":{\"description\":\"Available quantity of the item.\",\"type\":\"number\"},\"discountHighlights\":{\"description\":\"Discount highlights.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"description\":\"Discount highlight information.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Discount highlight name.\"}}}},\"Installments\":{\"description\":\"Installments information.\",\"type\":\"array\",\"items\":{\"description\":\"Installment information.\",\"type\":\"object\",\"properties\":{\"PaymentSystemName\":{\"description\":\"Payment system name.\",\"type\":\"string\"},\"Value\":{\"description\":\"Total value.\",\"type\":\"number\"},\"InterestRate\":{\"description\":\"Interest rate.\",\"type\":\"number\"},\"TotalValuePlusInterestRate\":{\"description\":\"Total value plus interest rate.\",\"type\":\"number\"},\"NumberOfInstallments\":{\"description\":\"Number of installments.\",\"type\":\"number\"},\"Name\":{\"description\":\"Payment condition name.\",\"type\":\"string\"},\"PaymentSystemGroupName\":{\"description\":\"Payment system group.\",\"type\":\"string\"}}}},\"Price\":{\"description\":\"Price of the item.\",\"type\":\"number\"},\"ListPrice\":{\"description\":\"List price of the item.\",\"type\":\"number\"},\"spotPrice\":{\"description\":\"Spot price.\",\"type\":\"number\"},\"taxPercentage\":{\"description\":\"Tax percentage.\",\"type\":\"number\"},\"PriceWithoutDiscount\":{\"description\":\"Price with discount.\",\"type\":\"number\"},\"Tax\":{\"description\":\"Tax value.\",\"type\":\"number\"},\"GiftSkuIds\":{\"description\":\"List of SKU gifts IDs.\",\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"SKU gift unique identifier.\"}},\"BuyTogether\":{\"description\":\"Array of other items that can be bought together with the item in question.\",\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Unique identifier of each SKU that can be bought together.\"}},\"ItemMetadataAttachment\":{\"description\":\"Item metadata attachment.\",\"type\":\"array\",\"items\":{\"description\":\"Item metadata attachment information.\",\"type\":\"object\",\"properties\":{\"Name\":{\"description\":\"SKU name.\",\"type\":\"string\"},\"NameComplete\":{\"description\":\"Complete name of the product combined with the SKU name.\",\"type\":\"string\"},\"MainImage\":{\"description\":\"Main image URL.\",\"type\":\"string\"},\"BrandName\":{\"description\":\"Brand name.\",\"type\":\"string\"},\"CategoryId\":{\"description\":\"Category unique identifier.\",\"type\":\"number\"},\"ProductId\":{\"description\":\"Product unique identifier.\",\"type\":\"number\"},\"id\":{\"description\":\"SKU unique identifier.\",\"type\":\"string\"},\"seller\":{\"description\":\"Seller unique identifier.\",\"type\":\"string\"},\"assemblyOptions\":{\"description\":\"Assembly options attachment.\",\"type\":\"array\",\"items\":{\"description\":\"Assembly options attachment information.\",\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Attachment unique identifier.\",\"type\":\"string\"},\"name\":{\"description\":\"Attachment name.\",\"type\":\"string\"},\"required\":{\"description\":\"Defines whether the attachment is required (`true`) or not (`false`).\",\"type\":\"boolean\"},\"inputValues\":{\"description\":\"Input values information.\",\"type\":\"object\",\"additionalProperties\":true}}}}}}},\"RewardValue\":{\"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.\",\"type\":\"number\"},\"PriceValidUntil\":{\"description\":\"Date until the price is valid, in ISO 8601 format.\",\"type\":\"string\"},\"GetInfoErrorMessage\":{\"description\":\"Get info error message.\",\"type\":[\"string\",\"null\"]},\"CacheVersionUsedToCallCheckout\":{\"description\":\"Cache version used to call Checkout.\",\"type\":\"string\"},\"teasers\":{\"description\":\"Teasers information.\",\"type\":\"array\",\"items\":{\"description\":\"Teaser information.\",\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Promotion name.\",\"type\":\"string\"},\"conditions\":{\"description\":\"Conditions for the promotion the be valid.\",\"type\":\"object\",\"properties\":{\"minimumQuantity\":{\"description\":\"Minimum quantity of the item for the promotion to be valid.\",\"type\":\"number\"},\"parameters\":{\"description\":\"Condition parameters.\",\"type\":\"array\",\"items\":{\"description\":\"Condition parameters.\",\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Condition name.\",\"type\":\"string\"},\"value\":{\"description\":\"Condition value.\",\"type\":\"string\"}}}}}},\"effects\":{\"description\":\"Promotion effects.\",\"type\":\"object\",\"properties\":{\"parameters\":{\"description\":\"Effects parameters.\",\"type\":\"array\",\"items\":{\"description\":\"Effect parameters.\",\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Effect name.\",\"type\":\"string\"},\"value\":{\"description\":\"Effect value.\",\"type\":\"string\"}}}}}}}}}}}}}},\"images\":{\"description\":\"SKU images information.\",\"type\":\"array\",\"items\":{\"description\":\"SKU image information.\",\"type\":\"object\",\"properties\":{\"imageId\":{\"description\":\"Image unique identifier.\",\"type\":\"string\"},\"cacheId\":{\"description\":\"Cache ID.\",\"type\":\"string\"},\"imageTag\":{\"description\":\"HTML tag for the selected image.\",\"type\":\"string\"},\"imageLabel\":{\"description\":\"Image label.\",\"type\":\"string\"},\"imageText\":{\"description\":\"Image text.\",\"type\":\"string\"},\"imageUrl\":{\"description\":\"Image URL.\",\"type\":\"string\"}}}},\"itemId\":{\"description\":\"SKU unique identifier.\",\"type\":\"string\"},\"name\":{\"description\":\"SKU name.\",\"type\":\"string\"},\"nameComplete\":{\"description\":\"Combination of the product name with the SKU name.\",\"type\":\"string\"},\"complementName\":{\"description\":\"Complement name.\",\"type\":\"string\"},\"referenceId\":{\"description\":\"SKU alternate IDs.\",\"type\":\"array\",\"items\":{\"description\":\"Alternate ID information.\",\"type\":\"object\",\"properties\":{\"Key\":{\"description\":\"Alternate ID key.\",\"type\":\"string\"},\"Value\":{\"description\":\"Alternate ID value.\",\"type\":\"string\"}}}},\"measurementUnit\":{\"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'`.\",\"type\":\"string\"},\"unitMultiplier\":{\"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.\",\"type\":\"number\"},\"variations\":{\"description\":\"Variations.\",\"type\":\"array\",\"items\":{\"description\":\"Variation information.\",\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Variation name.\",\"type\":\"string\"},\"values\":{\"description\":\"Variation values.\",\"type\":\"array\",\"items\":{\"description\":\"Variation value.\",\"type\":\"string\"}}}}},\"ean\":{\"description\":\"EAN value.\",\"type\":\"string\"},\"modalType\":{\"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).\",\"type\":\"string\"},\"videos\":{\"description\":\"SKU videos.\",\"type\":\"array\",\"items\":{\"type\":\"string\",\"description\":\"Video URL.\"}},\"attachments\":{\"description\":\"Array with information about the attachments that are related to the SKU.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"description\":\"Attachment information.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Attachment unique identifier.\"},\"name\":{\"type\":\"string\",\"description\":\"Attachment name.\"},\"required\":{\"type\":\"boolean\",\"description\":\"Defines if the attachment is required (`true`) or not (`false`).\"},\"domainValues\":{\"type\":\"array\",\"description\":\"Attachment domain values.\",\"items\":{\"type\":\"object\",\"description\":\"Attachment information.\",\"properties\":{\"FieldName\":{\"type\":\"string\",\"description\":\"Attachment name.\"},\"DomainValues\":{\"type\":\"string\",\"description\":\"Attachment value.\"}}}}}}},\"isKit\":{\"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.\",\"type\":\"boolean\"}}}},\"releaseDate\":{\"description\":\"Release date.\",\"type\":\"number\"},\"origin\":{\"description\":\"Origin of products in the trade policy.\",\"type\":\"string\"}}}]}}\n\n// Validate if response matches JSON schema \npm.test(\"[GET]::/sponsored_products/:facets - Schema is valid\", function() {\n pm.response.to.have.jsonSchema(schema,{unknownFormats: [\"int32\", \"int64\", \"float\", \"double\"]});\n});\n" + ] + } + } + ], "protocolProfileBehavior": { "disableBodyPruning": true } @@ -246,7 +242,7 @@ "event": [] }, { - "id": "5b642edf-fbb2-4542-a860-56209bc63bfa", + "id": "3b26cb01-e82b-4ea1-abae-a8ffc37073bc", "name": "Ad events", "description": { "content": "", @@ -254,7 +250,7 @@ }, "item": [ { - "id": "7fc32e5b-a031-4b66-a95e-ce6d80a7a578", + "id": "fc068e05-4ea6-44fc-a6f8-fde380bb132c", "name": "Send ad events", "request": { "name": "Send ad events", @@ -295,7 +291,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "240d0fc7-9a7b-4d33-a4ef-ab6a56cb3098", + "id": "4929d2db-ccda-4423-b31b-7eea49f6eed0", "name": "OK", "originalRequest": { "url": { @@ -336,7 +332,7 @@ { "listen": "test", "script": { - "id": "fbe0c438-1b1f-4eaa-b834-4566853f9299", + "id": "c3926ca3-c235-44df-ad80-7e04e468d677", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/ads - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -352,7 +348,7 @@ "event": [] }, { - "id": "3db41ee0-e107-45fe-b153-820baaccb7d7", + "id": "ffb8047b-b88e-449d-b5e2-65f755e1d7a9", "name": "Order events", "description": { "content": "", @@ -360,7 +356,7 @@ }, "item": [ { - "id": "ba9042ce-2c94-4a5d-b433-648f30546ca7", + "id": "c086c9be-235d-4b86-a082-8d7741db09b7", "name": "Send order events", "request": { "name": "Send order events", @@ -401,7 +397,7 @@ "_": { "postman_previewlanguage": "text" }, - "id": "db3f9150-96ed-4608-a6f5-210f39b28ca0", + "id": "1671fd09-3b40-49c4-af1f-7b02db34e423", "name": "OK", "originalRequest": { "url": { @@ -442,7 +438,7 @@ { "listen": "test", "script": { - "id": "b8eaa5f9-93e6-49da-8bd5-8b872218d741", + "id": "16a2828a-9216-4634-a24c-2073e6a7e86d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/order - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -458,7 +454,7 @@ "event": [] }, { - "id": "0084c696-8978-4c65-8d84-054a88f0212b", + "id": "f0b5bc45-46d3-4fc5-8745-bff9efcab010", "name": "Banner", "description": { "content": "", @@ -466,7 +462,7 @@ }, "item": [ { - "id": "88921198-7be8-481b-87d5-377c4ad1e94a", + "id": "8367e0f1-0e3e-4820-bb3f-429be39e9c37", "name": "Get banner information", "request": { "name": "Get banner information", @@ -512,7 +508,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "5bcb2e3f-7960-46f9-8343-6c7d69284b6a", + "id": "5036e0e7-a236-4bc7-a51b-0da0f670b4d9", "name": "OK", "originalRequest": { "url": { @@ -564,7 +560,7 @@ { "listen": "test", "script": { - "id": "c7d96ecb-504a-4192-be9c-facc712bcc44", + "id": "9be3a9a3-0f5b-42e2-87ee-6aae463dd7c5", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/banner/query - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -602,7 +598,7 @@ } ], "info": { - "_postman_id": "06794637-1db0-44cd-8785-0d7de218fc68", + "_postman_id": "adec2e55-5086-4d4c-a285-440c2ba1edbe", "name": "VTEX Ad Network API", "version": { "raw": "0.1.12", diff --git a/VTEX - Ad Network API.json b/VTEX - Ad Network API.json index c38a5dc73..9d67938d0 100644 --- a/VTEX - Ad Network API.json +++ b/VTEX - Ad Network API.json @@ -29,6 +29,25 @@ ], "paths": { "/sponsored_products/{facets}": { + "servers": [ + { + "url": "https://{accountName}.{environment}.com.br/api/io/_v/api/intelligent-search", + "description": "VTEX Ad Network server URL, integrated with Intelligent Search.", + "variables": { + "accountName": { + "default": "apiexamples", + "description": "Name of the VTEX account. Used as part of the URL." + }, + "environment": { + "description": "Environment to use. Used as part of the URL.", + "enum": [ + "vtexcommercestable" + ], + "default": "vtexcommercestable" + } + } + } + ], "get": { "summary": "Get sponsored products for a query", "description": "Lists sponsored products for a given search query. This endpoint must be used when the merchant uses a third-party search engine.\r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [authentication](https:\/\/developers.vtex.com\/docs\/guides\/authentication) or [permissions](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", @@ -61,25 +80,6 @@ "$ref": "#/components/parameters/hideUnavailableItems" } ], - "servers": [ - { - "url": "https://{accountName}.{environment}.com.br/api/io/_v/api/intelligent-search", - "description": "VTEX Ad Network server URL, integrated with Intelligent Search.", - "variables": { - "accountName": { - "default": "apiexamples", - "description": "Name of the VTEX account. Used as part of the URL." - }, - "environment": { - "description": "Environment to use. Used as part of the URL.", - "enum": [ - "vtexcommercestable" - ], - "default": "vtexcommercestable" - } - } - } - ], "responses": { "200": { "description": "OK",