Get exemption certificate.
curl --request GET \
--url https://api.prod.commenda.io/api/v1/exemption-certificates/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.commenda.io/api/v1/exemption-certificates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.commenda.io/api/v1/exemption-certificates/{id}', 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.prod.commenda.io/api/v1/exemption-certificates/{id}",
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.prod.commenda.io/api/v1/exemption-certificates/{id}"
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.prod.commenda.io/api/v1/exemption-certificates/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.commenda.io/api/v1/exemption-certificates/{id}")
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_body{
"data": {
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verification_status": "<string>",
"exemption_certificate_number": "<string>",
"effective_date": "2023-12-25",
"created_at": 123,
"jurisdictions": [
{
"country": "<string>",
"state": "<string>",
"is_active": true,
"end_date": "2023-12-25",
"identification_number": "<string>",
"is_expired": true,
"created_at": 123
}
]
},
"message": "Successfully fetched exemption certificate."
}{
"error": {
"type": "CLIENT_INVALID_REQUEST_BODY",
"doc_url": "https://sales-tax-docs.commenda.io/",
"title": "Failed to validate the request body",
"detail": "<string>",
"status": 400,
"instance": "<string>",
"Errors": [
{
"details": "<string>",
"pointer": "<string>"
}
]
}
}Exemption Certificates
Get exemption certificate
Retrieve a specific exemption certificate by its unique identifier
GET
/
exemption-certificates
/
{id}
Get exemption certificate.
curl --request GET \
--url https://api.prod.commenda.io/api/v1/exemption-certificates/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.commenda.io/api/v1/exemption-certificates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.commenda.io/api/v1/exemption-certificates/{id}', 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.prod.commenda.io/api/v1/exemption-certificates/{id}",
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.prod.commenda.io/api/v1/exemption-certificates/{id}"
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.prod.commenda.io/api/v1/exemption-certificates/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.commenda.io/api/v1/exemption-certificates/{id}")
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_body{
"data": {
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verification_status": "<string>",
"exemption_certificate_number": "<string>",
"effective_date": "2023-12-25",
"created_at": 123,
"jurisdictions": [
{
"country": "<string>",
"state": "<string>",
"is_active": true,
"end_date": "2023-12-25",
"identification_number": "<string>",
"is_expired": true,
"created_at": 123
}
]
},
"message": "Successfully fetched exemption certificate."
}{
"error": {
"type": "CLIENT_INVALID_REQUEST_BODY",
"doc_url": "https://sales-tax-docs.commenda.io/",
"title": "Failed to validate the request body",
"detail": "<string>",
"status": 400,
"instance": "<string>",
"Errors": [
{
"details": "<string>",
"pointer": "<string>"
}
]
}
}Path parameters
string
required
The unique identifier of the exemption certificate to fetch.
Response
object
Show ExemptionCertificate object
Show ExemptionCertificate object
string
Unique identifier for the exemption certificate.
string
The customer ID this certificate belongs to.
string
The file ID associated with this certificate, if any.
string
The type of exemption certificate (SINGLE_STATE, MULTI_STATE, or BLANKET).
string
Current verification status of the certificate:
NOT_READY: No certificate file is attachedVERIFICATION_PENDING: Awaiting verificationVERIFICATION_SUCCESS: Successfully verifiedVERIFICATION_FAILED: Verification failed
string
The certificate number, if provided.
string
The effective date of the certificate (ISO 8601 date).
integer
Unix timestamp when the certificate was created.
array
Array of jurisdiction exemptions associated with this certificate.
Show Jurisdiction object
Show Jurisdiction object
string
ISO 3166-1 alpha-2 country code.
string
ISO 3166-2 subdivision code.
string
Reason for the exemption.
boolean
Whether the exemption is currently active.
string
Expiration date, if applicable.
string
Type of identification used.
string
The identification number.
boolean
Whether the exemption has expired.
integer
Unix timestamp when the jurisdiction exemption was created.
string
Success message.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the exemption certificate to fetch.
Was this page helpful?
⌘I