文档
测试

新增返利接口

POST
http://172.18.2.20:8801/newSpRebate

接口描述

测试地址 172.18.10.230

请求参数

参数名
类型
描述
必填
mainTable
array
数据列表
必填
id
string
示例:L6UF4H5JU0046
必填
infoId
string
示例:L5VE27TL70000
必填
offerType
string
示例:1
必填
scode
string
示例:ZSJH
必填
wname
string
示例:鱿鱼须
必填
wcode
string
示例:VRA01022
必填
spec
string
示例:
必填
unit
string
示例:
必填
iscumulative
string
示例:1
必填
ruleDetails
string
示例:123121232
必填
createTime
string
示例:2021-06-30 15:47:58
必填
updateTime
string
示例:2021-06-22 00:00:00
必填
ccName
string
示例:P001
必填
restartTime
string
示例:2021-06-24
必填
reendTime
string
示例:2021-06-15
必填
rebateType
string
返利类型 1:按数量;2:按金额
必填
rebateLogic
string
返利逻辑 1:按到货;2:按下单
必填

响应参数

参数名
类型
描述
必填
reVal
string
示例:true
必填

说明 / 示例

{ "mainTable": [ { "id": "L6UF4H5JU0046", "infoId": "L5VE27TL70000", "offerType": "1", "scode": "ZSJH", "wname": "鱿鱼须", "wcode": "VRA01022", "spec": "", "unit": "", "beginDate": "2021-06-07", "endDate": "2021-06-17", "iscumulative": "1", "ruleDetails": "123121232", "createTime": "2021-06-30 15:47:58", "updateTime": "2021-06-22 00:00:00", "ccName": "P001", "rebateQuantity": "123", "rebateAmount": "123", "restartTime": "2021-06-24", "reendTime": "2021-06-15" }, { "id": "L6UG1NBIF0008", "infoId": "L5RF195740035", "offerType": "0", "scode": "ZSJH", "wname": "椰丝蝴蝶虾", "wcode": "666", "spec": "", "unit": "", "beginDate": "2021-06-07", "endDate": "2021-06-17", "iscumulative": "1", "ruleDetails": "123121232", "createTime": "2021-06-30 15:47:58", "updateTime": "2021-06-22 00:00:00", "ccName": "P001", "rebateQuantity": "123", "rebateAmount": "123", "restartTime": "2021-06-24", "reendTime": "2021-06-15" } ] } 返回值 正确: {"reVal":"true"} 错误: {"err":"err"}