BizKitHub
DokumentacjaEksplorator APIProduct Category/api/v1/product-category/detail
getProduct CategoryPubliczne API v1

/api/v1/product-category/detail

Returns detail of a single product category identified by its URL slug. Returns error PUBLIC_CATEGORY_DOES_NOT_EXIST if the category is deleted, internal, or not found.

productCategorygetApiV1Product-categoryDetail

Parametry

2 w query

Parametry query

· 2
apiKeystringWymagane

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
slugstringWymagane

URL slug of the product category.

Przykładelectronics

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1

Category detail.

idstringWymagane

Category code (unique identifier).

Przykładcat_electronics
namestringWymagane

Display name of the category.

PrzykładElectronics
slugstringWymagane

URL-friendly slug.

Przykładelectronics
descriptionstringOpcjonalne

HTML description formatted for frontend display.

b2bbooleanWymagane

Whether the category is B2B-only.

Wariant 2

Error response when category does not exist.

statestringWymagane
codenumberWymagane
messagestringWymagane

Przykład odpowiedzi

application/json
{
  "id": "cat_electronics",
  "name": "Electronics",
  "slug": "electronics",
  "description": "example_description",
  "b2b": false
}

Przykład żądania

GET /api/v1/product-category/detail

get
curl -X GET "https://api.bizkithub.com/api/v1/product-category/detail?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&slug=electronics" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API