ListCategories (New)¶
Use this api to get all category information.
GET /openapi/shop/v1/categories/list
Response Parameters¶
Name | Type | Description |
---|---|---|
id |
string |
category id |
name |
string |
category name |
parentId |
string |
category parent id |
children |
array(CategoryVO) |
category child collection |
Request Example¶
Example
curl --location --request GET '{Ginee Host}/openapi/shop/v1/categories/list' \
--header 'X-Advai-Country: ID' \
--header 'Authorization: 2aedf7919e5e6cb4:n0IECNXloTKCTSSxeBEYhzmeVClHmgvw4ruI3W2f9eY=' \
--data-raw '{
}'
Success
{
"code": "SUCCESS",
"message": "成功",
"data": [
{
"id": "100643",
"name": "Books & Magazines",
"parentId": "0",
"children": [
{
"id": "100777",
"name": "Books",
"parentId": "100643",
"children": [
{
"id": "101551",
"name": "Language Learning & Dictionaries",
"parentId": "100777",
"children": []
},
{
"id": "101560",
"name": "Science & Maths",
"parentId": "100777",
"children": []
}
]
},
{
"id": "100778",
"name": "E-Books",
"parentId": "100643",
"children": []
},
{
"id": "100779",
"name": "Others",
"parentId": "100643",
"children": []
}
]
}
],
"extra": null,
"pricingStrategy": "PAY"
}