Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v75
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
    • Get campaign information
    • Get campaign list
    • Activate campaign
    • Complete campaign
    • Deactivate campaign
    • Get campaign status
  • Mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Campaigns
  • Complete campaign
Documentation for version v75

Complete campaign

Description​

Complete a campaign immediately. Completion stops sending messages for running mailings and switches all nested mailings and scenarios to the "inactive" status.

Access rights

To use this method, the API token must have:

  • Campaigns — Run
  • Access to the groups where the campaigns are located

Configure permissions in Settings → Tokens.

Request URL​

Method: POST

https://example.com/api/v1.1/scampaigns/completed

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idint18YesCampaign ID

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 18
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>18</id>
</xml>

Response example​

  • JSON
  • XML
{
"data": null,
"error": 0,
"error_text": "Successful operation"
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Returned parameters​

ParameterTypeDescription
errorintError code
error_textstringError description
datanullNo data returned
warning

Completing a campaign is irreversible. After completion, the campaign cannot be restarted; you can only create a new one.

Last updated on Oct 16, 2024
Previous
Activate campaign
Next
Deactivate campaign
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Returned parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.