customerBrands
Requires a customer (portal or buyer app) session.
Lists the brands that have active products, with how many each has.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query CustomerBrands {
customerBrands {
id
code
name
description
logoUrl
productCount
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerBrands {\n customerBrands {\n id\n code\n name\n description\n logoUrl\n productCount\n }\n}"
}
EOF
Response:
{
"data": {
"customerBrands": [
{
"id": "id",
"code": "string",
"name": "string",
"description": "string",
"logoUrl": "string",
"productCount": 0
}
]
}
}
customerBrands(
categoryId: ID
): [CustomerBrand!]!
Arguments
customerBrands.categoryId ● ID scalar
Only brands with products in this category or beneath it; the counts cover that category too.
Type
CustomerBrand object
A brand a customer can shop.