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

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

# Refunds

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

Refund drafts. Terra never moves funds: the merchant signs and sends the refund from their own wallet, and the server only verifies it on chain.

**Authentication:** Secret key or dashboard session.

**Guide:** [Refunds](https://developers.terrawallet.us/docs/pay/refunds.md)

| Method | Path | Summary |
|---|---|---|
| POST | `/v1/refunds` | Create a refund draft for a payment intent. |

## POST /v1/refunds

Create a refund draft for a payment intent.

- Operation id: `createRefund`
- 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 |
|---|---|---|---|
| `payment_intent` | string | yes | A pi_ id. |
| `amount` | string (decimal) | yes | A full or partial amount. |

### Response

A refund DRAFT. It moves nothing until a person signs it in their own wallet from the dashboard.
