Create a wallet pass asynchronously
curl --request POST \
--url https://api.ubpass.co/v1/wallet-pass/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notificationHeader": "BLUE PASS",
"passName": "VIP MEMBERSHIP PASS",
"passMetadata": {
"description": "Exclusive VIP membership pass with premium benefits",
"organizationName": "Premium Brands Inc",
"backgroundColor": "#4a32A8",
"displayTextColor": "#FFFFFF",
"topField": {
"key": "tabKey",
"label": "SEE OFFERS",
"value": "Tab (...)"
},
"secondaryFields": [
{
"key": "auxiliaryFieldKey",
"label": "Member Level",
"value": "VIP Gold"
},
{
"key": "auxiliaryFieldKey2",
"label": "Expires",
"value": "Dec 31, 2025"
}
],
"qrUrl": "https://premiumbrands.com/vip-benefits",
"qrText": "Scan for VIP benefits"
},
"uploadInfoList": [
{
"fileName": "icon.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789abc"
},
{
"fileName": "logo.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789def"
},
{
"fileName": "strip.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789ghi"
}
]
}
'import requests
url = "https://api.ubpass.co/v1/wallet-pass/async"
payload = {
"notificationHeader": "BLUE PASS",
"passName": "VIP MEMBERSHIP PASS",
"passMetadata": {
"description": "Exclusive VIP membership pass with premium benefits",
"organizationName": "Premium Brands Inc",
"backgroundColor": "#4a32A8",
"displayTextColor": "#FFFFFF",
"topField": {
"key": "tabKey",
"label": "SEE OFFERS",
"value": "Tab (...)"
},
"secondaryFields": [
{
"key": "auxiliaryFieldKey",
"label": "Member Level",
"value": "VIP Gold"
},
{
"key": "auxiliaryFieldKey2",
"label": "Expires",
"value": "Dec 31, 2025"
}
],
"qrUrl": "https://premiumbrands.com/vip-benefits",
"qrText": "Scan for VIP benefits"
},
"uploadInfoList": [
{
"fileName": "icon.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789abc"
},
{
"fileName": "logo.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789def"
},
{
"fileName": "strip.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789ghi"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notificationHeader: 'BLUE PASS',
passName: 'VIP MEMBERSHIP PASS',
passMetadata: {
description: 'Exclusive VIP membership pass with premium benefits',
organizationName: 'Premium Brands Inc',
backgroundColor: '#4a32A8',
displayTextColor: '#FFFFFF',
topField: {key: 'tabKey', label: 'SEE OFFERS', value: 'Tab (...)'},
secondaryFields: [
{key: 'auxiliaryFieldKey', label: 'Member Level', value: 'VIP Gold'},
{key: 'auxiliaryFieldKey2', label: 'Expires', value: 'Dec 31, 2025'}
],
qrUrl: 'https://premiumbrands.com/vip-benefits',
qrText: 'Scan for VIP benefits'
},
uploadInfoList: [
{fileName: 'icon.png', uploadKey: '1f089d37-8a1b-4c2d-9e3f-123456789abc'},
{fileName: 'logo.png', uploadKey: '1f089d37-8a1b-4c2d-9e3f-123456789def'},
{fileName: 'strip.png', uploadKey: '1f089d37-8a1b-4c2d-9e3f-123456789ghi'}
]
})
};
fetch('https://api.ubpass.co/v1/wallet-pass/async', 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/async",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'notificationHeader' => 'BLUE PASS',
'passName' => 'VIP MEMBERSHIP PASS',
'passMetadata' => [
'description' => 'Exclusive VIP membership pass with premium benefits',
'organizationName' => 'Premium Brands Inc',
'backgroundColor' => '#4a32A8',
'displayTextColor' => '#FFFFFF',
'topField' => [
'key' => 'tabKey',
'label' => 'SEE OFFERS',
'value' => 'Tab (...)'
],
'secondaryFields' => [
[
'key' => 'auxiliaryFieldKey',
'label' => 'Member Level',
'value' => 'VIP Gold'
],
[
'key' => 'auxiliaryFieldKey2',
'label' => 'Expires',
'value' => 'Dec 31, 2025'
]
],
'qrUrl' => 'https://premiumbrands.com/vip-benefits',
'qrText' => 'Scan for VIP benefits'
],
'uploadInfoList' => [
[
'fileName' => 'icon.png',
'uploadKey' => '1f089d37-8a1b-4c2d-9e3f-123456789abc'
],
[
'fileName' => 'logo.png',
'uploadKey' => '1f089d37-8a1b-4c2d-9e3f-123456789def'
],
[
'fileName' => 'strip.png',
'uploadKey' => '1f089d37-8a1b-4c2d-9e3f-123456789ghi'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ubpass.co/v1/wallet-pass/async"
payload := strings.NewReader("{\n \"notificationHeader\": \"BLUE PASS\",\n \"passName\": \"VIP MEMBERSHIP PASS\",\n \"passMetadata\": {\n \"description\": \"Exclusive VIP membership pass with premium benefits\",\n \"organizationName\": \"Premium Brands Inc\",\n \"backgroundColor\": \"#4a32A8\",\n \"displayTextColor\": \"#FFFFFF\",\n \"topField\": {\n \"key\": \"tabKey\",\n \"label\": \"SEE OFFERS\",\n \"value\": \"Tab (...)\"\n },\n \"secondaryFields\": [\n {\n \"key\": \"auxiliaryFieldKey\",\n \"label\": \"Member Level\",\n \"value\": \"VIP Gold\"\n },\n {\n \"key\": \"auxiliaryFieldKey2\",\n \"label\": \"Expires\",\n \"value\": \"Dec 31, 2025\"\n }\n ],\n \"qrUrl\": \"https://premiumbrands.com/vip-benefits\",\n \"qrText\": \"Scan for VIP benefits\"\n },\n \"uploadInfoList\": [\n {\n \"fileName\": \"icon.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789abc\"\n },\n {\n \"fileName\": \"logo.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789def\"\n },\n {\n \"fileName\": \"strip.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789ghi\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ubpass.co/v1/wallet-pass/async")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"notificationHeader\": \"BLUE PASS\",\n \"passName\": \"VIP MEMBERSHIP PASS\",\n \"passMetadata\": {\n \"description\": \"Exclusive VIP membership pass with premium benefits\",\n \"organizationName\": \"Premium Brands Inc\",\n \"backgroundColor\": \"#4a32A8\",\n \"displayTextColor\": \"#FFFFFF\",\n \"topField\": {\n \"key\": \"tabKey\",\n \"label\": \"SEE OFFERS\",\n \"value\": \"Tab (...)\"\n },\n \"secondaryFields\": [\n {\n \"key\": \"auxiliaryFieldKey\",\n \"label\": \"Member Level\",\n \"value\": \"VIP Gold\"\n },\n {\n \"key\": \"auxiliaryFieldKey2\",\n \"label\": \"Expires\",\n \"value\": \"Dec 31, 2025\"\n }\n ],\n \"qrUrl\": \"https://premiumbrands.com/vip-benefits\",\n \"qrText\": \"Scan for VIP benefits\"\n },\n \"uploadInfoList\": [\n {\n \"fileName\": \"icon.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789abc\"\n },\n {\n \"fileName\": \"logo.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789def\"\n },\n {\n \"fileName\": \"strip.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789ghi\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ubpass.co/v1/wallet-pass/async")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notificationHeader\": \"BLUE PASS\",\n \"passName\": \"VIP MEMBERSHIP PASS\",\n \"passMetadata\": {\n \"description\": \"Exclusive VIP membership pass with premium benefits\",\n \"organizationName\": \"Premium Brands Inc\",\n \"backgroundColor\": \"#4a32A8\",\n \"displayTextColor\": \"#FFFFFF\",\n \"topField\": {\n \"key\": \"tabKey\",\n \"label\": \"SEE OFFERS\",\n \"value\": \"Tab (...)\"\n },\n \"secondaryFields\": [\n {\n \"key\": \"auxiliaryFieldKey\",\n \"label\": \"Member Level\",\n \"value\": \"VIP Gold\"\n },\n {\n \"key\": \"auxiliaryFieldKey2\",\n \"label\": \"Expires\",\n \"value\": \"Dec 31, 2025\"\n }\n ],\n \"qrUrl\": \"https://premiumbrands.com/vip-benefits\",\n \"qrText\": \"Scan for VIP benefits\"\n },\n \"uploadInfoList\": [\n {\n \"fileName\": \"icon.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789abc\"\n },\n {\n \"fileName\": \"logo.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789def\"\n },\n {\n \"fileName\": \"strip.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789ghi\"\n }\n ]\n}"
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:09:36.027Z",
"createdBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
"updatedBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
"workspaceId": "1f089d29-6f9c-66c2-af59-99631cec7ab5",
"accountId": "1f089d29-6fa8-6a13-af59-99631cec7ab5",
"notificationHeader": "BLUE PASS",
"passName": "VIP MEMBERSHIP PASS",
"status": "Draft",
"passMetadata": {
"description": "Exclusive VIP membership pass with premium benefits",
"organizationName": "Premium Brands Inc",
"backgroundColor": "#4a32A8",
"displayTextColor": "#FFFFFF",
"topField": {
"key": "tabKey",
"label": "SEE OFFERS",
"value": "Tab (...)"
},
"secondaryFields": [
{
"key": "auxiliaryFieldKey",
"label": "Member Level",
"value": "VIP Gold"
},
{
"key": "auxiliaryFieldKey2",
"label": "Expires",
"value": "Dec 31, 2025"
}
],
"qrUrl": "https://premiumbrands.com/vip-benefits",
"qrText": "Scan for VIP benefits"
},
"uploadInfoList": [
{
"fileName": "icon.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789abc"
},
{
"fileName": "logo.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789def"
},
{
"fileName": "strip.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789ghi"
}
]
}{
"txId": "1f098faa-8f33-6425-b4ff-533200846d35",
"timestamp": "24-09-2025 03:57:59",
"errorCode": "INVALID_INPUT",
"context": {
"passName": "must not be null"
}
}{
"txId": "Root-1-68d3693c-26a3db2278c7668f5e086711",
"timestamp": "24-09-2025 03:45:00",
"errorCode": "UNAUTHORIZED",
"errorMessage": "UNAUTHORIZED."
}Passport - Passes
Create a wallet pass asynchronously
Create a new wallet pass for both Apple and Google platforms asynchronously. This operation will queue the pass creation for background processing.
POST
/
wallet-pass
/
async
Create a wallet pass asynchronously
curl --request POST \
--url https://api.ubpass.co/v1/wallet-pass/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notificationHeader": "BLUE PASS",
"passName": "VIP MEMBERSHIP PASS",
"passMetadata": {
"description": "Exclusive VIP membership pass with premium benefits",
"organizationName": "Premium Brands Inc",
"backgroundColor": "#4a32A8",
"displayTextColor": "#FFFFFF",
"topField": {
"key": "tabKey",
"label": "SEE OFFERS",
"value": "Tab (...)"
},
"secondaryFields": [
{
"key": "auxiliaryFieldKey",
"label": "Member Level",
"value": "VIP Gold"
},
{
"key": "auxiliaryFieldKey2",
"label": "Expires",
"value": "Dec 31, 2025"
}
],
"qrUrl": "https://premiumbrands.com/vip-benefits",
"qrText": "Scan for VIP benefits"
},
"uploadInfoList": [
{
"fileName": "icon.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789abc"
},
{
"fileName": "logo.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789def"
},
{
"fileName": "strip.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789ghi"
}
]
}
'import requests
url = "https://api.ubpass.co/v1/wallet-pass/async"
payload = {
"notificationHeader": "BLUE PASS",
"passName": "VIP MEMBERSHIP PASS",
"passMetadata": {
"description": "Exclusive VIP membership pass with premium benefits",
"organizationName": "Premium Brands Inc",
"backgroundColor": "#4a32A8",
"displayTextColor": "#FFFFFF",
"topField": {
"key": "tabKey",
"label": "SEE OFFERS",
"value": "Tab (...)"
},
"secondaryFields": [
{
"key": "auxiliaryFieldKey",
"label": "Member Level",
"value": "VIP Gold"
},
{
"key": "auxiliaryFieldKey2",
"label": "Expires",
"value": "Dec 31, 2025"
}
],
"qrUrl": "https://premiumbrands.com/vip-benefits",
"qrText": "Scan for VIP benefits"
},
"uploadInfoList": [
{
"fileName": "icon.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789abc"
},
{
"fileName": "logo.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789def"
},
{
"fileName": "strip.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789ghi"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notificationHeader: 'BLUE PASS',
passName: 'VIP MEMBERSHIP PASS',
passMetadata: {
description: 'Exclusive VIP membership pass with premium benefits',
organizationName: 'Premium Brands Inc',
backgroundColor: '#4a32A8',
displayTextColor: '#FFFFFF',
topField: {key: 'tabKey', label: 'SEE OFFERS', value: 'Tab (...)'},
secondaryFields: [
{key: 'auxiliaryFieldKey', label: 'Member Level', value: 'VIP Gold'},
{key: 'auxiliaryFieldKey2', label: 'Expires', value: 'Dec 31, 2025'}
],
qrUrl: 'https://premiumbrands.com/vip-benefits',
qrText: 'Scan for VIP benefits'
},
uploadInfoList: [
{fileName: 'icon.png', uploadKey: '1f089d37-8a1b-4c2d-9e3f-123456789abc'},
{fileName: 'logo.png', uploadKey: '1f089d37-8a1b-4c2d-9e3f-123456789def'},
{fileName: 'strip.png', uploadKey: '1f089d37-8a1b-4c2d-9e3f-123456789ghi'}
]
})
};
fetch('https://api.ubpass.co/v1/wallet-pass/async', 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/async",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'notificationHeader' => 'BLUE PASS',
'passName' => 'VIP MEMBERSHIP PASS',
'passMetadata' => [
'description' => 'Exclusive VIP membership pass with premium benefits',
'organizationName' => 'Premium Brands Inc',
'backgroundColor' => '#4a32A8',
'displayTextColor' => '#FFFFFF',
'topField' => [
'key' => 'tabKey',
'label' => 'SEE OFFERS',
'value' => 'Tab (...)'
],
'secondaryFields' => [
[
'key' => 'auxiliaryFieldKey',
'label' => 'Member Level',
'value' => 'VIP Gold'
],
[
'key' => 'auxiliaryFieldKey2',
'label' => 'Expires',
'value' => 'Dec 31, 2025'
]
],
'qrUrl' => 'https://premiumbrands.com/vip-benefits',
'qrText' => 'Scan for VIP benefits'
],
'uploadInfoList' => [
[
'fileName' => 'icon.png',
'uploadKey' => '1f089d37-8a1b-4c2d-9e3f-123456789abc'
],
[
'fileName' => 'logo.png',
'uploadKey' => '1f089d37-8a1b-4c2d-9e3f-123456789def'
],
[
'fileName' => 'strip.png',
'uploadKey' => '1f089d37-8a1b-4c2d-9e3f-123456789ghi'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ubpass.co/v1/wallet-pass/async"
payload := strings.NewReader("{\n \"notificationHeader\": \"BLUE PASS\",\n \"passName\": \"VIP MEMBERSHIP PASS\",\n \"passMetadata\": {\n \"description\": \"Exclusive VIP membership pass with premium benefits\",\n \"organizationName\": \"Premium Brands Inc\",\n \"backgroundColor\": \"#4a32A8\",\n \"displayTextColor\": \"#FFFFFF\",\n \"topField\": {\n \"key\": \"tabKey\",\n \"label\": \"SEE OFFERS\",\n \"value\": \"Tab (...)\"\n },\n \"secondaryFields\": [\n {\n \"key\": \"auxiliaryFieldKey\",\n \"label\": \"Member Level\",\n \"value\": \"VIP Gold\"\n },\n {\n \"key\": \"auxiliaryFieldKey2\",\n \"label\": \"Expires\",\n \"value\": \"Dec 31, 2025\"\n }\n ],\n \"qrUrl\": \"https://premiumbrands.com/vip-benefits\",\n \"qrText\": \"Scan for VIP benefits\"\n },\n \"uploadInfoList\": [\n {\n \"fileName\": \"icon.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789abc\"\n },\n {\n \"fileName\": \"logo.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789def\"\n },\n {\n \"fileName\": \"strip.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789ghi\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ubpass.co/v1/wallet-pass/async")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"notificationHeader\": \"BLUE PASS\",\n \"passName\": \"VIP MEMBERSHIP PASS\",\n \"passMetadata\": {\n \"description\": \"Exclusive VIP membership pass with premium benefits\",\n \"organizationName\": \"Premium Brands Inc\",\n \"backgroundColor\": \"#4a32A8\",\n \"displayTextColor\": \"#FFFFFF\",\n \"topField\": {\n \"key\": \"tabKey\",\n \"label\": \"SEE OFFERS\",\n \"value\": \"Tab (...)\"\n },\n \"secondaryFields\": [\n {\n \"key\": \"auxiliaryFieldKey\",\n \"label\": \"Member Level\",\n \"value\": \"VIP Gold\"\n },\n {\n \"key\": \"auxiliaryFieldKey2\",\n \"label\": \"Expires\",\n \"value\": \"Dec 31, 2025\"\n }\n ],\n \"qrUrl\": \"https://premiumbrands.com/vip-benefits\",\n \"qrText\": \"Scan for VIP benefits\"\n },\n \"uploadInfoList\": [\n {\n \"fileName\": \"icon.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789abc\"\n },\n {\n \"fileName\": \"logo.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789def\"\n },\n {\n \"fileName\": \"strip.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789ghi\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ubpass.co/v1/wallet-pass/async")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notificationHeader\": \"BLUE PASS\",\n \"passName\": \"VIP MEMBERSHIP PASS\",\n \"passMetadata\": {\n \"description\": \"Exclusive VIP membership pass with premium benefits\",\n \"organizationName\": \"Premium Brands Inc\",\n \"backgroundColor\": \"#4a32A8\",\n \"displayTextColor\": \"#FFFFFF\",\n \"topField\": {\n \"key\": \"tabKey\",\n \"label\": \"SEE OFFERS\",\n \"value\": \"Tab (...)\"\n },\n \"secondaryFields\": [\n {\n \"key\": \"auxiliaryFieldKey\",\n \"label\": \"Member Level\",\n \"value\": \"VIP Gold\"\n },\n {\n \"key\": \"auxiliaryFieldKey2\",\n \"label\": \"Expires\",\n \"value\": \"Dec 31, 2025\"\n }\n ],\n \"qrUrl\": \"https://premiumbrands.com/vip-benefits\",\n \"qrText\": \"Scan for VIP benefits\"\n },\n \"uploadInfoList\": [\n {\n \"fileName\": \"icon.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789abc\"\n },\n {\n \"fileName\": \"logo.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789def\"\n },\n {\n \"fileName\": \"strip.png\",\n \"uploadKey\": \"1f089d37-8a1b-4c2d-9e3f-123456789ghi\"\n }\n ]\n}"
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:09:36.027Z",
"createdBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
"updatedBy": "1ef58ae6-40ac-6fd2-96af-45801844c4e2",
"workspaceId": "1f089d29-6f9c-66c2-af59-99631cec7ab5",
"accountId": "1f089d29-6fa8-6a13-af59-99631cec7ab5",
"notificationHeader": "BLUE PASS",
"passName": "VIP MEMBERSHIP PASS",
"status": "Draft",
"passMetadata": {
"description": "Exclusive VIP membership pass with premium benefits",
"organizationName": "Premium Brands Inc",
"backgroundColor": "#4a32A8",
"displayTextColor": "#FFFFFF",
"topField": {
"key": "tabKey",
"label": "SEE OFFERS",
"value": "Tab (...)"
},
"secondaryFields": [
{
"key": "auxiliaryFieldKey",
"label": "Member Level",
"value": "VIP Gold"
},
{
"key": "auxiliaryFieldKey2",
"label": "Expires",
"value": "Dec 31, 2025"
}
],
"qrUrl": "https://premiumbrands.com/vip-benefits",
"qrText": "Scan for VIP benefits"
},
"uploadInfoList": [
{
"fileName": "icon.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789abc"
},
{
"fileName": "logo.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789def"
},
{
"fileName": "strip.png",
"uploadKey": "1f089d37-8a1b-4c2d-9e3f-123456789ghi"
}
]
}{
"txId": "1f098faa-8f33-6425-b4ff-533200846d35",
"timestamp": "24-09-2025 03:57:59",
"errorCode": "INVALID_INPUT",
"context": {
"passName": "must not be null"
}
}{
"txId": "Root-1-68d3693c-26a3db2278c7668f5e086711",
"timestamp": "24-09-2025 03:45:00",
"errorCode": "UNAUTHORIZED",
"errorMessage": "UNAUTHORIZED."
}Headers
Body
application/json
Wallet pass creation data including metadata, fields, and uploaded asset references
Response
Wallet pass creation queued successfully