复制/查看api策略

简要描述
  • 复制/查看api策略
请求URL
  • http://xx.com/manager/apiChargeStrategy/get
请求方式
  • POST
参数说明
参数名必选类型说明
chargeStrategyIdnumber策略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"
}
返回参数说明
参数名类型说明
codeint0:成功/100:提示是否继续添加/400:参数错误
data{}object说明
callerCodestring调用主体代码
sourceCodestring数据源编码
apiCodestring接口编码
blINcomeboolean收支类型 -----收入:true/支出:false
chargeModelTypenumber计费模式类型----普通模式:0|融慧分润模式:1|分渠道模式:2
statusnumber状态 1:有效|2:过期|3:废弃()
effectDaynumber策略生效时间 时间戳
gratisRuleVoobject免费规则
gratisRuleVo.gratisTimeTypestring免费类型 ----不免费:NO/按日免费:DAY/按月免费:MONTH/按季度免费:QUARTER/自定义时间段免费:CUSTOM/按数量免费:NUMBER
gratisRuleVo.gratisCustomStartTimenumber自定义时间段免费 免费日期开始时间 时间戳
gratisRuleVo.gratisCustomEndTimenumber自定义时间段免费 免费日期开始时间 时间戳
gratisRuleVo.gratisQuantitynumber免费数量(注意:全部免费传0)
repeatRuleVoobject去重规则
repeatRuleVo.blRepeatboolean是否去重
repeatRuleVo.repeatUnitstring去重周期单位----分:minute/时:hour/天:day
repeatRuleVo.repeatValuenumber去重周期值
chargeRuleVoobject计费规则
chargeRuleVo.chargeTypestring查得计费:1|查询计费:2|命中计费:3
chargeRuleVo.expressionJsonCasestring案例数据
chargeRuleVo.chargeRuleExpressionstring计费表达式
chargeRuleVo.channelChargRuleListarray分渠道/分润计费规则列表
chargeRuleVo.channelChargRuleList.blSelectboolean是否被选中 选中:true| 未选中:false
chargeRuleVo.channelChargRuleList.chargeRuleExpressionstring计费表达式
chargeRuleVo.channelChargRuleList.chargeRuleIdnumber规则id
chargeRuleVo.channelChargRuleList.selectTimenumber选中时间
priceRuleVoarray计价规则数组
priceRuleVo.channel1string渠道1/机构编码
priceRuleVo.channel2string渠道2/产品编码
priceRuleVo.shareProfitRulestring分润规则编码
priceRuleVo.pricingTypestring计价类型----固定单价:UPRICF|标准阶梯:STANDARD|累计阶梯:LADDER
priceRuleVo.stepPricingCyclestring阶梯计价周期----自然日:DAY|自然月:MONTH|自然季:QUARTER|自定义:CUSTOM
priceRuleVo.stepPricingCycleCustomStartDaynumber自定义时间段计费 日期开始时间 时间戳
priceRuleVo.stepPricingCycleCustomEndDaynumber自定义时间段计费 日期结束时间 时间戳
priceRuleVo.pricingRangeVoListarray计价区间数组
priceRuleVo.pricingRangeVoList.rangeBeginnumber区间开始(从1开始)
priceRuleVo.pricingRangeVoList.rangeEndnumber区间结束(正无穷传-1)
priceRuleVo.pricingRangeVoList.rangePricenumber区间价格(单位毫厘)
备注
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值