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

# uplink:Subscription

> Current subscription state for a service — tier, status, price, free trial, and pending cancel, pause, or plan change.

**`uplink:Subscription/v1`** — the current state of one subscription or membership (Netflix, Spotify, Amazon Prime, Kindle Unlimited). Captures the tier the account is on, its status, pending changes, and the plan menu the account can switch to. Vertical-agnostic across streaming, SaaS, memberships, and periodicals.

Prices are **provider-formatted strings** (`"$15.99"`, `"€9.99/mo"`) and dates are provider-formatted. Consumers wanting a numeric price should parse.

## Fields

| Field | Type | Required | Description |
| - | - | - | - |
| `id` | string | | Provider subscription id. Stable across refreshes. |
| `name` | string | | Product name (`Amazon Prime`, `Spotify Premium`). |
| `status` | string | ✓ | Lifecycle status in the provider's vocabulary: `active`, `cancelled`, `paused`, `trial`, `past_due`, `former_member`. Map to your own state machine. |
| `typeId` | string | | Provider-stable plan identifier (`standard-ads`, `premium`). Join key against `availablePlans[].id`. |
| `description` | string | | Human-readable plan name (`Standard with ads`, `Amazon Prime`). |
| `amount` | string | | Provider-formatted price for the current plan. |
| `billingCycle` | string | | Billing period (`monthly`, `yearly`). Free-form. |
| `renewalDate` | date | | Next renewal or charge date. Absent once cancelled. |
| `cancellationDate` | date | | Date the subscription ended or will end. |
| `freeTrial` | boolean | | Currently in a promotional or free-trial period. Absent when the provider doesn't distinguish. |
| `availablePlans` | array\<object> | | Plans the account can switch to right now. Empty when the provider exposes no plan menu. See below. |
| `usage` | object | | Consumption-vs-limit snapshot for quota plans (seats, storage, streams). See below. |
| `pendingCancel` | object | | `{ isPending, startDate }` — a scheduled cancellation that hasn't taken effect. `startDate` is when it becomes effective. |
| `pendingPause` | object | | `{ isPending, endDate }` — a scheduled pause. Omitted by providers without pause. |
| `pendingPlanChange` | object | | `{ isPending, typeId, description, amount, startDate }` — a scheduled plan switch. |
| `paymentMethod` | object | | `{ description, brand, lastFour }` — the instrument the subscription bills to. `description` is required (`Visa ending in 1234`). |
| `paymentHistory` | array\<object> | | `{ date, amount }` past charges, most-recent first. |
| `providedBy` | string | | Another plan or partner that includes or pays for this subscription (`Google One`, `Verizon`). The user isn't billed for it directly; `amount` is their own cost when given. |
| `billedThrough` | string | | Platform that collects the payment when it isn't the provider (`Google Play`, `Apple`, a carrier). Where a cancel or card change happens. |
| `manageUrl` | string | | Page where the user manages the subscription. |

### `availablePlans[]` items

| Field | Type | Required | Description |
| - | - | - | - |
| `id` | string | | Provider-stable plan id, same semantics as `typeId`. |
| `description` | string | | Human-readable plan name. |
| `amount` | string | | Provider-formatted price. |
| `billingCycle` | string | | `monthly`, `annual`, or a provider-specific string. |
| `features` | object | | Free-form provider feature map (video quality, seat count, ads, storage). |

### `usage`

| Field | Type | Required | Description |
| - | - | - | - |
| `description` | string | | What's metered (`Premium accounts`, `Storage`, `Concurrent streams`). |
| `limit` | number | | Max allowed under the current plan. |
| `used` | number | | Current usage. |
| `unit` | string | | `USERS`, `GB`, `STREAMS`, or provider-specific. |

## Example

```json theme={null}
{
  "id": "PRIME-1234",
  "name": "Amazon Prime",
  "status": "active",
  "description": "Amazon Prime",
  "amount": "$14.99",
  "billingCycle": "monthly",
  "renewalDate": "2026-12-14",
  "freeTrial": false,
  "pendingCancel": { "isPending": false },
  "paymentMethod": { "description": "Visa ending in 4242", "brand": "Visa", "lastFour": "4242" }
}
```

## Emitted by

* `@atomic/amazon` — `subscriptions` on `subscriptions`
* `@atomic/google` — `subscriptions` on `subscriptions`
* `@atomic/netflix` — `subscription` on `fetchAll`
* `@atomic/spotify` — `subscription` on `fetchAccount`
* `@atomic/verizon` — `subscriptions` on `fetchAll`

## Related

* [`uplink:Bill`](https://docs.uplink.build/vocabulary/Bill) — what the subscription costs each period
* [`uplink:SubscriptionMembers`](https://docs.uplink.build/vocabulary/SubscriptionMembers) — seats on a shared plan
* [`uplink:Order`](https://docs.uplink.build/vocabulary/Order) — one-off purchases on the same merchant account


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