List Refunds
Retrieve a paginated list of refunds for your account.
List Refunds
GET /v1/refunds
Returns a cursor-paginated list of refunds for the authenticated business, ordered by most recent first.
Connect
Platforms can call this on behalf of a connected business with the
ePay-Account header. Requires the read_only scope. You only see payments
your app created through that connection. See Act on
behalf.
Request
npm install @e-pay/nodenpm install @e-pay/nestjspip install epaypip install epaypip install epaypip install epaycomposer require epay-et/php-sdkcomposer require epay-et/php-sdkimplementation("com.epayethiopia:epay-java:0.1.0")implementation("com.epayethiopia:epay-spring-boot-starter:0.1.0")go get github.com/epay-et/go-sdkNothing NestJS-specific here — this is the same Node.js client call.
Nothing Django-specific here — this is the same Python client call.
Nothing Flask-specific here — this is the same Python client call.
Nothing FastAPI-specific here — this is the same Python client call.
Nothing Laravel-specific here — this is the same PHP client call.
Nothing Spring Boot-specific here — this is the same Java client call.
curl "https://api.epayet.dev/v1/refunds?status=refund_status_pending&from=2026-10-01" \
-H "Authorization: Bearer sk_live_your_key_here"import { Epay } from '@e-pay/node';
const epay = new Epay({ apiKey: process.env.EPAY_SECRET_KEY });
const { data, nextCursor } = await epay.refunds.list({
status: 'refund_status_pending',
from: '2026-10-01',
});
for (const refund of data) {
console.log(refund.epayReference, refund.status);
}const params = new URLSearchParams({
status: 'refund_status_pending',
from: '2026-10-01',
});
const res = await fetch(`https://api.epayet.dev/v1/refunds?${params}`, {
headers: { Authorization: `Bearer ${process.env.EPAY_SECRET_KEY}` },
});
if (!res.ok) throw new Error(`ePay ${res.status}: ${await res.text()}`);
const { data, nextCursor } = (await res.json()).data;from epay import Epay
epay = Epay() # reads EPAY_SECRET_KEY
result = epay.refunds.list(
status="refund_status_pending",
from_date="2026-10-01",
)
for refund in result.data:
print(refund.epay_reference, refund.status)import os
import requests
res = requests.get(
"https://api.epayet.dev/v1/refunds",
headers={"Authorization": f"Bearer {os.environ['EPAY_SECRET_KEY']}"},
params={"status": "refund_status_pending", "from": "2026-10-01"},
timeout=30,
)
res.raise_for_status()
data = res.json()["data"]use Epay\Epay;
$epay = new Epay(); // reads EPAY_SECRET_KEY
$result = $epay->refunds->list([
'status' => 'refund_status_pending',
'from' => '2026-10-01',
]);
foreach ($result->data as $refund) {
echo $refund->epayReference . PHP_EOL;
}$query = http_build_query(['status' => 'refund_status_pending', 'from' => '2026-10-01']);
$ch = curl_init("https://api.epayet.dev/v1/refunds?{$query}");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('EPAY_SECRET_KEY')],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status !== 200) throw new RuntimeException("ePay {$status}: {$body}");
$result = json_decode($body, true)['data'];result, err := client.Refunds.List(ctx, &epay.ListRefundsParams{
Status: "refund_status_pending",
From: "2026-10-01",
})
if err != nil {
return err
}
for _, refund := range result.Data {
fmt.Println(refund.EpayReference, refund.Status)
}req, _ := http.NewRequestWithContext(ctx, http.MethodGet, "https://api.epayet.dev/v1/refunds", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EPAY_SECRET_KEY"))
q := req.URL.Query()
q.Set("status", "refund_status_pending")
q.Set("from", "2026-10-01")
req.URL.RawQuery = q.Encode()
res, err := http.DefaultClient.Do(req)
if err != nil {
return err
}
defer res.Body.Close()Epay epay = Epay.fromEnvironment();
ListRefundsResult result = epay.refunds().list(
ListRefundsParams.builder()
.status("refund_status_pending")
.from("2026-10-01")
.build());
for (Refund refund : result.getData()) {
System.out.println(refund.getEpayReference());
}HttpClient http = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder(
URI.create("https://api.epayet.dev/v1/refunds?status=refund_status_pending&from=2026-10-01"))
.header("Authorization", "Bearer " + System.getenv("EPAY_SECRET_KEY"))
.GET()
.build();
HttpResponse<String> response = http.send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() != 200) {
throw new IllegalStateException("ePay " + response.statusCode());
}Query Parameters
Prop
Type
Response
Returns 200 OK. data.data holds the refunds — each item is { "refund": { … } }, the same object Initiate a Refund returns — and data.nextCursor the cursor for the next page.
{
"status": "success",
"data": {
"data": [
{
"refund": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"epayReference": "RF3A4B5C6D20261021",
"type": "refund_type_full",
"status": "refund_status_pending",
"amount": "250.00",
"refundFeeAmount": "0.00",
"merchantDebitAmount": "250.00",
"reason": "Customer requested cancellation",
"merchantReference": "refund_order_123",
"createdAt": "2026-10-21T10:00:00.000Z"
}
}
],
"nextCursor": "2026-10-21T10:00:00.000Z"
}
}Prop
Type
Errors
| Status | Description |
|---|---|
400 | Invalid query parameters. |
401 | Missing or invalid API key. |
Next: Retrieve a Refund — fetch a single refund by its reference.