---
title: "查询店铺所有分类树节点"
description: "查询店铺的所有分类树节点信息。"
doc_type: openapi
doc_category: openapi
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-rest-api/product/taxonomy-collection/get-all-store-taxonomy-collection-nodes'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-rest-api/product/taxonomy-collection/get-all-store-taxonomy-collection-nodes.md'
---
# 查询店铺所有分类树节点

查询店铺的所有分类树节点信息。

- **Base URL:** `https://{handle}.myshopline.com/admin/openapi`
- **Required Scopes:** `read_products`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** RESTful

## Endpoint

```http
GET /taxonomies.json
```

## Base URL

* `https://{handle}.myshopline.com/admin/openapi`

  * `{handle}`: `handle` ：店铺的唯一标识符，值为店铺域名的前缀。例如，域名为 `open001.myshopline.com` 的店铺，其 `handle` 是 `open001` 。

## Required Permissions

* `read_products`

## Request

### Request Headers

* `Content-Type`

  string (required)

  字段值固定为 `application/json; charset=utf-8`。

* `Authorization`

  string (required)

  资源的访问令牌。参考 [应用授权](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/app-authorization.md?lang=zh-hans-cn) 获取访问令牌，然后将获取到的访问令牌以 Bearer 格式传入。

## Response

### Status Codes

* `200`

  更多状态码信息，参考 [HTTP 状态码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/http-status-code.md?lang=zh-hans-cn)。

* `401`

  

* `429`

  

### Response Headers

* `traceId`

  请求的全局唯一标识符。用于追踪请求在系统中的流转，以便于问题发生时进行定位和调试。

### Response Body

#### 200

* `taxonomies`

  array<object>

  分类树节点列表。

  * `id`

    string

    分类树节点的唯一标识 ID。

  * `parent_id`

    string

    父级节点的唯一标识 ID。

  * `children`

    array<map>

    下一级节点。

  * `collection_id`

    string

    分类的唯一标识 ID。


#### 401

* `errors`

  string

  错误描述。


#### 429

* `errors`

  string

  错误描述。


## OpenAPI Definition

```json
{
  "tags": [
    "查询店铺所有分类树节点"
  ],
  "description": "查询店铺的所有分类树节点信息。",
  "externalDocs": {
    "description": "接口使用的权限点: `read_products` ，更多权限点使用信息，请参考:",
    "url": "ec20/3cv5d7wpfgr6a8z5/xabczf5442284vkq?lang=zh-hans-cn",
    "errorTableDescription": "| Error Code | HTTP Status Code | Error Description |\n|------------|------------------|-------------------|\n| BUSINESS_ERROR | 501 | A general business failure occurred. |\n| INVALID_PARAMETER | 400 | The provided parameter is invalid. |\n"
  },
  "operationId": "Req2GcIy",
  "parameters": [
    {
      "name": "Content-Type",
      "in": "header",
      "description": "字段值固定为 `application/json; charset=utf-8`。",
      "required": true,
      "schema": {
        "name": "Content-Type",
        "type": "string",
        "example": "application/json; charset=utf-8"
      }
    },
    {
      "name": "Authorization",
      "in": "header",
      "description": "资源的访问令牌。参考 [应用授权](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/app-authorization.md?lang=zh-hans-cn) 获取访问令牌，然后将获取到的访问令牌以 Bearer 格式传入。",
      "required": true,
      "style": "string",
      "schema": {
        "name": "Authorization",
        "description": "资源的访问令牌。参考 [应用授权](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/app-authorization.md?lang=zh-hans-cn) 获取访问令牌，然后将获取到的访问令牌以 Bearer 格式传入。",
        "type": "string",
        "example": "Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6MCwiYXBwS2V5IjoiNzU2ZjI1NWE2NjdlZTcwNTk1MzM0ZjVjYzk4NzU5MzBmN2E3NGZjMSIsImV4cCI6MTg3OTQ4MjA3NiwiaXNzIjoieXNvdWwiLCJzZWxsZXJJZCI6IjIwMDAyMzQ4ODAiLCJzdG9yZUlkIjoiMTY3MjM2OTcyOTYwNiIsInRpbWVzdGFtcCI6MTc4NDc4NzY3NjY2MSwidmVyc2lvbiI6IlYyIn0.3ZzbGAH4cLU1QR2VPEvMOQInUDvus-C4amkINSQIPuNVlXsFKj0sAt1c0KnUy9MWUOFV9cHlkf7J90r2y1FzpA"
      },
      "example": "Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6MCwiYXBwS2V5IjoiNzU2ZjI1NWE2NjdlZTcwNTk1MzM0ZjVjYzk4NzU5MzBmN2E3NGZjMSIsImV4cCI6MTg3OTQ4MjA3NiwiaXNzIjoieXNvdWwiLCJzZWxsZXJJZCI6IjIwMDAyMzQ4ODAiLCJzdG9yZUlkIjoiMTY3MjM2OTcyOTYwNiIsInRpbWVzdGFtcCI6MTc4NDc4NzY3NjY2MSwidmVyc2lvbiI6IlYyIn0.3ZzbGAH4cLU1QR2VPEvMOQInUDvus-C4amkINSQIPuNVlXsFKj0sAt1c0KnUy9MWUOFV9cHlkf7J90r2y1FzpA"
    }
  ],
  "responses": {
    "200": {
      "description": "更多状态码信息，参考 [HTTP 状态码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/http-status-code.md?lang=zh-hans-cn)。",
      "headers": {
        "traceId": {
          "description": "请求的全局唯一标识符。用于追踪请求在系统中的流转，以便于问题发生时进行定位和调试。"
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "name": "body",
            "type": "object",
            "properties": {
              "taxonomies": {
                "name": "taxonomies",
                "description": "分类树节点列表。",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "name": "id",
                      "description": "分类树节点的唯一标识 ID。",
                      "type": "string",
                      "example": "7004220176356349981"
                    },
                    "parent_id": {
                      "name": "parent_id",
                      "description": "父级节点的唯一标识 ID。",
                      "type": "string",
                      "example": "7004220176355548881"
                    },
                    "children": {
                      "name": "children",
                      "description": "下一级节点。",
                      "type": "array",
                      "items": {
                        "type": "map"
                      }
                    },
                    "collection_id": {
                      "name": "collection_id",
                      "description": "分类的唯一标识 ID。",
                      "type": "string",
                      "example": "12257170618007271602093384"
                    }
                  },
                  "example": {
                    "parent_id": "7004220176355548881",
                    "children": null,
                    "collection_id": "12257170618007271602093384",
                    "id": "7004220176356349981"
                  }
                },
                "example": [
                  {
                    "children": null,
                    "collection_id": "12257170618007271602093384",
                    "id": "7004220176356349981",
                    "parent_id": "7004220176355548881"
                  }
                ]
              }
            },
            "example": {
              "taxonomies": [
                {
                  "children": null,
                  "collection_id": "12257170618007271602093384",
                  "id": "7004220176356349981",
                  "parent_id": "7004220176355548881"
                }
              ]
            }
          },
          "examples": {
            "查询店铺的所有分类树节点信息": {
              "description": "查询店铺分类树节点信息",
              "value": {
                "taxonomies": [
                  {
                    "parent_id": null,
                    "children": [
                      {
                        "id": "6997483859874420760",
                        "parentId": "6997483476011718673",
                        "children": [
                          {
                            "collectionId": "12249026592161154694000282",
                            "id": "6997498456723429410",
                            "parentId": "6997483859874420760",
                            "children": []
                          },
                          {
                            "children": [
                              {
                                "collectionId": "12250548741701040660740282",
                                "id": "6997498858017658916",
                                "parentId": "6997498456723429411",
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [],
                                        "collectionId": "12264578587222831342061690",
                                        "id": "6997496949928106015",
                                        "parentId": "6997496949928106014"
                                      },
                                      {
                                        "children": [],
                                        "collectionId": "12267068008085234731731690",
                                        "id": "6997496949928106016",
                                        "parentId": "6997496949928106014"
                                      }
                                    ],
                                    "collectionId": "12249521251322718219170282",
                                    "id": "6997496949928106014",
                                    "parentId": "6997498858017658916"
                                  }
                                ]
                              }
                            ],
                            "collectionId": "12249544854208287027410282",
                            "id": "6997498456723429411",
                            "parentId": "6997483859874420760"
                          }
                        ],
                        "collectionId": "12248721639068681442230282"
                      },
                      {
                        "children": [],
                        "collectionId": "12265421699752389574051690",
                        "id": "6997483859874420764",
                        "parentId": "6997483476011718673"
                      },
                      {
                        "parentId": "6997483476011718673",
                        "children": [],
                        "collectionId": "12267908620070404822911690",
                        "id": "6997483859874420765"
                      }
                    ],
                    "collection_id": "12264293718030103508231690",
                    "id": "6997483476011718673"
                  },
                  {
                    "children": [
                      {
                        "id": "6997496949928106017",
                        "parentId": "6997483476011718674",
                        "children": [],
                        "collectionId": "12267695199458002270651690"
                      }
                    ],
                    "collection_id": "12264298869952930281631690",
                    "id": "6997483476011718674",
                    "parent_id": null
                  }
                ]
              }
            }
          }
        }
      }
    },
    "401": {
      "headers": {
        "traceId": {
          "description": "请求的全局唯一标识符。用于追踪请求在系统中的流转，以便于问题发生时进行定位和调试。"
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "errors": {
                "description": "错误描述。",
                "type": "string"
              }
            },
            "required": [
              "errors"
            ]
          }
        }
      }
    },
    "429": {
      "headers": {
        "traceId": {
          "description": "请求的全局唯一标识符。用于追踪请求在系统中的流转，以便于问题发生时进行定位和调试。"
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "errors": {
                "description": "错误描述。",
                "type": "string"
              }
            },
            "required": [
              "errors"
            ]
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "method": "get",
  "path": "/taxonomies.json",
  "servers": [
    {
      "url": "https://{handle}.myshopline.com/admin/openapi",
      "variables": {
        "handle": {
          "default": "openapiceshidianpu",
          "description": "`handle` ：店铺的唯一标识符，值为店铺域名的前缀。例如，域名为 `open001.myshopline.com` 的店铺，其 `handle` 是 `open001` 。"
        }
      }
    }
  ],
  "info": {
    "title": "查询店铺所有分类树节点",
    "version": "v20270301"
  },
  "authIndexes": [
    "read_products"
  ]
}
```