Transactions

Webhook Deliveries

See every webhook ePay sent for a transaction and how your endpoint answered.

Webhook Deliveries

GET /v1/transactions/:reference/webhook-deliveries

Returns every webhook delivery attempt for one transaction, oldest first: the event, what ePay sent, your endpoint's HTTP status and response, and the next retry if one is scheduled. Use it to debug a missed or failing webhook.

Connect

Not available on behalf of a connected business: requests with the ePay-Account header are rejected with insufficient_scope. Platforms see their Connect webhook deliveries in the dashboard instead.


Request

raw HTTP

Nothing 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/transactions/PAB12CD3420260813/webhook-deliveries \
  -H "Authorization: Bearer sk_live_your_key_here"
const res = await fetch(
  `https://api.epayet.dev/v1/transactions/${reference}/webhook-deliveries`,
  { headers: { Authorization: `Bearer ${process.env.EPAY_SECRET_KEY}` } },
);
if (!res.ok) throw new Error(`ePay ${res.status}: ${await res.text()}`);
const { data } = await res.json();

for (const d of data.deliveries) {
  console.log(d.eventType, d.status, d.httpStatus);
}
import os

import requests

res = requests.get(
    f"https://api.epayet.dev/v1/transactions/{reference}/webhook-deliveries",
    headers={"Authorization": f"Bearer {os.environ['EPAY_SECRET_KEY']}"},
    timeout=30,
)
res.raise_for_status()
for d in res.json()["data"]["deliveries"]:
    print(d["eventType"], d["status"], d["httpStatus"])
$ch = curl_init("https://api.epayet.dev/v1/transactions/{$reference}/webhook-deliveries");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ['Authorization: Bearer ' . getenv('EPAY_SECRET_KEY')],
]);
$deliveries = json_decode(curl_exec($ch), true)['data']['deliveries'];
curl_close($ch);
req, _ := http.NewRequestWithContext(ctx, http.MethodGet,
	"https://api.epayet.dev/v1/transactions/"+reference+"/webhook-deliveries", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EPAY_SECRET_KEY"))

res, err := http.DefaultClient.Do(req)
if err != nil {
	return err
}
defer res.Body.Close()
HttpRequest request = HttpRequest.newBuilder(URI.create(
        "https://api.epayet.dev/v1/transactions/" + reference + "/webhook-deliveries"))
    .header("Authorization", "Bearer " + System.getenv("EPAY_SECRET_KEY"))
    .GET()
    .build();

HttpResponse<String> response =
    HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());

Node.js SDK support is coming soon. Switch to for a working example in Node.js today.

Python SDK support is coming soon. Switch to for a working example in Python today.

PHP SDK support is coming soon. Switch to for a working example in PHP today.

Java SDK support is coming soon. Switch to for a working example in Java today.

Go SDK support is coming soon. Switch to for a working example in Go today.


Path Parameters

Prop

Type


Response

Returns 200 OK.

{
  "status": "success",
  "data": {
    "reference": "PAB12CD3420260813",
    "deliveries": [
      {
        "id": "8d4f3a2b-1c6e-4f7a-9b2d-0e5c7a1f3b9d",
        "eventType": "payment_success",
        "status": "delivered",
        "httpStatus": 200,
        "targetUrl": "https://yourstore.com/webhooks/epay",
        "requestBody": { "event": "payment.success", "reference": "PAB12CD3420260813" },
        "responseBody": "ok",
        "nextRetryAt": null,
        "createdAt": "2026-08-13T12:05:02.000Z"
      }
    ]
  }
}

Prop

Type


Errors

StatusDescription
401Missing or invalid API key.
403Called with the ePay-Account header (insufficient_scope).
404No transaction found for the given reference under your account.

On this page