取消活动
描述
可取消未开始或进行中的活动。取消后活动不可再次启用。
请求方式
| Item | Name | Sample |
|---|---|---|
| Path | Path | {Api_Address}/merchant/activity/cancel |
| Request Method | POST |
请求参数
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | Api 接入规范 | |
| request_id | string | N | 可选,服务端暂不使用。重复取消已取消的活动不会产生影响 |
| activity_id | string | Y | 活动 ID |
| revoke_unused | bool | N | true 表示同时撤销已赠送但未使用的免费次数 |
返回参数
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | 0 表示成功 |
| msg | string | Y | 对应 code 的错误描述 |
请求示例
Http Request
Post Method
URL : {Api_Address}/merchant/activity/cancel?mid=1697028447&sign=...&ts=1713768205
Content-Type:application/json
{"activity_id":"act_freebet456789","revoke_unused":true}
Http Response(success)
{"code":0,"msg":""}