Get Single Brand
Retrieves the details of a single brand, including its SEO settings, visibility options and metafields.
HTTP Request
- URL:
/brands/{id} - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope: None. Any valid access token can call this endpoint.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | The ID of the brand to retrieve. |
cURL Example
curl --location '<BASE_URL>/brands/663a0f1e4587085935a4fa21' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The brand was returned successfully.
- 400 Bad Request: The access token is missing or invalid, or the brand ID is not valid.
Sample JSON Response
{
"success": true,
"data": {
"id": "663a0f1e4587085935a4fa21",
"name": "Acme Tools",
"url": "acme-tools",
"description": "Professional-grade hand and power tools.",
"image": "https://cdn.example.com/brands/acme-tools.webp",
"productCount": 128,
"sortOrder": 0,
"isFeatured": true,
"isShow": true,
"isShowNavBar": false,
"seo": {
"pageTitle": "Acme Tools",
"metaKeywords": "acme, tools",
"metaDescription": "Shop Acme Tools products."
},
"metaFields": [],
"createdAt": "2024-05-07T11:13:02.066Z",
"updatedAt": "2024-10-09T13:05:59.036Z"
}
}
Response Details
Brand Data
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the brand. |
name | String | Name of the brand. |
url | String | URL slug of the brand page on the storefront. |
description | String | Description of the brand. |
image | String | URL of the brand image. |
productCount | Number | Number of products assigned to the brand. |
sortOrder | Number | Display order. Lower numbers appear first. Default is 0. |
isFeatured | Boolean | Whether the brand is featured. Default is false. |
isShow | Boolean | Whether the brand is visible on the storefront. Default is true. |
isShowNavBar | Boolean | Whether the brand appears in the navigation bar. Default is false. |
seo | Object | SEO settings for the brand page. See below. |
metaFields | Array | Custom field values. See Metafields. |
createdAt | String | Date and time the brand was created (ISO 8601). |
updatedAt | String | Date and time the brand was last updated (ISO 8601). |
SEO Object
| Field | Type | Description |
|---|---|---|
pageTitle | String | Page title for the brand. |
metaKeywords | String | Meta keywords. |
metaDescription | String | Meta description. |
Notes
- If no brand matches the ID,
datais an empty object.