> Source: https://developers.terrawallet.us/docs/reference/subscriptions . Terra Wallet developer docs (early access).

<!-- GENERATED by apps/mcp/scripts/build-docs-index.mjs. Do not edit by hand. -->

# Subscriptions

> **Preview.** Generated from `docs/developers/openapi-v1.json` (the exported OpenAPI document, authoritative) and, for operations it does not contain yet, from the v1 build contract (`docs/platform/V1_CONTRACT.md`). Each contract-only operation is marked.

A customer on a plan. In v1 every subscription is pay each period: Terra sends a renewal invoice each period and the customer pays it from their own wallet.

**Authentication:** Secret key or dashboard session.

**Guide:** [Subscriptions and plans](https://developers.terrawallet.us/docs/pay/subscriptions.md)

| Method | Path | Summary |
|---|---|---|
| POST | `/v1/subscriptions` | Subscribe a customer to a plan. |

## POST /v1/subscriptions

Subscribe a customer to a plan.

- Operation id: `createSubscription`
- Authentication: Secret key or dashboard session
- `Idempotency-Key`: required
- Source: the v1 contract. This operation is not in the OpenAPI document yet.

### Request body

| Name | Type | Required | Notes |
|---|---|---|---|
| `plan` | string | yes | A plan_ id. |
| `customer_email` | string (email) | yes |  |

### Response

The subscription (sub_...) with its first invoice. status is one of trialing, active, past_due, paused, canceled.

### Notes

- Renewal invoices are generated automatically, with reminders 7, 3 and 1 days before.
