{"section":"tracks","requestedLocale":"en","requestedSlug":"cadastrar-trava-de-preco","locale":"en","slug":"cadastrar-trava-de-preco","path":"docs/en/tracks/vtex-modules-getting-started/prices-101/cadastrar-trava-de-preco.md","branch":"main","content":"There are two of adding a price variation limiter:\n\n- through Admin\n- by API REST\n\nFollow the steps below to add a price variation limiter:\n\n## Admin\n\n1. In VTEX Admin, go to **Store Settings > Products > Price Settings**, or type **Price Settings** in the search bar at the top of the page.\n2. Click on **Use price variation limit**.\n3. Enter the desired percentage for **Maximum Decrease** and **Maximum Increase**.\n4. Click **Save**.\n\n## API REST\n\n> ⚠️ Authentications for Prices module's API REST calls should be done using AppKey and AppToken. For more info, read our article on [how to generate an AppKey and AppToken to authenticate integrations](https://developers.vtex.com/vtex-developer-docs/docs/getting-started-authentication)\n\nTo add a **price variation limiter**, you need to send a __POST__ to the following endpoint:\n\n`https://api.vtex.com/{{account}}/pricing/config`\n\n- The request object has the following properties:\n\n| __Properties__ | __Types__ | __Description__ |\n|------------------|-----------|-------------|\n| priceVariation | object | Price variation |\n| upperLimit | integer | Upper limit |\n| lowerLimit | integer | Lower limit |\n\n- Below, we have an example of a Header and Body to be used 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 \n\n```json\n{\n\t\"priceVariation\": {\n        \"upperLimit\": 50,\n        \"lowerLimit\": 20\n    }\n}\n```"}