服务地址
| 地址 | 说明 |
|---|
| http://localhost:8080 | 开发环境 |
| https://api.leadwaycloud.com | 测试环境 |
接口详情
PUT
/api/discount-update/update/discount-TI/{id}
折扣修改接口
修改整单折扣(TI)接口
OperationId: updateDiscount
调用方法
PUT /api/discount-update/update/discount-TI/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: TIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | TIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-T/{id}
折扣修改接口
修改整单折扣(T)接口
OperationId: updateDiscount_1
调用方法
PUT /api/discount-update/update/discount-T/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: TDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreate | TDiscountCreateBO | 是 | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-I/{id}
折扣修改接口
修改单品折扣(I)接口
OperationId: updateDiscount_2
调用方法
PUT /api/discount-update/update/discount-I/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: IDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.IDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreateList | IDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-GSM/{id}
折扣修改接口
修改组合折扣(GSM)接口
OperationId: createDiscount
调用方法
PUT /api/discount-update/update/discount-GSM/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GSMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-GSI/{id}
折扣修改接口
修改组合折扣(GSI)接口
OperationId: updateDiscount_3
调用方法
PUT /api/discount-update/update/discount-GSI/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GSIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GSIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-GS/{id}
折扣修改接口
修改组合折扣(GS)接口
OperationId: updateDiscount_4
调用方法
PUT /api/discount-update/update/discount-GS/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GSDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GSDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-GMM/{id}
折扣修改接口
修改组合折扣(GMM)接口
OperationId: updateDiscount_5
调用方法
PUT /api/discount-update/update/discount-GMM/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GMMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GMMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-GMI/{id}
折扣修改接口
修改组合折扣(GMI)接口
OperationId: updateDiscount_6
调用方法
PUT /api/discount-update/update/discount-GMI/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GMIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-GIM/{id}
折扣修改接口
修改组合折扣(GIM)接口
OperationId: updateDiscount_7
调用方法
PUT /api/discount-update/update/discount-GIM/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GIMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GIMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-GII/{id}
折扣修改接口
修改组合折扣(GII)接口
OperationId: updateDiscount_8
调用方法
PUT /api/discount-update/update/discount-GII/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GIIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GIIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-E/{id}
折扣修改接口
修改权益兑换(E)接口
OperationId: updateDiscount_9
调用方法
PUT /api/discount-update/update/discount-E/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: EDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.EDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreateList | EDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-CSM/{id}
折扣修改接口
修改分类折扣(CSM)接口
OperationId: updateDiscount_10
调用方法
PUT /api/discount-update/update/discount-CSM/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: CSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CSMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CSMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-CMI/{id}
折扣修改接口
修改分类折扣(CMI)接口
OperationId: updateDiscount_11
调用方法
PUT /api/discount-update/update/discount-CMI/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: CMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CMIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CMIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-CMC/{id}
折扣修改接口
修改分类折扣(CMC)接口
OperationId: updateDiscount_12
调用方法
PUT /api/discount-update/update/discount-CMC/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: CMCDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CMCDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CMCDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-CCI/{id}
折扣修改接口
修改分类折扣(CCI)接口
OperationId: updateDiscount_13
调用方法
PUT /api/discount-update/update/discount-CCI/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: CCIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CCIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CCIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-CCC/{id}
折扣修改接口
修改分类折扣(CCC)接口
OperationId: updateDiscount_14
调用方法
PUT /api/discount-update/update/discount-CCC/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: CCCDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CCCDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CCCDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-C/{id}
折扣修改接口
修改分类折扣(C)接口
OperationId: updateDiscount_15
调用方法
PUT /api/discount-update/update/discount-C/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: CDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/update/discount-B/{id}
折扣修改接口
修改品牌折扣(B)接口
OperationId: updateDiscount_16
调用方法
PUT /api/discount-update/update/discount-B/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: BDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.BDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | BDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
PUT
/api/discount-update/stop/{id}
折扣修改接口
停用折扣接口
OperationId: stopDiscount
调用方法
PUT /api/discount-update/stop/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
PUT
/api/discount-update/sort/available-discount/{id}
折扣修改接口
对折扣进行排序接口
OperationId: sortAvailableDiscountByCreateCompany
调用方法
PUT /api/discount-update/sort/available-discount/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 修改折扣的公司ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: SortDiscountDTO[] com.leadwaycloud.discount.rule.model.dto.discount.update.SortDiscountDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| (array) | SortDiscountDTO[] | | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
PUT
/api/discount-update/online/{id}
折扣修改接口
上线折扣接口
OperationId: onlineDiscount
没有对接审核流程/审核失败,可通过该接口手工上线折扣
调用方法
PUT /api/discount-update/online/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-T
折扣检查接口
检查整单折扣(T)接口
OperationId: checkDiscount
调用方法
PUT /api/discount-check/check/discount-T
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: TDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreate | TDiscountCreateBO | 是 | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-TI
折扣检查接口
检查整单折扣(TI)接口
OperationId: checkDiscount_1
调用方法
PUT /api/discount-check/check/discount-TI
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: TIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | TIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-I
折扣检查接口
检查单品折扣(I)接口
OperationId: checkDiscount_2
调用方法
PUT /api/discount-check/check/discount-I
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: IDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.IDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreateList | IDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-GS
折扣检查接口
检查组合折扣(GS)接口
OperationId: checkDiscount_3
调用方法
PUT /api/discount-check/check/discount-GS
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GSDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GSDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-GSM
折扣检查接口
检查组合折扣(GSM)接口
OperationId: checkDiscount_4
调用方法
PUT /api/discount-check/check/discount-GSM
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GSMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-GMM
折扣检查接口
检查组合折扣(GMM)接口
OperationId: checkDiscount_5
调用方法
PUT /api/discount-check/check/discount-GMM
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GMMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GMMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-GMI
折扣检查接口
检查组合折扣(GMI)接口
OperationId: checkDiscount_6
调用方法
PUT /api/discount-check/check/discount-GMI
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GMIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-GIM
折扣检查接口
检查组合折扣(GIM)接口
OperationId: checkDiscount_7
调用方法
PUT /api/discount-check/check/discount-GIM
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GIMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GIMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-GII
折扣检查接口
检查组合折扣(GII)接口
OperationId: checkDiscount_8
调用方法
PUT /api/discount-check/check/discount-GII
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: GIIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GIIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-check/check/discount-E
折扣检查接口
检查权益兑换(E)接口
OperationId: checkDiscount_9
调用方法
PUT /api/discount-check/check/discount-E
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | query | 否 | integer(int64) | 折扣ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: EDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.EDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreateList | EDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/api/discount-cache/refresh/discount
折扣缓存
指定折扣缓存刷新接口
OperationId: noticeDiscountChange
调用方法
PUT /api/discount-cache/refresh/discount
参数
无
请求体
Content-Type: application/json 必填: 是 类型: DiscountChangeNoticeBO com.leadwaycloud.discount.core.business.calculate.model.DiscountChangeNoticeBO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountUpdateType | string | 是 | 折扣变更类型 【 ALL : 全部 MASTER : 主数据变更 】 | "ALL" |
| discountList | integer(int64)[] | 是 | 更新的折扣 | [1] |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
PUT
/api/discount-cache/refresh/config/{merchantId}
折扣缓存
商户折扣配置缓存刷新接口
OperationId: noticeDiscountConfigChange
调用方法
PUT /api/discount-cache/refresh/config/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
PUT
/api/coupon-active-update/update/order/{id}
优惠券活动修改接口
修改订单优惠券活动接口
OperationId: updateCouponActive
调用方法
PUT /api/coupon-active-update/update/order/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 优惠券活动ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: OrderCouponActiveCreateDTO com.leadwaycloud.discount.rule.model.dto.coupon.create.OrderCouponActiveCreateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| couponActiveId | integer(int64) | 否 | 优惠券活动ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 活动编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 活动描述 | "..." |
| type | string | 是 | 活动类型 【 MARKETING : 营销 ORDER : 交易 】 | "MARKETING" |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| couponActiveDetailCreateList | OrderCouponActiveDetailCreateBO[] | 是 | 优惠券活动详情创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | CouponActive | 否 | | |
PUT
/api/coupon-active-update/update/marketing/{id}
优惠券活动修改接口
修改营销优惠券活动接口
OperationId: updateCouponActive_1
调用方法
PUT /api/coupon-active-update/update/marketing/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 优惠券活动ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: MarketingCouponActiveCreateDTO com.leadwaycloud.discount.rule.model.dto.coupon.create.MarketingCouponActiveCreateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| couponActiveId | integer(int64) | 否 | 优惠券活动ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 活动编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 活动描述 | "..." |
| type | string | 是 | 活动类型 【 MARKETING : 营销 ORDER : 交易 】 | "MARKETING" |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| couponActiveDetailCreateList | MarketingCouponActiveDetailCreateBO[] | 是 | 优惠券活动详情创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | CouponActive | 否 | | |
PUT
/api/coupon-active-update/stop/{id}
优惠券活动修改接口
停用优惠券活动接口
OperationId: stopCouponActive
调用方法
PUT /api/coupon-active-update/stop/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 优惠券活动ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
PUT
/api/coupon-active-update/online/{id}
优惠券活动修改接口
上线优惠券活动接口
OperationId: onlineCouponActive
没有对接审核流程/审核失败,可通过该接口手工上线折扣
调用方法
PUT /api/coupon-active-update/online/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 优惠券活动ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
POST
/api/discount-query/query/more
折扣查询接口
查询折扣(多个ID)接口
OperationId: queryDiscount
调用方法
POST /api/discount-query/query/more
参数
无
请求体
Content-Type: application/json 必填: 是 类型: integer(int64)[]
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| (array) | integer(int64)[] | | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster[] | 否 | 返回数据 | |
POST
/api/discount-query/query/more/generate-data
折扣查询接口
查询折扣生成数据(多个ID)接口
OperationId: queryDiscountGenerateData
调用方法
POST /api/discount-query/query/more/generate-data
参数
无
请求体
Content-Type: application/json 必填: 是 类型: integer(int64)[]
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| (array) | integer(int64)[] | | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountGenerateDTO com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountGenerateDTO[] | 否 | 返回数据 | |
POST
/api/discount-query/query/disc-exclude-link
折扣查询接口
查询折扣互斥链路接口
OperationId: queryDiscountExcludeLink
调用方法
POST /api/discount-query/query/disc-exclude-link
参数
无
请求体
Content-Type: application/json 必填: 是 类型: QueryDiscountExcludeLinkDTO com.leadwaycloud.discount.rule.model.dto.discount.query.QueryDiscountExcludeLinkDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| id | integer(int64) | 否 | 折扣ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 折扣名称 | "双12床上用品单品促销" |
| calcIndex | integer(int32) | 是 | 计算顺序(数值越小越先计算) | 999999 |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountSortBO com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.business.rule.model.DiscountSortBO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountSortBO[] | 否 | 返回数据 | |
POST
/api/discount-query/query/disc-exclude-link/all
折扣查询接口
查询全部未过期折扣互斥链路接口
OperationId: queryDiscountExcludeLink_1
调用方法
POST /api/discount-query/query/disc-exclude-link/all
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountSortBO com.leadwaycloud.core.model.RJava.util.MapJava.lang.IntegerJava.util.ListCom.leadwaycloud.discount.core.business.rule.model.DiscountSortBO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
POST
/api/discount-merchant-data-init/goods/{merchantId}
商户数据初始化接口
初始化商品接口
OperationId: initGoods
csv文件【编号,名称,分类编号,价格,是否禁止销售(Y/N),是否禁止折扣(Y/N)】
调用方法
POST /api/discount-merchant-data-init/goods/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
Content-Type: application/json 必填: 否 类型: object
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| file | string(binary) | 是 | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
POST
/api/discount-merchant-data-init/goods-category/{merchantId}
商户数据初始化接口
初始化商品分类接口
OperationId: initGoodsCategory
csv文件【编号,名称】
调用方法
POST /api/discount-merchant-data-init/goods-category/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
Content-Type: application/json 必填: 否 类型: object
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| file | string(binary) | 是 | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
POST
/api/discount-merchant-config/setting/{merchantId}
商户折扣配置接口
设置商户折扣配置接口
OperationId: settingMerchantConfig
调用方法
POST /api/discount-merchant-config/setting/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: DiscountMerchantConfigBO com.leadwaycloud.discount.core.business.rule.model.DiscountMerchantConfigBO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| openDiscModel | string[] | 否 | 开放的折扣模式(默认:["I","T"]) | ["I","T"] |
| calcModel | string[][] | 否 | 折扣计算模式(默认:{{"I"}, {"T"}}) | [["I"],["T"]] |
| tradeRefundMaxDay | integer(int32) | 否 | 交易最大可退货天数(默认:7) | 7 |
| maxDiscountRuleCount | integer(int32) | 否 | 最大有效折扣条数(默认:100) | 100 |
| maxSingleDiscountRuleGroupCount | integer(int32) | 否 | 最大单个折扣组个数(默认:10) | 10 |
| maxSingleDiscountRuleSingleGroupItemCount | integer(int32) | 否 | 最大单个折扣单个组商品/分类个数(默认:20) | 20 |
| maxSglDiscRuleSglGrpTagCount | integer(int32) | 否 | 单个折扣组自定义标签最大条数(默认:20) | 20 |
| useLwcCouponSystem | boolean | 否 | 是否使用立威云优惠券系统(默认:false) | false |
| useLwcCrmSystem | boolean | 否 | 是否使用立威云CRM系统(默认:false) | false |
| saveCalcResult | boolean | 否 | 是否保留计算结果(默认:false) | false |
| baseType | string | 否 | 最优方式(默认:MERCHANT【商户最优】) 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】 | "MERCHANT" |
| pricingType | string | 否 | 商品参与折扣计价方式(默认:AVG_PC【均价】) 【 AVG_PC : 均价 FAC_PC : 票面价 】 | "AVG_PC" |
| discountExcludeMethod | string | 否 | 折扣互斥方式(默认:DOWN【向下互斥】) 【 UP : 向上互斥 DOWN : 向下互斥 】 | "DOWN" |
| discountExcludeSolveMethod | string | 否 | 折扣互斥处理方式(默认:SEQUENCE【顺序计算】) 【 SEQUENCE : 顺序计算 EXCLUDE_REORDER : 互斥的折扣重新排序(不允许全场排除) 】 | "SEQUENCE" |
| openOverflow | boolean | 否 | 是否允许折扣值溢出(默认:false) | false |
| rightsRealTimeUsage | boolean | 否 | 当笔交易赠送的权益允许在当笔交易使用(默认:false) | false |
| saMethod | string | 否 | 一口价方式(不含GSM)(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】 | "SINGLE" |
| saPackFullFill | boolean | 否 | 一口价方式(不含GSM)为打包时是否需要条件商品数量全部满足(默认:true) | true |
| groupShareModel | string | 否 | 组内参与商品分摊模式(默认:BY_ITEM【根据商品分摊】) | "BY_ITEM" |
| itemShareRateOnlyTarget | boolean | 否 | 商品分摊指定比例是否仅目标商品参与(默认:true) | true |
| itemShareRateCompulsion | boolean | 否 | 商品分摊指定比例是否强制满足(默认:true) | true |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
POST
/api/discount-merchant-config/data-partition/{merchantId}
商户折扣配置接口
商户数据分区接口
OperationId: merchantDataPartition
调用方法
POST /api/discount-merchant-config/data-partition/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
POST
/api/discount-merchant-channel/setting/{merchantId}
商户折扣渠道接口
设置商户渠道接口
OperationId: settingMerchantChannel
调用方法
POST /api/discount-merchant-channel/setting/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: DiscountMerchantChannelDTO com.leadwaycloud.discount.rule.model.dto.common.DiscountMerchantChannelDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| channel | string | 是 | 渠道编号 | "1" |
| name | string | 是 | 渠道名称 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
POST
/api/discount-merchant-calc-index/setting/{merchantId}
商户折扣顺序接口
设置商户计算顺序接口
OperationId: settingMerchantCalcIndex
调用方法
POST /api/discount-merchant-calc-index/setting/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
Content-Type: application/json 必填: 是 类型: DiscountMerchantCalcIndexDTO com.leadwaycloud.discount.rule.model.dto.common.DiscountMerchantCalcIndexDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| calcIndex | integer(int32) | 是 | 计算顺序 | 1 |
| name | string | 是 | 计算顺序名称 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
POST
/api/discount-create/create/discount-T
折扣创建接口
创建整单折扣(T)接口
OperationId: createDiscount_1
调用方法
POST /api/discount-create/create/discount-T
参数
无
请求体
Content-Type: application/json 必填: 是 类型: TDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreate | TDiscountCreateBO | 是 | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-TI
折扣创建接口
创建整单折扣(TI)接口
OperationId: createDiscount_2
调用方法
POST /api/discount-create/create/discount-TI
参数
无
请求体
Content-Type: application/json 必填: 是 类型: TIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | TIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-I
折扣创建接口
创建单品折扣(I)接口
OperationId: createDiscount_3
调用方法
POST /api/discount-create/create/discount-I
参数
无
请求体
Content-Type: application/json 必填: 是 类型: IDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.IDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreateList | IDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-GS
折扣创建接口
创建组合折扣(GS)接口
OperationId: createDiscount_4
调用方法
POST /api/discount-create/create/discount-GS
参数
无
请求体
Content-Type: application/json 必填: 是 类型: GSDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GSDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-GSM
折扣创建接口
创建组合折扣(GSM)接口
OperationId: createDiscount_5
调用方法
POST /api/discount-create/create/discount-GSM
参数
无
请求体
Content-Type: application/json 必填: 是 类型: GSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GSMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-GSI
折扣创建接口
创建组合折扣(GSI)接口
OperationId: createDiscount_6
调用方法
POST /api/discount-create/create/discount-GSI
参数
无
请求体
Content-Type: application/json 必填: 是 类型: GSIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GSIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-GMM
折扣创建接口
创建组合折扣(GMM)接口
OperationId: createDiscount_7
调用方法
POST /api/discount-create/create/discount-GMM
参数
无
请求体
Content-Type: application/json 必填: 是 类型: GMMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GMMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-GMI
折扣创建接口
创建组合折扣(GMI)接口
OperationId: createDiscount_8
调用方法
POST /api/discount-create/create/discount-GMI
参数
无
请求体
Content-Type: application/json 必填: 是 类型: GMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GMIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-GIM
折扣创建接口
创建组合折扣(GIM)接口
OperationId: createDiscount_9
调用方法
POST /api/discount-create/create/discount-GIM
参数
无
请求体
Content-Type: application/json 必填: 是 类型: GIMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GIMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-GII
折扣创建接口
创建组合折扣(GII)接口
OperationId: createDiscount_10
调用方法
POST /api/discount-create/create/discount-GII
参数
无
请求体
Content-Type: application/json 必填: 是 类型: GIIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | GIIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-E
折扣创建接口
创建权益兑换(E)接口
OperationId: createDiscount_11
调用方法
POST /api/discount-create/create/discount-E
参数
无
请求体
Content-Type: application/json 必填: 是 类型: EDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.EDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| discountCreateList | EDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-C
折扣创建接口
创建分类折扣(C)接口
OperationId: createDiscount_12
调用方法
POST /api/discount-create/create/discount-C
参数
无
请求体
Content-Type: application/json 必填: 是 类型: CDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-CSM
折扣创建接口
创建分类折扣(CSM)接口
OperationId: createDiscount_13
调用方法
POST /api/discount-create/create/discount-CSM
参数
无
请求体
Content-Type: application/json 必填: 是 类型: CSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CSMDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CSMDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-CMI
折扣创建接口
创建分类折扣(CMI)接口
OperationId: createDiscount_14
调用方法
POST /api/discount-create/create/discount-CMI
参数
无
请求体
Content-Type: application/json 必填: 是 类型: CMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CMIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CMIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-CMC
折扣创建接口
创建分类折扣(CMC)接口
OperationId: createDiscount_15
调用方法
POST /api/discount-create/create/discount-CMC
参数
无
请求体
Content-Type: application/json 必填: 是 类型: CMCDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CMCDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CMCDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-CCI
折扣创建接口
创建分类折扣(CCI)接口
OperationId: createDiscount_16
调用方法
POST /api/discount-create/create/discount-CCI
参数
无
请求体
Content-Type: application/json 必填: 是 类型: CCIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CCIDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CCIDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-CCC
折扣创建接口
创建分类折扣(CCC)接口
OperationId: createDiscount_17
调用方法
POST /api/discount-create/create/discount-CCC
参数
无
请求体
Content-Type: application/json 必填: 是 类型: CCCDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CCCDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | CCCDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-create/create/discount-B
折扣创建接口
创建分类折扣(B)接口
OperationId: createDiscount_18
调用方法
POST /api/discount-create/create/discount-B
参数
无
请求体
Content-Type: application/json 必填: 是 类型: BDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.BDiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| discountMasterId | integer(int64) | 否 | 折扣主数据ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 折扣编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 折扣描述 | "..." |
| calcIndex | string | 否 | 计算顺序(数值越小越先计算) | "999999" |
| discountModel | string | 是 | 折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 | "I" |
| startDate | string | 是 | 折扣开始日期 | "2022-01-01" |
| endDate | string | 是 | 折扣结束日期 | "2022-01-01" |
| storeScope | StoreScopeFormatBO | 否 | | |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| beforeCondition | DiscBeforeConditionBO | 否 | | |
| excludeDisc | ExcludeDiscFormatBO | 否 | | |
| openDynamic | boolean | 否 | 开启动态折扣 | |
| openBest | boolean | 否 | 开启规则内最优 | false |
| templateCode | string | 否 | 折扣模版编号(前端用) | |
| strategyId | integer(int64) | 否 | 策略ID | |
| shareType | string | 是 | 折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】 | "NONE" |
| discountCreateList | BDiscountCreateBO[] | 是 | 折扣创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
POST
/api/discount-calc-data/manual-generate/{id}
折扣计算数据接口
手工生成折扣计算数据接口
OperationId: manualGenerateDiscountCalcData
调用方法
POST /api/discount-calc-data/manual-generate/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
POST
/api/coupon-active-update/un-bind-to-discount-master-item/{merchantId}/{couponActiveGroupCode}
优惠券活动修改接口
绑定优惠券活动项到折扣规则项接口
OperationId: unbindCouponActiveItemToDiscountMasterItem
调用方法
POST /api/coupon-active-update/un-bind-to-discount-master-item/{merchantId}/{couponActiveGroupCode}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
| couponActiveGroupCode | path | 是 | string | 优惠券活动分组编号 | "xxx" |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
POST
/api/coupon-active-update/bind-to-discount-master-item
优惠券活动修改接口
绑定优惠券活动项到折扣规则项接口
OperationId: bindCouponActiveItemToDiscountMasterItem
调用方法
POST /api/coupon-active-update/bind-to-discount-master-item
参数
无
请求体
Content-Type: application/json 必填: 是 类型: BindDiscountMasterItemDTO[] com.leadwaycloud.discount.rule.model.dto.coupon.bind.BindDiscountMasterItemDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| (array) | BindDiscountMasterItemDTO[] | | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
POST
/api/coupon-active-query/query/more
优惠券活动查询接口
查询优惠券活动(多个ID)接口
OperationId: queryCouponActive
调用方法
POST /api/coupon-active-query/query/more
参数
无
请求体
Content-Type: application/json 必填: 是 类型: integer(int64)[]
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| (array) | integer(int64)[] | | | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.CouponActive
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | CouponActive[] | 否 | 返回数据 | |
POST
/api/coupon-active-create/create/order
优惠券活动创建接口
创建订单优惠券活动接口
OperationId: createDiscount_19
调用方法
POST /api/coupon-active-create/create/order
参数
无
请求体
Content-Type: application/json 必填: 是 类型: OrderCouponActiveCreateDTO com.leadwaycloud.discount.rule.model.dto.coupon.create.OrderCouponActiveCreateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| couponActiveId | integer(int64) | 否 | 优惠券活动ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 活动编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 活动描述 | "..." |
| type | string | 是 | 活动类型 【 MARKETING : 营销 ORDER : 交易 】 | "MARKETING" |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| couponActiveDetailCreateList | OrderCouponActiveDetailCreateBO[] | 是 | 优惠券活动详情创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | CouponActive | 否 | | |
POST
/api/coupon-active-create/create/marketing
优惠券活动创建接口
创建营销优惠券活动接口
OperationId: createDiscount_20
调用方法
POST /api/coupon-active-create/create/marketing
参数
无
请求体
Content-Type: application/json 必填: 是 类型: MarketingCouponActiveCreateDTO com.leadwaycloud.discount.rule.model.dto.coupon.create.MarketingCouponActiveCreateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| couponActiveId | integer(int64) | 否 | 优惠券活动ID | 1 |
| merchantId | integer(int64) | 是 | 商户ID | 1 |
| companyId | integer(int64) | 是 | 公司ID | 1 |
| code | string | 是 | 活动编号 | "20221212-01" |
| name | string | 是 | 名称 | "xxx" |
| description | string | 否 | 活动描述 | "..." |
| type | string | 是 | 活动类型 【 MARKETING : 营销 ORDER : 交易 】 | "MARKETING" |
| channelScope | ChannelScopeFormatBO | 否 | | |
| memberScope | MemberScopeFormatBO | 否 | | |
| couponActiveDetailCreateList | MarketingCouponActiveDetailCreateBO[] | 是 | 优惠券活动详情创建数据 | |
响应
状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | CouponActive | 否 | | |
GET
/api/monitor/version
服务监控管理
获取服务版本信息
OperationId: version
调用方法
GET /api/monitor/version
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Object com.leadwaycloud.core.model.RJava.lang.Object
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
GET
/api/monitor/health
服务监控管理
心跳检查
OperationId: health
调用方法
GET /api/monitor/health
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Object com.leadwaycloud.core.model.RJava.lang.Object
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
GET
/api/discount-security/page-query
折扣操作记录接口
查询折扣操作记录(分页)接口
OperationId: pageQueryDiscount
调用方法
GET /api/discount-security/page-query
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| page | query | 是 | integer(int32) | 查询页码 | 0 |
| size | query | 是 | integer(int32) | 查询页行数 | 10 |
| type | query | 否 | string | 项类型 | "GOODS" |
| operator | query | 否 | string | 操作人名称(ID/名称) | "x" |
| discount | query | 否 | string | 折扣数据(编号/名称) | "x" |
| operatorDate | query | 否 | string | 操作日期 | "2020-10-11" |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountSecurity com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.DiscountSecurity
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountSecurity | 否 | | |
GET
/api/discount-query/query/{id}
折扣查询接口
查询折扣(ID)接口
OperationId: queryDiscount_1
调用方法
GET /api/discount-query/query/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMaster | 否 | | |
GET
/api/discount-query/query/generate-data/{id}
折扣查询接口
查询折扣生成数据(ID)接口
OperationId: queryDiscountGenerateData_1
调用方法
GET /api/discount-query/query/generate-data/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountGenerateDTO com.leadwaycloud.core.model.RCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountGenerateDTO | 否 | | |
GET
/api/discount-query/page-query
折扣查询接口
查询折扣(分页)接口
OperationId: pageQueryDiscount_1
调用方法
GET /api/discount-query/page-query
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| page | query | 是 | integer(int32) | 查询页码 | 0 |
| size | query | 是 | integer(int32) | 查询页行数 | 10 |
| merchantId | query | 是 | long | 商户ID | 1 |
| companyId | query | 否 | long | 创建公司ID | 1 |
| discountModel | query | 否 | string | 折扣模式 | "I" |
| code | query | 否 | string | 折扣编号 | 20250512142858652 |
| name | query | 否 | string | 折扣名称 | "双12床上用品单品促销" |
| statusList | query | 否 | string | 未生效的状态列表 | [] |
| strategyId | query | 否 | long | 策略ID | 1 |
| joinCompany | query | 否 | long | 参与公司ID | 1 |
| joinChannel | query | 否 | string | 参与渠道 | "x" |
| joinItemCode | query | 否 | string | 参与商品编号 | 100001 |
| joinCategoryId | query | 否 | long | 参与商品分类ID | 1 |
| joinBrandId | query | 否 | long | 参与商品品牌ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: SimpleDiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.SimpleDiscountMaster
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | SimpleDiscountMaster | 否 | | |
GET
/api/discount-query/page-query/generate-data
折扣查询接口
查询折扣生成数据(分页)接口
OperationId: pageQueryDiscountGenerateData
调用方法
GET /api/discount-query/page-query/generate-data
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| page | query | 是 | integer(int32) | 查询页码 | 0 |
| size | query | 是 | integer(int32) | 查询页行数 | 10 |
| merchantId | query | 是 | long | 商户ID | 1 |
| companyId | query | 否 | long | 创建公司ID | 1 |
| discountModel | query | 否 | string | 折扣模式 | "I" |
| code | query | 否 | string | 折扣编号 | 20250512142858652 |
| name | query | 否 | string | 折扣名称 | "双12床上用品单品促销" |
| statusList | query | 否 | string | 未生效的状态列表 | [] |
| strategyId | query | 否 | long | 策略ID | 1 |
| joinCompany | query | 否 | long | 参与公司ID | 1 |
| joinChannel | query | 否 | string | 参与渠道 | "x" |
| joinItemCode | query | 否 | string | 参与商品编号 | 100001 |
| joinCategoryId | query | 否 | long | 参与商品分类ID | 1 |
| joinBrandId | query | 否 | long | 参与商品品牌ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountGenerateDTO com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountGenerateDTO | 否 | | |
GET
/api/discount-merchant-config/query/{merchantId}
商户折扣配置接口
查询商户折扣配置接口
OperationId: getMerchantConfig
调用方法
GET /api/discount-merchant-config/query/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMerchantConfig com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantConfig
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMerchantConfig | 否 | | |
GET
/api/discount-merchant-config/query/dynamic/{merchantId}
商户折扣配置接口
查询商户动态折扣配置接口
OperationId: queryMerchantDynamicConfig
调用方法
GET /api/discount-merchant-config/query/dynamic/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMerchantConfigBO com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.business.rule.model.DiscountMerchantConfigBO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMerchantConfigBO | 否 | | |
GET
/api/discount-merchant-channel/query/{merchantId}
商户折扣渠道接口
查询商户渠道接口
OperationId: queryMerchantChannel
调用方法
GET /api/discount-merchant-channel/query/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMerchantChannel com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantChannel
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMerchantChannel[] | 否 | 返回数据 | |
GET
/api/discount-merchant-calc-index/query/{merchantId}
商户折扣顺序接口
查询商户计算顺序接口
OperationId: queryMerchantCalcIndex
调用方法
GET /api/discount-merchant-calc-index/query/{merchantId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountMerchantCalcIndex com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantCalcIndex
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountMerchantCalcIndex[] | 否 | 返回数据 | |
GET
/api/coupon-active-update/query/bind-discount-master-generate-data/{merchantId}/{couponActiveGroupCode}
优惠券活动修改接口
查询优惠券活动项绑定的折扣规则接口
OperationId: queryCouponActiveItemBindDiscountMasterGenerateData
调用方法
GET /api/coupon-active-update/query/bind-discount-master-generate-data/{merchantId}/{couponActiveGroupCode}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| merchantId | path | 是 | integer(int64) | 商户ID | 1 |
| couponActiveGroupCode | path | 是 | string | 优惠券活动分组编号 | "xxx" |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: DiscountGenerateDTO com.leadwaycloud.core.model.RCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | DiscountGenerateDTO | 否 | | |
GET
/api/coupon-active-query/query/{id}
优惠券活动查询接口
查询优惠券活动(ID)接口
OperationId: queryCouponActive_1
调用方法
GET /api/coupon-active-query/query/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 优惠券活动ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | CouponActive | 否 | | |
GET
/api/coupon-active-query/page-query
优惠券活动查询接口
查询公司创建的优惠券活动(分页)接口
OperationId: pageQueryCouponActive
调用方法
GET /api/coupon-active-query/page-query
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| page | query | 是 | integer(int32) | 查询页码 | 0 |
| size | query | 是 | integer(int32) | 查询页行数 | 10 |
| companyId | query | 是 | long | 公司ID | 1 |
| code | query | 否 | string | 活动编号 | |
| name | query | 否 | string | 活动名称 | "双12床上用品单品促销" |
| type | query | 否 | string | 活动类型 | "MARKETING" |
| statusList | query | 否 | string | 未生效的状态列表 | [] |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.CouponActive
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | CouponActive | 否 | | |
DELETE
/api/discount-merchant-channel/delete/{channelId}
商户折扣渠道接口
删除商户渠道接口
OperationId: deleteMerchantChannel
物理删除
调用方法
DELETE /api/discount-merchant-channel/delete/{channelId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| channelId | path | 是 | integer(int64) | 商户渠道ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
DELETE
/api/discount-merchant-calc-index/delete/{calcIndexId}
商户折扣顺序接口
删除商户计算顺序接口
OperationId: deleteMerchantCalcIndex
物理删除
调用方法
DELETE /api/discount-merchant-calc-index/delete/{calcIndexId}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| calcIndexId | path | 是 | integer(int64) | 商户计算顺序ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
DELETE
/api/discount-delete/delete/{id}
折扣删除接口
删除折扣接口
OperationId: deleteDiscount
调用方法
DELETE /api/discount-delete/delete/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
DELETE
/api/discount-calc-data/remove/{id}
折扣计算数据接口
删除折扣计算数据接口
OperationId: removeDiscountCalcData
物理删除
调用方法
DELETE /api/discount-calc-data/remove/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 折扣ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
DELETE
/api/coupon-active-delete/delete/{id}
优惠券活动删除接口
删除优惠券活动接口
OperationId: deleteDiscount_1
调用方法
DELETE /api/coupon-active-delete/delete/{id}
参数
| 名称 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|
| id | path | 是 | integer(int64) | 优惠券活动ID | 1 |
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | boolean | 否 | 返回数据 | |
GET
/error
main-site-error-handler
-
OperationId: handleError
调用方法
GET /error
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
POST
/error
main-site-error-handler
-
OperationId: handleError_1
调用方法
POST /error
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PUT
/error
main-site-error-handler
-
OperationId: handleError_2
调用方法
PUT /error
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
DELETE
/error
main-site-error-handler
-
OperationId: handleError_3
调用方法
DELETE /error
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
PATCH
/error
main-site-error-handler
-
OperationId: handleError_4
调用方法
PATCH /error
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
OPTIONS
/error
main-site-error-handler
-
OperationId: handleError_6
调用方法
OPTIONS /error
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
HEAD
/error
main-site-error-handler
-
OperationId: handleError_5
调用方法
HEAD /error
参数
无
请求体
无
响应
状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|
| status | integer(int32) | 是 | 状态码 | 200 |
| code | string | 是 | 业务代码 | "000" |
| message | string | 是 | 消息描述 | "成功" |
| data | object | 否 | 返回数据 | |
模型定义