Sales Tax API
Core Concepts
Corporations
Calculate
Transactions
- Tax Transactions
- POSTCreate a transaction
- GETGet transaction
- GETList transactions
- DELDelete transaction
- Refund Transactions
- Bulk Transaction Import
Nexus
Registrations
Products
Customers
Exemption Certificates
Get customer
Get detailed information about a specific customer, including exemption certificates.
curl --request GET \
--url https://base_url/api/v1/customers/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "b6d009b0-d174-463f-b030-94643c28e209",
"corporation_id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
"name": "John Doe",
"created_at": 1727284490,
"exemption_certificates": [
{
"id": "<string>",
"expiring_at": "2023-12-25",
"issued_at": "2023-12-25",
"country": "US",
"jurisdiction": "<string>",
"status": "INVALID",
"verification_status": "PENDING_VERIFICATION",
"type": "PURPOSE_WHOLESALE",
"customer_id": "<string>",
"file_id": "<string>",
"created_at": 1727284490
}
]
},
"message": "Successfully fetched customer."
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The unique identifier of the customer to fetch.
Response
The unique identifier for this customer.
"b6d009b0-d174-463f-b030-94643c28e209"
The unique identifier for the corporation associated with this customer.
"2535af08-a139-4d0c-9827-1651e46dfbcf"
A display name for this customer.
"John Doe"
Timestamp in unix epoch
1727284490
Unique identifier for the exemption certificate
ISO 8601 formatted string indicating the date when this exemption certificate was issued.
ISO 3166 2-letter country code. Ex: US, IN, GB.
"US"
A string representing the jurisdiction: either a 2-letter state code (ISO 3166-2 suffix), 'SST', or 'MTC', depending on the exemption certificate details.
Determines whether the certificate is valid for use or not. If the certificate is INVALID
, the POST /calculate
endpoint won't use it for exemptions.
VALID
, INVALID
"INVALID"
Every exemption certificate needs to be validated by Commenda before they can be used for exempting transactions. This status indicates whether Commenda has verified the authenticity of this exemption certificate.
PENDING_VERIFICATION
, VERIFICATION_COMPLETED
"PENDING_VERIFICATION"
Type of the exemption certificate. Request additional types from the Commenda team as required.
PURPOSE_WHOLESALE
, ENTITY_TYPE_NONPROFIT
The unique identifier of the customer associated with this exemption certificate.
Identifier of the file to use as the exemption certificate for this customer. Returned from the POST /files
endpoint once the file is uploaded.
Timestamp in unix epoch
1727284490
ISO 8601 formatted date string indicating the date when this exemption certificate will expire. This is an optional field as some certificates might be valid indefinitely.
"Successfully fetched customer."
curl --request GET \
--url https://base_url/api/v1/customers/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "b6d009b0-d174-463f-b030-94643c28e209",
"corporation_id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
"name": "John Doe",
"created_at": 1727284490,
"exemption_certificates": [
{
"id": "<string>",
"expiring_at": "2023-12-25",
"issued_at": "2023-12-25",
"country": "US",
"jurisdiction": "<string>",
"status": "INVALID",
"verification_status": "PENDING_VERIFICATION",
"type": "PURPOSE_WHOLESALE",
"customer_id": "<string>",
"file_id": "<string>",
"created_at": 1727284490
}
]
},
"message": "Successfully fetched customer."
}