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

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

# Plans

> **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 price and an interval for subscriptions (pay each period).

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

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

| Method | Path | Summary |
|---|---|---|
| POST | `/v1/plans` | Create a plan. |

## POST /v1/plans

Create a plan.

- Operation id: `createPlan`
- 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 |
|---|---|---|---|
| `name` | string | yes |  |
| `amount` | string (decimal) | yes |  |
| `currency` | string | yes | A fiat ISO code. |
| `interval` | string | yes | week, month or year |
| `interval_count` | integer | yes |  |
| `trial_days` | integer | no |  |

### Response

The plan (plan_...). Its subscription link is https://pay.terrawallet.us/s/plan_...
