diff --git a/VTEX - Pricing API.json b/VTEX - Pricing API.json index 5192f25db..05ab9c912 100644 --- a/VTEX - Pricing API.json +++ b/VTEX - Pricing API.json @@ -318,22 +318,22 @@ } } }, - "example" : { + "example": { "markup": 30, "listPrice": 50.00, "basePrice": 100.00, "costPrice": 35.00, "fixedPrices": [ - { - "tradePolicyId": "1", - "value": 50.50, - "listPrice": 50.50, - "minQuantity": 2, - "dateRange": { - "from": "2021-12-30T22:00:00-03:00", - "to": "2021-12-30T22:00:00-03:00" + { + "tradePolicyId": "1", + "value": 50.50, + "listPrice": 50.50, + "minQuantity": 2, + "dateRange": { + "from": "2021-12-30T22:00:00-03:00", + "to": "2021-12-30T22:00:00-03:00" + } } - } ] } } @@ -1584,6 +1584,54 @@ } } }, + "/pricing/tables/{priceTableId}": { + "put": { + "tags": [ + "Price Tables" + ], + "summary": "Create price table", + "description": "Create a new price table.\r\n\r\n\r\n## Permissions\r\n\r\nAny user or [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys) must have at least one of the appropriate [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) to be able to successfully run this request. Otherwise they will receive a status code `403` error. These are the applicable resources for this endpoint:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| --------------- | ----------------- | ----------------- |\r\n| Pricing | Price List | **Modify prices** |\r\n\r\nThere are no applicable [predefined roles](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https://help.vtex.com/en/tutorial/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint. To learn more about machine authentication at VTEX, see [Authentication overview](https://developers.vtex.com/docs/guides/authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https://help.vtex.com/en/tutorial/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "Describes the type of the content being sent.", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "default": "application/json" + } + }, + { + "name": "Accept", + "in": "header", + "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "application/json" + } + }, + { + "name": "priceTableId", + "in": "path", + "description": "Price Table Name.", + "required": true, + "style": "simple", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + } + }, "/pricing/pipeline/catalog": { "get": { "tags": [ @@ -2101,7 +2149,7 @@ "type": "apiKey", "in": "header", "name": "X-VTEX-API-AppKey", - "description":"Unique identifier of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys)." + "description": "Unique identifier of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys)." }, "appToken": { "type": "apiKey",