For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • Overview
  • Learning Plans
    • Developer Foundations
    • Composable Developer
    • Stencil Developer
    • B2B Developer
  • Courses
        • Price Lists
        • Lab - Price Lists
      • Conclusion
    • Learning Changelog
Dev Portal
LogoLogo
On this page
  • Prerequisites:
  • 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 List Records
  • Get Price List Records by Variant
  • Resources
CoursesCatalog - REST APIModule 10: Price Lists

Lab - Price Lists

Was this page helpful?
Previous

Price Lists

Next

Conclusion

Built with

Plan: Developer Foundations

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

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v3/pricelists
  1. Select GET next to the request url (if not already selected)
  2. Click the Send button
  3. Observe response

Create a Price List

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v3/pricelists
  1. Select POST next to the request url (if not already selected)
  2. Copy and paste the code below into the Body section of Postman
{
"name": "Wholesale group",
"active": false
}

A unique name of the price list is a required field.

  1. Click the SEND button to send the POST request below to create a price list:

Update a Price List

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v3/pricelists/:price_list_id
  1. Enter the ID of the price list created in previous lab for price_list_id in the Params tab
  2. Copy and paste the code below into the Body section of Postman
{
"name": "Wholesale",
"active": true
}
  1. Select PUT next to the request url
  2. Click the Send button
  3. Observe response and updated price list

Set Price List Record by Currency

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v3/pricelists/:price_list_id:/records/:variant_id/:currency_code
  1. Enter the ID of the price list created in previous lab for :price_list_id in the Params tab
  2. Enter a valid variant ID forvariant_id in the Params tab
  3. Enter a valid currency code for currency_code in the Params tab
  4. Copy and paste the code below into the Body section of Postman
{
"price": 12.99,
"sale_price": 10.99,
"retail_price": 15.99,
"map_price": 17.99,
"bulk_pricing_tiers": [
{
"quantity_min": 5,
"quantity_max": 10,
"type": "percent",
"amount": 1
},
{
"quantity_min": 11,
"quantity_max": 20,
"type": "percent",
"amount": 2
}
]
}
  1. Click the SEND button to send the PUT request below to create a price list record using the currency code
  2. Observe the response

Get Price List Records

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v3/pricelists/:price_list_id/records
  1. Enter the ID of the price list created in previous lab for price_list_id in the Params tab
  2. Select GET next to the request url (if not already selected)
  3. Click the Send button
  4. Observe response

For more about price list records see the developer documentation here.

Get Price List Records by Variant

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v3/pricelists/:price_list_id/records/:variant_id
  1. Enter the ID of the price list created in previous lab for price_list_id in the Params tab
  2. Enter a valid variant ID forvariant_id in the Params tab
  3. Select GET next to the request url (if not already selected)
  4. Click the Send button
  5. Observe response

Resources

  • Price List API
  • Price List Assignments