curl --request POST \
--url https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate \
--header 'Content-Type: application/json' \
--header 'X-SALESBRICKS-KEY: <api-key>' \
--data '
{
"termination_date": "2023-12-25",
"termination_notes": "<string>",
"notification_emails": [
"jsmith@example.com"
]
}
'import requests
url = "https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate"
payload = {
"termination_date": "2023-12-25",
"termination_notes": "<string>",
"notification_emails": ["jsmith@example.com"]
}
headers = {
"X-SALESBRICKS-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-SALESBRICKS-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
termination_date: '2023-12-25',
termination_notes: '<string>',
notification_emails: ['jsmith@example.com']
})
};
fetch('https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'termination_date' => '2023-12-25',
'termination_notes' => '<string>',
'notification_emails' => [
'jsmith@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-SALESBRICKS-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate"
payload := strings.NewReader("{\n \"termination_date\": \"2023-12-25\",\n \"termination_notes\": \"<string>\",\n \"notification_emails\": [\n \"jsmith@example.com\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-SALESBRICKS-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate")
.header("X-SALESBRICKS-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"termination_date\": \"2023-12-25\",\n \"termination_notes\": \"<string>\",\n \"notification_emails\": [\n \"jsmith@example.com\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-SALESBRICKS-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"termination_date\": \"2023-12-25\",\n \"termination_notes\": \"<string>\",\n \"notification_emails\": [\n \"jsmith@example.com\"\n ]\n}"
response = http.request(request)
puts response.read_bodyTerminate a subscription
Terminates a subscription either immediately or at a specified future date. This endpoint allows for scheduling termination, adding termination notes and an optional reason code, and specifying notification emails for termination alerts.
curl --request POST \
--url https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate \
--header 'Content-Type: application/json' \
--header 'X-SALESBRICKS-KEY: <api-key>' \
--data '
{
"termination_date": "2023-12-25",
"termination_notes": "<string>",
"notification_emails": [
"jsmith@example.com"
]
}
'import requests
url = "https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate"
payload = {
"termination_date": "2023-12-25",
"termination_notes": "<string>",
"notification_emails": ["jsmith@example.com"]
}
headers = {
"X-SALESBRICKS-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-SALESBRICKS-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
termination_date: '2023-12-25',
termination_notes: '<string>',
notification_emails: ['jsmith@example.com']
})
};
fetch('https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'termination_date' => '2023-12-25',
'termination_notes' => '<string>',
'notification_emails' => [
'jsmith@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-SALESBRICKS-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate"
payload := strings.NewReader("{\n \"termination_date\": \"2023-12-25\",\n \"termination_notes\": \"<string>\",\n \"notification_emails\": [\n \"jsmith@example.com\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-SALESBRICKS-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate")
.header("X-SALESBRICKS-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"termination_date\": \"2023-12-25\",\n \"termination_notes\": \"<string>\",\n \"notification_emails\": [\n \"jsmith@example.com\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/terminate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-SALESBRICKS-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"termination_date\": \"2023-12-25\",\n \"termination_notes\": \"<string>\",\n \"notification_emails\": [\n \"jsmith@example.com\"\n ]\n}"
response = http.request(request)
puts response.read_bodyBody
Subscription terminate input serializer.
Optional reason code for the termination. Current codes: POOR_PRODUCT_MARKET_FIT, INSUFFICIENT_VALUE, POOR_ONBOARDING, LOW_UTILIZATION, POOR_SUPPORT, PRICING_AND_CONTRACT, PRODUCT_RELIABILITY, COMPETITIVE_DISPLACEMENT, ORGANIZATIONAL_CHANGES, LACK_OF_INNOVATION, WENT_BANKRUPT, LOST_CHAMPION, OTHER. Omit it, or send null, to terminate without a reason; re-terminating without one keeps the reason already stored.
POOR_PRODUCT_MARKET_FIT- Poor Product-Market FitINSUFFICIENT_VALUE- Insufficient Perceived Value / ROIPOOR_ONBOARDING- Poor Onboarding ExperienceLOW_UTILIZATION- Low UtilizationPOOR_SUPPORT- Poor Customer Support and ServicePRICING_AND_CONTRACT- Pricing and Contract IssuesPRODUCT_RELIABILITY- Product Reliability, Performance, or Security ProblemsCOMPETITIVE_DISPLACEMENT- Competitive DisplacementORGANIZATIONAL_CHANGES- Customer Business or Organizational ChangesLACK_OF_INNOVATION- Lack of Product Innovation and EvolutionWENT_BANKRUPT- Went BankruptLOST_CHAMPION- Lost ChampionOTHER- Other
POOR_PRODUCT_MARKET_FIT, INSUFFICIENT_VALUE, POOR_ONBOARDING, LOW_UTILIZATION, POOR_SUPPORT, PRICING_AND_CONTRACT, PRODUCT_RELIABILITY, COMPETITIVE_DISPLACEMENT, ORGANIZATIONAL_CHANGES, LACK_OF_INNOVATION, WENT_BANKRUPT, LOST_CHAMPION, OTHER Response
Subscription terminate output serializer.
Optional reason code for the termination. Current codes: POOR_PRODUCT_MARKET_FIT, INSUFFICIENT_VALUE, POOR_ONBOARDING, LOW_UTILIZATION, POOR_SUPPORT, PRICING_AND_CONTRACT, PRODUCT_RELIABILITY, COMPETITIVE_DISPLACEMENT, ORGANIZATIONAL_CHANGES, LACK_OF_INNOVATION, WENT_BANKRUPT, LOST_CHAMPION, OTHER. Omit it, or send null, to terminate without a reason; re-terminating without one keeps the reason already stored.
POOR_PRODUCT_MARKET_FIT- Poor Product-Market FitINSUFFICIENT_VALUE- Insufficient Perceived Value / ROIPOOR_ONBOARDING- Poor Onboarding ExperienceLOW_UTILIZATION- Low UtilizationPOOR_SUPPORT- Poor Customer Support and ServicePRICING_AND_CONTRACT- Pricing and Contract IssuesPRODUCT_RELIABILITY- Product Reliability, Performance, or Security ProblemsCOMPETITIVE_DISPLACEMENT- Competitive DisplacementORGANIZATIONAL_CHANGES- Customer Business or Organizational ChangesLACK_OF_INNOVATION- Lack of Product Innovation and EvolutionWENT_BANKRUPT- Went BankruptLOST_CHAMPION- Lost ChampionOTHER- Other
POOR_PRODUCT_MARKET_FIT, INSUFFICIENT_VALUE, POOR_ONBOARDING, LOW_UTILIZATION, POOR_SUPPORT, PRICING_AND_CONTRACT, PRODUCT_RELIABILITY, COMPETITIVE_DISPLACEMENT, ORGANIZATIONAL_CHANGES, LACK_OF_INNOVATION, WENT_BANKRUPT, LOST_CHAMPION, OTHER