Variants (Batch)
Get all variants
GET https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/variantsRequest
Returns a list of all variants in your catalog. Optional parameters can be passed in.
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
- id in query - integer
Filter items by variant ID.
example
Response
Body
object | application/json
dataarray[object]
example
Update Variants (Batch)
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/variantsRequest
Updates a batch of variant
objects. Currently the limit is 50 variants however this is subject to change.
Required Fields
To update an existing variant:
- id (variant ID)
To create a new variant:
- product_id
- sku
- option_values
- id (option_value ID - Example: 146)
- option_id (Option ID - Example: 151)
Authentication
- X-Auth-Token in headerrequired
Parameters
- store_hash in path - string
Body
array | application/json
example
Response
Body
object | application/json
dataarray[object]
example
Did you find what you were looking for?