Get delivery history
curl --request GET \
--url https://api.usebila.com/api/v1/bila/webhooks/{id}/deliveries \
--header 'x-api-key: <api-key>'import requests
url = "https://api.usebila.com/api/v1/bila/webhooks/{id}/deliveries"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.usebila.com/api/v1/bila/webhooks/{id}/deliveries', 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.usebila.com/api/v1/bila/webhooks/{id}/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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.usebila.com/api/v1/bila/webhooks/{id}/deliveries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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.usebila.com/api/v1/bila/webhooks/{id}/deliveries")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usebila.com/api/v1/bila/webhooks/{id}/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Operation completed successfully",
"data": {
"data": [
{
"id": "68f11209-451f-4a15-bfcd-d916eb8b09f6",
"webhookConfigId": "68f11209-451f-4a15-bfcd-d916eb8b09f4",
"eventType": "payment.completed",
"payload": {
"id": "68f11209-451f-4a15-bfcd-d916eb8b09f7",
"transactionId": "68f11209-451f-4a15-bfcd-d916eb8b09f8",
"amount": "100.50",
"status": "COMPLETED"
},
"status": "DELIVERED",
"responseStatus": 200,
"responseBody": "{\"received\":true}",
"attempts": 1,
"maxAttempts": 5,
"deliveredAt": "2026-04-15T14:30:05.000Z",
"failedAt": null,
"nextRetryAt": null,
"createdAt": "2026-04-15T14:30:00.000Z"
}
],
"meta": {
"total": 150,
"perPage": 50,
"currentPage": 1,
"pageCount": 3
}
}
}Webhooks
Get delivery history
GET
/
api
/
v1
/
bila
/
webhooks
/
{id}
/
deliveries
Get delivery history
curl --request GET \
--url https://api.usebila.com/api/v1/bila/webhooks/{id}/deliveries \
--header 'x-api-key: <api-key>'import requests
url = "https://api.usebila.com/api/v1/bila/webhooks/{id}/deliveries"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.usebila.com/api/v1/bila/webhooks/{id}/deliveries', 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.usebila.com/api/v1/bila/webhooks/{id}/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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.usebila.com/api/v1/bila/webhooks/{id}/deliveries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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.usebila.com/api/v1/bila/webhooks/{id}/deliveries")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usebila.com/api/v1/bila/webhooks/{id}/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Operation completed successfully",
"data": {
"data": [
{
"id": "68f11209-451f-4a15-bfcd-d916eb8b09f6",
"webhookConfigId": "68f11209-451f-4a15-bfcd-d916eb8b09f4",
"eventType": "payment.completed",
"payload": {
"id": "68f11209-451f-4a15-bfcd-d916eb8b09f7",
"transactionId": "68f11209-451f-4a15-bfcd-d916eb8b09f8",
"amount": "100.50",
"status": "COMPLETED"
},
"status": "DELIVERED",
"responseStatus": 200,
"responseBody": "{\"received\":true}",
"attempts": 1,
"maxAttempts": 5,
"deliveredAt": "2026-04-15T14:30:05.000Z",
"failedAt": null,
"nextRetryAt": null,
"createdAt": "2026-04-15T14:30:00.000Z"
}
],
"meta": {
"total": 150,
"perPage": 50,
"currentPage": 1,
"pageCount": 3
}
}
}Authorizations
Merchant API key (e.g., sk_live_xxx or sk_test_xxx)
Path Parameters
Webhook config UUID
Example:
"68f11209-451f-4a15-bfcd-d916eb8b09f4"
Query Parameters
Filter by event type
Example:
"payment.completed"
Filter by status (QUEUED, DELIVERED, FAILED, RETRYING)
Example:
"DELIVERED"
ISO 8601 start of createdAt range (inclusive)
Example:
"2026-04-01T00:00:00.000Z"
ISO 8601 end of createdAt range (inclusive)
Example:
"2026-04-30T23:59:59.999Z"
Page number
Required range:
x >= 1Example:
1
Items per page
Required range:
1 <= x <= 100Example:
20
Was this page helpful?
