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
  • Mailings
    • Activate mailing
    • Deactivate mailing
    • Get mailing list
    • Get mailing information
    • Get mailing log
    • Clone mailing
    • Delete mailing
    • Get mailing status
    • Broadcast mailings
    • Regular mailings
    • Trigger 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
  • Mailings
  • Deactivate mailing
Documentation for version v75

Deactivate mailing

Description​

Deactivates a mailing.

Can also abort message sending, if a mailing is active:

abort_if_running = true property immediately aborts all messages in sending queue. If the value is false the mailing will be deactivated, though its already scheduled messages will be sent.

Request URL​

Method: POST

https://example.com/api/v1.1/campaigns/deactivate

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
abort_if_runningbooltrueNoAbort mailing sending
By default – false
idint12YesMailing ID

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": "15",
"abort_if_running": "true"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>15</id>
<abort_if_running>true</abort_if_running>
</xml>

Response example​

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

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
Last updated on May 29, 2024
Previous
Activate mailing
Next
Get mailing list
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.