Cancel Activity
INFO
Cancels an activity that has not started or is in progress. A cancelled activity cannot be enabled again.
Request Method
| Item | Name | Sample |
|---|---|---|
| Path | Path | {Api_Address}/merchant/activity/cancel |
| Request Method | POST |
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | View details | |
| request_id | string | N | Optional, not used by the server. Cancelling an already cancelled activity changes nothing |
| activity_id | string | Y | Activity ID |
| revoke_unused | bool | N | true also revokes free rounds that were given but not yet used |
Return Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | 0 means success |
| msg | string | Y | Error description for the code |
Sample
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":""}