{"section":"tracks","requestedLocale":"en","requestedSlug":"cadastrar-preco-base","locale":"en","slug":"cadastrar-preco-base","path":"docs/en/tracks/vtex-modules-getting-started/prices-101/cadastrar-preco-base.md","branch":"main","content":"There are three ways to add a base price:\n\n- through Admin\n- [by using a spreadsheet](/en/docs/tracks/exporting-and-importing-via-a-price-spreadsheet)\n- through an API REST\n\nFollow the steps below to add a base price to your SKUs:\n\n## Admin\n\n1. In the VTEX Admin, go to *Prices > Price list*, or type *Price list* in the search bar at the top of the page.\n2. Each box contains a product with its respective SKUs. Click on the first column of the desired SKU's line. A *sidebar* will open.\n3. Fill in the form fields:\n- **Cost Price:** fill out the SKU cost value.\n- **Initial Markup:** fill out with the profit margin that is to be obtained from the sale of that SKU.\n4. Click on the *sidebar* itself to save the price.  \n5. The **Base Price** will be calculated based on the given data.\n\nYou may also add a **List Price** linked to an SKU base price by following the steps below:\n\n1. At the bottom of the same *sidebar* where you add the base price, click on the **+ Set list price**\n2. Fill the out the **List Price** field with the desired SKU value\n3. Click anywhere on the *sidebar* itself to save the list price\n\n## API REST\n\n> ⚠️ Authentications for the Prices module's API REST requests must be done using AppKey and AppToken. For more on this, read our article on [how to manage an AppKey and AppToken to authenticate your integrations.](https://developers.vtex.com/vtex-developer-docs/docs/getting-started-authentication)\n\nTo add a **base price** to an SKU, you'll have to send a __PUT__ request to the following endpoint:\n\n`https://api.vtex.com/{{account}}/pricing/prices/{{itemId}}`\n\nYou can also add a **list price** that is linked to the SKU base price. However, this field is **not mandatory**.\n\n- The request object has the following properties:\n\n| __Properties__ | __Types__ | __Description__ |\n|------------------|-----------|-------------|\n| costPrice | integer | SKU Cost Price |\n| markup| integer | SKU Markup |\n| basePrice | integer | SKU Base Price |\n| listPrice | integer | SKU List Price |\n\n- The response object has the following properties:\n\n| __Properties__ | __Types__ | __Description__ |\n|------------------|-----------|-------------|\n| itemId| string| SKU ID |\n| costPrice | integer | SKU Cost Price |\n| basePrice | integer | SKU Base Price |\n| listPrice | integer | SKU List Price |\n| markup | integer | SKU Markup |\n| fixedPrices | array | Fixed Price  |\n| tradePolicyId | integer | Trade policy ID |\n| value | integer | Fixed Price value |\n| listPrice | integer | List Price |\n| minQuantity | integer | Minimum item quantity |\n| dateRange | string | Fixed price date range |\n\n- Below, we have a Header example and **three possible Body examples** to be sent in the request\n\n### Headers \n\n| Header| Value |\n|------------------|-----------|\n| Accept | application/vnd.vtex.pricing.v3+json |\n| Content-Type | application/json |\n| X-VTEX-API-AppKey | \\{\\{X-VTEX-API-AppKey\\}\\} |\n| X-VTEX-API-AppToken | \\{\\{X-VTEX-API-AppToken\\}\\} |\n\n### Body - Example 1\n\n```json\n{\n    \"costPrice\": null,\n    \"markup\": 100,\n    \"basePrice\": 300\n}\n```\n\n`costPrice * (1 + markup%) = basePrice`\n\nIn this example, as `markup = 100` and `basePrice = 300`, the `costPrice` calculated by the system will be equal to `150`.\n\n### Body - Example 2\n\n```json\n{\n    \"costPrice\": 150,\n    \"markup\": null,\n    \"basePrice\": 300,\n    \"listPrice\": 500\n}\n```\n\n`costPrice * (1 + markup%) = basePrice`\n\nIn this example, as `costPrice = 150` and `basePrice = 300`, the `markup` calculated by the system will be equal to `100`. \n\nWe have also included a List Price with a value of `500`.\n\n### Body - Example 3\n\n```json\n{\n    \"costPrice\": 150,\n    \"markup\": 100,\n    \"basePrice\": null,\n}\n```\n\n`costPrice * (1 + markup%) = basePrice`\n\nIn this example, as `costPrice = 150` and `markup = 100`, the `basePrice` calculated by the system will be equal to `300`."}