Terra Pay
Early accessRefunds
Terra never holds your money, so it cannot send a refund for you. Instead, the API creates a refund draft, you sign and send it from your own wallet, and Terra verifies it on chain.
Create a draft#
POST /v1/refunds with the payment intent and the amount (full or partial):
Shell
curl https://terrawallet.us/api/v1/refunds \ -H "Authorization: Bearer $TERRA_SECRET_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: refund-order-1042" \ -d '{ "payment_intent": "pi_...", "amount": "20.00" }'The draft moves nothing.
Sign and send it#
- Open the draft in the dashboard.
- Sign it with your own wallet: Terra Wallet or any wallet through WalletConnect.
- Your wallet broadcasts the transaction.
- Terra verifies the refund on chain and links it to the original payment.
Why it works this way#
- No API call can move funds. Not with a secret key, not through the dashboard API, not through an AI or MCP tool. A stolen key can at most create a draft that a person must still sign.
- The refund is real only on chain. The draft becomes a refund when the chain shows the transaction, not when someone marks it done.
Overpayments#
An overpaid intent is flagged for a refund. Create a draft for the difference and sign it the same way.