Product SKU
SKUs
Stock Keeping Unit identifiers associated with products or product options.
This is archived documentation. The V2 Catalog API is deprecated. For current API documentation, see the Catalog API.
SKU Object Properties
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.
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.
Response
Example JSON returned in the response:
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:
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:
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:
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.
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:
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.
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.
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.