Adding Price Tables
1 min read
There are two ways of adding a price table:
- through Admin
- by API REST
Follow the steps below to add a price table in your store:
Admin
- In the VTEX Admin, go to Prices > Price list, or type Price list in the search bar at the top of the page.
- Click on the Price Tables button.
- Select the + Create new price table option. A sidebar will appear.
- Type in the name of the price table you wish to create.
- Click on Create price table.
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 table, you need to send a PUT to the following endpoint:
https://api.vtex.com/{{account}}/pricing/tables/{{priceTableName}}
A new price table will be created when the {{priceTableName}}
value is sent to the endpoint.
Properties | Types | Description |
---|---|---|
priceTableName | string | Price table's name |
- Below, we have an example of a Header to be used in the request
Headers
Header | Value |
---|---|
Accept | application/vnd.vtex.pricing.v3+json |
Content-Type | application/json |
X-VTEX-API-AppKey | {{X-VTEX-API-AppKey}} |
X-VTEX-API-AppToken | {{X-VTEX-API-AppToken}} |