Skip to content
Terra WalletDevelopers

Early access. The Terra API and SDKs may change before launch, and the SDK packages are not published yet.

View as Markdown

API reference

Early access

Refunds

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

MethodPathSummary
POST/v1/refundsCreate 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#

NameTypeRequiredNotes
payment_intentstringyesA pi_ id.
amountstring (decimal)yesA full or partial amount.

Response#

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