List webhook event types
curl --request GET \
--url https://api.usebila.com/api/v1/bila/webhooks/events \
--header 'x-api-key: <api-key>'import requests
url = "https://api.usebila.com/api/v1/bila/webhooks/events"
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/events', 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/events",
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/events"
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/events")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usebila.com/api/v1/bila/webhooks/events")
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": [
"order.created",
"order.paid",
"order.cancelled",
"stock.low",
"payment.created",
"payment.completed",
"payment.failed",
"collection.pending",
"collection.completed",
"collection.failed",
"withdrawal.created",
"withdrawal.completed",
"withdrawal.failed",
"transaction.updated",
"transfer.pending",
"transfer.completed",
"transfer.failed",
"settlement.completed"
]
}Webhooks
List webhook event types
GET
/
api
/
v1
/
bila
/
webhooks
/
events
List webhook event types
curl --request GET \
--url https://api.usebila.com/api/v1/bila/webhooks/events \
--header 'x-api-key: <api-key>'import requests
url = "https://api.usebila.com/api/v1/bila/webhooks/events"
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/events', 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/events",
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/events"
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/events")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usebila.com/api/v1/bila/webhooks/events")
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": [
"order.created",
"order.paid",
"order.cancelled",
"stock.low",
"payment.created",
"payment.completed",
"payment.failed",
"collection.pending",
"collection.completed",
"collection.failed",
"withdrawal.created",
"withdrawal.completed",
"withdrawal.failed",
"transaction.updated",
"transfer.pending",
"transfer.completed",
"transfer.failed",
"settlement.completed"
]
}Authorizations
Merchant API key (e.g., sk_live_xxx or sk_test_xxx)
Response
200 - application/json
Webhook events retrieved
Request success status
Example:
true
Response message
Example:
"Operation completed successfully"
Example:
[
"order.created",
"order.paid",
"order.cancelled",
"stock.low",
"payment.created",
"payment.completed",
"payment.failed",
"collection.pending",
"collection.completed",
"collection.failed",
"withdrawal.created",
"withdrawal.completed",
"withdrawal.failed",
"transaction.updated",
"transfer.pending",
"transfer.completed",
"transfer.failed",
"settlement.completed"
]
Was this page helpful?
⌘I
