get_category_tree
Retrieve the full category hierarchy of your store to understand the tree structure and parent-child relationships of categories.
Instructions
取得所有商品分類並組成樹狀結構。
【用途】 瀏覽商店的完整分類層級,了解分類架構與父子關係。 可用於確認分類 ID、名稱,再搭配 get_category_detail 取得個別分類詳情, 或搭配商品工具按分類篩選商品。
【呼叫的 Shopline API】
GET /v1/categories
【回傳結構】 dict 含 total, tree[](樹狀), flat[](扁平列表)。 每個節點包含 id, name, parent_id, children[](僅在 tree 中)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||