curl --request GET \
--url https://api.ubpass.co/v1/wallet-pass/notifications/{id}/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ubpass.co/v1/wallet-pass/notifications/{id}/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ubpass.co/v1/wallet-pass/notifications/{id}/stats', 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.ubpass.co/v1/wallet-pass/notifications/{id}/stats",
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.ubpass.co/v1/wallet-pass/notifications/{id}/stats"
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.ubpass.co/v1/wallet-pass/notifications/{id}/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ubpass.co/v1/wallet-pass/notifications/{id}/stats")
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{
"notificationId": "1f089d37-5ebe-6778-af59-99631cec7ab5",
"totalSent": 150,
"totalDelivered": 148,
"totalFailed": 2,
"totalClicks": 45,
"clickThroughRate": 30.4,
"deliveryRate": 98.7,
"lastUpdated": "2025-09-04T21:15:42.123Z",
"linkStats": [
{
"linkId": "1f089d37-8a1b-4c2d-9e3f-123456789abc",
"linkUrl": "https://premiumbrands.com/vip-benefits",
"clickCount": 32,
"uniqueClicks": 28,
"lastClicked": "2025-09-04T20:45:30.456Z"
},
{
"linkId": "1f089d37-8a1b-4c2d-9e3f-123456789def",
"linkUrl": "https://premiumbrands.com/offers",
"clickCount": 13,
"uniqueClicks": 12,
"lastClicked": "2025-09-04T19:22:15.789Z"
}
],
"deliveryStats": {
"delivered": 148,
"failed": 2,
"pending": 0,
"failedReasons": [
{
"reason": "Invalid device token",
"count": 2
}
]
}
}{
"txId": "Root=1-68d3693c-26a3db2278c7668f5e086711",
"timestamp": "24-09-2025 03:45:00",
"errorCode": "UNAUTHORIZED",
"errorMessage": "UNAUTHORIZED."
}{
"txId": "1f098fa9-3786-64d4-b4ff-533200846d35",
"timestamp": "24-09-2025 03:57:23",
"errorCode": "NOT_FOUND",
"errorMessage": "Not found.",
"context": {
"id": "1f083424-11ed-617f-9513-1b26dc975ee2"
}
}Get notification statistics
Retrieve detailed statistics for a specific wallet pass notification including delivery metrics, click tracking, and engagement data.
Statistics Include:
- Delivery status and timestamps
- Click-through rates for notification links
- User engagement metrics
- Error tracking and failure reasons
Pagination:
- Use
cursorparameter for next page navigation limitcontrols page size (default: 20, max: 20)
curl --request GET \
--url https://api.ubpass.co/v1/wallet-pass/notifications/{id}/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ubpass.co/v1/wallet-pass/notifications/{id}/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ubpass.co/v1/wallet-pass/notifications/{id}/stats', 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.ubpass.co/v1/wallet-pass/notifications/{id}/stats",
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.ubpass.co/v1/wallet-pass/notifications/{id}/stats"
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.ubpass.co/v1/wallet-pass/notifications/{id}/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ubpass.co/v1/wallet-pass/notifications/{id}/stats")
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{
"notificationId": "1f089d37-5ebe-6778-af59-99631cec7ab5",
"totalSent": 150,
"totalDelivered": 148,
"totalFailed": 2,
"totalClicks": 45,
"clickThroughRate": 30.4,
"deliveryRate": 98.7,
"lastUpdated": "2025-09-04T21:15:42.123Z",
"linkStats": [
{
"linkId": "1f089d37-8a1b-4c2d-9e3f-123456789abc",
"linkUrl": "https://premiumbrands.com/vip-benefits",
"clickCount": 32,
"uniqueClicks": 28,
"lastClicked": "2025-09-04T20:45:30.456Z"
},
{
"linkId": "1f089d37-8a1b-4c2d-9e3f-123456789def",
"linkUrl": "https://premiumbrands.com/offers",
"clickCount": 13,
"uniqueClicks": 12,
"lastClicked": "2025-09-04T19:22:15.789Z"
}
],
"deliveryStats": {
"delivered": 148,
"failed": 2,
"pending": 0,
"failedReasons": [
{
"reason": "Invalid device token",
"count": 2
}
]
}
}{
"txId": "Root=1-68d3693c-26a3db2278c7668f5e086711",
"timestamp": "24-09-2025 03:45:00",
"errorCode": "UNAUTHORIZED",
"errorMessage": "UNAUTHORIZED."
}{
"txId": "1f098fa9-3786-64d4-b4ff-533200846d35",
"timestamp": "24-09-2025 03:57:23",
"errorCode": "NOT_FOUND",
"errorMessage": "Not found.",
"context": {
"id": "1f083424-11ed-617f-9513-1b26dc975ee2"
}
}Authorizations
Bearer token authentication
Headers
Workspace ID to perform the operation in. If not provided, system will use the first one assigned to the user
^[a-zA-Z0-9-_]+$Path Parameters
Unique identifier of the notification to get statistics for
^[a-zA-Z0-9-_]+$Query Parameters
Pagination cursor for fetching the next set of statistics records
x >= 0Number of statistics records to return per page (1-20, max 20)
1 <= x <= 20Response
Successfully retrieved notification statistics
The time when the entity was created in ISO 8601 format including milliseconds and timezone offset.
"2025-05-13T15:07:15.036Z"
The time when the entity was last updated in ISO 8601 format including milliseconds and timezone offset.
"2025-05-13T15:07:15.036Z"
The user who created the entity.
The user who last updated the entity.
The ID of the workspace to which this entity belongs.
Show child attributes
Show child attributes