- iPaaS三方执行动作
- 会员通
- 积分通
- 商品通
- 导购通
- 电子卡券通
- 订单通
- 储值通
- 优惠券通
- 基础组件
- 库存通
- 标签通
- 门店通
- 分销员通
- 权益卡通
- 试用单通
- StockQueryExtension
优惠券模板更新
POST
/VoucherTemplateUpdateExtension
请求参数
Body 参数application/json
rootKdtId
integer <int64>
有赞店铺总部Id
appId
string
必需
globalProps
object (Map«Object»)
全局变量
key
object (key)
可选
extendMap
object (Map«Object»)
必需
key
object (key)
可选
event
enum<string>
事件类型
枚举值:
createupdatedeleteinvalidateinvalid
kdtId
integer <int64>
当前店铺 id
outStoreId
string
三方门店 id
outVoucherTemplateId
string
外部券模板Id
voucherTemplateId
integer <int64>
必需
outOpenId
string
三方会员 id
voucherTemplateInfo
object (VoucherTemplateInfo)
优惠券信息
applicableGoodsRule
object (ApplicableGoodsRule)
可用商品规则
title
string
标题
value
integer <int64>
必需
remark
string
活动备注
description
string
描述
status
integer
可选
voucherTemplateType
integer
必需
createdAt
string <date-time>
可选
时间格式:yyyy-MM-dd HH:mm:ss
updatedAt
string <date-time>
可选
时间格式:yyyy-MM-dd HH:mm:ss
sendStockQty
integer <int64>
库存
applicableShopRangeType
enum<integer>
必需
枚举值:
123
applicableShopInfos
array[object (ApplicableShopInfo) {2}]
可选
applicableOnlineGoodsRangeType
enum<integer>
必需
枚举值:
0123
applicableOnlineGoodsInfos
array[object (ApplicableGoodsInfo) {4}]
可选
与 applicableOnlineGoodsRangeType 配合使用
applicableOfflineGoodsRangeType
enum<integer>
必需
枚举值:
0123
applicableOfflineGoodsInfos
array[object (ApplicableGoodsInfo) {4}]
可选
与 applicableOfflineGoodsRangeType 配合使用
exchangeableOnlineGoodsInfos
array[object (ApplicableGoodsInfo) {4}]
可选
exchangeableOfflineGoodsInfos
array[object (ApplicableGoodsInfo) {4}]
可选
暂时未用
preferentialMode
enum<integer>
优惠券类型
枚举值:
123
validTimeGenerateType
enum<integer>
有效期生成类型
枚举值:
123456
relativeValidTimeDuration
integer
可选
relativeValidTimeBeginInterval
integer
可选
absoluteValidStartTime
string <date-time>
绝对有效期开始时间
absoluteValidEndTime
string <date-time>
绝对有效期结束时间
takenQty
integer <int64>
领取次数
thresholdAmount
integer <int64>
可选
0:无门槛(默认值)
n:门槛值(单位:分)
thresholdPiece
integer <int64>
可选
thresholdMaxPiece
integer <int64>
满件上限
budgetSendTotalQty
integer <int64>
预算发放总量
maxDiscountAmount
integer
可选
0:代表没有折扣上限
voucherValueGenerateType
enum<integer>
面额生成规则类型
枚举值:
1234
isForbidOverlayPreferential
boolean
可选
thresholdType
enum<integer>
优惠券使用门槛类型
枚举值:
012
canOverlayAsset
boolean
可选
userTakeNumLimit
integer
可选
0:不限制(默认值)
n:限领n张
validPeriodType
enum<string>
生效周期类型
枚举值:
12
validDayOfWeeks
array[string]
生效时间( 天 )
枚举值:
MONTUEWEDTHUFRISATSUN
timePeriods
array[object (VoucherTemplateTimePeriodDTO) {3}]
时间 段(支持2个)
thirdPartyVerifyChannelType
integer
可选
0:全渠道
1:仅线下可用
isSharable
boolean
是否允许分享活动
isPublicDisplay
boolean
可选
isForbidPublicTake
boolean
可选
minValue
integer <int64>
可选
maxValue
integer <int64>
可选
示例
{
"rootKdtId": 0,
"appId": "string",
"globalProps": {
"key": {}
},
"extendMap": {
"key": {}
},
"event": "create",
"kdtId": 0,
"outStoreId": "string",
"outVoucherTemplateId": "string",
"voucherTemplateId": 0,
"outOpenId": "string",
"voucherTemplateInfo": {
"applicableGoodsRule": {
"discount": 0,
"type": "GREATER_THAN"
},
"title": "string",
"value": 0,
"remark": "string",
"description": "string",
"status": 0,
"voucherTemplateType": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"sendStockQty": 0,
"applicableShopRangeType": 1,
"applicableShopInfos": [
{
"kdtId": 0,
"outStoreId": "string"
}
],
"applicableOnlineGoodsRangeType": 0,
"applicableOnlineGoodsInfos": [
{
"yzItemId": 0,
"outItemId": "string",
"spuCode": "string",
"rootItemId": 0
}
],
"applicableOfflineGoodsRangeType": 0,
"applicableOfflineGoodsInfos": [
{
"yzItemId": 0,
"outItemId": "string",
"spuCode": "string",
"rootItemId": 0
}
],
"exchangeableOnlineGoodsInfos": [
{
"yzItemId": 0,
"outItemId": "string",
"spuCode": "string",
"rootItemId": 0
}
],
"exchangeableOfflineGoodsInfos": [
{
"yzItemId": 0,
"outItemId": "string",
"spuCode": "string",
"rootItemId": 0
}
],
"preferentialMode": 1,
"validTimeGenerateType": 1,
"relativeValidTimeDuration": 0,
"relativeValidTimeBeginInterval": 0,
"absoluteValidStartTime": "2019-08-24T14:15:22Z",
"absoluteValidEndTime": "2019-08-24T14:15:22Z",
"takenQty": 0,
"thresholdAmount": 0,
"thresholdPiece": 0,
"thresholdMaxPiece": 0,
"budgetSendTotalQty": 0,
"maxDiscountAmount": 0,
"voucherValueGenerateType": 1,
"isForbidOverlayPreferential": true,
"thresholdType": 0,
"canOverlayAsset": true,
"userTakeNumLimit": 0,
"validPeriodType": "1",
"validDayOfWeeks": [
"MON"
],
"timePeriods": [
{
"startTime": "string",
"endTime": "string",
"format": "string"
}
],
"thirdPartyVerifyChannelType": 0,
"isSharable": true,
"isPublicDisplay": true,
"isForbidPublicTake": true,
"minValue": 0,
"maxValue": 0
}
}
返回响应
🟢200成功
application/json
Body
success
boolean
可选
code
integer
可选
message
string
可选
requestId
string
请求Id
errorData
object (Map«Object»)
调用失败返回的数据
key
object (key)
可选
data
object (VoucherTemplateUpdateExtResponse)
调用返回的数据
outVoucherTemplateId
string
外部券模板Id
示例
{
"success": false,
"code": 0,
"message": "",
"requestId": "",
"errorData": {
"": {}
},
"data": {
"outVoucherTemplateId": ""
}
}