Lab - Price Lists
Lesson 20 of 21 · 30 min
This lab activity will give you a chance to practice working with price lists. Each step will walk you through how to use all of the endpoints covered in the previous lesson.
Prerequisites:
- BigCommerce store (sandbox or live)
- Basic knowledge of APIs
- REST client (Postman)
- Completion of all previous Catalog API labs
In this lab, you will:
- Get all price lists
- Create a Price List
- Update a Price List
- Set Price List Record by Currency
- Get Price Records by Variant
GET All Price Lists
- Copy and paste the request below into Postman
- Select GET next to the request url (if not already selected)
- Click the Send button
- Observe response
Create a Price List
- Copy and paste the request below into Postman
- Select POST next to the request url (if not already selected)
- Copy and paste the code below into the Body section of Postman
A unique name of the price list is a required field.
- Click the SEND button to send the POST request below to create a price list:
Update a Price List
- Copy and paste the request below into Postman
- Enter the ID of the price list created in previous lab for
price_list_idin the Params tab - Copy and paste the code below into the Body section of Postman
- Select PUT next to the request url
- Click the Send button
- Observe response and updated price list
Set Price List Record by Currency
- Copy and paste the request below into Postman
- Enter the ID of the price list created in previous lab for
:price_list_idin the Params tab - Enter a valid variant ID for
variant_idin the Params tab - Enter a valid currency code for
currency_codein the Params tab - Copy and paste the code below into the Body section of Postman
- Click the SEND button to send the PUT request below to create a price list record using the currency code
- Observe the response
Get Price List Records
- Copy and paste the request below into Postman
- Enter the ID of the price list created in previous lab for
price_list_idin the Params tab - Select GET next to the request url (if not already selected)
- Click the Send button
- Observe response
For more about price list records see the developer documentation here.
Get Price List Records by Variant
- Copy and paste the request below into Postman
- Enter the ID of the price list created in previous lab for
price_list_idin the Params tab - Enter a valid variant ID for
variant_idin the Params tab - Select GET next to the request url (if not already selected)
- Click the Send button
- Observe response