Brazil (BR) Address & +55 Phone QA Fixtures
Preloaded with Brazil locality mappings and Anatel & Correios safe test ranges (+55 11 90000-xxxx). Switch boundary torture presets below and copy ready-to-run Playwright, Stripe, SQL, or cURL payloads.
ISO BR +55 E.164 01310-100
Batch Count
Boundary Torture-Test Presets
Leading-Zero ZIP 13 chars
{
"meta": {
"service": "AddressQA",
"seed": "qa-br-01",
"country": "BR",
"countrySlug": "br",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-br-01-1-BR-SP",
"index": 1,
"seed": "qa-br-01",
"boundary": "normal",
"recipient": {
"fullName": "Nils Moreau",
"nativeName": "Nils Moreau",
"displayName": "Nils Moreau",
"firstName": "Nils",
"lastName": "Moreau",
"email": "nils.moreau.67@qa.example.org"
},
"address": {
"line1": "Rua Augusta 4",
"line1Native": "Rua Augusta 4",
"line2": null,
"city": "Sao Paulo",
"cityNative": "São Paulo",
"state": "SP",
"stateName": "Sao Paulo",
"postalCode": "01310-100",
"zipPlus4": "01310-100",
"country": "BR",
"countryName": "Brazil",
"formatted": "Rua Augusta 4, Sao Paulo, SP 01310-100, BR"
},
"phone": {
"countryCode": "BR",
"dialCode": "+55",
"areaCode": "11",
"regionCode": "SP",
"regionName": "Sao Paulo",
"city": "Sao Paulo",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "Anatel & Correios",
"e164": "+5521900000936",
"international": "+55 219 000 0093 6",
"national": "0219 000 0093 6",
"rfc3966": "tel:+5521900000936",
"digitsOnly": "021900000936"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": true,
"streetLength": 13,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": false,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-br-01, country: BR, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Nils Moreau",
"email": "nils.moreau.67@qa.example.org",
"phoneE164": "+5521900000936",
"line1": "Rua Augusta 4",
"line2": "",
"city": "Sao Paulo",
"state": "SP",
"postalCode": "01310-100",
"country": "BR"
};
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 (BR / 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": "Nils Moreau",
"phone": "+5521900000936",
"address": {
"line1": "Rua Augusta 4",
"line2": null,
"city": "Sao Paulo",
"state": "SP",
"postal_code": "01310-100",
"country": "BR"
}
},
"billing_details": {
"name": "Nils Moreau",
"email": "nils.moreau.67@qa.example.org",
"phone": "+5521900000936",
"address": {
"line1": "Rua Augusta 4",
"line2": null,
"city": "Sao Paulo",
"state": "SP",
"postal_code": "01310-100",
"country": "BR"
}
},
"metadata": {
"qa_seed": "qa-br-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-br-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-br-01-1-BR-SP', 'qa-br-01', 'Nils Moreau', 'nils.moreau.67@qa.example.org', '+5521900000936', '0219 000 0093 6', 'Rua Augusta 4', NULL, 'Sao Paulo', 'SP', '01310-100', 'BR', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=BR&seed=qa-br-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=BR&seed=qa-br-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=BR&seed=qa-br-01&format=csv" -o fixtures-qa-br-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-br-01-1-BR-SP,qa-br-01,Nils Moreau,nils.moreau.67@qa.example.org,+5521900000936,0219 000 0093 6,Rua Augusta 4,,Sao Paulo,SP,"=""01310-100""",BR,false,normal BR Specification Matrix
Brazil Postal Regex, Boundary Cases & Telecom Rules
| Dimension | Specification & Edge Notes |
|---|---|
| Postal Regex & Max Length | Example 01310-100 (max 9 chars, regex /^\d{5}-?\d{3}$/) |
| Leading-Zero Corruption Risk | High (e.g. 01310-100) — store as VARCHAR/TEXT and quote CSV cells |
| E.164 & Regulator Safe Range | Dial code +55, 11-digit NSN, safe block: +55 11 90000-xxxx |
| Primary Locality Anchor | Sao Paulo, Sao Paulo (SP) · 01310-100 · Area code 11 |
| Official Regulator Reference | Brazilian 8-digit hyphenated CEP (São Paulo starts with 0: 01310-100), 2-letter UF state codes, and 11-digit mobile numbers. (Anatel & Correios) |
Geo-Synced Localities
Brazil Subdivisions, Postal Anchors & Area Codes
| Subdivision | Code | City | Postal | Area Code |
|---|---|---|---|---|
| São Paulo (Sao Paulo) | SP | São Paulo (Sao Paulo) | 01310-100 | +55 (11) |
| Rio de Janeiro | RJ | Rio de Janeiro | 22041-001 | +55 (21) |
FAQ
Brazil QA Fixture FAQ
What is the official postal code regex for Brazil (BR)?
Validate Brazil postal strings against /^\d{5}-?\d{3}$/ (sample: 01310-100) after applying Unicode NFKC normalization and whitespace trimming.
Are generated Brazil phone numbers safe for staging and Playwright tests?
Yes — in default Regulator Safe mode, AddressQA emits +55 11 90000-xxxx aligned with Anatel & Correios conventions while matching the generated locality area code.
How do I fetch deterministic Brazil fixtures from the AddressQA REST API?
Call GET https://addressqa.com/api/v1/fixtures?country=BR&seed=qa-br-01 (with optional &format=stripe, playwright, sql, or csv) for reproducible CI payloads.