API reference
Early accessRefunds
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
| 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.