简要描述
请求URL
http://xx.com/manager/apiChargeStrategy/get
请求方式
参数说明
参数名 | 必选 | 类型 | 说明 |
---|
chargeStrategyId | 是 | number | 策略id |
请求示例
{
"chargeStrategyId":1
}
添加成功返回示例
{
"code":0,
"data":{
"callerCode":"TEST_COMPANY",
"sourceCode":"haoduoshu",
"apiCode":"HDS_risk_tag",
"blIncome":false,
"effectDay":1612368000000,
"chargeStrategyId":1320,
"chargeModelType":1,
"status":1,
"gratisRuleVo":{
"gratisTimeType":"NO",
"gratisCustomStartTime":1612454400000,
"gratisCustomEndTime":000000000000000,
"gratisQuantity":10,
},
"repeatRuleVo":{
"blRepeat":true,
"repeatUnit":"DAY",
"repeatValue":1
},
"chargeRuleVo":{
"expressionJsonCase":"{'matchTag':1}",
"chargeRuleExpression":"matchTag == 1",
"chargeType":1,
"channelChargRuleList":[
{
"blSelect":1,
"chargeRuleExpression":"matchTag == 1",
"chargeRuleId":1,
"selectTime":1612454400000
}
]
},
"priceRuleVo":
{
"channel1":"jingodng",
"channel2":"JDM",
"shareProfitRule":"old",
"pricingType":"STANDARD",
"stepPricingCycle":"CUSTOM",
"stepPricingCycleCustomStartDay":1612454400000,
"stepPricingCycleCustomEndDay":1612454400000,
"pricingRangeVoList":[
{
"rangeBegin":0,
"rangeEnd":100,
"rangePrice":100
},
{
"rangeBegin":101,
"rangeEnd":-1,
"rangePrice":10
}
]
}
,
"createBy":"d4da924107144784a8aa8c123fe20c",
"createTime":1612496476000,
"updateBy":"d4da924107144784a8aa8c123fe20c",
"updateTime":1612496476000
},
"message":"success"
}
返回参数说明
参数名 | 类型 | 说明 |
---|
code | int | 0:成功/100:提示是否继续添加/400:参数错误 |
data{} | 是 | object | 说明 |
---|
callerCode | 是 | string | 调用主体代码 |
sourceCode | 是 | string | 数据源编码 |
apiCode | 是 | string | 接口编码 |
blINcome | 是 | boolean | 收支类型 -----收入:true/支出:false |
chargeModelType | 是 | number | 计费模式类型----普通模式:0|融慧分润模式:1|分渠道模式:2 |
status | 是 | number | 状态 1:有效|2:过期|3:废弃() |
effectDay | 是 | number | 策略生效时间 时间戳 |
gratisRuleVo | 否 | object | 免费规则 |
gratisRuleVo.gratisTimeType | 是 | string | 免费类型 ----不免费:NO/按日免费:DAY/按月免费:MONTH/按季度免费:QUARTER/自定义时间段免费:CUSTOM/按数量免费:NUMBER |
gratisRuleVo.gratisCustomStartTime | 否 | number | 自定义时间段免费 免费日期开始时间 时间戳 |
gratisRuleVo.gratisCustomEndTime | 否 | number | 自定义时间段免费 免费日期开始时间 时间戳 |
gratisRuleVo.gratisQuantity | 否 | number | 免费数量(注意:全部免费传0) |
repeatRuleVo | 否 | object | 去重规则 |
repeatRuleVo.blRepeat | 是 | boolean | 是否去重 |
repeatRuleVo.repeatUnit | 是 | string | 去重周期单位----分:minute/时:hour/天:day |
repeatRuleVo.repeatValue | 是 | number | 去重周期值 |
chargeRuleVo | 是 | object | 计费规则 |
chargeRuleVo.chargeType | 是 | string | 查得计费:1|查询计费:2|命中计费:3 |
chargeRuleVo.expressionJsonCase | 是 | string | 案例数据 |
chargeRuleVo.chargeRuleExpression | 是 | string | 计费表达式 |
chargeRuleVo.channelChargRuleList | 是 | array | 分渠道/分润计费规则列表 |
chargeRuleVo.channelChargRuleList.blSelect | 是 | boolean | 是否被选中 选中:true| 未选中:false |
chargeRuleVo.channelChargRuleList.chargeRuleExpression | 是 | string | 计费表达式 |
chargeRuleVo.channelChargRuleList.chargeRuleId | 是 | number | 规则id |
chargeRuleVo.channelChargRuleList.selectTime | 是 | number | 选中时间 |
priceRuleVo | 是 | array | 计价规则数组 |
priceRuleVo.channel1 | 否 | string | 渠道1/机构编码 |
priceRuleVo.channel2 | 否 | string | 渠道2/产品编码 |
priceRuleVo.shareProfitRule | 否 | string | 分润规则编码 |
priceRuleVo.pricingType | 是 | string | 计价类型----固定单价:UPRICF|标准阶梯:STANDARD|累计阶梯:LADDER |
priceRuleVo.stepPricingCycle | 是 | string | 阶梯计价周期----自然日:DAY|自然月:MONTH|自然季:QUARTER|自定义:CUSTOM |
priceRuleVo.stepPricingCycleCustomStartDay | 否 | number | 自定义时间段计费 日期开始时间 时间戳 |
priceRuleVo.stepPricingCycleCustomEndDay | 否 | number | 自定义时间段计费 日期结束时间 时间戳 |
priceRuleVo.pricingRangeVoList | 是 | array | 计价区间数组 |
priceRuleVo.pricingRangeVoList.rangeBegin | 是 | number | 区间开始(从1开始) |
priceRuleVo.pricingRangeVoList.rangeEnd | 是 | number | 区间结束(正无穷传-1) |
priceRuleVo.pricingRangeVoList.rangePrice | 是 | number | 区间价格(单位毫厘) |
备注