Skip to navigation

Exemption Certificates

Store, retrieve, list, and disable customer exemption certificates for any merchant.
View as Markdown

An exemption certificate records that one of a merchant’s customers does not pay sales tax in one or more states, for example because they buy for resale. Store the certificate once, then reference it when you calculate a cart so the sale is quoted without tax. See Exempt a Sale for how a stored certificate is applied.

Ziptax stores new certificates for both self-managed and TaxCloud-connected merchants. Connected merchants can also read certificates held in TaxCloud.

All endpoints use POST, the X-API-KEY header, and a JSON body that names the merchant with merchantId. The merchant must belong to your account.

If you already use these endpoints, see Exemption Certificate Changes for changes to certificate IDs, pagination, delete responses, and error bodies.

How certificates work

  • One store per merchant. A certificate belongs to one merchant and one of that merchant’s customers, identified by your customerId.
  • customerId is matched exactly. A cart applies a certificate only when the cart’s customerId is the same string, including case and spaces, as the certificate’s.
  • States. A certificate covers the states it lists. A sale is judged by the state it ships to.
  • Blanket or single purchase. A blanket certificate covers every qualifying sale to the customer. A single-purchase certificate (singlePurchase: true) covers one order only, named by orderNumber.
  • Dates. effectiveDate and expirationDate are inclusive. Omit either date to leave that end of the date range open.
  • No edits. There is no update endpoint. To change a certificate, disable it and create a new one.
  • Delete disables. cert/delete sets disabledAt and keeps the record. A disabled certificate cannot be re-enabled.

Certificates created in TaxCloud

Before this release, certificates for TaxCloud-connected merchants were stored in TaxCloud. Those certificates still exist there. For a connected merchant with TaxCloud credentials on file, cert/get and cert/list read them from TaxCloud and return them with "source": "taxcloud". They are read-only here: cert/delete answers 409. TaxCloud does not hold every field Ziptax does, so orderNumber, effectiveDate, expirationDate, and each state’s identificationNumber are null on these certificates.

Certificates you create through this API have "source": "ziptax".

Create a certificate

POST https://api.zip-tax.com/merchant/cert/create
FieldTypeRequiredDescription
merchantIdstring (UUID)YesThe merchant the certificate belongs to. Must be owned by your account.
customerIdstring (1–50 chars, at most 50 bytes)YesYour identifier for the exempt customer. Stored exactly as sent, without trimming, because carts match it as an exact string.
customerNamestring (1–100 chars)YesThe customer or organization name on the certificate.
addressAddressYesThe customer’s address.
customerBusinessTypestringYesOne of the business types.
customerBusinessDescriptionstring (max 255 chars)When type is OtherDescribes the business. Required when customerBusinessType is Other, and ignored for every other type.
reasonstringYesOne of the exemption reasons.
reasonDescriptionstring (1–20 chars)YesA short note on the reason.
statesarray of State (1–64)YesThe states and provinces the certificate covers.
singlePurchasebooleanNotrue for a certificate that covers one order only. Defaults to false.
orderNumberstring (max 50 chars, at most 50 bytes)When singlePurchase is trueThe order the single-purchase certificate covers. Required when singlePurchase is true, and rejected when it is false.
effectiveDatestring (YYYY-MM-DD)NoThe first day the certificate applies.
expirationDatestring (YYYY-MM-DD)NoThe last day the certificate applies. Must not be before effectiveDate.

Text fields are trimmed of surrounding spaces before they are checked and stored, except customerId. An optional field that is empty after trimming is treated as not sent. Length limits count characters. The ID fields (customerId, orderNumber, identificationNumber, and address.zip) also have a byte limit equal to their character limit, so a non-ASCII character uses more than one character’s worth of the limit.

There is no purchaser tax ID field. Body fields that are not listed here are accepted and ignored.

Address object

FieldTypeRequiredDescription
line1string (1–128 chars)YesStreet address.
line2string (max 128 chars)NoSuite, unit, or floor.
citystring (1–50 chars)YesCity.
statestringYesTwo-letter state or province code. Converted to upper case.
zipstring (1–16 chars, at most 16 bytes)YesZIP or postal code.
countryCodestringNoUS (the default) or CA.

State object

FieldTypeRequiredDescription
abbreviationstringYesAn upper-case two-letter code: one of the 50 US states, DC, or a Canadian province or territory code. US territories are not accepted. Each code may appear once.
identificationNumberstring (max 50 chars, at most 50 bytes)NoThe customer’s exemption or registration number for this state.

Business types

AccommodationAndFoodServices, AgriculturalForestryFishingHunting, Construction, FinanceAndInsurance, InformationPublishingAndCommunications, Manufacturing, Mining, RealEstate, RentalAndLeasing, RetailTrade, TransportationAndWarehousing, Utilities, WholesaleTrade, BusinessServices, ProfessionalServices, EducationAndHealthCareServices, NonprofitOrganization, Government, NotABusiness, Other

Exemption reasons

Resale, FederalGovernment, StateOrLocalGovernment, TribalGovernment, ForeignDiplomat, CharitableOrganization, ReligiousOrganization, EducationalOrganization, AgriculturalProduction, IndustrialProductionOrManufacturing, DirectPayPermit, DirectMail, Other

Values are case-sensitive and spelled exactly as above, the same spellings TaxCloud uses.

cURL
curl -X POST "https://api.zip-tax.com/merchant/cert/create" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"merchantId": "6b3c1f5e-2a8d-4c9b-9f2e-1d7a4b6c8e10",
"customerId": "customer-123",
"customerName": "Example Wholesale LLC",
"address": { "line1": "100 Example Ave", "city": "Reno", "state": "NV", "zip": "89501" },
"customerBusinessType": "WholesaleTrade",
"reason": "Resale",
"reasonDescription": "Bought for resale",
"states": [
{ "abbreviation": "NV", "identificationNumber": "EXAMPLE-NV-0001" },
{ "abbreviation": "CA" }
],
"effectiveDate": "2026-01-01",
"expirationDate": "2028-12-31"
}'

A successful call returns 201 Created with the certificate:

{
"certificateId": "01a1f456-1688-7c3e-9b52-4d8e0f6a2c71",
"merchantId": "6b3c1f5e-2a8d-4c9b-9f2e-1d7a4b6c8e10",
"customerId": "customer-123",
"customerName": "Example Wholesale LLC",
"address": {
"line1": "100 Example Ave",
"line2": null,
"city": "Reno",
"state": "NV",
"zip": "89501",
"countryCode": "US"
},
"customerBusinessType": "WholesaleTrade",
"customerBusinessDescription": null,
"reason": "Resale",
"reasonDescription": "Bought for resale",
"states": [
{ "abbreviation": "NV", "identificationNumber": "EXAMPLE-NV-0001" },
{ "abbreviation": "CA", "identificationNumber": null }
],
"singlePurchase": false,
"orderNumber": null,
"effectiveDate": "2026-01-01",
"expirationDate": "2028-12-31",
"createdDate": "2026-11-19T15:04:05Z",
"disabledAt": null,
"status": "active",
"source": "ziptax"
}

Keep the certificateId. You use it with cert/get and cert/delete, and as exemptionId on carts.

Creating is not idempotent. Retrying a create that timed out can store a second certificate. List the customer’s certificates before you retry.

Get a certificate

POST https://api.zip-tax.com/merchant/cert/get
FieldTypeRequiredDescription
merchantIdstring (UUID)YesThe merchant.
certificateIdstring (1–128 chars)YesA Ziptax certificate id, in any letter case, or, for a TaxCloud-connected merchant, the id of a certificate held in TaxCloud.

Ziptax looks in its own store first. For a TaxCloud-connected merchant, an id the store does not hold is then looked up in TaxCloud. Returns 200 with the certificate, or 404 when neither has it.

cURL
curl -X POST "https://api.zip-tax.com/merchant/cert/get" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"merchantId": "6b3c1f5e-2a8d-4c9b-9f2e-1d7a4b6c8e10",
"certificateId": "01a1f456-1688-7c3e-9b52-4d8e0f6a2c71"
}'

List certificates

POST https://api.zip-tax.com/merchant/cert/list
FieldTypeRequiredDescription
merchantIdstring (UUID)YesThe merchant.
limitinteger (1–100)NoCertificates per page. Defaults to 25.
cursorstringNoThe nextCursor from the previous page. Omit it for the first page.
ascendingbooleanNotrue lists oldest first. Defaults to false, newest first.
sortBystringNocreatedDate, or its aliases createdAt and created. Certificates are always listed in creation order, so you can leave this out. Any other value returns 400.
customerIdstring (1–50 chars, at most 50 bytes)NoOnly this customer’s certificates, matched exactly.
disabledbooleanNofalse (the default) lists certificates that are not disabled. true lists only disabled certificates.

The response is a page of certificates:

{
"items": [
{
"certificateId": "01a1f456-1688-7c3e-9b52-4d8e0f6a2c71",
"merchantId": "6b3c1f5e-2a8d-4c9b-9f2e-1d7a4b6c8e10",
"customerId": "customer-123",
"customerName": "Example Wholesale LLC",
"address": { "line1": "100 Example Ave", "line2": null, "city": "Reno", "state": "NV", "zip": "89501", "countryCode": "US" },
"customerBusinessType": "WholesaleTrade",
"customerBusinessDescription": null,
"reason": "Resale",
"reasonDescription": "Bought for resale",
"states": [
{ "abbreviation": "NV", "identificationNumber": "EXAMPLE-NV-0001" },
{ "abbreviation": "CA", "identificationNumber": null }
],
"singlePurchase": false,
"orderNumber": null,
"effectiveDate": "2026-01-01",
"expirationDate": "2028-12-31",
"createdDate": "2026-11-19T15:04:05Z",
"disabledAt": null,
"status": "active",
"source": "ziptax"
}
],
"limit": 25,
"nextCursor": null
}

items is an empty array when nothing matches. nextCursor is null on the last page.

Paging rules:

  • The cursor is opaque. Pass it back unchanged as cursor, with the same customerId, disabled, and ascending values. A cursor from another merchant or from a request with different filters returns 400 on cursor.
  • TaxCloud-connected merchants. Ziptax certificates come first, in creation order. The merchant’s TaxCloud certificates follow, with "source": "taxcloud", in TaxCloud’s order. A page where the Ziptax certificates run out is filled from TaxCloud. If TaxCloud cannot be read, the request fails rather than returning a partial list.
  • Customer limit. A customerId filter reads at most 500 certificates. A customer with more returns 400 on customerId. List without customerId instead.

Delete a certificate

Disables a certificate so it no longer applies to new sales. The record is kept, and it cannot be re-enabled.

POST https://api.zip-tax.com/merchant/cert/delete
FieldTypeRequiredDescription
merchantIdstring (UUID)YesThe merchant.
certificateIdstring (1–128 chars)YesThe certificate to disable.
cURL
curl -X POST "https://api.zip-tax.com/merchant/cert/delete" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"merchantId": "6b3c1f5e-2a8d-4c9b-9f2e-1d7a4b6c8e10",
"certificateId": "01a1f456-1688-7c3e-9b52-4d8e0f6a2c71"
}'

Returns 200 with the certificate, now with disabledAt set and status disabled. Disabling a certificate that is already disabled returns the same record with 200, so a retry is safe.

For a certificate with "source": "taxcloud", this endpoint returns 409. Manage that certificate in TaxCloud.

Certificate object

Every endpoint returns certificates in this shape. Fields with no value are null.

FieldTypeDescription
certificateIdstringThe certificate’s id. A lowercase UUID for Ziptax certificates.
merchantIdstring (UUID)The merchant the certificate belongs to.
customerIdstringYour identifier for the customer.
customerNamestringThe customer or organization name.
addressobjectline1, line2, city, state, zip, countryCode.
customerBusinessTypestringThe customer’s business type.
customerBusinessDescriptionstring or nullSet when the business type is Other.
reasonstringThe exemption reason.
reasonDescriptionstringThe short note on the reason.
states[]arrayEach { "abbreviation": "NV", "identificationNumber": "..." }. identificationNumber is null when not provided.
singlePurchasebooleantrue when the certificate covers one order only.
orderNumberstring or nullThe order a single-purchase certificate covers.
effectiveDatestring or null (YYYY-MM-DD)First day the certificate applies.
expirationDatestring or null (YYYY-MM-DD)Last day the certificate applies.
createdDatestring (RFC 3339, UTC)When the certificate was created.
disabledAtstring or null (RFC 3339, UTC)When the certificate was disabled.
statusstringactive, expired, or disabled. See Status.
sourcestringziptax for a certificate in the Ziptax store, taxcloud for one read from TaxCloud.

Status

status reflects the current calendar day in UTC.

StatusWhen
disableddisabledAt is set.
expiredNot disabled, and expirationDate is before today.
activeAnything else.

A certificate whose effectiveDate is in the future is active, but it does not apply to a sale until that date.

Errors

Every 400 from these endpoints has the same body: a summary message and one entry in errors for each invalid field. A create request reports every invalid field at once. Messages never repeat the value you sent.

{
"status": "error",
"message": "reasonDescription must be at most 20 characters; states[1].abbreviation repeats a state already listed",
"errors": [
{ "field": "reasonDescription", "message": "must be at most 20 characters" },
{ "field": "states[1].abbreviation", "message": "repeats a state already listed" }
]
}

Other errors have the body { "status": "error", "message": "..." }.

HTTPWhen it happens
400Invalid JSON or field values, a limit, sortBy, or cursor the list does not accept, or a customerId filter with more than 500 certificates. Also returned when TaxCloud rejects a read-through request, with an empty field.
401Missing or invalid API key.
403The merchant does not belong to your account.
404cert/get or cert/delete: no certificate with that id.
409cert/delete on a certificate with "source": "taxcloud".
413Request body too large.
429Rate limit exceeded.
500Internal error.
502 / 504A read from the merchant’s TaxCloud account failed or timed out (connected merchants only).
503The certificate store is unavailable, or TaxCloud is limiting requests. Retry with backoff.

cert/get, cert/list, and cert/delete are safe to retry. cert/create is not.