Archive
Store Operations;isBold;icon_data-settings
V2 Catalog Products
SKU

Product SKU

SKUs

Stock Keeping Unit identifiers associated with products or product options.

⚠️

Deprecated

Avoid using this API operation if possible. It will be removed in a future version. For the most up-to-date version of this API, see Product Variants.

SKU Object – Properties

NameTypeDescription
idint
product_idint
skustringThe unique SKU (stock keeping unit).
pricedecimalThis SKU's base price on the storefront. If this value is null, the product's default price (set in the Product resource's price field) will be used as the base price.
adjusted_pricedecimalThe SKU's price on the storefront – after the product's base price is inherited, and/or any option set or any product rules are applied. This property is READ-ONLY.
cost_pricedecimalThe product's cost price.
upcstringThe UPC (Universal Product Code) for this product combination.
inventory_levelintThe inventory level for the product.
inventory_warning_levelintThe inventory warning level for the product .
bin_picking_numberstringThe BIN picking number.
weightdecimalThis SKU's base weight on the storefront. If this value is null, the product's default weight (set in the Product resource's weight field) will be used as the base weight.
adjusted_weightdecimalThis SKU's weight on the storefront – after the product's base weight is inherited, and/or any option set or any product rules are applied. This property is READ-ONLY.
is_purchasing_disabledbooleanif true, this prohibits purchasing of the SKU.
purchasing_disabled_messagestringThe message to display if purchasing is disabled on this SKU.
image_filestringThe image that will be displayed when this SKU is selected on the storefront. When updating a SKU image, send the publicly accessible URL. Supported image formats are JPEG, PNG, and GIF.
optionsobject_arrayThis is an object {"product_option_id": int, "option_value_id":int}

List Product SKUs

Gets the collection of SKUs associated with a product.

GET /stores/{store_hash}/v2/products/{product_id}/skus

Note

BigCommerce has updated the SKU schema to include additional price, weight, image, and purchasable properties. We will eventually remove the ability to manage these properties via SKU rules. (Merchants are already constrained from creating SKU-only rules in the BigCommerce control panel.)

Filters

Filter parameters can be added to the URL query string to select specific skus in the collection.

ParameterTypeExample
min_idint/api/v2/products/{product_id}/skus?min_id={value}
max_idint/api/v2/products/{product_id}/skus?max_id={value}
skustring/api/v2/products/{product_id}/skus?sku={value}
upcstring/api/v2/products/{product_id}/skus?upc={value}
inventory_levelstring/api/v2/products/{product_id}/skus?inventory_level={value}
inventory_warning_levelstring/api/v2/products/{product_id}/skus?inventory_warning_level={value}
bin_picking_numberstring/api/v2/products/{product_id}/skus?bin_picking_number={value}
min_inventory_levelint/api/v2/products/{product_id}/skus?min_inventory_level={value}
max_inventory_levelint/api/v2/products/{product_id}/skus?max_inventory_level={value}
is_low_inventoryboolean/api/v2/products/{product_id}/skus?is_low_inventory={value}
product_hashint/api/v2/products/{product_id}/skus?product_hash={value}

Pagination

Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 skus are returned by default.

ParameterTypeExample
pageint/api/v2/products/{product_id}/skus?page={number}
limitint/api/v2/products/{product_id}/skus?limit={count}

Response

Example JSON returned in the response:

[
  {
    "id": 1,
    "product_id": 5,
    "sku": "MB-1",
    "price": null,
    "adjusted_price": "1.5000",
    "cost_price": "0.0000",
    "upc": "",
    "inventory_level": 0,
    "inventory_warning_level": 0,
    "bin_picking_number": "",
    "weight": null,
    "adjusted_weight": "0.00",
    "is_purchasing_disabled": false,
    "purchasing_disabled_message": "",
    "image_file": "",
    "options": [
      {
        "product_option_id": 15,
        "option_value_id": 17
      },
      {
        "product_option_id": 16,
        "option_value_id": 28
      }
    ]
  },
  {
    "id": 2,
    "product_id": 5,
    "sku": "MB-2",
    "price": null,
    "adjusted_price": "2.0000",
    "cost_price": "0.0000",
    "upc": "",
    "inventory_level": 0,
    "inventory_warning_level": 0,
    "bin_picking_number": "",
    "weight": null,
    "adjusted_weight": "0.00",
    "is_purchasing_disabled": true,
    "purchasing_disabled_message": "We're sorry, this is unavailable.",
    "image_file": "",
    "options": [
      {
        "product_option_id": 15,
        "option_value_id": 18
      },
      {
        "product_option_id": 16,
        "option_value_id": 26
      }
    ]
  }
]

Get a Product SKU

Gets a single product SKU.

GET /stores/{store_hash}/v2/products/{product_id}/skus/{id}

Response

Example JSON returned in the response:

{
  "id": 5,
  "product_id": 7,
  "sku": "MBA-1atest",
    "price": null,
    "adjusted_price": "1.5000",
  "cost_price": "0.0000",
  "upc": "",
  "inventory_level": 0,
  "inventory_warning_level": 0,
  "bin_picking_number": "",
    "weight": null,
    "adjusted_weight": "0.00",
    "is_purchasing_disabled": false,
    "purchasing_disabled_message": "",
    "image_file": "https://thinglust.com/eyecandy.png",
  "options": [
    {
      "product_option_id": 20,
      "option_value_id": 51
    }
  ]
}

Get a Count of Product SKUs

Gets a count of the number of product SKUs in the store.

  • OAuth GET /stores/{store_hash}/v2/products/skus/count
  • Basic Auth GET /api/v2/products/skus/count

Response

Example JSON returned in the response:

{
  "count": 1235
}

Create a Product SKU

Creates a new product SKU.

  • OAuth POST /stores/{store_hash}/v2/products/{product_id}/skus

Read-only Properties

The following properties of the sku are read-only. If one or more of these properties are included in the request, it will be rejected.

  • id
  • product_id
  • adjusted_price
  • adjusted_weight

Requirements

The following properties of the sku are required. The request won’t be fulfilled unless these properties are valid.

  • sku
  • options

Note

To maximize system performance, BigCommerce caps the number of SKUs associated with a product at 500. If you attempt to add a SKU to a product that has 500 SKUs, BigCommerce will return a 403 error.

BigCommerce has updated the SKU schema to include additional price, weight, image, and purchasable properties. We will eventually remove the ability to manage these properties via SKU rules. (Merchants are already constrained from creating SKU-only rules in the BigCommerce control panel.)

Response

Example JSON returned in the response:

{
  "id": 5,
  "product_id": 7,
  "sku": "MBA-1atest",
    "price": null,
    "adjusted_price": "1.5000",
  "cost_price": "0.0000",
  "upc": "",
  "inventory_level": 0,
  "inventory_warning_level": 0,
  "bin_picking_number": "",
    "weight": null,
    "adjusted_weight": "0.00",
    "is_purchasing_disabled": false,
    "purchasing_disabled_message": "",
    "image_file": "",
  "options": [
    {
      "product_option_id": 20,
      "option_value_id": 51
    }
  ]
}

You may encounter a case where product information was updated successfully, but related inventory data failed to update. In such cases, BigCommerce will return a 207 status along with the object as updated and a descriptive error message.

207 Multi-Status

Update a Product SKU

Updates an existing product SKU.

PUT /stores/{store_hash}/v2/products/{product_id}/skus/{id}

Read-only Properties

The following properties of the sku are read-only. If one or more of these properties are included in the request, it will be rejected.

  • id
  • product_id
  • adjusted_price
  • adjusted_weight

Requirements

There are no required properties for updating a product SKU.

Response

Example JSON returned in the response:

{
  "id": 5,
  "product_id": 7,
  "sku": "MBA-1atest",
    "price": "4.9900",
    "adjusted_price": "3.9900",
  "cost_price": "2.9900",
  "upc": "",
  "inventory_level": 0,
  "inventory_warning_level": 0,
  "bin_picking_number": "",
    "weight": null,
    "adjusted_weight": "0.00",
    "is_purchasing_disabled": true,
    "purchasing_disabled_message": "We're sorry, this is unavailable.",
    "image_file": "",
  "options": [
    {
      "product_option_id": 20,
      "option_value_id": 51
    }
  ]
}

You may encounter a case where product information was updated successfully, but related inventory data failed to update. In such cases, BigCommerce will return a 207 status along with the object as updated and a descriptive error message.

207 Multi-Status

Delete a Product SKU

Deletes a product SKU.

DELETE /stores/{store_hash}/v2/products/{product_id}/skus/{id}

Delete Multiple Product SKUs

Deletes multiple product SKUs.

DELETE /stores/{store_hash}/v2/products/{product_id}/skus

Filters

Filter parameters can be added to the URL query string to select specific SKUs in the collection.

ParameterTypeExample
min_idint/api/v2/products/{product_id}/skus?min_id={value}
max_idint/api/v2/products/{product_id}/skus?max_id={value}
skustring/api/v2/products/{product_id}/skus?sku={value}
upcstring/api/v2/products/{product_id}/skus?upc={value}
inventory_levelstring/api/v2/products/{product_id}/skus?inventory_level={value}
inventory_warning_levelstring/api/v2/products/{product_id}/skus?inventory_warning_level={value}
bin_picking_numberstring/api/v2/products/{product_id}/skus?bin_picking_number={value}
min_inventory_levelint/api/v2/products/{product_id}/skus?min_inventory_level={value}
max_inventory_levelint/api/v2/products/{product_id}/skus?max_inventory_level={value}
is_low_inventoryboolean/api/v2/products/{product_id}/skus?is_low_inventory={value}
product_hashint/api/v2/products/{product_id}/skus?product_hash={value}

Pagination

Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 skus are returned by default.

ParameterTypeExample
pageint/api/v2/products/{product_id}/skus?page={number}
limitint/api/v2/products/{product_id}/skus?limit={count}
Did you find what you were looking for?