Exemption Certificates
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. customerIdis matched exactly. A cart applies a certificate only when the cart’scustomerIdis 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 byorderNumber. - Dates.
effectiveDateandexpirationDateare 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/deletesetsdisabledAtand 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
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
State object
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.
A successful call returns 201 Created with the certificate:
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
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.
List certificates
The response is a page of certificates:
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 samecustomerId,disabled, andascendingvalues. A cursor from another merchant or from a request with different filters returns400oncursor. - 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
customerIdfilter reads at most 500 certificates. A customer with more returns400oncustomerId. List withoutcustomerIdinstead.
Delete a certificate
Disables a certificate so it no longer applies to new sales. The record is kept, and it cannot be re-enabled.
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.
Status
status reflects the current calendar day in UTC.
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.
Other errors have the body { "status": "error", "message": "..." }.
cert/get, cert/list, and cert/delete are safe to retry. cert/create is
not.