BizKitHub
DokumentacjaEksplorator APIOrder/api/v1/shop/order-group/list
getOrderPubliczne API v1

/api/v1/shop/order-group/list

Returns the organisation order groups in display order. Use active to decide whether a public page bound to a group (e.g. /lednice/{slug}) may offer anything: order create into an inactive group is rejected.

ordergetApiV1ShopOrder-groupList

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
onlyActiveboolean | stringOpcjonalne

When true, only groups that accept new orders are returned.

Przykładtrue

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
itemsobject[]Wymagane
Każdy element tablicy:
codestringWymagane

Stable group code (slug, unique per organisation).

Przykładlednice-smichov
namestringWymagane

Display name.

PrzykładLednice Smíchov
activebooleanWymagane

Whether the group accepts new orders. Public sites should hide (404) anything bound to an inactive group.

defaultbooleanWymagane

Whether this is the organisation default group.

positionnumberWymagane

Sort order, unique 1..N within the organisation.

itemCountnumberWymagane

Przykład odpowiedzi

application/json
{
  "items": [
    {
      "code": "lednice-smichov",
      "name": "Lednice Smíchov",
      "active": false,
      "default": false,
      "position": 0
    }
  ],
  "itemCount": 0
}

Przykład żądania

GET /api/v1/shop/order-group/list

get
curl -X GET "https://api.bizkithub.com/api/v1/shop/order-group/list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&onlyActive=true" \
  -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