Table of Contents
8.8 更新定价设置【未授权拦截通过,待登录态联调】
PUT /tieup/api/v1/artist/pricing
鉴权:需要 Authorization: Bearer <access_token>,且当前账号必须已开通偶像端。
请求体:
{
"subscription_plan_code": "month_30",
"video_call_plan_code": "call_30m",
"question_price": 100,
"video_call_price_per_minute": 5,
"question_enabled": 1,
"video_call_enabled": 1
}
请求参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
subscription_plan_code |
string | 否 | 当前请求渠道、平台和市场中的启用订阅档位代码;传空字符串表示清空,不传保持原值 |
video_call_plan_code |
string | 否 | 业务配置中的视频通话档位编码;传空字符串表示清空视频通话档位 |
question_price |
integer | 否 | 提问价格,单位糖果;不传则保持原值 |
video_call_price_per_minute |
integer | 否 | 艺人设置的视频通话每分钟糖果单价;不支持小数糖果 |
question_enabled |
integer | 否 | 1=开启,2=关闭;不传则保持原值 |
video_call_enabled |
integer | 否 | 1=开启,2=关闭;不传则保持原值 |
响应字段:
同 8.7 获取定价设置。保存成功后立即返回最新定价配置和当前作用域的订阅档位对象。
响应示例:
{
"code": 200,
"message": "成功",
"data": {
"artist_id": 20001,
"subscription_plan_code": "month_30",
"subscription_plan": {
"plan_code": "month_30",
"subscription_plan_code": "month_30",
"plan_name": "月度订阅",
"price_amount": "30.00",
"duration_days": 30,
"annual_original_price_amount": "360.00",
"annual_discount": 8,
"annual_price_amount": "288.00",
"ios_month_price_amount": "39.00",
"ios_year_price_amount": "374.00",
"auto_renew_methods": {"month": ["apple_iap"], "year": ["apple_iap"]},
"config": {"visible": true, "annual_discount": 8, "annual_price_amount": "288.00"}
},
"video_call_plan_code": "call_30m",
"question_price": 100,
"video_call_price_per_minute": 5,
"question_enabled": 1,
"video_call_enabled": 1,
"status": 1
}
}
说明:业务订阅档位目录由运营后台维护,艺人通过本接口从当前作用域的启用目录中选择唯一档位。tieup_artist_subscription_config 只维护 Apple、微信、支付宝自动续订资源;未配置自动续订资源不影响艺人选择和普通单次订阅。