创建定价方案Copy Pagepost https://{api}.subotiz.com/api/v1/prices创建定价方案Body Params创建定价方案请求namestringrequired定价方案名称product_idstringrequired关联商品 IDproduct_version_idstringrequired商品版本 IDbilling_typestringrequired计费类型:one_time-一次性 / recurring-周期性price_valstring一次性支付价格,当 billing_type 为 one_time 时必填descriptionstringrequired定价描述has_trialboolean是否启用试用期truefalsetrial_periodobjectTrialPeriod - 试用期配置trial_period objectprice_planobject创建定价时的定价计划price_plan objectprice_typestringrequired定价价格结构,取值之一:flat_price | package_price | tiers_price;based_on_usage 已废弃(存量只读),新建不可传usage_amountstring资源包用量(套餐含量),当 price_type 为 package_price 时必填usage_unitstring用量单位,当 price_type 为 package_price 时必填featuresarray of objects定价权益列表featuresADD objectmodel_typestring定价模型二级类型(已废弃,逻辑并入 price_type + billing_dimension + quantity_tier_type/price_tier_type,新建不再使用)billing_thresholdstring扣费金额阈值(已废弃,新建改用 usage_threshold;存量只读回显)trial_typeint32试用类型:0-免费试用 | 1-付费试用trial_amountstring试用价格,当 trial_type 为 1(付费试用)时必填statusstring状态: draft:草稿 active:已激活 frozen:已冻结 payment_timingstring付费时机,取值之一:prepaid-预付费 / postpaid-后付费;默认 prepaid。 本期维度互斥:仅 (prepaid, quantity) 与 (postpaid, usage) 允许,其余组合拒绝billing_dimensionstring计费维度,取值之一:quantity-按购买量(席位) / usage-按用量 / mixed-混合(预留,本期拒绝);默认 quantityusage_thresholdstring用量阈值(新口径,替代金额口径 billing_threshold);后付费用量路线(billing_cycle_unit=over_threshold)时填写quantity_unitstring数量单位名称(商品级展示用,默认 unit)HeadersRequest-IdstringrequiredDefaults to 008e3967-a1b5-48bb-be14-d5bff5092e61请求的唯一标识符Response 200OKUpdated 3 months ago 获取商品定价列表查询定价方案版本Did this page help you?YesNo