Retrieve Certificate Registration Status
Retrieves the single most recent certificate registration record. It can be retrieved only within 30 seconds after registration, and is used to verify the detailed code on redirect.
For the certificate registration process, see Delegated issuance or Simple-approval reverse issuance.
GET
/
v1
/
suppliers
/
{supplierKey}
/
certificates
/
latestHistory
Retrieve Certificate Registration Status
curl --request GET \
--url https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory', 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://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory",
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: Basic <encoded-value>"
],
]);
$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://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"latestHistory": {
"identifier": "<string>",
"supplierKey": "<string>",
"occurredAt": "<string>",
"code": "<string>",
"message": "<string>"
}
}{
"code": "<string>",
"message": "<string>"
}⌘I
Retrieve Certificate Registration Status
curl --request GET \
--url https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory', 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://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory",
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: Basic <encoded-value>"
],
]);
$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://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://xapi.bolta.io/v1/suppliers/{supplierKey}/certificates/latestHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"latestHistory": {
"identifier": "<string>",
"supplierKey": "<string>",
"occurredAt": "<string>",
"code": "<string>",
"message": "<string>"
}
}{
"code": "<string>",
"message": "<string>"
}