Update a subscription
Patches metadata on a subscription: name, description, trial period, billing flags, subscription-level discount, spending thresholds, price escalation, and tags. This endpoint does not modify the priced item set. To change items, see the Updating a Subscription examples.
curl --request PATCH \
--url https://api.alguna.io/subscriptions/{id} \
--header 'Alguna-Version: <alguna-version>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"billing": {
"auto_issue_invoices": true,
"auto_pay_invoices": false,
"first_billing_date": "2026-07-01",
"payment_terms": "net_30"
},
"description": "Annual enterprise subscription",
"discount": {
"amount": "10",
"duration_type": "fixed",
"type": "percentage",
"duration_unit": "months",
"duration_value": 6
},
"maximum_spend": {
"amount": "500.00",
"period": "monthly"
},
"metadata": {},
"minimum_spend": {
"amount": "500.00",
"period": "monthly"
},
"name": "Acme Corp - Enterprise",
"price_escalation": {
"enabled": true,
"interval_months": 12,
"type": "percentage",
"escalate_metered_unit_rates": false,
"percentage": "5.00"
},
"renewal": {
"auto_renew": true,
"duration_months": 12,
"period_type": "fixed"
},
"tags": [
"tag_abc123"
],
"trial_period_days": 30
}
'import requests
url = "https://api.alguna.io/subscriptions/{id}"
payload = {
"billing": {
"auto_issue_invoices": True,
"auto_pay_invoices": False,
"first_billing_date": "2026-07-01",
"payment_terms": "net_30"
},
"description": "Annual enterprise subscription",
"discount": {
"amount": "10",
"duration_type": "fixed",
"type": "percentage",
"duration_unit": "months",
"duration_value": 6
},
"maximum_spend": {
"amount": "500.00",
"period": "monthly"
},
"metadata": {},
"minimum_spend": {
"amount": "500.00",
"period": "monthly"
},
"name": "Acme Corp - Enterprise",
"price_escalation": {
"enabled": True,
"interval_months": 12,
"type": "percentage",
"escalate_metered_unit_rates": False,
"percentage": "5.00"
},
"renewal": {
"auto_renew": True,
"duration_months": 12,
"period_type": "fixed"
},
"tags": ["tag_abc123"],
"trial_period_days": 30
}
headers = {
"Alguna-Version": "<alguna-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'Alguna-Version': '<alguna-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
billing: {
auto_issue_invoices: true,
auto_pay_invoices: false,
first_billing_date: '2026-07-01',
payment_terms: 'net_30'
},
description: 'Annual enterprise subscription',
discount: {
amount: '10',
duration_type: 'fixed',
type: 'percentage',
duration_unit: 'months',
duration_value: 6
},
maximum_spend: {amount: '500.00', period: 'monthly'},
metadata: {},
minimum_spend: {amount: '500.00', period: 'monthly'},
name: 'Acme Corp - Enterprise',
price_escalation: {
enabled: true,
interval_months: 12,
type: 'percentage',
escalate_metered_unit_rates: false,
percentage: '5.00'
},
renewal: {auto_renew: true, duration_months: 12, period_type: 'fixed'},
tags: ['tag_abc123'],
trial_period_days: 30
})
};
fetch('https://api.alguna.io/subscriptions/{id}', 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.alguna.io/subscriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'billing' => [
'auto_issue_invoices' => true,
'auto_pay_invoices' => false,
'first_billing_date' => '2026-07-01',
'payment_terms' => 'net_30'
],
'description' => 'Annual enterprise subscription',
'discount' => [
'amount' => '10',
'duration_type' => 'fixed',
'type' => 'percentage',
'duration_unit' => 'months',
'duration_value' => 6
],
'maximum_spend' => [
'amount' => '500.00',
'period' => 'monthly'
],
'metadata' => [
],
'minimum_spend' => [
'amount' => '500.00',
'period' => 'monthly'
],
'name' => 'Acme Corp - Enterprise',
'price_escalation' => [
'enabled' => true,
'interval_months' => 12,
'type' => 'percentage',
'escalate_metered_unit_rates' => false,
'percentage' => '5.00'
],
'renewal' => [
'auto_renew' => true,
'duration_months' => 12,
'period_type' => 'fixed'
],
'tags' => [
'tag_abc123'
],
'trial_period_days' => 30
]),
CURLOPT_HTTPHEADER => [
"Alguna-Version: <alguna-version>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.alguna.io/subscriptions/{id}"
payload := strings.NewReader("{\n \"billing\": {\n \"auto_issue_invoices\": true,\n \"auto_pay_invoices\": false,\n \"first_billing_date\": \"2026-07-01\",\n \"payment_terms\": \"net_30\"\n },\n \"description\": \"Annual enterprise subscription\",\n \"discount\": {\n \"amount\": \"10\",\n \"duration_type\": \"fixed\",\n \"type\": \"percentage\",\n \"duration_unit\": \"months\",\n \"duration_value\": 6\n },\n \"maximum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"metadata\": {},\n \"minimum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"name\": \"Acme Corp - Enterprise\",\n \"price_escalation\": {\n \"enabled\": true,\n \"interval_months\": 12,\n \"type\": \"percentage\",\n \"escalate_metered_unit_rates\": false,\n \"percentage\": \"5.00\"\n },\n \"renewal\": {\n \"auto_renew\": true,\n \"duration_months\": 12,\n \"period_type\": \"fixed\"\n },\n \"tags\": [\n \"tag_abc123\"\n ],\n \"trial_period_days\": 30\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Alguna-Version", "<alguna-version>")
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.alguna.io/subscriptions/{id}")
.header("Alguna-Version", "<alguna-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"billing\": {\n \"auto_issue_invoices\": true,\n \"auto_pay_invoices\": false,\n \"first_billing_date\": \"2026-07-01\",\n \"payment_terms\": \"net_30\"\n },\n \"description\": \"Annual enterprise subscription\",\n \"discount\": {\n \"amount\": \"10\",\n \"duration_type\": \"fixed\",\n \"type\": \"percentage\",\n \"duration_unit\": \"months\",\n \"duration_value\": 6\n },\n \"maximum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"metadata\": {},\n \"minimum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"name\": \"Acme Corp - Enterprise\",\n \"price_escalation\": {\n \"enabled\": true,\n \"interval_months\": 12,\n \"type\": \"percentage\",\n \"escalate_metered_unit_rates\": false,\n \"percentage\": \"5.00\"\n },\n \"renewal\": {\n \"auto_renew\": true,\n \"duration_months\": 12,\n \"period_type\": \"fixed\"\n },\n \"tags\": [\n \"tag_abc123\"\n ],\n \"trial_period_days\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alguna.io/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Alguna-Version"] = '<alguna-version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"billing\": {\n \"auto_issue_invoices\": true,\n \"auto_pay_invoices\": false,\n \"first_billing_date\": \"2026-07-01\",\n \"payment_terms\": \"net_30\"\n },\n \"description\": \"Annual enterprise subscription\",\n \"discount\": {\n \"amount\": \"10\",\n \"duration_type\": \"fixed\",\n \"type\": \"percentage\",\n \"duration_unit\": \"months\",\n \"duration_value\": 6\n },\n \"maximum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"metadata\": {},\n \"minimum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"name\": \"Acme Corp - Enterprise\",\n \"price_escalation\": {\n \"enabled\": true,\n \"interval_months\": 12,\n \"type\": \"percentage\",\n \"escalate_metered_unit_rates\": false,\n \"percentage\": \"5.00\"\n },\n \"renewal\": {\n \"auto_renew\": true,\n \"duration_months\": 12,\n \"period_type\": \"fixed\"\n },\n \"tags\": [\n \"tag_abc123\"\n ],\n \"trial_period_days\": 30\n}"
response = http.request(request)
puts response.read_body{
"billing": {
"auto_issue_invoices": true,
"auto_pay_invoices": false,
"first_billing_date": "2026-01-01T00:00:00Z",
"payment_terms": "net_30"
},
"contract": {
"period_type": "fixed",
"duration_months": 12,
"end_date": "2027-01-01T00:00:00Z",
"start_date": "2026-01-01T00:00:00Z"
},
"created_at": "2025-12-15T10:30:00Z",
"currency": "USD",
"customer_id": "cust_abc123",
"id": "sub_abc123",
"metadata": {},
"name": "Acme Corp - Enterprise",
"pending_changes": [
{
"status": "draft",
"version_id": "subv_abc123",
"description": "Q3 upgrade",
"effective_at": "2027-01-01T00:00:00Z"
}
],
"renewal": {
"auto_renew": true,
"duration_months": 12,
"period_type": "fixed"
},
"status": "active",
"updated_at": "2026-04-04T10:00:05Z",
"activated_at": "2026-01-01T00:00:00Z",
"current_version_id": "subv_abc123",
"discount": {
"amount": "10",
"duration_type": "fixed",
"type": "percentage",
"duration_unit": "months",
"duration_value": 6
},
"maximum_spend": {
"amount": "500.00",
"period": "monthly"
},
"minimum_spend": {
"amount": "500.00",
"period": "monthly"
},
"plan_id": "pln_abc123",
"price_escalation": {
"enabled": true,
"interval_months": 12,
"type": "percentage",
"escalate_metered_unit_rates": false,
"percentage": "5.00"
},
"trial_period_days": 30
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}Authorizations
API key authentication. Pass your API key as a Bearer token.
Headers
2026-04-01 A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.
255"ik_a1b2c3d4e5f6"
Path Parameters
Unique identifier for the subscription
Body
Billing configuration
Show child attributes
Show child attributes
Description
"Annual enterprise subscription"
Subscription-level discount (percentage only)
Show child attributes
Show child attributes
Maximum spend threshold
Show child attributes
Show child attributes
Key-value metadata (null value removes key)
Minimum spend threshold
Show child attributes
Show child attributes
Subscription name
"Acme Corp - Enterprise"
Price escalation config
Show child attributes
Show child attributes
Renewal configuration
Show child attributes
Show child attributes
Tag IDs
["tag_abc123"]
Trial period in days
30
Response
Success
Billing configuration
Show child attributes
Show child attributes
Contract configuration
Show child attributes
Show child attributes
When the subscription was created
"2025-12-15T10:30:00Z"
ISO 4217 currency code
"USD"
Customer ID
"cust_abc123"
Unique identifier
"sub_abc123"
Key-value metadata
Subscription name
"Acme Corp - Enterprise"
Pending version changes
Show child attributes
Show child attributes
Renewal configuration
Show child attributes
Show child attributes
Subscription status
"active"
When the subscription was last updated
"2026-04-04T10:00:05Z"
When the subscription was activated
"2026-01-01T00:00:00Z"
Current active version ID
"subv_abc123"
Subscription-level discount
Show child attributes
Show child attributes
Maximum spend threshold
Show child attributes
Show child attributes
Minimum spend threshold
Show child attributes
Show child attributes
Plan ID
"pln_abc123"
Price escalation configuration
Show child attributes
Show child attributes
Trial period in days
30
curl --request PATCH \
--url https://api.alguna.io/subscriptions/{id} \
--header 'Alguna-Version: <alguna-version>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"billing": {
"auto_issue_invoices": true,
"auto_pay_invoices": false,
"first_billing_date": "2026-07-01",
"payment_terms": "net_30"
},
"description": "Annual enterprise subscription",
"discount": {
"amount": "10",
"duration_type": "fixed",
"type": "percentage",
"duration_unit": "months",
"duration_value": 6
},
"maximum_spend": {
"amount": "500.00",
"period": "monthly"
},
"metadata": {},
"minimum_spend": {
"amount": "500.00",
"period": "monthly"
},
"name": "Acme Corp - Enterprise",
"price_escalation": {
"enabled": true,
"interval_months": 12,
"type": "percentage",
"escalate_metered_unit_rates": false,
"percentage": "5.00"
},
"renewal": {
"auto_renew": true,
"duration_months": 12,
"period_type": "fixed"
},
"tags": [
"tag_abc123"
],
"trial_period_days": 30
}
'import requests
url = "https://api.alguna.io/subscriptions/{id}"
payload = {
"billing": {
"auto_issue_invoices": True,
"auto_pay_invoices": False,
"first_billing_date": "2026-07-01",
"payment_terms": "net_30"
},
"description": "Annual enterprise subscription",
"discount": {
"amount": "10",
"duration_type": "fixed",
"type": "percentage",
"duration_unit": "months",
"duration_value": 6
},
"maximum_spend": {
"amount": "500.00",
"period": "monthly"
},
"metadata": {},
"minimum_spend": {
"amount": "500.00",
"period": "monthly"
},
"name": "Acme Corp - Enterprise",
"price_escalation": {
"enabled": True,
"interval_months": 12,
"type": "percentage",
"escalate_metered_unit_rates": False,
"percentage": "5.00"
},
"renewal": {
"auto_renew": True,
"duration_months": 12,
"period_type": "fixed"
},
"tags": ["tag_abc123"],
"trial_period_days": 30
}
headers = {
"Alguna-Version": "<alguna-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'Alguna-Version': '<alguna-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
billing: {
auto_issue_invoices: true,
auto_pay_invoices: false,
first_billing_date: '2026-07-01',
payment_terms: 'net_30'
},
description: 'Annual enterprise subscription',
discount: {
amount: '10',
duration_type: 'fixed',
type: 'percentage',
duration_unit: 'months',
duration_value: 6
},
maximum_spend: {amount: '500.00', period: 'monthly'},
metadata: {},
minimum_spend: {amount: '500.00', period: 'monthly'},
name: 'Acme Corp - Enterprise',
price_escalation: {
enabled: true,
interval_months: 12,
type: 'percentage',
escalate_metered_unit_rates: false,
percentage: '5.00'
},
renewal: {auto_renew: true, duration_months: 12, period_type: 'fixed'},
tags: ['tag_abc123'],
trial_period_days: 30
})
};
fetch('https://api.alguna.io/subscriptions/{id}', 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.alguna.io/subscriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'billing' => [
'auto_issue_invoices' => true,
'auto_pay_invoices' => false,
'first_billing_date' => '2026-07-01',
'payment_terms' => 'net_30'
],
'description' => 'Annual enterprise subscription',
'discount' => [
'amount' => '10',
'duration_type' => 'fixed',
'type' => 'percentage',
'duration_unit' => 'months',
'duration_value' => 6
],
'maximum_spend' => [
'amount' => '500.00',
'period' => 'monthly'
],
'metadata' => [
],
'minimum_spend' => [
'amount' => '500.00',
'period' => 'monthly'
],
'name' => 'Acme Corp - Enterprise',
'price_escalation' => [
'enabled' => true,
'interval_months' => 12,
'type' => 'percentage',
'escalate_metered_unit_rates' => false,
'percentage' => '5.00'
],
'renewal' => [
'auto_renew' => true,
'duration_months' => 12,
'period_type' => 'fixed'
],
'tags' => [
'tag_abc123'
],
'trial_period_days' => 30
]),
CURLOPT_HTTPHEADER => [
"Alguna-Version: <alguna-version>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.alguna.io/subscriptions/{id}"
payload := strings.NewReader("{\n \"billing\": {\n \"auto_issue_invoices\": true,\n \"auto_pay_invoices\": false,\n \"first_billing_date\": \"2026-07-01\",\n \"payment_terms\": \"net_30\"\n },\n \"description\": \"Annual enterprise subscription\",\n \"discount\": {\n \"amount\": \"10\",\n \"duration_type\": \"fixed\",\n \"type\": \"percentage\",\n \"duration_unit\": \"months\",\n \"duration_value\": 6\n },\n \"maximum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"metadata\": {},\n \"minimum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"name\": \"Acme Corp - Enterprise\",\n \"price_escalation\": {\n \"enabled\": true,\n \"interval_months\": 12,\n \"type\": \"percentage\",\n \"escalate_metered_unit_rates\": false,\n \"percentage\": \"5.00\"\n },\n \"renewal\": {\n \"auto_renew\": true,\n \"duration_months\": 12,\n \"period_type\": \"fixed\"\n },\n \"tags\": [\n \"tag_abc123\"\n ],\n \"trial_period_days\": 30\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Alguna-Version", "<alguna-version>")
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.alguna.io/subscriptions/{id}")
.header("Alguna-Version", "<alguna-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"billing\": {\n \"auto_issue_invoices\": true,\n \"auto_pay_invoices\": false,\n \"first_billing_date\": \"2026-07-01\",\n \"payment_terms\": \"net_30\"\n },\n \"description\": \"Annual enterprise subscription\",\n \"discount\": {\n \"amount\": \"10\",\n \"duration_type\": \"fixed\",\n \"type\": \"percentage\",\n \"duration_unit\": \"months\",\n \"duration_value\": 6\n },\n \"maximum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"metadata\": {},\n \"minimum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"name\": \"Acme Corp - Enterprise\",\n \"price_escalation\": {\n \"enabled\": true,\n \"interval_months\": 12,\n \"type\": \"percentage\",\n \"escalate_metered_unit_rates\": false,\n \"percentage\": \"5.00\"\n },\n \"renewal\": {\n \"auto_renew\": true,\n \"duration_months\": 12,\n \"period_type\": \"fixed\"\n },\n \"tags\": [\n \"tag_abc123\"\n ],\n \"trial_period_days\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alguna.io/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Alguna-Version"] = '<alguna-version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"billing\": {\n \"auto_issue_invoices\": true,\n \"auto_pay_invoices\": false,\n \"first_billing_date\": \"2026-07-01\",\n \"payment_terms\": \"net_30\"\n },\n \"description\": \"Annual enterprise subscription\",\n \"discount\": {\n \"amount\": \"10\",\n \"duration_type\": \"fixed\",\n \"type\": \"percentage\",\n \"duration_unit\": \"months\",\n \"duration_value\": 6\n },\n \"maximum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"metadata\": {},\n \"minimum_spend\": {\n \"amount\": \"500.00\",\n \"period\": \"monthly\"\n },\n \"name\": \"Acme Corp - Enterprise\",\n \"price_escalation\": {\n \"enabled\": true,\n \"interval_months\": 12,\n \"type\": \"percentage\",\n \"escalate_metered_unit_rates\": false,\n \"percentage\": \"5.00\"\n },\n \"renewal\": {\n \"auto_renew\": true,\n \"duration_months\": 12,\n \"period_type\": \"fixed\"\n },\n \"tags\": [\n \"tag_abc123\"\n ],\n \"trial_period_days\": 30\n}"
response = http.request(request)
puts response.read_body{
"billing": {
"auto_issue_invoices": true,
"auto_pay_invoices": false,
"first_billing_date": "2026-01-01T00:00:00Z",
"payment_terms": "net_30"
},
"contract": {
"period_type": "fixed",
"duration_months": 12,
"end_date": "2027-01-01T00:00:00Z",
"start_date": "2026-01-01T00:00:00Z"
},
"created_at": "2025-12-15T10:30:00Z",
"currency": "USD",
"customer_id": "cust_abc123",
"id": "sub_abc123",
"metadata": {},
"name": "Acme Corp - Enterprise",
"pending_changes": [
{
"status": "draft",
"version_id": "subv_abc123",
"description": "Q3 upgrade",
"effective_at": "2027-01-01T00:00:00Z"
}
],
"renewal": {
"auto_renew": true,
"duration_months": 12,
"period_type": "fixed"
},
"status": "active",
"updated_at": "2026-04-04T10:00:05Z",
"activated_at": "2026-01-01T00:00:00Z",
"current_version_id": "subv_abc123",
"discount": {
"amount": "10",
"duration_type": "fixed",
"type": "percentage",
"duration_unit": "months",
"duration_value": 6
},
"maximum_spend": {
"amount": "500.00",
"period": "monthly"
},
"minimum_spend": {
"amount": "500.00",
"period": "monthly"
},
"plan_id": "pln_abc123",
"price_escalation": {
"enabled": true,
"interval_months": 12,
"type": "percentage",
"escalate_metered_unit_rates": false,
"percentage": "5.00"
},
"trial_period_days": 30
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}{
"detail": "<string>",
"status": 123
}