API reference
Early accessPublic 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
| Method | Path | Summary |
|---|---|---|
| GET | /v1/checkout/{id} | Public view of a payment intent, payment link, invoice or plan. |
| POST | /v1/checkout/{plink_id}/intents | Create a payment intent from a payment link. |
| POST | /v1/checkout/{plan_id}/subscribe | Subscribe 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#
| Name | Type | Required | Notes |
|---|---|---|---|
id | string | yes | A 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#
| Name | Type | Required | Notes |
|---|---|---|---|
plink_id | string | yes | A plink_ id. |
Request body#
| Name | Type | Required | Notes |
|---|---|---|---|
asset | asset | yes | |
quantity | integer | no | |
amount | string (decimal) | no | For 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#
| Name | Type | Required | Notes |
|---|---|---|---|
plan_id | string | yes | A plan_ id. |
Request body#
| Name | Type | Required | Notes |
|---|---|---|---|
email | string (email) | yes | |
turnstileToken | string | yes |