Fecify-商品Tag-详情
接口信息
- 接口地址:
{your-site-url}/api/skill/product-tag/info - 基础 URL:
{your-site-url}需替换为你自己的独立站 URL 地址,如https://your-domain.com/apimanager666 - 请求方式:
GET - Content-Type:
application/json - 说明: 根据 Tag ID 获取单个商品 Tag 的详细信息
认证
请求头中需要携带 skill-access-token:
| Header | 值 |
|---|---|
skill-access-token |
{your-skill-access-token} (请替换为你自己的 token) |
请求参数
Query 参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id |
Number | 是 | 商品 Tag ID |
请求示例
cURL
curl --location --request GET '{your-site-url}/api/skill/product-tag/info?id=221' \
--header 'skill-access-token: {your-skill-access-token}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回结果
code 为 200 表示调用成功;code 不为 200 表示调用失败。
成功响应
{
"code": 200,
"data": {
"id": 221,
"shop_id": 15,
"title": "bikini",
"first_letter": "b",
"created_at": "2026-06-16 20:00:56",
"updated_at": "2026-06-16 20:00:56"
},
"message": "success"
}
返回字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
code |
Number | 状态码,200 表示成功 |
message |
String | 执行结果的文字描述 |
data.id |
Number | Tag ID |
data.shop_id |
Number | 店铺 ID |
data.title |
String | Tag 名称 |
data.first_letter |
String | Tag 首字母 |
data.created_at |
String | 创建时间 |
data.updated_at |
String | 更新时间 |
错误响应
{
"code": 100701001,
"message": "error message"
}
code 不为 200 表示调用失败,具体错误码以实际返回为准。