Skip to main content

The problem with ZIP codes

A ZIP code is a route that mail carriers drive. It is not a boundary that a legislature drew. ZIP codes cross county lines routinely and cross city limits in most urban areas; a few cross state lines. Tribal land cannot be identified from a ZIP at all. A rule that applies at a county’s own counters, or inside a city, cannot be resolved reliably from a ZIP. The engine therefore resolves a terminal’s registered street address to the boundaries that decide jurisdiction, stores those identifiers on the location record, and uses them for every transaction from that terminal. The ZIP becomes a cross-check.

What is resolved

When resolution happens

Resolution runs once at registration and again on any address change, never on the transaction path. A transaction is a lookup of stored identifiers, so there is no geocoding latency at the register and the offline mode can carry the resolved set in its cache.

Provenance and confidence

Every resolution records how it was reached. Alongside the method, the record carries source (the provider), vintage (the boundary dataset), match_type, geocoded_at, the matched address, coordinates, and a notes array that explains every fallback. Nothing falls back silently.

The ZIP cross-check

If the geocoded ZIP differs from the registered ZIP, the location is flagged for review and the geocoded boundaries are used. On a transaction, a request zip_code that differs from the registered location’s ZIP is recorded in the sealed record as a disagreement; the registered location governs.
Expect ZIP mismatches. The geocoder returns the ZIP of the matched street segment, and a merchant’s mailing ZIP often differs. A mismatch is a prompt to confirm the address, not a failure.

Time zone

Each location carries a time_zone. It defaults to the state’s primary zone and can be set per terminal, which matters in the states that span two zones (Florida, Idaho, Indiana, Kentucky, Michigan, Nebraska, North Dakota, Oregon, South Dakota, Tennessee, Texas, Kansas, Alaska). A transaction_timestamp that carries its own UTC offset always wins. See Rule activation.

Providers

The geocoding provider is configured on the engine, not by the caller.

Legacy paths

Transactions that send only zip_code or state, county, city still work. They resolve from the ZIP lookup table or from the names given, carry location_resolution: null, and cannot match local rules keyed by GEOID. See Integration paths.