Campaigns
Cancel a campaign
Changed onBefore payment (draft, awaiting_payment) the campaign is cancelled at once (200); nothing was billed, so rejected rows read excluded and every other row skipped with campaign_cancelled. After payment (paid, running, paused) it moves to cancelling (202): sending stops, deliveries already in flight finish, the rest is skipped campaign_cancelled, and the undelivered value is returned in ONE reversal at settlement — campaign.cancelled fires after that. Repeating the call is safe. A campaign already finished answers 409 conflict.
post/v1/campaigns/{id}/cancel
Request
- Base URLhttps://api.mystars.tg
- AuthAPI key in header X-Api-Key
Path parameters
idstring uuid required
The campaign id (UUID, also the on-chain payment memo).
Response
Cancelled before payment (or already cancelled).
Example response
{
"payment": {
"chain": "ton"
}
}Changes
- info
endpoint added
- info