List webhook deliveries
curl --request GET \
--url https://api.paycrest.io/v2/sender/webhooks \
--header 'API-Key: <api-key>'import requests
url = "https://api.paycrest.io/v2/sender/webhooks"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://api.paycrest.io/v2/sender/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.paycrest.io/v2/sender/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.paycrest.io/v2/sender/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.paycrest.io/v2/sender/webhooks")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paycrest.io/v2/sender/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"message": "<string>",
"data": {
"total": 123,
"page": 123,
"pageSize": 123,
"deliveries": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "payment_order.deposited",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"trigger": "automatic",
"statusCode": 200,
"attemptNumber": 1,
"webhookUrl": "<string>",
"errorMessage": "<string>",
"durationMs": 123,
"nextRetryTime": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"totalCapped": true
}
}{
"status": "error",
"message": "Error message",
"data": [
{
"field": "<string>",
"message": "<string>"
}
]
}Sender
List Webhook Deliveries
Returns the authenticated sender’s webhook delivery log, newest first.
Use this to audit which events were delivered and to find failed or expired
deliveries to replay. List items omit the large payload field; fetch a
single delivery to see it.
Bounded mode. With a long delivery history, pass bounded=true to keep the request fast.
total then stops at 10,000 (with totalCapped: true when more deliveries match), pageSize
is capped at 100, and only the newest 10,000 matching deliveries can be paged: a page past them
returns 400. Narrow older deliveries with from/to. Without bounded, total is exact
and paging is unchanged.
GET
/
sender
/
webhooks
List webhook deliveries
curl --request GET \
--url https://api.paycrest.io/v2/sender/webhooks \
--header 'API-Key: <api-key>'import requests
url = "https://api.paycrest.io/v2/sender/webhooks"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://api.paycrest.io/v2/sender/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.paycrest.io/v2/sender/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.paycrest.io/v2/sender/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.paycrest.io/v2/sender/webhooks")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paycrest.io/v2/sender/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"message": "<string>",
"data": {
"total": 123,
"page": 123,
"pageSize": 123,
"deliveries": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "payment_order.deposited",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"trigger": "automatic",
"statusCode": 200,
"attemptNumber": 1,
"webhookUrl": "<string>",
"errorMessage": "<string>",
"durationMs": 123,
"nextRetryTime": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"totalCapped": true
}
}{
"status": "error",
"message": "Error message",
"data": [
{
"field": "<string>",
"message": "<string>"
}
]
}