Get Category
Function
To get detailed information for a specific category with its ID
使用分類 ID 獲取特定一個分類的詳細資料
URL
GET <<api_domain>>/v1/categories/:id
Request parameters
Parameter | Type | Description | Example |
|---|---|---|---|
id |
| Category ID
| 58c1362f01cda3329300004d |
fields[] |
| Could only show certain parameters in the response | |
excludes[] |
| Could exclude certain parameters in the response | |
Response Fields
Field | Type | Description | Example |
|---|---|---|---|
id |
| Category ID | 5de4b3fe461b13002154587d |
name_translations | Name |
| |
seo_title_translations | SEO Title |
| |
seo_description_translations | SEO Description |
| |
seo_keywords |
| SEO Keyword | 關鍵字修改222 |
key |
| featured_products | |
status |
| Status active | active |
banner_medias |
| Banner Medias | |
parent_id |
| Parent Category ID | |
priority |
| Weight | 1.0 |
created_by |
| Created By admin | admin |
children | Array of Sub Categories Information | Please check the link on the left |
Response Example
{
"id": "5de4b3fe461b13002154587d",
"name_translations": {
"en": "Featured Products",
"zh-hant": "精選商品"
},
"seo_title_translations": {
"en": "22222",
"zh-hant": "SEO優化 change"
},
"seo_description_translations": {
"en": "SEO description11",
"zh-hant": "SEO 內文2"
},
"seo_keywords": "關鍵字修改222",
"key": "featured_products",
"status": "active",
"banner_medias": [
{
"images": {
"favicon_small": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
},
"favicon": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
},
"favicon_large": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
},
"transparent_thumb": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
},
"transparent_large": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
},
"transparent_xlarge": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
},
"original": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
},
"thumb": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
},
"source": {
"width": 900.0,
"height": 420.0,
"url": "https://img.shoplineapp.com/media/image_clips/5fab519c11eceb0020628aff/original.jpg?1605063068"
}
},
"_id": "5fab519c11eceb0020628aff",
"alt_translations": {}
}
],
"parent_id": null,
"priority": 1.0,
"children": [
{
"id": "5e8421291e164300337d8b0a",
"name_translations": {
"en": "Sub",
"zh-hant": "Sub"
},
"seo_title_translations": {
"en": "",
"zh-hant": "Sub"
},
"seo_description_translations": {
"en": "",
"zh-hant": ""
},
"seo_keywords": null,
"key": null,
"status": "active",
"banner_medias": [],
"parent_id": "5de4b3fe461b13002154587d",
"priority": 3.0,
"children": [
{
"id": "5efeff4ab774cf003cb00249",
"name_translations": {
"en": "",
"zh-hant": "3rd"
},
"seo_title_translations": {
"en": "",
"zh-hant": "3rd"
},
"seo_description_translations": {
"en": "",
"zh-hant": ""
},
"seo_keywords": null,
"key": null,
"status": "active",
"banner_medias": [],
"parent_id": "5e8421291e164300337d8b0a",
"priority": 1.0,
"created_by": "admin"
}
],
"created_by": "admin"
}
],
"created_by": "admin"
}Updated 13 days ago