Skip to main content
POST
/
v1
/
orders
/
refund
Request Refund
curl --request POST \
  --url https://api.chessa.ai/v1/orders/refund \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
  "orderId": "order123",
  "tag": "12345"
}
'
{
  "createdAt": "2025-03-18T10:45:22.123Z",
  "cryptoAmount": "0.05",
  "cryptoAsset": "BTC",
  "estimatedCompletionTime": "2025-03-18T12:45:22.123Z",
  "orderId": "ord_abcdef123456789",
  "reason": "Customer requested cancellation",
  "refundAddress": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
  "refundId": "ref_123456789abcdef",
  "status": "pending",
  "updatedAt": "2025-03-18T10:45:22.123Z"
}

Headers

x-client-id
string
Example:

""

x-client-secret
string
Example:

""

Body

application/json
address
string
Example:

"bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"

orderId
string
Example:

"order123"

tag
string
Example:

"12345"

Response

Success Response

createdAt
string
Example:

"2025-03-18T10:45:22.123Z"

cryptoAmount
string
Example:

"0.05"

cryptoAsset
string
Example:

"BTC"

estimatedCompletionTime
string
Example:

"2025-03-18T12:45:22.123Z"

orderId
string
Example:

"ord_abcdef123456789"

reason
string
Example:

"Customer requested cancellation"

refundAddress
string
Example:

"bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"

refundId
string
Example:

"ref_123456789abcdef"

status
string
Example:

"pending"

updatedAt
string
Example:

"2025-03-18T10:45:22.123Z"