Skip to main content

优惠券批次号查询优惠券详情

1. 前言:

2. 交互时序图:

3. 请求场景:

外部服务商获取关注社区生活状态

4. 接口要求:

使用来伊份openapi加密协议进行加密请求

5. 接口标准

5.1 基本信息

描述
服务名称activity-endorsement
URL测试环境:https://openapi.test.laiyifen.com/activity-endorsement/endorsement/coupon-activity/v1/coupon/detail
生产环境:https://openapi.laiyifen.com/activity-endorsement/endorsement/coupon-activity/v1/coupon/detail
认证方式令牌
请求方式HTTP(POST)
功能描述(适用场景)根据优惠券批次号集合查询优惠券明细

5.2 请求头公共参数 (Header)

参数名字参数类型是否必须说明
X-Co-ClientString客户端Id(来伊份提供)
X-Co-SignString签名
X-Co-TimeStampString签名时间戳

5.3 入参 Body

参数名字参数类型是否必须说明
encryptBatchIdsList<String>请求对象, 优惠券批次号集合

5.4 入参示例

["69782155a427b03b13379131c29cb1a2","b677dd5ff81fb42898068b0fb1c40f86"]                             

5.5 返回统一参数

参数名字参数类型是否必须说明
codeString返回请求业务代码
msgString返回信息描述
dataJson返回参数

5.6 返回参数Data

参数名字参数类型是否必须说明
batchMaxReceiveInteger批次最大领取量
batchStatusString优惠券批次状态
batchTypeString优惠券类型
couponBatchStrString加密后的优惠券批次号
couponDescString方案说明
couponDiscountBigdecimal具体折扣
couponNameString优惠券方案名称
couponRangeString使用范围
discountTypeString折扣类型
endTimeString优惠券结束时间
isAvailableString是否可用
maxCountInteger批次最大发行数量
maxOfferAmountBigdecimal最大优惠金额
minSpendAmountBigdecimal最低消费金额
personMaxCountInteger个人最大使用数量
startTimeString优惠券开始时间
timeTypeString有效期类型
useRangeString使用范围
vaildDateInteger领券后有效期
verificationCountInteger核销数量

5.7 返回示例

{
"data":[
{
"couponBatchStr":"69782155a427b03b13379131c29cb1a2",
"batchType":"普通券",
"couponDesc":"黑金长期优惠方案",
"couponDiscount":6,
"couponName":"黑金长期优惠方案",
"couponRange":"整单",
"discountType":"优惠",
"endTime":"2021-08-31 15:59:59",
"isAvailable":"可用",
"maxOfferAmount":null,
"minSpendAmount":0,
"startTime":"2020-08-31 16:00:00",
"timeType":"固定期限",
"useRange":null,
"validDate":null,
"maxCount":5000,
"batchMaxReceive":20,
"batchStatus":"进行中(审核通过)",
"personMaxCount":999,
"verificationCount":null
},
{
"couponBatchStr":"b677dd5ff81fb42898068b0fb1c40f86",
"batchType":"普通券",
"couponDesc":"pos优化测试50个商品",
"couponDiscount":20,
"couponName":"pos优化测试50个商品",
"couponRange":"指定商品",
"discountType":"优惠",
"endTime":"2020-10-31 15:59:59",
"isAvailable":"可用",
"maxOfferAmount":null,
"minSpendAmount":80,
"startTime":"2020-09-25 06:33:50",
"timeType":"固定期限",
"useRange":"线下",
"validDate":null,
"maxCount":999999,
"batchMaxReceive":300,
"batchStatus":"进行中(审核通过)",
"personMaxCount":999,
"verificationCount":null
}
],
"code":"0",
"msg":"success"
}