BizKitHub
DokumentacePrůzkumník APIProduct Category/api/v1/product-category/list
getProduct CategoryVeřejné 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 v query

Parametry v query

· 2
apiKeystringPovinné

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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
parentSlugstringVolitelné

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

Příkladexample_parentSlug

Schéma odpovědi

1 zdokumentovaný stavový kód

200ÚspěchPaginated list of product categories.
countnumberPovinné

Total number of categories matching the filter.

itemsobject[]Povinné

Array of category items.

Každá položka pole:
idstringPovinné

Category code.

namestringPovinné

Display name.

slugstringPovinné

URL-friendly slug.

Ukázka odpovědi

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

Ukázka požadavku

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"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč