List all exemption certificates.
curl --request GET \
--url https://api.prod.commenda.io/api/v1/exemption-certificates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.commenda.io/api/v1/exemption-certificates"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.commenda.io/api/v1/exemption-certificates")
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": {
"exemption_certificates": [
{
"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
}
]
}
],
"cursor": "<string>",
"total_exemptions": 123
},
"message": "Successfully fetched exemption certificates."
}{
"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
List exemption certificates
Get a paginated list of all exemption certificates for a specific customer
GET
/
exemption-certificates
List all exemption certificates.
curl --request GET \
--url https://api.prod.commenda.io/api/v1/exemption-certificates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.commenda.io/api/v1/exemption-certificates"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.commenda.io/api/v1/exemption-certificates")
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": {
"exemption_certificates": [
{
"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
}
]
}
],
"cursor": "<string>",
"total_exemptions": 123
},
"message": "Successfully fetched exemption certificates."
}{
"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>"
}
]
}
}Query parameters
string
required
The unique identifier of the customer whose exemption certificates you want to retrieve.
integer
default:"10"
Number of exemption certificates to return per page. Must be between 1 and 100.
string
Pagination cursor for fetching the next page of results. Obtained from the previous response.
Response
object
Show Response object
Show Response object
array
Array of exemption certificate objects.
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, VERIFICATION_PENDING, VERIFICATION_SUCCESS, or 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.
integer
Total count of exemption certificates for this customer.
string
Cursor for fetching the next page of results. Empty if no more results.
string
Success message.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The unique identifier of the customer whose exemption certificate you want to fetch.
Cursor for pagination
Number of items to return per page
Required range:
1 <= x <= 100Was this page helpful?
⌘I