- 营销中心
- 一期接口文档
- 二期接口文档
- 营销cms
- 付费会员赢好礼
- 活动
- 微信券
- 百度券
- 优惠券兑换任务
- 券
- 营销短链
- 寄件有礼活动通知会员团GET
- 寄件有礼活动通知会员团 CopyGET
- 上传POST
- 万象平台
- 一期接口文档
- 二期接口文档
- 三期接口文档
- 88周年庆
- 导出
- 补发券
- 回收券
- 排行活动
- 优惠券兑换任务
- 人群圈选
- 用户领取与使用限制相关接口
- 微信券
- 公共接口
- 中止/恢复活动POST
- 百度OpenAPI
- 微信OpenAPI
修改兑换任务
开发中
POST
/ypc/vientiane/exchange/updateExchange
请求参数
Cookie 参数
JSESSIONID
string
可选
Body 参数application/json
exchangeName
string
兑换名称
id
string
必需
exchangeRemark
string
备注
startTime
string
兑换任务开始时间
endTime
string
兑换任务结束时间
amount
string
总库存/已生成数量
exchangeInfo
object
兑换信息
rule
object
必需
rewards
array [object {7}]
兑换权益
示例
{
"appKey": "laboris nulla anim",
"operator": "sint ut",
"operatorOrgId": "34",
"operatorOrgType": "culpa ut consequat et mollit",
"data": {
"exchangeName": "或求儿么听当",
"exchangeRemark": "non proident dolore",
"startTime": "1988-01-21 12:51:01",
"endTime": "1997-05-18 00:52:43",
"exchangeInfo": {
"rule": {
"limitCount": 42,
"generateType": 47,
"totalCount": 36
},
"rewards": [
{
"id": "27",
"amount": 7,
"rewardType": 5,
"couponType": "ipsum non ex ullamco id",
"worth": "Excepteur deserunt",
"name": "积条其群动"
},
{
"id": "24",
"amount": 76,
"rewardType": 8,
"name": "明议与",
"worth": "proident",
"couponType": "in quis amet dolore labore"
},
{
"id": "65",
"amount": 25,
"rewardType": 79,
"name": "从应具",
"worth": "occaecat exercitation Duis",
"couponType": "adipisicing laborum eu magna do"
},
{
"id": "22",
"amount": 63,
"rewardType": 39,
"worth": "dolore ut sint nisi elit",
"name": "万断光目大精",
"couponType": "incididunt est enim quis"
}
]
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/ypc/vientiane/exchange/updateExchange' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey": "laboris nulla anim",
"operator": "sint ut",
"operatorOrgId": "34",
"operatorOrgType": "culpa ut consequat et mollit",
"data": {
"exchangeName": "或求儿么听当",
"exchangeRemark": "non proident dolore",
"startTime": "1988-01-21 12:51:01",
"endTime": "1997-05-18 00:52:43",
"exchangeInfo": {
"rule": {
"limitCount": 42,
"generateType": 47,
"totalCount": 36
},
"rewards": [
{
"id": "27",
"amount": 7,
"rewardType": 5,
"couponType": "ipsum non ex ullamco id",
"worth": "Excepteur deserunt",
"name": "积条其群动"
},
{
"id": "24",
"amount": 76,
"rewardType": 8,
"name": "明议与",
"worth": "proident",
"couponType": "in quis amet dolore labore"
},
{
"id": "65",
"amount": 25,
"rewardType": 79,
"name": "从应具",
"worth": "occaecat exercitation Duis",
"couponType": "adipisicing laborum eu magna do"
},
{
"id": "22",
"amount": 63,
"rewardType": 39,
"worth": "dolore ut sint nisi elit",
"name": "万断光目大精",
"couponType": "incididunt est enim quis"
}
]
}
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2022-04-18 09:49:51