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

Public checkout

The routes the hosted pages on pay.terrawallet.us use. No authentication, strict per-IP limits, and only what the page needs.

Authentication: None (public, rate limited per IP).

Guide: Hosted checkout

MethodPathSummary
GET/v1/checkout/{id}Public view of a payment intent, payment link, invoice or plan.
POST/v1/checkout/{plink_id}/intentsCreate a payment intent from a payment link.
POST/v1/checkout/{plan_id}/subscribeSubscribe from a subscription link.

GET/v1/checkout/{id}#

Public view of a payment intent, payment link, invoice or plan.

  • Operation id: getCheckout
  • Authentication: None (public)
  • Source: the v1 contract. This operation is not in the OpenAPI document yet.

Path parameters#

NameTypeRequiredNotes
idstringyesA pi_, plink_, inv_ or plan_ id.

Response#

Only what the page needs: merchant display name, logo URL, amount, quotes, status. Never metadata, emails or internal ids beyond the public one.

POST/v1/checkout/{plink_id}/intents#

Create a payment intent from a payment link.

  • Operation id: createIntentFromLink
  • Authentication: None (public)
  • Idempotency-Key: required
  • Written in the contract as /v1/checkout/plink_.../intents
  • Source: the v1 contract. This operation is not in the OpenAPI document yet.

Path parameters#

NameTypeRequiredNotes
plink_idstringyesA plink_ id.

Request body#

NameTypeRequiredNotes
assetassetyes
quantityintegerno
amountstring (decimal)noFor links where the customer chooses the amount.

Notes#

  • Protected by Turnstile.

POST/v1/checkout/{plan_id}/subscribe#

Subscribe from a subscription link.

  • Operation id: subscribeToPlan
  • Authentication: None (public)
  • Idempotency-Key: required
  • Written in the contract as /v1/checkout/plan_.../subscribe
  • Source: the v1 contract. This operation is not in the OpenAPI document yet.

Path parameters#

NameTypeRequiredNotes
plan_idstringyesA plan_ id.

Request body#

NameTypeRequiredNotes
emailstring (email)yes
turnstileTokenstringyes