Delaware
Wilmington 19801 · Dover 19901 · Newark 19711
New Hampshire combines two critical QA edge cases in a single fixture: 0% general state & local retail sales tax AND leading-zero ZIP codes (03101, 03301, 03060) that expose integer-cast and Excel CSV truncation bugs.
{
"meta": {
"service": "AddressQA",
"seed": "qa-nh-zero-01",
"country": "US",
"countrySlug": "us",
"state": "NH",
"taxFree": true,
"phoneMode": "safe",
"boundary": "leading_zero",
"count": 1
},
"fixtures": [
{
"id": "qa-nh-zero-01-1-US-NH",
"index": 1,
"seed": "qa-nh-zero-01",
"boundary": "leading_zero",
"recipient": {
"fullName": "Maya Sinclair",
"nativeName": "Maya Sinclair",
"displayName": "Maya Sinclair",
"firstName": "Maya",
"lastName": "Sinclair",
"email": "[email protected]"
},
"address": {
"line1": "2382 Main St",
"line1Native": "2382 Main St",
"line2": null,
"city": "Nashua",
"cityNative": "Nashua",
"state": "NH",
"stateName": "New Hampshire",
"postalCode": "03060",
"zipPlus4": "03060-3410",
"country": "US",
"countryName": "United States",
"formatted": "2382 Main St, Nashua, NH 03060, US"
},
"phone": {
"countryCode": "US",
"dialCode": "+1",
"areaCode": "603",
"regionCode": "NH",
"regionName": "New Hampshire",
"city": "Nashua",
"mode": "safe",
"regulatorSafe": true,
"regulatorAuthority": "NANPA & USPS",
"e164": "+16035550187",
"international": "+1 603-555-0187",
"national": "(603) 555-0187",
"rfc3966": "tel:+1-603-555-0187",
"digitsOnly": "6035550187"
},
"qaFlags": {
"taxFreeUsState": true,
"leadingZeroPostal": true,
"streetLength": 12,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": true,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-nh-zero-01, country: US, boundary: leading_zero)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Maya Sinclair",
"email": "[email protected]",
"phoneE164": "+16035550187",
"line1": "2382 Main St",
"line2": "",
"city": "Nashua",
"state": "NH",
"postalCode": "03060",
"country": "US"
};
async function fillCheckoutForm(page: Page, data: typeof checkoutFixture) {
await page.getByLabel(/full name/i).fill(data.fullName);
await page.getByLabel(/email/i).fill(data.email);
await page.getByLabel(/phone/i).fill(data.phoneE164);
await page.getByLabel(/address line 1|street/i).fill(data.line1);
if (data.line2) await page.getByLabel(/address line 2|apt|suite/i).fill(data.line2);
await page.getByLabel(/city/i).fill(data.city);
await page.getByLabel(/state|region|province/i).fill(data.state);
if (data.postalCode) await page.getByLabel(/zip|postal/i).fill(data.postalCode);
}
test('checkout validation (US / leading_zero)', async ({ page }) => {
const target = checkoutFixture;
await page.goto('/checkout');
await fillCheckoutForm(page, target);
await page.getByRole('button', { name: /continue|pay/i }).click();
await expect(page.getByTestId('order-summary-postal')).toHaveText(target.postalCode || 'N/A');
}); {
"shipping": {
"name": "Maya Sinclair",
"phone": "+16035550187",
"address": {
"line1": "2382 Main St",
"line2": null,
"city": "Nashua",
"state": "NH",
"postal_code": "03060",
"country": "US"
}
},
"billing_details": {
"name": "Maya Sinclair",
"email": "[email protected]",
"phone": "+16035550187",
"address": {
"line1": "2382 Main St",
"line2": null,
"city": "Nashua",
"state": "NH",
"postal_code": "03060",
"country": "US"
}
},
"metadata": {
"qa_seed": "qa-nh-zero-01",
"qa_boundary": "leading_zero",
"us_tax_free_state": "true",
"regulator_safe_phone": "true"
}
} -- AddressQA deterministic SQL seed (qa-nh-zero-01)
INSERT INTO qa_address_fixtures (fixture_id, seed, full_name, email, phone_e164, phone_national, street_line1, street_line2, city, region_code, postal_code, country_code, tax_free_us_state) VALUES ('qa-nh-zero-01-1-US-NH', 'qa-nh-zero-01', 'Maya Sinclair', '[email protected]', '+16035550187', '(603) 555-0187', '2382 Main St', NULL, 'Nashua', 'NH', '03060', 'US', TRUE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=NH&taxFree=true&boundary=leading_zero&seed=qa-nh-zero-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=NH&taxFree=true&boundary=leading_zero&seed=qa-nh-zero-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=NH&taxFree=true&boundary=leading_zero&seed=qa-nh-zero-01&format=csv" -o fixtures-qa-nh-zero-01.csv fixture_id,seed,full_name,email,phone_e164,phone_national,street_line1,street_line2,city,state,postal_code,country,tax_free_us_state,boundary
qa-nh-zero-01-1-US-NH,qa-nh-zero-01,Maya Sinclair,[email protected],+16035550187,(603) 555-0187,2382 Main St,,Nashua,NH,"=""03060""",US,true,leading_zero New Hampshire levies no general state or local retail sales tax (note that prepared meals and rooms have a separate hospitality tax, outside standard shipped goods). Critically for developers, every New Hampshire ZIP starts with "03": storing postal_code as an integer or opening unescaped CSVs in Excel silently mutates 03101 into 3101, breaking AVS and USPS validation.
Official Revenue Authority: New Hampshire Dept. of Revenue Administration
| City | County / Borough | ZIP | ZIP+4 | Area Code | NANPA Safe Range |
|---|---|---|---|---|---|
| Manchester | Hillsborough | 03101 | 03101-1604 | 603 | +1 603-555-0100..0199 |
| Concord | Merrimack | 03301 | 03301-4902 | 603 | +1 603-555-0100..0199 |
| Nashua | Hillsborough | 03060 | 03060-3410 | 603 | +1 603-555-0100..0199 |
Wilmington 19801 · Dover 19901 · Newark 19711
Portland 97204 · Salem 97301 · Eugene 97401
Billings 59101 · Helena 59601 · Missoula 59801
Anchorage 99501 · Juneau 99801 · Fairbanks 99701