Membership Contracts
Cancel pending downgrade for a membership contract
Cancels a scheduled/pending downgrade for a specific membership contract. This endpoint removes the pending downgrade so that the membership will continue with its current plan.
Important Notes:
- The downgrade must be pending (not yet executed) to be cancelled
- Once cancelled, the membership will remain on its current plan
- An activity log entry is created when a downgrade is cancelled
Use Cases:
- Allow customers to change their mind about a scheduled downgrade
- Cancel downgrades when customers upgrade or renew
- Administrative cancellation of pending plan changes
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
DELETE
/
api
/
external
/
v2
/
subscription-contract-details
/
{contractId}
/
pending-downgrade
Cancel pending downgrade for a membership contract
curl --request DELETE \
--url https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgradeimport requests
url = "https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade';
const options = {method: 'DELETE'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body⌘I
Cancel pending downgrade for a membership contract
curl --request DELETE \
--url https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgradeimport requests
url = "https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade';
const options = {method: 'DELETE'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body