API reference
Early accessPlans
A price and an interval for subscriptions (pay each period).
Authentication: Secret key or dashboard session.
Guide: Subscriptions and plans
| 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_...