日本
150-0001
预加载印度真实城市邮编映射与 TRAI & India Post 合规号段(+91 98100 00xxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-in-01",
"country": "IN",
"countrySlug": "in",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-in-01-1-IN-DL",
"index": 1,
"seed": "qa-in-01",
"boundary": "normal",
"recipient": {
"fullName": "Layla Yilmaz",
"nativeName": "Layla Yilmaz",
"displayName": "Layla Yilmaz",
"firstName": "Layla",
"lastName": "Yilmaz",
"email": "[email protected]"
},
"address": {
"line1": "1791 Janpath Rd",
"line1Native": "1791 Janpath Rd",
"line2": null,
"city": "New Delhi",
"cityNative": "New Delhi",
"state": "DL",
"stateName": "Delhi",
"postalCode": "110001",
"zipPlus4": "110001",
"country": "IN",
"countryName": "India",
"formatted": "1791 Janpath Rd, New Delhi, DL 110001, IN"
},
"phone": {
"countryCode": "IN",
"dialCode": "+91",
"areaCode": "11",
"regionCode": "DL",
"regionName": "Delhi",
"city": "New Delhi",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "TRAI & India Post",
"e164": "+919820000649",
"international": "+91 982 000 0649",
"national": "0982 000 0649",
"rfc3966": "tel:+919820000649",
"digitsOnly": "09820000649"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": false,
"streetLength": 15,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": false,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-in-01, country: IN, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Layla Yilmaz",
"email": "[email protected]",
"phoneE164": "+919820000649",
"line1": "1791 Janpath Rd",
"line2": "",
"city": "New Delhi",
"state": "DL",
"postalCode": "110001",
"country": "IN"
};
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 (IN / 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": "Layla Yilmaz",
"phone": "+919820000649",
"address": {
"line1": "1791 Janpath Rd",
"line2": null,
"city": "New Delhi",
"state": "DL",
"postal_code": "110001",
"country": "IN"
}
},
"billing_details": {
"name": "Layla Yilmaz",
"email": "[email protected]",
"phone": "+919820000649",
"address": {
"line1": "1791 Janpath Rd",
"line2": null,
"city": "New Delhi",
"state": "DL",
"postal_code": "110001",
"country": "IN"
}
},
"metadata": {
"qa_seed": "qa-in-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-in-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-in-01-1-IN-DL', 'qa-in-01', 'Layla Yilmaz', '[email protected]', '+919820000649', '0982 000 0649', '1791 Janpath Rd', NULL, 'New Delhi', 'DL', '110001', 'IN', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=IN&seed=qa-in-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=IN&seed=qa-in-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=IN&seed=qa-in-01&format=csv" -o fixtures-qa-in-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-in-01-1-IN-DL,qa-in-01,Layla Yilmaz,[email protected],+919820000649,0982 000 0649,1791 Janpath Rd,,New Delhi,DL,110001,IN,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 560001(最大长度 6,正则 /^[1-9]\d{5}$/) |
| 前导零截断风险 | 标准非零或字母开头格式,仍建议使用 VARCHAR 存储 |
| E.164 电话与区号同步 | 国家码 +91,标准有效长度 10 位,安全段 +91 98100 00xxx |
| 典型测试城市样本 | Bengaluru (KA) · 邮编 560001 · 区号 80 |
| 权威标准来源 | 印度 6 位非零开头 PIN 编码与 10 位手机/座机合成测试号段。 (TRAI & India Post) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| Karnataka | KA | Bengaluru | 560001 | +91 (80) |
| Maharashtra | MH | Mumbai | 400001 | +91 (22) |
| Delhi | DL | New Delhi | 110001 | +91 (11) |
150-0001
106
049315
No Postal Code