Skip to main content

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​

ParameterTypeDescription
idStringThe 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​

FieldTypeDescription
idStringUnique identifier of the brand.
nameStringName of the brand.
urlStringURL slug of the brand page on the storefront.
descriptionStringDescription of the brand.
imageStringURL of the brand image.
productCountNumberNumber of products assigned to the brand.
sortOrderNumberDisplay order. Lower numbers appear first. Default is 0.
isFeaturedBooleanWhether the brand is featured. Default is false.
isShowBooleanWhether the brand is visible on the storefront. Default is true.
isShowNavBarBooleanWhether the brand appears in the navigation bar. Default is false.
seoObjectSEO settings for the brand page. See below.
metaFieldsArrayCustom field values. See Metafields.
createdAtStringDate and time the brand was created (ISO 8601).
updatedAtStringDate and time the brand was last updated (ISO 8601).

SEO Object​

FieldTypeDescription
pageTitleStringPage title for the brand.
metaKeywordsStringMeta keywords.
metaDescriptionStringMeta description.

Notes​

  • If no brand matches the ID, data is an empty object.