# 获取商品组列表 获取用于构建目录的商品组列表。 Endpoint: GET /v2/project/{project_id}/items/groups Version: 2.0.0 ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 ## Query parameters: - `promo_code` (string) 区分大小写的唯一券码。包含字母和数字。 Example: "WINTER2021" ## Response 200 fields (application/json): - `groups` (array) Example: [{"children":[{"children":[{"children":[],"description":"Accessory","external_id":"accessory","image_url":null,"level":2,"name":"Accessory","order":1,"parent_external_id":"background"}],"description":"Background description","external_id":"background","image_url":null,"level":1,"name":"Background","order":1,"parent_external_id":"hair"}],"description":"Hair description","external_id":"hair","image_url":null,"level":0,"name":"Hair","order":1,"parent_external_id":null},{"children":[],"description":"Super description","external_id":"group_external_id","image_url":null,"level":0,"name":"Super","order":1,"parent_external_id":null}] - `groups.children` (array) 子组。 Example: [{"children":[{"children":[],"description":"Accessory","external_id":"accessory","image_url":null,"level":2,"name":"Accessory","order":1,"parent_external_id":"background"}],"description":"Background description","external_id":"background","image_url":null,"level":1,"name":"Background","order":1,"parent_external_id":"hair"}] - `groups.children.description` (string) 组描述。 Example: "Background description" - `groups.children.external_id` (string) 外部组ID。 Example: "background" - `groups.children.image_url` (string,null) 组图片URL。 - `groups.children.level` (integer) 组嵌套层级。 Example: 1 - `groups.children.name` (string) 组名称。 Example: "Background" - `groups.children.order` (integer) 定义排列顺序。 Example: 1 - `groups.children.parent_external_id` (string,null) 父外部组ID。 Example: "hair" - `groups.image_url` (string,null) 图像URL。