Authorization: WalletUnionPass aabbccddeeff11223344
Authorization: WalletUnionHMSPass aabbccddeeff11223344
WalletUnion/1.0 Passbook/1.0 (Linux; U; Android <version>; <manufacturer> <model>)
WalletUnionHMS/1.0 Passbook/1.0 (Linux; U; Android <version>; <manufacturer> <model>)
User-Agent: WalletUnion/1.0 Passbook/1.0 (Linux; U; Android 14; samsung SM-A556E)
User-Agent: WalletUnionHMS/1.0 Passbook/1.0 (Linux; U; Android 12; HUAWEI MAO-LX9)
Accept-Language: zz;q=0.9
{
"passTypeIdentifier":"pass.your.passtype.id",
"pushTokens":["eyKU4bqE...PMml5PJX848I","cA47ZTE...WJlHmId0Ib6uv",... ] ,
"hms":false // не обязательный параметр
}
{
"passTypeIdentifier":"pass.your.passtype.id",
"pushTokens":["eyKU4bqE...PMml5PJX848I","cA47ZTE...WJlHmId0Ib6uv",... ] ,
"hms":true // обязательный параметр
}
{
"status":"OK",
"unknown_push_tokens":[ ],
"expired_push_tokens":[ ]
}
{
"status":"ERROR",
"unknown_push_tokens":["ra9LE...ddm5hMP","bdH2OH...76jJuQ9YWn0T7k",...],
"expired_push_tokens":["f1G3hR..xeM5o","e41bJ2...gApIc","bdH2OH...76jJuQ9YWn0T7k"]
}
{
"status":"FCM_FAILED",
"unknown_push_tokens":["ra9LE...ddm5hMP","bdH2OH...76jJuQ9YWn0T7k",...],
"expired_push_tokens":[ ]
}
HTTP/1.1 413 Too many FCM pushTokens, max=50
HTTP/1.1 413 Too many HMS pushTokens, max=1000
HTTP/1.1 429 Too many requests
X-Rate-Limit-Limit: 3000
X-Rate-Limit-Remaining: 100
Retry-After: 30
<You can install your card by tapping the button "Add to Wallet">
<input type="submit" value="Add to Wallet" onclick="importInstallWallet(passURL);">
<You can launch Wallet app by tapping the button "Open Wallet">
<input type="submit" value="Open Wallet" onclick="launchWallet();">
<script>
/* !! Works only with Google Chrome browser !! */
/*
* If Wallet is already installed, will automatically open Wallet and import pass
* If Wallet is not installed, will redirect user to the app's page
* After installing and opening the app, pass will import automatically
*/
function importInstallWallet(passurl) {
var uri = encodeURIComponent(passurl);
var fallback = "https://play.google.com/store/apps/details?id=com.walletunion.wallet&referrer=" + uri;
var fullLink = "intent://import/" + uri + "#Intent;scheme=walletunion;package=com.walletunion.wallet;"
+ "S.browser_fallback_url=" + fallback +";end";
window.location = fullLink;
}
/*
* If Wallet is already installed, will automatically open Wallet
* If Wallet is not installed, will redirect user to the app's page
*/
function launchWallet() {
var fallback = "https://play.google.com/store/apps/details?id=com.walletunion.wallet;"
var fullLink = "intent://launch/#Intent;scheme=walletunion;package=com.walletunion.wallet;"
+ "S.browser_fallback_url=" + fallback +";end";
windows.location = fullLink;
}
</script>
<You can install your card by tapping the button "Add to Wallet">
<input type="submit" value="Add to Wallet" onclick="importInstallWallet(passURL);">
<You can launch Wallet app by tapping the button "Open Wallet">
<input type="submit" value="Open Wallet" onclick="launchWallet();">
<script>
/* !! Works only with Huawei built-in browser !! */
/*
* If Wallet is already installed, will automatically open Wallet and import pass
* If Wallet is not installed, will redirect user to the app's page
* After installing and opening the app, pass will import automatically
*/
function importInstallWallet(passurl) {
var uri = encodeURIComponent(passurl);
var fallback = encodeURIComponent('https://appgallery.cloud.huawei.com/appDetail?pkgName=com.walletunion.wallet&referrer=' + passurl);
var fullLink = 'intent://import/' + uri + '#Intent;scheme=walletunion;package=com.walletunion.wallet;'
+ 'S.browser_fallback_url=' + fallback + ';end';
window.location = fullLink;
}
/*
* If Wallet is already installed, will automatically open Wallet and import pass
* If Wallet is not installed, will redirect user to the app's page
*/
function launchWallet() {
var fallback = encodeURIComponent('https://appgallery.cloud.huawei.com/appDetail?pkgName=com.walletunion.wallet');
var fullLink = 'intent://launch/#Intent;scheme=walletunion;package=com.walletunion.wallet;'
+ 'S.browser_fallback_url=' + fallback +';end';
window.location = fullLink;
}
</script>
"associatedApps":[
{
"title":"My special app", "idGooglePlay":"com.mydomain.myapp"
}
]