Menu
Feedback
Start here
Tutorials


Start here
Prices
Adding a Price Variation Limiter
1 min read

There are two of adding a price variation limiter:

  • through Admin
  • by API REST

Follow the steps below to add a price variation limiter:

Admin

  1. In VTEX Admin, go to Store Settings > Products > Price Settings, or type Price Settings in the search bar at the top of the page.
  2. Click on Use price variation limit.
  3. Enter the desired percentage for Maximum Decrease and Maximum Increase.
  4. Click Save.

API REST

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

To add a price variation limiter, you need to send a POST to the following endpoint:

https://api.vtex.com/{{account}}/pricing/config

  • The request object has the following properties:
PropertiesTypesDescription
priceVariationobjectPrice variation
upperLimitintegerUpper limit
lowerLimitintegerLower limit
  • Below, we have an example of a Header and Body to be used in the request

Headers

HeaderValue
Acceptapplication/vnd.vtex.pricing.v3+json
Content-Typeapplication/json
X-VTEX-API-AppKey{{X-VTEX-API-AppKey}}
X-VTEX-API-AppToken{{X-VTEX-API-AppToken}}

Body


{
"priceVariation": {
"upperLimit": 50,
"lowerLimit": 20
}
}

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
13. Price Variation Limiter - Concept Definition
« Previous
1. How promotions work
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback