Web application / TaxJar

TaxJar: SmartCalcs float math, WooCommerce overrides and county FIPS gaps

Clean-room teardown of TaxJar SmartCalcs OpenAPI 3.1 (22 operations), taxjar@5.0.0 SDK, and taxjar-woocommerce-plugin 4.2.13: IEEE-754 float amounts, missing county FIPS codes, MD5 cart hashing, 8-setting store mutations, 12h nexus deletions, and 20-minute ActionScheduler queues.

Contract model · conceptual sequence, not a claim about internal deployment
  1. MD5 cart cache -> POST /v2/taxes float response
  2. 12h nexus transient + global option override
  3. 20m ActionScheduler sync + county-name FIPS gap
01 / EMPIRICAL RECORD

Investigation question

How does TaxJar’s SmartCalcs API model monetary precision and jurisdiction metadata, and what caching, global store mutation, nexus pruning, and async queue patterns appear in its official Node SDK and WooCommerce plugin?

02 / EMPIRICAL RECORD

Observed

Static inspection of TaxJar’s SmartCalcs OpenAPI 3.1.0 specification (/.well-known/openapi.json, 22 operations across 13 paths, version 2022-01-24), /.well-known/ai-plugin.json, complete developer Markdown docs (llms-full.txt), taxjar@5.0.0 npm SDK, and open-source taxjar-woocommerce-plugin (v4.2.13) establishes both wire semantics and concrete integration side effects. On the wire, SmartCalcs models every dollar amount and tax rate as an IEEE-754 JSON float (number) rather than integer minor units, and returns human-readable county strings (e.g., "LOS ANGELES") inside jurisdictions rather than 5-digit statutory State+County FIPS codes (omitting jurisdictions altogether when has_nexus is false). TaxJar also ships no hosted remote MCP server, advertising only OpenAPI 3.1.0 plus a legacy ai-plugin.json manifest. Inside taxjar-woocommerce-plugin v4.2.13, Tax_Calculator caches cart lookups for 1 hour keyed by MD5 payload hash, TaxJar_Tax_Calculation::update_tax_options() forcefully overwrites 8 global WooCommerce tax settings on every enabled run (tax_based_on="shipping", prices_include_tax="no", round_at_subtotal="no", etc.), WC_Taxjar_Nexus caches GET /v2/nexus/regions for 12 hours and deletes non-nexus US state rows from local woocommerce_tax_rates, and Cart_Tax_Applicator distributes negative cart fee lines proportionally across positive lines floored at $0.00 total tax.

03 / EMPIRICAL RECORD

Inferred

Four clean-room engineering lessons apply when wrapping or replacing TaxJar: (1) convert SmartCalcs float outputs immediately into integer minor units at client ingress to prevent cumulative penny rounding drift; (2) resolve (state, county) names against external Census/FIPS boundary tables rather than trusting TaxJar responses for county-level DOR return prep; (3) avoid unconditional local tax-rate table deletion and global option mutation if stores use hybrid tax rules; and (4) decouple order/refund reporting from checkout latency via persistent asynchronous queues (modeled by TaxJar’s ActionScheduler 20-minute, 50-record batch worker) while persisting a frozen tax snapshot onto the order record.

04 / METHODOLOGICAL BOUNDARY

Unknown & limitations

This investigation covers only public OpenAPI specs, developer documentation, published npm packages, and open-source PHP/JS plugin code; no paid TaxJar sandbox/production key, AutoFile return submission dashboard, or live billing quota was exercised.

05 / EMPIRICAL RECORD

Architecture

TaxJar splits checkout calculation (synchronous POST /v2/taxes with 1-hour MD5 payload caching), state-level nexus sync (GET /v2/nexus/regions with 12-hour transient caching), asynchronous transaction ledgering (ActionScheduler queue processing 50 records every 20 minutes to /v2/transactions/orders and /refunds), and auxiliary address/ZIP/VAT helpers.

06 / EMPIRICAL RECORD

Domain & data models

TaxRequest accepts origin (from_*), destination (to_*), nexus_addresses[], shipping, discounts, customer_id, exemption_type (wholesale, government, marketplace, other, non_exempt), and line_items[]. TaxResponse returns IEEE-754 floats, has_nexus, freight_taxable, tax_source (origin vs destination), US state/county/city/special_district breakdown amounts, and county name strings without FIPS IDs.

07 / EMPIRICAL RECORD

Workflows & state machines

Checkout freezes _taxjar_tax_result onto the persisted order while negative cart fees distribute proportionally without dropping collected tax below $0.00; background ActionScheduler retries PUT/POST order and refund syncs asynchronously; failed address validation (POST /v2/addresses/validate) falls back to ZIP-level GET /v2/rates/{zip}.

08 / EMPIRICAL RECORD

API & protocol surfaces

22 OpenAPI 3.1.0 operations across 13 paths at https://api.taxjar.com/v2 (and sandbox api.sandbox.taxjar.com/v2 toggled via setApiConfig in taxjar@5.0.0) using Authorization: Bearer tokens and x-api-version: 2022-01-24: POST /taxes, GET /categories, GET /rates/{zip}, GET /summary_rates, CRUD /transactions/orders/*, CRUD /transactions/refunds/*, CRUD /customers/*, GET /nexus/regions, POST /addresses/validate, and GET /validation.