United Kingdom
SW1A 1AA
Preloaded with Sweden locality mappings and PTS & PostNord safe test ranges (+46 70 000 xx xx). Switch boundary torture presets below and copy ready-to-run Playwright, Stripe, SQL, or cURL payloads.
{
"meta": {
"service": "AddressQA",
"seed": "qa-se-01",
"country": "SE",
"countrySlug": "se",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-se-01-1-SE-AB",
"index": 1,
"seed": "qa-se-01",
"boundary": "normal",
"recipient": {
"fullName": "Klara Conti",
"nativeName": "Klara Conti",
"displayName": "Klara Conti",
"firstName": "Klara",
"lastName": "Conti",
"email": "[email protected]"
},
"address": {
"line1": "Drottninggatan 164",
"line1Native": "Drottninggatan 164",
"line2": "Suite 341",
"city": "Stockholm",
"cityNative": "Stockholm",
"state": "AB",
"stateName": "Stockholm",
"postalCode": "111 22",
"zipPlus4": "111 22",
"country": "SE",
"countryName": "Sweden",
"formatted": "Drottninggatan 164, Suite 341, Stockholm, AB 111 22, SE"
},
"phone": {
"countryCode": "SE",
"dialCode": "+46",
"areaCode": "8",
"regionCode": "AB",
"regionName": "Stockholm",
"city": "Stockholm",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "PTS & PostNord",
"e164": "+46700000980",
"international": "+46 700 000 980",
"national": "0700 000 980",
"rfc3966": "tel:+46700000980",
"digitsOnly": "0700000980"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": false,
"streetLength": 18,
"hasUnicode": false,
"hasLine2": true,
"regulatorSafePhone": false,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-se-01, country: SE, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Klara Conti",
"email": "[email protected]",
"phoneE164": "+46700000980",
"line1": "Drottninggatan 164",
"line2": "Suite 341",
"city": "Stockholm",
"state": "AB",
"postalCode": "111 22",
"country": "SE"
};
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 (SE / normal)', 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": "Klara Conti",
"phone": "+46700000980",
"address": {
"line1": "Drottninggatan 164",
"line2": "Suite 341",
"city": "Stockholm",
"state": "AB",
"postal_code": "111 22",
"country": "SE"
}
},
"billing_details": {
"name": "Klara Conti",
"email": "[email protected]",
"phone": "+46700000980",
"address": {
"line1": "Drottninggatan 164",
"line2": "Suite 341",
"city": "Stockholm",
"state": "AB",
"postal_code": "111 22",
"country": "SE"
}
},
"metadata": {
"qa_seed": "qa-se-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-se-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-se-01-1-SE-AB', 'qa-se-01', 'Klara Conti', '[email protected]', '+46700000980', '0700 000 980', 'Drottninggatan 164', 'Suite 341', 'Stockholm', 'AB', '111 22', 'SE', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=SE&seed=qa-se-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=SE&seed=qa-se-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=SE&seed=qa-se-01&format=csv" -o fixtures-qa-se-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-se-01-1-SE-AB,qa-se-01,Klara Conti,[email protected],+46700000980,0700 000 980,Drottninggatan 164,Suite 341,Stockholm,AB,111 22,SE,false,normal | Dimension | Specification & Edge Notes |
|---|---|
| Postal Regex & Max Length | Example 111 22 (max 6 chars, regex /^\d{3}\s?\d{2}$/) |
| Leading-Zero Corruption Risk | Low leading-zero risk, though VARCHAR storage remains best practice |
| E.164 & Regulator Safe Range | Dial code +46, 9-digit NSN, safe block: +46 70 000 xx xx |
| Primary Locality Anchor | Stockholm, Stockholm (AB) · 111 22 · Area code 8 |
| Official Regulator Reference | Swedish 3+2 spaced Postnummer (111 22) and PTS non-assigned synthetic mobile/Stockholm test ranges. (PTS & PostNord) |
| Subdivision | Code | City | Postal | Area Code |
|---|---|---|---|---|
| Stockholm | AB | Stockholm | 111 22 | +46 (8) |
SW1A 1AA
10117
75001
1012 JS