Exemption certificates
Store customer resale, nonprofit, government, and category-specific exemption certificates by US state and apply them automatically in POST /tax/calculate.
Create a certificate
Requires the Starter plan or higher (unsubscribed accounts receive HTTP 403 plan_upgrade_required). Certificates are scoped strictly to your account (up to 1,000 certificates). Omit itemKeys for a blanket exemption across all line items and shipping, or supply 1 to 50 supported category slugs to restrict the exemption to specific categories.
| Field | Type | Rules |
|---|---|---|
customerId | string | Required. Your customer identifier (1 to 128 chars). |
customerName | string | Required. Legal or display name on the certificate (1 to 200 chars). |
exemptionReason | string | Required. One of "resale", "nonprofit", "government", "manufacturing", "agriculture", "direct_pay", or "other". |
certificateNumber | string | Required. State-issued certificate or permit number (1 to 128 chars). |
states | string[] | Required. 1 to 52 unique US state, DC, or PR names or 2-letter codes. |
effectiveDate | string | Required. Calendar date (YYYY-MM-DD) when the certificate takes effect. |
expirationDate | string | Optional YYYY-MM-DD expiration date (must be on or after effectiveDate). |
itemKeys | string[] | Optional array of 1 to 50 category slugs. Omit for a blanket certificate. |
notes | string | Optional internal audit notes (1 to 500 chars). |
entityId / inheritToChildren | string / boolean | Optional legal entity scope (ent_...). Omit entityId for a workspace-wide certificate; inheritToChildren defaults to true so child entities inherit parent certificates. |
{
"customerId": "cust_acme_001",
"customerName": "Acme Wholesale LLC",
"exemptionReason": "resale",
"certificateNumber": "FL-RESALE-2026-8841",
"states": ["FL", "TX"],
"effectiveDate": "2026-01-01",
"expirationDate": "2027-12-31",
"notes": "Signed Florida DR-13 and Texas 01-339 on file."
}{
"certificate": {
"certificateId": "exc_9f4b2c1a8d7e6f504132231405968778",
"entityId": null,
"inheritToChildren": true,
"customerId": "cust_acme_001",
"customerName": "Acme Wholesale LLC",
"exemptionReason": "resale",
"certificateNumber": "FL-RESALE-2026-8841",
"states": ["FL", "TX"],
"status": "active",
"effectiveDate": "2026-01-01",
"expirationDate": "2027-12-31",
"itemKeys": null,
"notes": "Signed Florida DR-13 and Texas 01-339 on file.",
"createdAt": 1769904000000,
"updatedAt": 1769904000000,
"revokedAt": null
}
}List, inspect, and revoke
Filter stored certificates with optional query parameters: customerId, state (2-letter code or name), status (active or revoked), entityId, and limit (1 to 100).
Revoking a certificate sets status to revoked and records revokedAt for audit history. Revocation is idempotent and prevents the certificate from applying to future calculations. Remote MCP clients can read one certificate with get_exemption_certificate.
customerId automatically matches the best active certificate for the destination state and date (preferring blanket certificates over item-specific ones). Passing an explicit exemptionCertificateId enforces that certificate and returns 404 (exemption_not_found) or 422 (exemption_invalid) if it is revoked, expired, or does not cover the destination state.Bulk import certificates
Import up to 100 exemption certificates per request (maximum body size 256 KiB) using format: "json" (rows) or format: "csv" (csv), with optional entity scoping (entityId, entityCode, or ein). Pass dryRun: true to preview row-level validation before writing. Matching existing certificates are reported as skipped_duplicate.
{
"format": "json",
"dryRun": true,
"rows": [
{
"customerId": "cust_acme_001",
"customerName": "Acme Wholesale LLC",
"exemptionReason": "resale",
"certificateNumber": "FL-RESALE-2026-8841",
"states": ["FL", "TX"],
"effectiveDate": "2026-01-01"
}
]
}Certificate documents and buyer upload links
Attach a signed PDF (application/pdf), PNG (image/png), or JPEG (image/jpeg) up to 3 MiB decoded binary (JSON body max 4,400,000 bytes) to any active certificate by sending filename, contentType, and contentBase64. Net Amount verifies leading file magic bytes against the declared contentType, stores a SHA-256 checksum, and returns authenticated base64-encoded file contents (contentBase64) alongside document metadata on GET. Documents attached to revoked certificates are retained for audit compliance (409 exemption_revoked on delete).
{
"filename": "acme-fl-dr13.pdf",
"contentType": "application/pdf",
"contentBase64": "JVBERi0xLjQK..."
}Generate a single-use buyer upload link so a customer can submit their signed certificate directly without an API key or dashboard login. Pass optional expiresInHours (integer 1 to 720, default 168 hours / 7 days; up to 10 active links per certificate). If a document is already attached, creating a buyer upload link returns 409 document_already_exists. The response returns uploadToken, uploadPath (/exemptions/upload/{uploadToken}), and expiresAt. Each link is invalidated immediately after one successful upload.
{
"expiresInHours": 168
}