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

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

# Public checkout

> **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.

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](https://developers.terrawallet.us/docs/pay/hosted-checkout.md)

| 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 |  |
