Beleg-Nachweispaket abrufen
curl --request GET \
--url https://api.truthlocks.com/v1/receipts/{id}/proof-bundle \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/receipts/{id}/proof-bundle', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/receipts/{id}/proof-bundle"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/receipts/{id}/proof-bundle"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"receipt_id": "<string>",
"signature": {},
"transparency_proof": {},
"issuer": {}
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Belege
Beleg-Nachweisbündel
Laden Sie ein eigenständiges Nachweispaket zur Offline-Belegprüfung herunter.
GET
/
v1
/
receipts
/
{id}
/
proof-bundle
Beleg-Nachweispaket abrufen
curl --request GET \
--url https://api.truthlocks.com/v1/receipts/{id}/proof-bundle \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/receipts/{id}/proof-bundle', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/receipts/{id}/proof-bundle"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/receipts/{id}/proof-bundle"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"receipt_id": "<string>",
"signature": {},
"transparency_proof": {},
"issuer": {}
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Gibt ein eigenständiges Nachweispaket für ein Belegereignis zurück. Das Paket enthält den signierten Belegumschlag, den Merkle-Inklusionsnachweis aus dem Transparenzprotokoll und den Ausstellerschlüssel-Snapshot zum Zeitpunkt der Ausstellung.
Das Bundle kann zur Offline-Verifizierung verwendet werden – nach dem Download ist kein Serveraufruf erforderlich.

