Skip to main content
POST
Refund a failed deposit by id

Headers

x-api-key
string

API key for authentication (omit when sending Authorization)

Example:

"your-api-key"

authorization
string

Bearer platform token (e.g. forwarded by user-service). Takes precedence over x-api-key when both are present.

Example:

"Bearer eyJhbGciOi..."

Path Parameters

id
string
required

Deposit id. Returned by GET /deposits.

Pattern: ^\d+$
Example:

"12345"

Body

application/json
recipient
string
required

Address to receive the refunded tokens (EVM address or Solana public key).

Minimum string length: 1
Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"

Response

Deposit refunded successfully

message
string
required
transactionHash
string
required
amount
string
required