Shop It Docs
Developer ResourcescatalogBrand

Brand Module API & Integration Guide

HTTP contract reference for catalog brand admin and customer/mobile APIs.

Overview

Brand APIs provide admin management and public brand discovery for the IT Mart storefront.

Routes

MethodPathPermission
GET/api/admin/brandsBrands_READ
GET/api/admin/brands/:idBrands_READ
POST/api/admin/brandsBrands_CREATE
PATCH/api/admin/brands/:idBrands_UPDATE
DELETE/api/admin/brands/:idBrands_DELETE
GET/api/brands and /api/mobile/brandsPublic
GET/api/brands/:slug and /api/mobile/brands/:slugPublic

Core Contract

  • Brand fields: id, name, slug, imageUrl, isVisible, order, productKind, createdAt, updatedAt
  • Admin list supports search, pagination, page, size, sort, order, productKind
  • Public list supports search, pagination, page, size, sort, order, productKind
  • Public detail supports historical slug fallback through brand_slug_history

productKind field

ValueMeaning
nullUnconstrained (applies to all product kinds)
"physical"Only physical products
"digital"Only digital products
"both"Explicitly applies to both physical and digital

Admin list filter behavior

Exact match on productKind. Only brands with the specified value are returned.

Customer list filter behavior

Returns brands matching the specified kind or brands with productKind = "both".

Example: ?productKind=physical returns brands set to "physical" or "both".

Public Behavior

  • only visible brands are returned in public/mobile endpoints
  • public default sort is order ASC, then name ASC

Errors

HTTPerrorCodeCondition
400BRAND_INVALID_SORTUnsupported customer sort field
404BRAND_NOT_FOUNDBrand id/slug not found
409BRAND_NAME_EXISTSDuplicate brand name on create/update