Skip to main content

Refund Statistics

Get refund statistics and metrics.

GEThttps://api.zenpayz.com/merchant/api/v1/refund-intents/stats
Bearer · API key

Request

Headers

HeaderDescription
Authorization
REQUIRED
Bearer {api_key}
X-Signature
REQUIRED
HMAC-SHA256 signature
X-Timestamp
REQUIRED
ISO 8601 timestamp
X-Secret-Salt
REQUIRED
Secret salt for HMAC validation

Query Parameters

ParameterTypeDescription
startDate
OPTIONAL
string30 days agoStart date (ISO format)
endDate
OPTIONAL
stringnowEnd date (ISO format)
currency
OPTIONAL
string-Filter by currency code

Response

Success (200 OK)

{
"success": true,
"data": {
"total": 150,
"pending": 5,
"approved": 3,
"rejected": 1,
"processing": 2,
"completed": 135,
"failed": 3,
"cancelled": 1,
"totalAmount": 250000,
"averageAmount": 1666.67,
"averageProcessingTime": 285633,
"refundRate": 90
}
}

Response Fields

ParameterTypeDescription
total
OPTIONAL
numberTotal number of refunds
pending
OPTIONAL
numberRefunds pending approval
approved
OPTIONAL
numberApproved, awaiting processing
rejected
OPTIONAL
numberRejected by admin
processing
OPTIONAL
numberCurrently being processed by TSP
completed
OPTIONAL
numberSuccessfully completed refunds
failed
OPTIONAL
numberFailed refunds
cancelled
OPTIONAL
numberCancelled refunds
totalAmount
OPTIONAL
numberSum of all refund amounts
averageAmount
OPTIONAL
numberAverage refund amount
averageProcessingTime
OPTIONAL
numberAverage processing time in milliseconds
refundRate
OPTIONAL
numberPercentage of completed refunds (completed / total * 100)

Examples

curl -X GET "https://api.zenpayz.com/merchant/api/v1/refund-intents/stats?startDate=2026-01-01&endDate=2026-03-28" \
-H "Authorization: Bearer zp_test_xxxxx" \
-H "X-Timestamp: 2026-03-28T10:30:00.000Z" \
-H "X-Signature: a1b2c3d4e5f6..." \
-H "X-Secret-Salt: your_secret_salt"