Get wallet pass notification by ID
curl --request GET \
--url https://api.ubpass.co/v1/wallet-pass/notifications/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ubpass.co/v1/wallet-pass/notifications/{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.ubpass.co/v1/wallet-pass/notifications/{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.ubpass.co/v1/wallet-pass/notifications/{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.ubpass.co/v1/wallet-pass/notifications/{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.ubpass.co/v1/wallet-pass/notifications/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ubpass.co/v1/wallet-pass/notifications/{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": "1f089d37-5ebe-6778-af59-99631cec7ab5",
"createdTime": "2025-09-04T21:09:36.027Z",
"updatedTime": "2025-09-04T21:11:01.734Z",
"createdBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
"updatedBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
"workspaceId": "1f089d29-6f9c-66c2-af59-99631cec7ab5",
"accountId": "1f089d29-6fa8-6a13-af59-99631cec7ab5",
"passSerialNumber": "1f09804f-d6c7-66ec-8db2-27a5651e1de2",
"notificationName": "VIP Member Update",
"notificationMessage": "Your VIP membership benefits have been updated! Check out the new exclusive offers.",
"status": "Published",
"scheduledTime": "2025-09-04T10:00:00.000Z",
"sentTime": "2025-09-04T10:00:15.123Z"
}{
"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"
}
}Passport - Push Notifications
Get wallet pass notification by ID
Retrieve a specific wallet pass notification by its unique identifier. Optionally include notification statistics and click tracking data.
GET
/
wallet-pass
/
notifications
/
{id}
Get wallet pass notification by ID
curl --request GET \
--url https://api.ubpass.co/v1/wallet-pass/notifications/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ubpass.co/v1/wallet-pass/notifications/{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.ubpass.co/v1/wallet-pass/notifications/{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.ubpass.co/v1/wallet-pass/notifications/{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.ubpass.co/v1/wallet-pass/notifications/{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.ubpass.co/v1/wallet-pass/notifications/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ubpass.co/v1/wallet-pass/notifications/{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": "1f089d37-5ebe-6778-af59-99631cec7ab5",
"createdTime": "2025-09-04T21:09:36.027Z",
"updatedTime": "2025-09-04T21:11:01.734Z",
"createdBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
"updatedBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
"workspaceId": "1f089d29-6f9c-66c2-af59-99631cec7ab5",
"accountId": "1f089d29-6fa8-6a13-af59-99631cec7ab5",
"passSerialNumber": "1f09804f-d6c7-66ec-8db2-27a5651e1de2",
"notificationName": "VIP Member Update",
"notificationMessage": "Your VIP membership benefits have been updated! Check out the new exclusive offers.",
"status": "Published",
"scheduledTime": "2025-09-04T10:00:00.000Z",
"sentTime": "2025-09-04T10:00:15.123Z"
}{
"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"
}
}Headers
Path Parameters
Query Parameters
Response
Successfully retrieved wallet pass notification
Notification status: Draft: Notification will not be sent until the status is changed to Scheduled or ProcessingScheduled: Notification is scheduled to be sent at a specific time. Processing: Notification is being sent. Published: Notification has been sent.Failed: Notification failed to be sent. If the status is not specified at the time of creation, it will be sent immediately.
Available options:
Draft, Initializing, Processing, Finalizing, Published, Scheduled, AppleFailedGoogleSuccess, AppleSuccessGoogleFailed, Failed