List government identifiers
curl --request GET \
--url https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers \
--header 'x-api-key: <api-key>'import requests
url = "https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers', 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/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers"
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))
}HttpResponse<String> response = Unirest.get("https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"governmentIdentifiers": [
{
"country": "US",
"businessEntityId": 44,
"corporationType": "LLC",
"key": "US_EIN",
"displayName": "Employer Identification Number",
"shortName": "EIN",
"description": "US federal tax identifier issued by the IRS.",
"purposes": [
"TAXATION"
],
"supportingDocument": {
"id": 900,
"fileName": "ein-letter.pdf",
"fileUrl": "https://bucket.s3.amazonaws.com/ein-letter.pdf",
"type": "EINLetter",
"category": "TAX_AND_COMPLIANCE_DOCUMENT",
"fileTypeSpecifiers": [
".pdf"
]
},
"isFunctionCritical": true,
"isCustom": false,
"linkedRegistrations": [
{
"internalIdentifier": "US_EIN",
"displayName": "Employer Identification Number",
"purpose": "TAXATION"
}
],
"id": "gov_123",
"jurisdiction": "DE",
"value": "12-3456789",
"createdAt": 1735689600000,
"lastUpdatedAt": 1735776000000,
"regexString": "<string>"
}
],
"count": 2
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Government Identifiers
List government identifiers
List government identifiers attached to a customer’s business entity.
GET
/
partner
/
commenda-os
/
customers
/
{customerId}
/
business-entities
/
{businessEntityId}
/
government-identifiers
List government identifiers
curl --request GET \
--url https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers \
--header 'x-api-key: <api-key>'import requests
url = "https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers', 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/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers"
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))
}HttpResponse<String> response = Unirest.get("https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.commenda.io/api/v1/partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/government-identifiers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"governmentIdentifiers": [
{
"country": "US",
"businessEntityId": 44,
"corporationType": "LLC",
"key": "US_EIN",
"displayName": "Employer Identification Number",
"shortName": "EIN",
"description": "US federal tax identifier issued by the IRS.",
"purposes": [
"TAXATION"
],
"supportingDocument": {
"id": 900,
"fileName": "ein-letter.pdf",
"fileUrl": "https://bucket.s3.amazonaws.com/ein-letter.pdf",
"type": "EINLetter",
"category": "TAX_AND_COMPLIANCE_DOCUMENT",
"fileTypeSpecifiers": [
".pdf"
]
},
"isFunctionCritical": true,
"isCustom": false,
"linkedRegistrations": [
{
"internalIdentifier": "US_EIN",
"displayName": "Employer Identification Number",
"purpose": "TAXATION"
}
],
"id": "gov_123",
"jurisdiction": "DE",
"value": "12-3456789",
"createdAt": 1735689600000,
"lastUpdatedAt": 1735776000000,
"regexString": "<string>"
}
],
"count": 2
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}List government identifiers attached to a customer’s business entity.
Authorizations
Path Parameters
Commenda customer identifier.
Commenda business-entity identifier for the specified customer.
Was this page helpful?
⌘I