BizKitHub
DokumentacePrůzkumník APIOrder/api/v1/shop/order-group/list
getOrderVeřejné 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 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
onlyActiveboolean | stringVolitelné

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

Příkladtrue

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
itemsobject[]Povinné
Každá položka pole:
codestringPovinné

Stable group code (slug, unique per organisation).

Příkladlednice-smichov
namestringPovinné

Display name.

PříkladLednice Smíchov
activebooleanPovinné

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

defaultbooleanPovinné

Whether this is the organisation default group.

positionnumberPovinné

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

itemCountnumberPovinné

Ukázka odpovědi

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

Ukázka požadavku

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"

Potřebujete API klíč?

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

Získat API klíč