What customer exemptions are
Some buyers do not owe sales tax on a sale due to the nature of their business, sale type, or other circumstances. The most common example is resale. For example a retailer buying inventory to sell on presents a resale certificate to their supplier, and the supplier charges no tax. The tax will be collected instead when the goods reach the end consumer. Here is a non-exhaustive list of other exemptions: driveaway (a vehicle bought to be titled in another state), agriculture, manufacturing, direct pay, and government or nonprofit organizations. Taxwire stores exemption certificates on customer records. You manage them in the Taxwire App by opening the buyer on the Customers page and adding each certificate with its type, dates, covered states and the certificate document. If you want to load customers and their certificates in bulk, contact Taxwire support. At calculation time, each active certificate becomes the matching jurisdiction-scoped customer attribute. A resale certificate covering Texas becomesRESALE_USA_TX on every line that buyer appears on. The exemption then applies when the line’s product carries the matching product attribute, such as _RESALE. Most exemptions are deliberately double-triggered, because a buyer holding a resale certificate can still purchase items for their own use.
Referencing the buyer with customer.preset
- For customers created in Taxwire’s dashboard,
preset.idis the customer id input into the platform andpreset.sourceistaxwire(the default). - For customers synced from a connected platform,
preset.idis the platform’s own id for that customer andpreset.sourceis the platform name, for examplestripeorquickbooks. - For customers created with the Customers API,
preset.id,preset.sourceandpreset.source_account_idare the customer’ssource_id,sourceandsource_account_id.
RESALE_USA_TX yourself. The certificate is only half of the trigger, though. The line still needs the matching product attribute (for example _RESALE), either from its product preset or passed explicitly on product.tax_attributes. If the certificate is on file but the line carries no product attribute, the line is treated as taxable.
Verifying the setup
Run a calculation for the exempt buyer in a state the certificate covers and check that tax comes back zero. Then check the negatives: a different buyer on the same products is still taxed, and the exempt buyer in a state the certificate does not cover is still taxed.Exemption management is enabled per organization. If certificates you have loaded are not affecting calculations, contact support to confirm it is enabled for your account.
Reading a customer’s exemptions
Retrieve customer returns anexemption block with what is on file for the buyer:
overridesare the buyer’sexempt,resaleandmanufacturingswitches. Setexemptin the Taxwire App or through the API, and the other two in the app.source_reported_exemptis what the customer’s source system last reported, ornullif it has not reported. It never changes how a sale is taxed. See Marking a customer exempt.jurisdictionshas one row per approved certificate per jurisdiction it covers. A certificate that covers three states gives three rows.jurisdictionis the jurisdiction’s path, such asUSA.S-CA,CAN.P-ONor a country code. A city has a longer path, such asUSA.S-IL.M-CHICAGO.jurisdiction_nameis the same place in readable form.starts_atandexpires_atare the first and last day the certificate covers.expires_atisnullwhen it never expires.statusisvalidwhen today (UTC) is inside the certificate’s dates,expiredafter itsexpires_at, andnot_yet_activebefore its start date. Treat the list of values as open, because Taxwire can add more.exemption_type_otherhas the certificate’s own description whenexemption_typeisother. Otherwise it isnull.exemption.updated_atis when the buyer’s approved certificates last changed. It isnullwhen the buyer never had one. The customer’s ownupdated_atis separate.- Certificates that are still in review or were rejected do not appear. List certificates returns them.
expired next to the new valid row for the same jurisdiction. To check whether a buyer is covered in a jurisdiction, look for any row for it with status valid.
The block is a snapshot as of now. It lists the certificates on file and does not promise that a given sale is exempt, because the product’s attributes and the sale date also decide whether a certificate applies. Use a calculation to get the tax for a sale.
The customer’s updated_at tracks the customer’s own fields and overrides only. Adding, approving, editing or removing a certificate moves exemption.updated_at instead. A certificate that expires moves neither, because nothing about it changes: its row’s status changes. To find out when coverage changed, compare exemption.updated_at with the last one you stored, and read status and expires_at for expiries.
A row shows that a certificate is inside its dates. It does not show that Taxwire applies it. A certificate affects a calculation only when your organization has exemption management on and Taxwire has a rule for the certificate’s type in that jurisdiction. Today those rules cover resale, manufacturing, driveaway and 501(c)(3) certificates, in US states. A city such as Chicago uses its state’s rule. A row for another type, or for a country or province, is on file and changes no calculation.
When the source system merges two customers, new sales go to the customer that remains. That customer keeps the merged customer’s overrides but not its certificates, so its jurisdictions can be empty while the merged customer still lists them. A customer with merged_into_customer_id set no longer gets new sales. Its certificates matter only for its past sales.
Listing certificates
List certificates returns the certificates themselves, one record per certificate, across all your customers. Unlike the customer’sexemption block, it includes certificates that are still in review or were rejected, so you can follow a certificate from the moment it is on file.
Filter by customer_id, exemption_type, status and jurisdiction. Repeat a filter to match any of its values. Page with limit and starting_after, passing the last certificate’s id, until has_more is false.
Response (200)
statuscombines the review and the dates.needs_reviewmeans the certificate is not reviewed yet, andrejectedmeans it was turned down, with the reason inreview_reason. Neither exempts anything, whatever its dates say. Once approved, a certificate isvalid,not_yet_activeorexpired, with the same meaning as on the customer. Treat the list of values as open, because Taxwire can add more.jurisdictionslists every place the certificate covers. Thejurisdictionfilter also matches places under a path:USA.S-ILfinds a certificate forUSA.S-IL.M-CHICAGO.exemption_typeandstarts_atcan benullon aneeds_reviewcertificate whose details are not filled in yet.- The certificate’s
idis thecertificate_idon the customer’sexemption.jurisdictionsrows. Retrieve certificate returns one by itsid. - Certificates of deleted customers, and emailed certificates not yet linked to a customer, are left out.
status=needs_review, until its status is no longer needs_review.
Marking a customer exempt
Two fields onexemption say that a customer does not pay tax. They mean different things. Send either one when you create, update or upsert a customer.
- For both fields,
trueorfalsesets the value. Omitoverrides.exempt, or sendnull, to keep the current value. Omitsource_reported_exemptto keep it, or sendnullto clear it, as when the source has not reported. - Use
source_reported_exemptto pass on the “tax exempt” box from your ERP or billing system. Do not useoverrides.exemptfor it, because that stops tax with no check. source_reported_exemptraises an alert in two cases: it istrueand the customer has no valid certificate and nooverrides.exempt, or it isfalseand Taxwire treats the customer as exempt.- Only these two fields can be set.
resale,manufacturingand certificates stay in the Taxwire App, and sending them returns422. - You can send
overrides.exemptfor a customer from any source. NetSuite, Rillet, Campfire and Xero also setexemptin their own syncs, so a later sync from one of them can overwrite the value you send. For those customers, set it in the source system too. - A batch applies either field to customers it creates or updates. An item with an older
source_updated_at, or for a customer deleted in the Taxwire App, keeps its current value. - Taxwire counts a customer’s past sales toward nexus thresholds using the customer’s current
overrides.exemptvalue, so changing it changes how that history counts.source_reported_exemptdoes not change nexus.
The alternative: force attributes
Certificates only derive customer attributes for the exemption types Taxwire supports: resale, manufacturing, driveaway and 501(c)(3) nonprofit organizations. This functionality is also useful when you cannot reference customer records at all. In those cases, assert the exemption directly on the request by passing a force attribute oncustomer.tax_attributes:
FORCE_RESALE is single-triggered, which means it treats the line as a resale purchase with no certificate on file and no product attribute required. It is an unconditional override, so only use it for buyers whose every purchase is exempt. Keep the buyer’s paperwork on record anyway. See Force attributes for the full behavior, the jurisdiction-scoped variants, and the cautions.
Prefer the certificate path when the buyer’s exemption type supports it. It scopes the exemption to the states the certificate actually covers, stops applying when the certificate expires, and leaves an audit trail.