Brands

Deprecated

This is archived documentation. The V2 Catalog API is deprecated. For current API documentation, see the Catalog API.

Brands

Brand facets for identifying and categorizing products according to their manufacturer or company metonym.

NameTypeDescription
idint
namestringThe name of the brand. Must be unique.
page_titlestringThe title shown in the browser while viewing the brand.
meta_keywordstextComma-separated list of meta keywords to include in the HTML.
meta_descriptiontextA meta description to include.
image_filestringA valid image.

Gets the collection of brands. (Default sorting is by brand id, from lowest to highest.)

GET /stores/{store_hash}/v2/brands

Filters

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

ParameterTypeExample
namestring/api/v2/brands?name={value}
min_idint/api/v2/brands?min_id={value}
max_idint/api/v2/brands?max_id={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, BigCommerce returns up to 50 brands by default.

ParameterTypeExample
Pageint/api/v2/brands?page={number}
Limitint/api/v2/brands?limit={count}

Response

Example JSON returned in the response:

[
{
"id": 1,
"name": "Apple",
"page_title": "",
"meta_keywords": "",
"meta_description": "",
"image_file": "",
"search_keywords": ""
},
{
"id": 2,
"name": "Microsoft",
"page_title": "",
"meta_keywords": "",
"meta_description": "",
"image_file": "",
"search_keywords": ""
}
]

Gets a brand.

GET /stores/{store_hash}/v2/brands/{id}

Response

Example JSON returned in the response:

{
"id": 1,
"name": "Apple",
"page_title": "",
"meta_keywords": "",
"meta_description": "",
"image_file": "",
"search_keywords": ""
}

Returns the total number of brands in the store.

GET /stores/{store_hash}/v2/brands/count

Response

Example JSON returned in the response:

{
"count": 25
}

Creates a new brand.

POST /stores/{store_hash}/v2/brands

Read-only Properties

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

  • id

Requirements

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

  • name

Note

To maximize system performance, BigCommerce caps the number of brands that can be added to a store at 30,000. If your POST causes the store to exceed the maximum of 30,000 brands, BigCommerce will return a 403 error.

Request

Example request object:

{
"name": "Xmen",
"page_title": "X men brand"
}

Response

Example JSON returned in the response:

{
"id": 10,
"name": "Xmen",
"page_title": "X men brand",
"meta_keywords": null,
"meta_description": null,
"image_file": "",
"search_keywords": ""
}

Updates an existing brand.

PUT /stores/{store_hash}/v2/brands/{id}

Read-only Properties

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

  • id

Requirements

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

Response

Example JSON returned in the response:

{
"id": 10,
"name": "Xmen",
"page_title": "X men brand",
"meta_keywords": null,
"meta_description": null,
"image_file": "t/apirmzk0a__43675.jpg",
"search_keywords": "xmen, awesomeness"
}

Deletes a brand.

DELETE /stores/{store_hash}/v2/brands/{id}

Deletes all brands belonging to a product.

DELETE /stores/{store_hash}/v2/brands