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

/api/v1/product-category/list

Returns a list of product categories for the organisation. Optionally filter by parent category slug to get only direct children.

productCategorygetApiV1Product-categoryList

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
parentSlugstringOpcjonalne

Slug of the parent category to filter children. Omit for root categories.

Przykładexample_parentSlug

Schemat odpowiedzi

1 udokumentowany kod statusu

200SukcesPaginated list of product categories.
countnumberWymagane

Total number of categories matching the filter.

itemsobject[]Wymagane

Array of category items.

Każdy element tablicy:
idstringWymagane

Category code.

namestringWymagane

Display name.

slugstringWymagane

URL-friendly slug.

Przykład odpowiedzi

application/json
{
  "count": 0,
  "items": [
    {
      "id": "example_id",
      "name": "example_name",
      "slug": "example_slug"
    }
  ]
}

Przykład żądania

GET /api/v1/product-category/list

get
curl -X GET "https://api.bizkithub.com/api/v1/product-category/list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&parentSlug=example_parentSlug" \
  -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