string
required
The unique identifier of the exemption certificate.
array
required
Array of jurisdiction exemptions to upsert. Each jurisdiction must be unique.
Show Jurisdiction item
Show Jurisdiction item
string
required
ISO 3166-1 alpha-2 country code. Currently only “US” is supported.
string
required
ISO 3166-2 subdivision code (e.g., “CA” for California).
string
The reason for the exemption. Valid values:
PURPOSE_RESALEENTITY_TYPE_NON_PROFITGOVERNMENTMANUFACTURERAGRICULTURALOTHER
string
required
The type of identification for the exemption.
string
The identification number for the exemption.
string
The end date of the exemption in ISO 8601 format (YYYY-MM-DD).
boolean
Whether the exemption is active.
{
"message": "Successfully updated exemptions."
}
{
"error": {
"code": "INVALID_REQUEST_BODY",
"message": "Duplicate jurisdictions found in request"
}
}
{
"error": {
"code": "EXEMPTION_CERTIFICATE_NOT_FOUND",
"message": "Exemption certificate not found"
}
}
curl --request POST \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/bulk_upsert' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"jurisdictions": [
{
"country": "US",
"state": "CA",
"reason": "PURPOSE_RESALE",
"identification_type": "STATE_TAX_ID",
"identification_number": "12-3456789",
"is_active": true
},
{
"country": "US",
"state": "NY",
"reason": "ENTITY_TYPE_NON_PROFIT",
"identification_type": "FEDERAL_TAX_ID",
"identification_number": "98-7654321",
"end_date": "2025-12-31",
"is_active": true
}
]
}'
const response = await fetch('https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/bulk_upsert', {
method: 'POST',
headers: {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
jurisdictions: [
{
country: 'US',
state: 'CA',
reason: 'PURPOSE_RESALE',
identification_type: 'STATE_TAX_ID',
identification_number: '12-3456789',
is_active: true
},
{
country: 'US',
state: 'NY',
reason: 'ENTITY_TYPE_NON_PROFIT',
identification_type: 'FEDERAL_TAX_ID',
identification_number: '98-7654321',
end_date: '2025-12-31',
is_active: true
}
]
})
});
const data = await response.json();
import requests
response = requests.post(
'https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/bulk_upsert',
headers={'Authorization': 'Bearer <token>'},
json={
'jurisdictions': [
{
'country': 'US',
'state': 'CA',
'reason': 'PURPOSE_RESALE',
'identification_type': 'STATE_TAX_ID',
'identification_number': '12-3456789',
'is_active': True
},
{
'country': 'US',
'state': 'NY',
'reason': 'ENTITY_TYPE_NON_PROFIT',
'identification_type': 'FEDERAL_TAX_ID',
'identification_number': '98-7654321',
'end_date': '2025-12-31',
'is_active': True
}
]
}
)
data = response.json()