Fecify-套餐-详细
接口信息
- 接口地址:
{your-site-url}/api/skill/addons/package-info
- 基础 URL:
{your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/admin
- 请求方式:
GET
- Content-Type:
application/json
- 说明: 获取套餐的完整详细信息,包括基本信息、售价、续费价格、关联的插件列表、模版列表及多语言配置。
认证
请求头中需要携带 skill-access-token:
| Header |
值 |
skill-access-token |
{your-skill-access-token} (请替换为你自己的 token) |
请求参数
请求示例
cURL
curl --location --request GET '{your-site-url}/api/skill/addons/package-info?id=25' \
--header 'skill-access-token: {your-skill-access-token}' \
--header 'Content-Type: application/json'
返回结果
code 为 200 表示调用成功;code 不为 200 表示调用失败。
成功响应
{
"code": 200,
"data": {
"id": 25,
"title": {
"cn": "一年套餐",
"en": "",
"tw": ""
},
"sub_title": {
"cn": "一年套餐",
"en": "",
"tw": ""
},
"description": {
"cn": "<p>一年套餐</p>",
"en": "",
"tw": ""
},
"shop_type": 10,
"experience_days": 3,
"type": 1,
"status": 1,
"weight": 1,
"tag_status": 1,
"tag_content": {
"cn": "热卖",
"en": "",
"tw": ""
},
"style_type": 1,
"style_color": "linear-gradient(107.12deg, rgb(172, 48, 247) 0.9%, rgb(109, 58, 255) 99.34%)",
"is_forever": 2,
"price_info": [
{
"id": "r06WBjYE5Z",
"is_forever": 2,
"days": 30,
"day_label": "1月",
"price": 20,
"compare_at_price": 50
}
],
"renew_status": 1,
"renew_price_info": [
{
"id": "6fkThyGAlj",
"is_forever": 2,
"days": 30,
"day_label": "1月",
"price": 10,
"compare_at_price": 13
}
],
"status_disable_renew": 1,
"addons_info": [145, 16, 17, 31, 34, 38, 3, 29, 27, 50, 64, 39, 43],
"theme_info": [80, 103, 159],
"shop_count": 0,
"payment_type": 1,
"product_max_count": 0,
"language_codes": [],
"created_at": "2026-05-22 20:25:46",
"updated_at": "2026-07-22 14:57:25"
},
"message": "success"
}
返回字段说明
| 字段 |
类型 |
说明 |
code |
Number |
状态码,200 表示成功 |
message |
String |
执行结果的文字描述 |
data |
Object |
套餐详细信息 |
data 子字段
| 字段 |
类型 |
说明 |
id |
Number |
套餐 ID |
title |
Object |
套餐名称(多语言 JSON) |
sub_title |
Object |
套餐副名称(多语言 JSON) |
description |
Object |
套餐描述(多语言 JSON,可包含 HTML) |
shop_type |
Number |
店铺类型:10 B2C,20 B2B |
experience_days |
Number |
体验天数(体验套餐有效) |
type |
Number |
套餐类型:1 付费套餐,2 体验套餐 |
status |
Number |
状态:1 开启,2 关闭 |
weight |
Number |
套餐权重,数字越大商家端展示越靠前 |
tag_status |
Number |
营销标签:1 开启,2 关闭 |
tag_content |
Object |
标签文字(多语言 JSON) |
style_type |
Number |
展示样式:1 系统默认,2 自定义 |
style_color |
String |
颜色值 |
is_forever |
Number |
是否永久:1 永久,2 非永久(type=1 时有效) |
price_info |
Array |
售价详细(type=1 时有效) |
renew_status |
Number |
套餐续费:1 开启,2 关闭(type=1 时有效) |
renew_price_info |
Array |
续费价格详细(数组格式) |
status_disable_renew |
Number |
下架后续费:1 支持,2 不支持(type=1 时有效) |
addons_info |
Array |
套餐包含的插件 ID 列表 |
theme_info |
Array |
套餐包含的模版 ID 列表 |
shop_count |
Number |
使用该套餐创建的店铺个数 |
payment_type |
Number |
1 在线支付,2 联系客服 |
product_max_count |
Number |
店铺产品最大数,0 不限制 |
language_codes |
Array |
套餐支持的多语言简码列表 |
created_at |
String |
创建时间 |
updated_at |
String |
更新时间 |
price_info / renew_price_info 子项
| 字段 |
类型 |
说明 |
id |
String |
售价方案唯一 ID |
is_forever |
Number |
是否永久:1 永久,2 非永久 |
days |
Number / String |
有效天数,is_forever=2 时有效 |
day_label |
String |
天数标签,如 1月、1年 |
price |
Number |
售卖价格 |
compare_at_price |
Number |
划线价格(原价) |
注意事项
id 为必填参数,通过 Fecify-套餐-列表 获取。
price_info 和 renew_price_info 为数组格式,可能包含多个定价方案。
addons_info 和 theme_info 中的 ID 分别对应 Fecify-已上架应用-列表 中的插件和模版。