Web application / Zamp

Zamp: Non-SST tax calculation, GIS coordinate lookup and rounding

Analysis of Zamp’s dual calculation and post-order compliance model: Smarty geocoding and coordinate point-in-polygon lookups, ~1,400 curated boundary ZIP centroids, non-SST filing posture, 8-decimal taxes[] summation, and WooCommerce 3.4.1 composite overrides.

Contract model · conceptual sequence, not a claim about internal deployment
  1. Smarty / raw lat-lon / 1,400 boundary ZIPs
  2. 4dp line + 8dp taxes[] -> 2dp taxDue
  3. Non-SST registrations + CO SUTS / AK ARSSTC
01 / EMPIRICAL RECORD

Investigation question

How does Zamp execute direct checkout tax calculations versus post-order Shopify compliance, resolve street addresses and raw coordinates across the 21 non-SST states plus DC, and expose precision, shipping-versus-handling, and refund rules in its API?

02 / EMPIRICAL RECORD

Observed

Public Zamp documentation (developer.zamp.com), public Zamp Tax v3.4.1 WooCommerce plugin archives, public Next.js login-shell bundles, and shape-only API sandbox responses document two operational modes backed by api.zamp.com: real-time checkout calculation (POST /calculations -> POST /transactions for REST and WooCommerce/Adobe/BigCommerce plugins) versus post-checkout managed compliance on Shopify (leaving checkout rates to Shopify Tax while running bulk backfill and ~5-minute debounced webhook re-reads). For location resolution, POST /addresses delegates US street validation to Smarty (returning ZIP+4 and [lon, lat]), Shopify ingestion reuses native shipping coordinates directly without double-geocoding, direct shipToAddress.coordinates ({latitude, longitude}) runs point-in-polygon GIS lookup without a street line or ZIP, and ZIP-only requests fall back to ZIP centroids overlaid with ~1,400 manually audited boundary-ZIP overrides (for example resolving Colorado ZIP 80123 to Denver City home-rule jurisdictions plus the $0.31 CO Retail Delivery Fee). API schema inspection and sandbox validation reveal asymmetric precision rules: transaction-level totals accept 2 decimal places, line-item amounts accept 4 decimal places, and taxes[] preserves up to 8 decimal places per jurisdiction before rounding top-level taxDue to 2 decimal places. Live POST /calculations validation also enforces lineItems[*].productName alongside tax codes (375 active Z-* codes plus undocumented legacy R_* acceptance).

03 / EMPIRICAL RECORD

Inferred

Four engineering tradeoffs emerge: (1) operating explicitly outside Streamlined Sales Tax (SST) forces Zamp to convert onboarding merchants off SST IDs onto direct state registrations (such as AR, GA, IN, IA, KY, NJ, and SD), while enabling one unified attorney-curated GIS and CO SUTS / AK ARSSTC table across all 50 states plus DC; (2) splitting shipping from handling fields prevents over-taxing exempt carrier charges in states like California where standalone handling remains taxable; (3) driving INTRA_ORIGIN versus INTER_DESTINATION sourcing from registered nexus state locations rather than request shipFromAddress alone explains why calculations return $0 tax when a state lacks an active registration covering transactedAt; and (4) WooCommerce 3.4.1 avoids flat-table conflicts by injecting a 0.0000% dummy rate and computing a composite $effective_rate with a 5-second checkout timeout.

04 / METHODOLOGICAL BOUNDARY

Unknown & limitations

Zamp does not publish the underlying commercial or municipal GIS shapefile vendor sources used behind its server-side polygon engine. In addition, authenticated Shopify dashboard onboarding (app.zamp.com) requires sales-assisted provisioning (app.zamp.com/sign-up redirects to /dashboard), so live authenticated Shopify dashboard flows remain outside public and API-sandbox evidence.

05 / EMPIRICAL RECORD

Architecture

Zamp routes api.zamp.com behind Vercel edge, pairing Clerk-authenticated merchant/approval portals (app.zamp.com) with two store integration patterns: synchronous REST/plugin rate overrides (WooCommerce Zamp_Tax_Rate_Manager injecting zamp-dummy-rate at priority 2000) and asynchronous post-order Shopify Tax reconciliation.

06 / EMPIRICAL RECORD

Domain & data models

Transactions model id (<=25 chars), parentId (linking negative-quantity refunds using the refund event transactedAt), 2dp transaction totals vs 4dp lineItems[].amount vs 8dp taxes[] entries carrying compositeCode, sourcing, ancillaryType, and exceptionCode (RESALE, SHIPPING), plus 375 Z-* product tax codes and 26 marketplace identifiers.

07 / EMPIRICAL RECORD

Workflows & state machines

Managed filing cycles notify merchants between the 1st and 5th via opt-out approval links, bucket orders by destination state-capital timezones, file Colorado SUTS and Alaska ARSSTC returns without per-return surcharges, and pair WooCommerce Exempt Order & Customer actions with two ledger writes (a negative refund plus a $0 exempt transaction).

08 / EMPIRICAL RECORD

API & protocol surfaces

https://api.zamp.com exposes Bearer-authenticated endpoints (1,000 req/min production; 10 req/min 30-day free trial sandbox via book.zamp.com/api/trial-token): POST /addresses, POST /calculations, GET/POST/PUT/DELETE /transactions (closed periods reject edits with 400; duplicate ids return 409; recalculate defaults false), GET /tax-codes, GET /companies, GET /registrations, and GET /filings.