> ## Documentation Index
> Fetch the complete documentation index at: https://alguna.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a Subscription

> Two paths for mutating an active subscription: the changes API for deltas, and raw version lifecycle endpoints for snapshots.

Once a subscription is active, its priced item set lives inside a **version** — an immutable snapshot of items and prices with an `effective_at` date. Upgrades, downgrades, add-ons, renegotiated rates and plan swaps are all expressed as a new version; the subscription's contract and billing settings stay put. This page shows the two API paths for producing that version: the delta-based changes API and the snapshot-based version endpoints. The version model itself is explained in [Versioning](https://alguna.com/docs/subscriptions/versioning.md) and [How Alguna works](https://alguna.com/docs/concepts/how-alguna-works.md).

> [card] Path A: Changes API
>
> High-level and delta-based. Describe what you want to change (add, remove, adjust) and the API computes a new version. Best for most use cases.

> [card] Path B: Version lifecycle
>
> Low-level and snapshot-based. Supply a complete item set and iterate on it as a draft before publishing. Best for full control or staged multi-step edits.

> [!NOTE]
>
> Metadata-only updates (name, subscription-level discount, spending thresholds, price escalation, billing flags) use [Update Subscription](https://alguna.com/docs/api-reference/2026-04-01/subscriptions/update-a-subscription.md) (`PATCH /subscriptions/{id}`) and do not create a new version. They apply immediately, except the subscription-level discount and the printed terms of an `active` or `paused` subscription: those apply as a subscription change, which can need approval. The two paths below are specifically for changing the priced item set.

## Preliminaries

Every version carries:

* `status`: `draft` or `published`. Only one published version is current at any moment.
* `effective_at`: when the version takes over from the previous one. Can be a specific date, or the result of a timing keyword like `immediate` or `next_term_renewal`.

Before mutating anything, read the current state with [Get Current Active Subscription Version](https://alguna.com/docs/api-reference/2026-04-01/subscription-versions/get-the-current-active-subscription-version.md).

```bash cURL theme={null}
curl https://api.alguna.io/subscriptions/CQCncgVu/versions/current \
  -H "Authorization: Bearer $ALGUNA_API_KEY" \
  -H "Alguna-Version: 2026-04-01"
```

```python Python theme={null}
import os

import requests

BASE_URL = "https://api.alguna.io"
HEADERS = {
    "Authorization": f"Bearer {os.environ['ALGUNA_API_KEY']}",
    "Alguna-Version": "2026-04-01",
    "Content-Type": "application/json",
}

response = requests.get(
    f"{BASE_URL}/subscriptions/CQCncgVu/versions/current",
    headers=HEADERS,
    timeout=10,
)
response.raise_for_status()
current_version = response.json()
```

```typescript TypeScript SDK theme={null}
const currentVersion = await alguna.subscriptionVersions.getCurrent("CQCncgVu");
```

The returned version `id` is the source that any change will be computed against.

## Path A: Changes API

[Apply Changes to a Subscription](https://alguna.com/docs/api-reference/2026-04-01/subscription-changes/apply-changes-to-a-subscription.md) (`POST /subscriptions/{id}/changes`) is the primary endpoint for applying deltas. You supply `add`, `remove`, and `update` arrays plus an `effective` timing, and the API:

1. Reads the source version (default: the current active one, override with `source_version_id`).
2. Applies your delta on top.
3. Creates a new version with the result.
4. Publishes it, unless you pass `draft: true`.

Use [Preview Subscription Change](https://alguna.com/docs/api-reference/2026-04-01/subscription-changes/preview-a-subscription-change.md) to compute the same result without writing a new version.

### Supported `effective` values

| Value | Meaning |
| - | - |
| `immediate` | Takes effect now. |
| `next_term_renewal` | At the end of the current contract term. |
| `next_billing_period` | At the start of the next invoicing cycle. |
| `YYYY-MM-DD` | A specific date, for example `2027-01-01`. |
| RFC 3339 timestamp | A specific moment, for example `2027-01-01T14:30:00Z`. |

### A.1 Adjust a single product's scalar price field

The most common mutation. Use `update` with a partial `adjust`. Every field is optional and merged onto the existing price. Here we bump the platform fee from $500 to $600/mo effective end of term.

```bash cURL theme={null}
curl -X POST https://api.alguna.io/subscriptions/CQCncgVu/changes \
  -H "Authorization: Bearer $ALGUNA_API_KEY" \
  -H "Alguna-Version: 2026-04-01" \
  -H "Content-Type: application/json" \
  -d '{
    "update": [
      {
        "product_id": "prod_032wMej82trlC5RulBsDJY",
        "adjust": {
          "fixed_pricing_model": {
            "price_per_unit": "600.00"
          }
        }
      }
    ],
    "effective": "next_term_renewal",
    "description": "Q3 price adjustment"
  }'
```

```python Python theme={null}
response = requests.post(
    f"{BASE_URL}/subscriptions/CQCncgVu/changes",
    headers=HEADERS,
    json={
        "update": [
            {
                "product_id": "prod_032wMej82trlC5RulBsDJY",
                "adjust": {"fixed_pricing_model": {"price_per_unit": "600.00"}},
            }
        ],
        "effective": "next_term_renewal",
        "description": "Q3 price adjustment",
    },
    timeout=10,
)
response.raise_for_status()
new_version = response.json()
```

```typescript TypeScript SDK theme={null}
const newVersion = await alguna.subscriptionChanges.create("CQCncgVu", {
  update: [
    {
      product_id: "prod_032wMej82trlC5RulBsDJY",
      adjust: { fixed_pricing_model: { price_per_unit: "600.00" } },
    },
  ],
  effective: "next_term_renewal",
  description: "Q3 price adjustment",
});
```

Only `price_per_unit` was specified, so only that field is replaced. Billing interval, billing direction, tier structure, and every other field are inherited from the prior version.

### A.2 Replace a price entirely

When the new price is structurally different, for example switching from `unit` to `graduated_tiered`, use `new_price` instead of `adjust`. See the [pricing models reference](https://alguna.com/docs/api-reference/subscriptions/pricing-models.md) for the full list of supported types.

```json theme={null}
{
  "update": [
    {
      "product_id": "prod_04ab8Nej82trlC5RulBsDJY",
      "new_price": {
        "type": "graduated_tiered",
        "billing_interval": "monthly",
        "fee_type": "metered",
        "billing_direction": "arrears",
        "metric_ids": ["mtr_032wMej82trlC5RulBsDJY"],
        "graduated_tiered_pricing_model": {
          "tiers": [
            { "min_units": 0, "max_units": 10000, "price_per_unit": "0.00", "fixed_fee": null },
            { "min_units": 10001, "max_units": null, "price_per_unit": "0.03", "fixed_fee": null }
          ]
        }
      }
    }
  ],
  "effective": "next_billing_period"
}
```

### A.3 Replace tiers on a tiered price

Tiered pricing adjustments behave differently from other fields. The `tiers` array inside a tiered pricing adjustment is not merged onto the existing tiers. The array you send becomes the entire tier set.

> [!WARNING]
>
> When you send a `tiers` array inside any tiered pricing adjustment (`graduated_tiered_pricing_model`, `tiered_pricing_model`, `tiered_percentage_pricing_model`, `graduated_percentage_pricing_model`, `prepaid_tiered_pricing_model`, or `prepaid_fixed_tiered_pricing_model`), the existing tier set is replaced wholesale. There is no way to add, remove, or modify a single tier in isolation. Always send the full intended tier set.
>
> The same replace-wholesale behavior applies to the `charges` array on `expression_pricing_model` adjustments.

The example below restructures the API usage product's tiers without changing the billing interval, metric bindings, or any other field on the price.

```json theme={null}
{
  "update": [
    {
      "product_id": "prod_04ab8Nej82trlC5RulBsDJY",
      "adjust": {
        "graduated_tiered_pricing_model": {
          "tiers": [
            { "min_units": 0, "max_units": 50000, "price_per_unit": "0.00", "fixed_fee": null },
            { "min_units": 50001, "max_units": 500000, "price_per_unit": "0.02", "fixed_fee": null },
            { "min_units": 500001, "max_units": null, "price_per_unit": "0.015", "fixed_fee": null }
          ]
        }
      }
    }
  ],
  "effective": "next_billing_period",
  "description": "New volume tiers for API usage"
}
```

If you want to keep the existing zero-priced free tier, include it in the array. If you omit it, it is gone.

### A.4 Add a new product

```json theme={null}
{
  "add": [
    {
      "product_id": "prod_07fx2Nej82trlC5RulBsDJY",
      "new_price": {
        "type": "fixed",
        "billing_interval": "monthly",
        "fee_type": "fixed",
        "billing_direction": "arrears",
        "billing_frequency": "recurring",
        "fixed_pricing_model": { "price_per_unit": "2500.00", "units": 1 }
      }
    }
  ],
  "effective": "immediate",
  "description": "Upsell: add dedicated support"
}
```

### A.5 Remove a product

```json theme={null}
{
  "remove": [
    { "product_id": "prod_0legacyNej82trlC5RulBsDJY" }
  ],
  "effective": "next_term_renewal"
}
```

### A.6 Swap to a different plan

Provide `plan_id` on the change request. The API swaps the item set to the plan's item set while preserving the original contract and billing config. You can combine this with `update`, `add`, and `remove` for per-customer overrides on top of the new plan.

```json theme={null}
{
  "plan_id": "pln_052xMej82trlC5RulBsDJY",
  "update": [
    {
      "product_id": "prod_032wMej82trlC5RulBsDJY",
      "adjust": {
        "fixed_pricing_model": { "price_per_unit": "800.00" }
      }
    }
  ],
  "effective": "next_term_renewal",
  "description": "Renewal to 2027 enterprise plan with negotiated platform fee"
}
```

### A.7 Bundle operations

Bundles use the same `add`, `remove`, and `update` shapes as standalone items, but reference `bundle_id` instead of `product_id`. Children of a bundle must be addressed through their parent bundle.

**Adjust one child price inside a bundle.** Use `update` with `bundle_id` and nested `items`.

```json theme={null}
{
  "update": [
    {
      "bundle_id": "bnd_032wMej82trlC5RulBsDJY",
      "items": [
        {
          "product_id": "prod_09tx7Nej82trlC5RulBsDJY",
          "adjust": {
            "unit_pricing_model": { "price_per_unit": "18.00" }
          }
        }
      ]
    }
  ],
  "effective": "next_term_renewal"
}
```

Only that one child is touched. The other children and all non-bundle items pass through unchanged.

**Add a new child to an existing bundle.** Use `add_items` on a bundle `update`.

```json theme={null}
{
  "update": [
    {
      "bundle_id": "bnd_032wMej82trlC5RulBsDJY",
      "add_items": [
        {
          "product_id": "prod_0analytNej82trlC5RulBsDJY",
          "new_price": {
            "type": "fixed",
            "billing_interval": "monthly",
            "fee_type": "fixed",
            "billing_direction": "arrears",
            "billing_frequency": "recurring",
            "fixed_pricing_model": { "price_per_unit": "100.00", "units": 1 }
          }
        }
      ]
    }
  ],
  "effective": "immediate"
}
```

**Remove a child from a bundle.** Use `remove_items`.

```json theme={null}
{
  "update": [
    {
      "bundle_id": "bnd_032wMej82trlC5RulBsDJY",
      "remove_items": [
        { "product_id": "prod_0legacyNej82trlC5RulBsDJY" }
      ]
    }
  ],
  "effective": "next_term_renewal"
}
```

**Remove an entire bundle.** Use top-level `remove`.

```json theme={null}
{
  "remove": [
    { "bundle_id": "bnd_032wMej82trlC5RulBsDJY" }
  ],
  "effective": "next_term_renewal"
}
```

### A.8 Preview a change before writing it

Every change body is also accepted by [Preview Subscription Change](https://alguna.com/docs/api-reference/2026-04-01/subscription-changes/preview-a-subscription-change.md) (`POST /subscriptions/{id}/changes/preview`), which returns the computed delta without writing a new version. Use this to drive approval flows or show customers what is about to change.

```bash cURL theme={null}
curl -X POST https://api.alguna.io/subscriptions/CQCncgVu/changes/preview \
  -H "Authorization: Bearer $ALGUNA_API_KEY" \
  -H "Alguna-Version: 2026-04-01" \
  -H "Content-Type: application/json" \
  -d '{ "update": [ ... ], "effective": "next_term_renewal" }'
```

```python Python theme={null}
change = {
    "update": [
        {
            "product_id": "prod_032wMej82trlC5RulBsDJY",
            "adjust": {"fixed_pricing_model": {"price_per_unit": "600.00"}},
        }
    ],
    "effective": "next_term_renewal",
}

response = requests.post(
    f"{BASE_URL}/subscriptions/CQCncgVu/changes/preview",
    headers=HEADERS,
    json=change,
    timeout=10,
)
response.raise_for_status()
preview = response.json()
```

```typescript TypeScript SDK theme={null}
const preview = await alguna.subscriptionChanges.preview("CQCncgVu", change);
```

### A.9 Draft a change for later

Pass `draft: true` to produce an unpublished draft version. Useful for staging changes that need review before going live.

```json theme={null}
{
  "update": [ ],
  "effective": "2027-01-01",
  "draft": true,
  "description": "Proposed 2027 pricing"
}
```

The response includes the new version's `id` (a plain 8-char string, for example `vavGpNlc`). Publish it later via [Publish Draft Subscription Version](https://alguna.com/docs/api-reference/2026-04-01/subscription-versions/publish-a-draft-subscription-version.md) — see [B.4](#b4-publish-a-draft) for the call.

To iterate on a draft before publishing, see Path B.

## Path B: Raw version lifecycle

When Path A's delta semantics are not enough (typically large multi-item changes, staged edits that need to be saved and reopened, or programmatic migrations), drop down to the version endpoints directly.

The lifecycle is:

1. [Create New Subscription Version](https://alguna.com/docs/api-reference/2026-04-01/subscription-versions/create-a-new-subscription-version.md): `POST /subscriptions/{id}/versions`. Create a new version from a full item set. **The version is published immediately unless you pass `draft: true`** — send `draft: true` whenever you intend to edit it before it takes effect.
2. [Replace Draft Subscription Version](https://alguna.com/docs/api-reference/2026-04-01/subscription-versions/replace-a-draft-subscription-version.md): `PUT /subscriptions/{id}/versions/{vid}`. Replace a draft's contents in place.
3. [Publish Draft Subscription Version](https://alguna.com/docs/api-reference/2026-04-01/subscription-versions/publish-a-draft-subscription-version.md): `POST /subscriptions/{id}/versions/{vid}/publish`. Publish the draft. It becomes active at `effective_at`.
4. [Delete Subscription Version](https://alguna.com/docs/api-reference/2026-04-01/subscription-versions/delete-a-subscription-version.md): `DELETE /subscriptions/{id}/versions/{vid}`. Discard an unwanted draft, or a published version that has not started.

> [!WARNING]
>
> The version endpoints are snapshot-based. `POST /versions` and `PUT /versions/{vid}` require the complete item set every time. There are no deltas. Items you omit are removed from the new version.

### B.1 Create a draft with standalone items

```bash cURL theme={null}
curl -X POST https://api.alguna.io/subscriptions/CQCncgVu/versions \
  -H "Authorization: Bearer $ALGUNA_API_KEY" \
  -H "Alguna-Version: 2026-04-01" \
  -H "Content-Type: application/json" \
  -d '{
    "effective_at": "2027-01-01",
    "draft": true,
    "description": "2027 enterprise configuration",
    "items": [
      {
        "product_id": "prod_032wMej82trlC5RulBsDJY",
        "price": {
          "type": "fixed",
          "billing_interval": "monthly",
          "fee_type": "fixed",
          "billing_direction": "arrears",
          "billing_frequency": "recurring",
          "fixed_pricing_model": { "price_per_unit": "800.00", "units": 1 }
        }
      },
      {
        "product_id": "prod_04ab8Nej82trlC5RulBsDJY",
        "price": {
          "type": "graduated_tiered",
          "billing_interval": "monthly",
          "fee_type": "metered",
          "billing_direction": "arrears",
          "metric_ids": ["mtr_032wMej82trlC5RulBsDJY"],
          "graduated_tiered_pricing_model": {
            "tiers": [
              { "min_units": 0, "max_units": 100000, "price_per_unit": "0.00", "fixed_fee": null },
              { "min_units": 100001, "max_units": null, "price_per_unit": "0.02", "fixed_fee": null }
            ]
          }
        }
      }
    ]
  }'
```

```python Python theme={null}
response = requests.post(
    f"{BASE_URL}/subscriptions/CQCncgVu/versions",
    headers=HEADERS,
    json={
        "effective_at": "2027-01-01",
        "draft": True,
        "description": "2027 enterprise configuration",
        "items": [
            {
                "product_id": "prod_032wMej82trlC5RulBsDJY",
                "price": {
                    "type": "fixed",
                    "billing_interval": "monthly",
                    "fee_type": "fixed",
                    "billing_direction": "arrears",
                    "billing_frequency": "recurring",
                    "fixed_pricing_model": {"price_per_unit": "800.00", "units": 1},
                },
            },
            {
                "product_id": "prod_04ab8Nej82trlC5RulBsDJY",
                "price": {
                    "type": "graduated_tiered",
                    "billing_interval": "monthly",
                    "fee_type": "metered",
                    "billing_direction": "arrears",
                    "metric_ids": ["mtr_032wMej82trlC5RulBsDJY"],
                    "graduated_tiered_pricing_model": {
                        "tiers": [
                            {"min_units": 0, "max_units": 100000, "price_per_unit": "0.00", "fixed_fee": None},
                            {"min_units": 100001, "max_units": None, "price_per_unit": "0.02", "fixed_fee": None},
                        ]
                    },
                },
            },
        ],
    },
    timeout=10,
)
response.raise_for_status()
draft = response.json()
```

The response includes the draft's `id` (for example `vavGpNlc`). Because the request carried `draft: true`, the version is not yet applied and the current active version is still in effect. Without `draft: true` the same request would have published the version straight away, effective on `effective_at`.

### B.2 Create a draft with bundles

Bundles go directly into `items` with `bundle_id` and a nested `items` array of priced children. Every child needs a full price definition. You can mix standalone and bundle items in the same `items` array.

```json theme={null}
{
  "effective_at": "2027-01-01",
  "draft": true,
  "items": [
    {
      "bundle_id": "bnd_032wMej82trlC5RulBsDJY",
      "items": [
        {
          "product_id": "prod_032wMej82trlC5RulBsDJY",
          "price": {
            "type": "fixed",
            "billing_interval": "monthly",
            "fee_type": "fixed",
            "billing_direction": "arrears",
            "billing_frequency": "recurring",
            "fixed_pricing_model": { "price_per_unit": "250.00", "units": 1 }
          }
        },
        {
          "product_id": "prod_09tx7Nej82trlC5RulBsDJY",
          "price": {
            "type": "unit",
            "billing_interval": "monthly",
            "fee_type": "fixed",
            "billing_direction": "arrears",
            "billing_frequency": "recurring",
            "unit_pricing_model": { "price_per_unit": "18.00" }
          }
        }
      ]
    }
  ]
}
```

### B.3 Replace a draft's contents

While a version is still a draft, edit it in place with [Replace Draft Subscription Version](https://alguna.com/docs/api-reference/2026-04-01/subscription-versions/replace-a-draft-subscription-version.md). This is a full replacement. Send the entire item set.

```bash cURL theme={null}
curl -X PUT https://api.alguna.io/subscriptions/CQCncgVu/versions/vavGpNlc \
  -H "Authorization: Bearer $ALGUNA_API_KEY" \
  -H "Alguna-Version: 2026-04-01" \
  -H "Content-Type: application/json" \
  -d '{
    "effective_at": "2027-02-01",
    "description": "Pushed back to February",
    "items": [ ]
  }'
```

```python Python theme={null}
response = requests.put(
    f"{BASE_URL}/subscriptions/CQCncgVu/versions/vavGpNlc",
    headers=HEADERS,
    json={
        "effective_at": "2027-02-01",
        "description": "Pushed back to February",
        "items": [],  # the complete item set — omitted items are removed
    },
    timeout=10,
)
response.raise_for_status()
```

```typescript TypeScript SDK theme={null}
await alguna.subscriptionVersions.replace("CQCncgVu", "vavGpNlc", {
  effective_at: "2027-02-01",
  description: "Pushed back to February",
  items: [], // the complete item set — omitted items are removed
});
```

Replacing a version that is not in `draft` status returns `422`.

### B.4 Publish a draft

Once the draft is correct, publish it with [Publish Draft Subscription Version](https://alguna.com/docs/api-reference/2026-04-01/subscription-versions/publish-a-draft-subscription-version.md).

```bash cURL theme={null}
curl -X POST https://api.alguna.io/subscriptions/CQCncgVu/versions/vavGpNlc/publish \
  -H "Authorization: Bearer $ALGUNA_API_KEY" \
  -H "Alguna-Version: 2026-04-01"
```

```python Python theme={null}
response = requests.post(
    f"{BASE_URL}/subscriptions/CQCncgVu/versions/vavGpNlc/publish",
    headers=HEADERS,
    timeout=10,
)
response.raise_for_status()
published = response.json()
```

```typescript TypeScript SDK theme={null}
const published = await alguna.subscriptionVersions.publish("CQCncgVu", "vavGpNlc");
```

On publish:

* The version's `status` flips to `published`.
* If `effective_at` is in the past or today, it becomes the current active version immediately.
* If `effective_at` is in the future, it sits as a pending change until then. You will see it in the parent subscription's `pending_changes` array.

### B.5 Delete an unwanted draft

```bash cURL theme={null}
curl -X DELETE https://api.alguna.io/subscriptions/CQCncgVu/versions/vavGpNlc \
  -H "Authorization: Bearer $ALGUNA_API_KEY" \
  -H "Alguna-Version: 2026-04-01"
```

```python Python theme={null}
response = requests.delete(
    f"{BASE_URL}/subscriptions/CQCncgVu/versions/vavGpNlc",
    headers=HEADERS,
    timeout=10,
)
response.raise_for_status()
```

```typescript TypeScript SDK theme={null}
await alguna.subscriptionVersions.delete("CQCncgVu", "vavGpNlc");
```

You can delete a `draft` version, or a published version whose `effective_at` is in the future. On an active or paused subscription, deleting a future published version stages a change that applies at once, unless an approval rule requires approval first; that delete is refused while another change or a quote is open on the subscription. When the delete needs approval, the call answers `202 Accepted` with the approval, and `approval.change_id` names the change that waits. See [When a call needs approval](https://alguna.com/docs/approvals/amendment-renewal-approvals.md#when-a-call-needs-approval). The published version in effect and versions that have ended are historical records and must be superseded by a new version instead.

## Which path should I use?

| If you want to... | Use |
| - | - |
| Bump one scalar field on one price | Path A with `update` + `adjust` |
| Replace the tier structure on a tiered price | Path A with `update` + `adjust.<model>.tiers` |
| Switch a price from one type to another | Path A with `update` + `new_price` |
| Add or remove a single item | Path A with `add` or `remove` |
| Swap to a new plan with a few overrides | Path A with `plan_id` + `update` |
| Adjust one child price inside a bundle | Path A with `update` + `bundle_id` + nested `items[].adjust` |
| Replace a subscription's entire item set in one request | Path B |
| Stage a big multi-step edit over several API calls | Path B: create draft, edit with `PUT`, publish |
| Programmatically migrate a batch of subscriptions to a new shape | Path B (snapshot-based, deterministic) |
| Preview a change before writing it | Path A with `/changes/preview` |

Both paths produce the same underlying data shape (a new version), so you can mix them freely across a subscription's lifetime.

## Common pitfalls

* **Editing a published version.** Published versions are immutable. `PUT` on a published version returns `422`. Create a new version via Path A or Path B instead.
* **Forgetting the complete item set in Path B.** `POST /versions` and `PUT /versions/{vid}` are snapshot endpoints. Items you do not include are removed from the new version.
* **Forgetting `draft: true` in Path B.** `POST /versions` publishes by default. If you meant to review or edit the version first, it is already live (or pending at `effective_at`) — supersede it with another version.
* **Trying to adjust a bundle child by `product_id` alone.** Children of a bundle must be addressed through their parent: `update[].bundle_id` plus `update[].items[].product_id`, not a bare top-level `update[].product_id`.
* **Sending `adjust` and `new_price` together on the same item.** These are mutually exclusive. Use `adjust` for partial merges and `new_price` for full replacement.
* **Expecting tier merges.** The `tiers` array on any tiered pricing adjustment replaces the entire tier set. Always send the full intended tier set. The same applies to `expression_pricing_model.charges`.

## Related

* [Creating a Subscription](https://alguna.com/docs/api-reference/examples/creating-a-subscription.md) — the create flow these versions build on
* [Versioning](https://alguna.com/docs/subscriptions/versioning.md), [Amendments](https://alguna.com/docs/subscriptions/amendments.md) and [Proration](https://alguna.com/docs/subscriptions/proration.md) — how versions bill mid-period
* [Webhooks](https://alguna.com/docs/api-reference/webhooks.md#supported-events) — `subscription.version.updated` fires when a version is created, updated or published
* [Idempotency](https://alguna.com/docs/api-reference/idempotency.md) — make change and publish calls safe to retry


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.