Skip to content
Terra WalletDevelopers

Early access. The Terra API and SDKs may change before launch, and the SDK packages are not published yet.

View as Markdown

API reference

Early access

Plans

A price and an interval for subscriptions (pay each period).

Authentication: Secret key or dashboard session.

Guide: Subscriptions and plans

MethodPathSummary
POST/v1/plansCreate 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#

NameTypeRequiredNotes
namestringyes
amountstring (decimal)yes
currencystringyesA fiat ISO code.
intervalstringyesweek, month or year
interval_countintegeryes
trial_daysintegerno

Response#

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