Get template signing
curl --request GET \
--url https://api.tapace.lk/v1/templates/{id}/signing \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tapace.lk/v1/templates/{id}/signing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tapace.lk/v1/templates/{id}/signing', 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.tapace.lk/v1/templates/{id}/signing",
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.tapace.lk/v1/templates/{id}/signing"
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.tapace.lk/v1/templates/{id}/signing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tapace.lk/v1/templates/{id}/signing")
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_bodyWallet signing
Get template signing
Read a template’s Apple certificate and Google Wallet issuer selections for your API key’s environment before issuing or configuring passes.
GET
/
v1
/
templates
/
{id}
/
signing
Get template signing
curl --request GET \
--url https://api.tapace.lk/v1/templates/{id}/signing \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tapace.lk/v1/templates/{id}/signing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tapace.lk/v1/templates/{id}/signing', 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.tapace.lk/v1/templates/{id}/signing",
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.tapace.lk/v1/templates/{id}/signing"
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.tapace.lk/v1/templates/{id}/signing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tapace.lk/v1/templates/{id}/signing")
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_bodyRead which Apple certificate and Google Wallet issuer a TapAce template uses for new passes in the API key’s environment. Test and live signing assignments are separate, even though the template design is shared.
An inaccessible or deleted template returns
See Update template signing to change a selection.
string
required
The template ID.
Response
Returns HTTP200 with a template_signing object.
| Property | Meaning |
|---|---|
object | template_signing. |
templateId | The requested template ID. |
environment | test or live. |
appleCertificateId | Selected Apple signing identity ID, demo for the test default, or null when a live selection is unset. |
googleIssuerId | Selected Google issuer ID, demo for the test default, or null when a live selection is unset. |
404. A selected ID alone does not establish signer readiness; check List wallet signers.
curl https://api.tapace.lk/v1/templates/tmpl_Q4vN8xT2mLr7KpZs3Wd1/signing \
-H "Authorization: Bearer $TAPACE_API_KEY"
Node.js SDK
import { TapAce } from "@tapace/node";
export async function readTemplateSigning(tapace: TapAce, templateId: string) {
return tapace.templates.getSigning(templateId);
}