curl --request GET \
--url https://api.meum.io/v1/webhook-endpoints/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.meum.io/v1/webhook-endpoints/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.meum.io/v1/webhook-endpoints/{id}', 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.meum.io/v1/webhook-endpoints/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.meum.io/v1/webhook-endpoints/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.meum.io/v1/webhook-endpoints/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meum.io/v1/webhook-endpoints/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "Production webhook",
"url": "<string>",
"secret_prefix": "a1b2c3d4",
"events": [
"invoice.created",
"invoice.paid",
"invoice.expired",
"invoice.failed"
],
"status": "ACTIVE",
"managed": true,
"last_delivery_at": "2023-11-07T05:31:56Z",
"last_delivery_status": "<string>",
"failure_count": 123,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "not_found",
"code": "invoice_not_found",
"message": "Invoice not found",
"request_id": "req_a1b2c3d4e5f6789012345678"
}
}Get webhook endpoint
curl --request GET \
--url https://api.meum.io/v1/webhook-endpoints/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.meum.io/v1/webhook-endpoints/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.meum.io/v1/webhook-endpoints/{id}', 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.meum.io/v1/webhook-endpoints/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.meum.io/v1/webhook-endpoints/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.meum.io/v1/webhook-endpoints/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meum.io/v1/webhook-endpoints/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "Production webhook",
"url": "<string>",
"secret_prefix": "a1b2c3d4",
"events": [
"invoice.created",
"invoice.paid",
"invoice.expired",
"invoice.failed"
],
"status": "ACTIVE",
"managed": true,
"last_delivery_at": "2023-11-07T05:31:56Z",
"last_delivery_status": "<string>",
"failure_count": 123,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "not_found",
"code": "invoice_not_found",
"message": "Invoice not found",
"request_id": "req_a1b2c3d4e5f6789012345678"
}
}Authorizations
Store-scoped API key. Prefix with sk_live_.
Example: Authorization: Bearer sk_live_EXAMPLE_DO_NOT_USE
Path Parameters
Webhook endpoint public ID (wh_...).
^(inv_|txn_|plink_|wh_|whd_|evt_|int_)[0-9a-z]{20,32}$Response
Webhook endpoint details
Registered HTTPS endpoint that receives signed webhook events.
Webhook endpoint ID (wh_...).
^(inv_|txn_|plink_|wh_|whd_|evt_|int_)[0-9a-z]{20,32}$Human-readable label in the merchant dashboard.
"Production webhook"
HTTPS URL that receives POST requests for subscribed events.
First characters of the signing secret (for identification only).
"a1b2c3d4"
Event types this endpoint is subscribed to.
[
"invoice.created",
"invoice.paid",
"invoice.expired",
"invoice.failed"
]
Webhook endpoint state:
ACTIVE: deliveries are sentDISABLED: paused by merchantARCHIVED: permanently retired
ACTIVE, DISABLED, ARCHIVED True when owned by an integration (for example WooCommerce) and not fully editable in the dashboard.
Timestamp of the most recent delivery attempt.
Outcome of the last delivery (for example success, failed).
Consecutive or recent failed delivery count, depending on endpoint policy.
When the endpoint was registered.