Skip to main content
POST
/
transactions
/
refund
/
{originalTxId}
Create refund
curl --request POST \
  --url https://api.orafi.app/v1/transactions/refund/{originalTxId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "to": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
  "reason": "Customer requested cancellation"
}
'
{
  "success": true,
  "message": "Refund initiated successfully",
  "data": {
    "id": "refund_abc123",
    "amount": 100,
    "status": "CONFIRMED",
    "transactionId": "<string>",
    "toAddress": "<string>",
    "reason": "<string>",
    "txDigest": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.orafi.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

API key for merchant authentication required for most endpoints

Path Parameters

originalTxId
string
required

ID of the original transaction to refund

Body

application/json
to
string
required

Recipient wallet address or account

Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"

reason
string

Reason for the refund

Example:

"Customer requested cancellation"

Response

Refund created successfully

success
boolean
Example:

true

message
string
Example:

"Refund initiated successfully"

data
object