帮助中心

1314-券库修改接口

2020-10-16

接口编号 1314

接口说明

  1. 券库编辑;调用ezr的接口,外部系统编辑券库

  2. 支持修改字段 副标题,适用门店、适用商品

请求说明

  • HTTP请求方式:POST

  • 返回数据格式:JSON

  • 请求路径:api/CCoup/CoupGrpEdit(调用方提供支持POST方式的接口地址)

请求参数


字段类型为空长度描述
Codestring1~64外部的券编号(唯一编号)
Subtitlestring1~36副标题
ApplyTypestring1~2组织类型(BD=全部用户,PQ=片区用户,GP=店群用户,SH=门店用户)
ApplyIsExcludebool
组织是否排除
CouponProIsExcludebool
商品是否排除
Applystring[]
组织编号
CouponProTypestring
商品券类型(0=商品券,1= Sku券2=品类券)
CouponProstring[]
商品编号
UseSystemstring
使用系统范围:EZR-MALL, EZR-ALL
GrpProConTypeint
券库关联商品类型 0指定商品  1指定条件
ProBDTypeint
0全部品牌  1部分品牌
IsContainBDstring
1包含  0排除
ProdBrandCodesstring[]
包含/排除的品牌Code
ProCateTypeint
0全部分类  1部分分类
IsContainCatestring
1包含  0排除
ProdCateCodesstring[]
包含/排除的分类名称


请求参数示例代码(json对象)

{

"Code": "qwer123123123",

"Subtitle": "测试",

"ApplyType": "PQ",

"ApplyIsExclude":false,

"CouponProIsExclude": false,

"CouponProIsExclude": false,

"Apply": ["","",...],

"CouponProType": "1",

"CouponPro":  ["","",...],

"UseSystem":  "EZR-MALL",

"GrpProConType":0,

"ProBDType":0,

"IsContainBD":"0",

"ProdBrandCodes":[],

"ProCateType":0,

"IsContainCate":"0",

"ProdCateCodes":[]

}

业务返回结果示例(json对象):

{

"Code": true,

"StatusCode": 200,

"Msg": "成功",

"Timestamp": "20150622093101",

"Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",

"Result": 见业务返回结果示例,

}

业务返参:

" "

 


1223