Change an account's tier
curl --request POST \
--url https://api.example.com/api/v2/accounts/{id}/change-tierimport requests
url = "https://api.example.com/api/v2/accounts/{id}/change-tier"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/v2/accounts/{id}/change-tier', 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.example.com/api/v2/accounts/{id}/change-tier",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://api.example.com/api/v2/accounts/{id}/change-tier"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/api/v2/accounts/{id}/change-tier")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/accounts/{id}/change-tier")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyTracked Accounts
Change an account's tier
Upgrade or downgrade a tracked account’s tier with Stripe proration
POST
/
api
/
v2
/
accounts
/
{id}
/
change-tier
Change an account's tier
curl --request POST \
--url https://api.example.com/api/v2/accounts/{id}/change-tierimport requests
url = "https://api.example.com/api/v2/accounts/{id}/change-tier"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/v2/accounts/{id}/change-tier', 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.example.com/api/v2/accounts/{id}/change-tier",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://api.example.com/api/v2/accounts/{id}/change-tier"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/api/v2/accounts/{id}/change-tier")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/accounts/{id}/change-tier")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyChanges the tier of a tracked account. Upgrades apply immediately with Stripe proration. Downgrades schedule for end of billing period.
If the account already has a pending downgrade and you POST with
Downgrade:
Cancellation of pending downgrade:
newTier matching the current tier, the pending downgrade is cancelled.
Body
| Field | Type | Description |
|---|---|---|
newTier | enum (required) | "starter", "growth", or "pro" |
Example
curl -X POST https://www.catchthegoodones.com/api/v2/accounts/7/change-tier \
-H "Authorization: Bearer ctgo_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"newTier": "pro"}'
Response
Upgrade:{ "account": {...}, "action": "upgraded" }
{ "account": {...}, "action": "downgrade_scheduled", "effectiveAt": "2026-07-01T00:00:00Z" }
{ "account": {...}, "action": "pending_cancelled" }
Errors
| Code | HTTP | When |
|---|---|---|
subscription_required | 403 | No active subscription |
Account not found | 404 | |
Wake this account first to change its tier. | 400 | Account is asleep |
| (Stripe error message) | 502 | Stripe failed the proration call |
Auth
Bearer or session cookie.⌘I