@addresszen/openapi 4.1.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +354 -276
- package/dist/index.d.ts +354 -276
- package/dist/openapi.json +608 -515
- package/dist/openapi.yaml +796 -695
- package/openapi.ts +354 -276
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ interface paths {
|
|
|
43
43
|
get: operations["KeyDetails"];
|
|
44
44
|
/**
|
|
45
45
|
* Update Details
|
|
46
|
-
* @description Updates a key's settings and returns its private details. Only the fields you send change. A key on an unlimited plan ignores changes to `datasets`, `daily_limit` and `monthly_limit`.
|
|
46
|
+
* @description Updates a key's settings and returns its private details. Only the fields you send change. A key on an unlimited plan ignores changes to `datasets`, `daily_limit` and `monthly_limit`. Datasets set by your plan cannot be changed here: sending one with a different value returns a 400.
|
|
47
47
|
*/
|
|
48
48
|
put: operations["UpdateKeyDetails"];
|
|
49
49
|
post?: never;
|
|
@@ -110,7 +110,7 @@ interface paths {
|
|
|
110
110
|
*
|
|
111
111
|
* ## Data redaction
|
|
112
112
|
*
|
|
113
|
-
* We redact personally identifiable
|
|
113
|
+
* We redact personally identifiable information (PII) in your usage log weekly, covering the IP, source IP, search term and URL columns.
|
|
114
114
|
*
|
|
115
115
|
* The default retention is 28 days. Change the period from your dashboard. Set it to `0` days to stop collecting PII altogether.
|
|
116
116
|
*/
|
|
@@ -138,15 +138,19 @@ interface paths {
|
|
|
138
138
|
*
|
|
139
139
|
* Submit the whole address in `query`, or the first address line in `query` with either `zip_code`, or `city` and `state`. A freeform `query` is parsed into those components before the search runs.
|
|
140
140
|
*
|
|
141
|
-
* A match returns the standardized address lines, city, state and ZIP+4, scored by `fit` and `confidence`. It also carries the CASS record behind the match: delivery point, DPV flags, carrier route, eLOT, county, congressional district, RDI, time zone and coordinates.
|
|
141
|
+
* A match returns the standardized address lines, city, state and ZIP+4, scored by `fit` and `confidence`. It also carries the CASS record behind the match: delivery point, DPV flags, carrier route, eLOT, county, congressional district, RDI, time zone and coordinates. CASS corrects what it can, so an address with the wrong city or state for its ZIP code still verifies, with the corrected values.
|
|
142
142
|
*
|
|
143
|
-
*
|
|
143
|
+
* An address that cannot be verified returns `200` with a `count` of `0`, a `null` `match` and empty address fields. `match_information` says why, e.g. `Address not found` or `House number not valid for this street`. It is for people to read and its wording may change, so test `match` for `null` rather than parsing it.
|
|
144
|
+
*
|
|
145
|
+
* In the United States every verification the CASS engine answers draws on your balance, matched or not. A query that cannot be parsed into an address does not. Elsewhere only a match draws on your balance. A key without address verification enabled returns `401`. A verification still running after 9.5 seconds aborts with `429`.
|
|
144
146
|
*
|
|
145
147
|
* ## Countries
|
|
146
148
|
*
|
|
147
149
|
* Verify defaults to the United States, where it is CASS certified. Pass `context` with an ISO 3166-1 alpha-3 country code to verify an address elsewhere, e.g. `context=GBR` or `context=FRA`. The address datasets your key is licensed for decide which countries it can verify.
|
|
148
150
|
*
|
|
149
|
-
* Outside the United States there is no CASS record
|
|
151
|
+
* Outside the United States there is no CASS record, so `match` is the address in the same format Retrieve Address returns: USPS-style field names, empty strings where the country has no equivalent, and the raw dataset record in `native`. Check `dataset` to tell the two apart: it is present on every non-US match and absent from a CASS match.
|
|
152
|
+
*
|
|
153
|
+
* The top-level fields (`address_line_one`, `address_line_two`, `city`, `state`, `zip_code`, `country_iso_2`) are populated for every country, along with `confidence` and `fit`.
|
|
150
154
|
*/
|
|
151
155
|
post: operations["AddressVerify"];
|
|
152
156
|
delete?: never;
|
|
@@ -174,7 +178,7 @@ interface paths {
|
|
|
174
178
|
*
|
|
175
179
|
* ## Coverage
|
|
176
180
|
*
|
|
177
|
-
* Each search runs in one country, selected with `context`. A missing or unrecognized `context` falls back to your account default. Results come from the datasets enabled on your key: USPS
|
|
181
|
+
* Each search runs in one country, selected with `context`. A missing or unrecognized `context` falls back to your account default. Results come from the datasets enabled on your key: USPS ZIP+4 for the US and its territories, and the country datasets you license elsewhere. Where a key has more than one dataset for a country, `dataset` narrows the search.
|
|
178
182
|
*
|
|
179
183
|
* ## Filters
|
|
180
184
|
*
|
|
@@ -184,7 +188,7 @@ interface paths {
|
|
|
184
188
|
*
|
|
185
189
|
* ## Address bias
|
|
186
190
|
*
|
|
187
|
-
* Bias terms carry the `bias_` prefix and promote addresses rather than restricting the set, so unmatched addresses still appear, lower down. For example, `bias_state_code=NY,NJ` favors addresses in New York and New Jersey, `bias_lonlat` favors addresses near a point. Invalid bias terms have no effect. Multiple bias terms are allowed unless stated otherwise, with a combined maximum of 5.
|
|
191
|
+
* Bias terms carry the `bias_` prefix and promote addresses rather than restricting the set, so unmatched addresses still appear, lower down. For example, `bias_state_code=NY,NJ` favors addresses in New York and New Jersey, and `bias_lonlat` favors addresses near a point. Invalid bias terms have no effect. Multiple bias terms are allowed unless stated otherwise, with a combined maximum of 5.
|
|
188
192
|
*
|
|
189
193
|
* ## Suggestion format
|
|
190
194
|
*
|
|
@@ -575,7 +579,7 @@ interface components {
|
|
|
575
579
|
* - Daily limit has been reached on the key
|
|
576
580
|
* - Daily individual limit has been reached
|
|
577
581
|
* - Key is not being used via an authorised URL
|
|
578
|
-
* - (Sublicensed key only) Key has
|
|
582
|
+
* - (Sublicensed key only) Key has no valid licensee attached
|
|
579
583
|
* - (Sublicensed key only) Key is not being used via an authorised URL specified by licensee
|
|
580
584
|
* @example true
|
|
581
585
|
*/
|
|
@@ -969,7 +973,7 @@ interface components {
|
|
|
969
973
|
individual_limit?: {
|
|
970
974
|
/**
|
|
971
975
|
* Format: int32
|
|
972
|
-
* @description `number` or `null
|
|
976
|
+
* @description `number` or `null`. Limit set on the number of lookups that can be
|
|
973
977
|
* performed from a single IP address. `null` means the limit is currently
|
|
974
978
|
* disabled.
|
|
975
979
|
* @example 30
|
|
@@ -1016,7 +1020,7 @@ interface components {
|
|
|
1016
1020
|
ip_forwarding: boolean;
|
|
1017
1021
|
/**
|
|
1018
1022
|
* API Key Dataset Availability
|
|
1019
|
-
* @description
|
|
1023
|
+
* @description Datasets you can switch on or off for this key. Datasets set by your plan (`paf`, `mr`, `nyb`, `ecad`, `ecaf`) cannot be changed here: sending one with a different value returns a 400.
|
|
1020
1024
|
*/
|
|
1021
1025
|
datasets?: {
|
|
1022
1026
|
/**
|
|
@@ -1288,7 +1292,7 @@ interface components {
|
|
|
1288
1292
|
area_code: string;
|
|
1289
1293
|
/** @description Data required to perform a Carrier Route sort */
|
|
1290
1294
|
carrier_route: string;
|
|
1291
|
-
/** @description Character following the 5 or 9
|
|
1295
|
+
/** @description Character following the 5-digit or 9-digit ZIP Code. Part of the 11-digit barcode */
|
|
1292
1296
|
check_digit: string;
|
|
1293
1297
|
/** @description City name */
|
|
1294
1298
|
city: string;
|
|
@@ -1296,7 +1300,7 @@ interface components {
|
|
|
1296
1300
|
city_abbreviation: string;
|
|
1297
1301
|
/** @description Identifies the Congressional District. Empty string if not present */
|
|
1298
1302
|
congressional_district: string;
|
|
1299
|
-
/** @description
|
|
1303
|
+
/** @description ISO 3166 country code. Empty string if not present */
|
|
1300
1304
|
country_code: string;
|
|
1301
1305
|
/** @description Name of the county */
|
|
1302
1306
|
county: string;
|
|
@@ -1351,7 +1355,7 @@ interface components {
|
|
|
1351
1355
|
/**
|
|
1352
1356
|
* @description Delivery Point Validation (DPV) NoStat code.
|
|
1353
1357
|
*
|
|
1354
|
-
* Indicates whether the address is a vacant property, it receives mail as a part of a drop
|
|
1358
|
+
* Indicates whether the address is a vacant property, it receives mail as a part of a drop or it does not have an established delivery yet.
|
|
1355
1359
|
*
|
|
1356
1360
|
* Possible values:
|
|
1357
1361
|
* - 'Y' Confirmed
|
|
@@ -1426,7 +1430,7 @@ interface components {
|
|
|
1426
1430
|
longitude: string;
|
|
1427
1431
|
/** @description Information if a Private Mail Box (PMB) is found in an address. Empty string if not present */
|
|
1428
1432
|
parsed_pmb_designator: string;
|
|
1429
|
-
/** @description
|
|
1433
|
+
/** @description Private Mail Box (PMB) number, if one is found in an address. Empty string if not present */
|
|
1430
1434
|
parsed_pmb_number: string;
|
|
1431
1435
|
/** @description Notation following the street name indicating street direction. Empty string if not present */
|
|
1432
1436
|
parsed_post_directional: string;
|
|
@@ -1476,174 +1480,17 @@ interface components {
|
|
|
1476
1480
|
/** @description 5-digit ZIP Code and the four additional digits */
|
|
1477
1481
|
zip_code: string;
|
|
1478
1482
|
};
|
|
1479
|
-
/** Address Match */
|
|
1480
|
-
UsaVerifyMatch: {
|
|
1481
|
-
/** @description Submitted query */
|
|
1482
|
-
query: string;
|
|
1483
|
-
/** @description Submitted city */
|
|
1484
|
-
query_city: string;
|
|
1485
|
-
/** @description Submitted state */
|
|
1486
|
-
query_state: string;
|
|
1487
|
-
/** @description Submitted zip_code */
|
|
1488
|
-
query_zip_code: string;
|
|
1489
|
-
/** @description Nearest matching address */
|
|
1490
|
-
match: components["schemas"]["UsaCassVerifiedAddress"];
|
|
1491
|
-
/** @description The number of addresses we matched to the input. We return the closest match by default. */
|
|
1492
|
-
count: number;
|
|
1493
|
-
/** @description A score represented as number between 1 and 0. Fit compares the address elements present in your query against the matching address elements. It does not incorporate elements you have not presented in the score. A partial address (e.g. 123 Main St) will have a fit of 1 even though it is missing city and zip code. Its confidence score will be less than 1 however because it is missing some crucial elements. */
|
|
1494
|
-
fit: number;
|
|
1495
|
-
/** @description A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements. */
|
|
1496
|
-
confidence: number;
|
|
1497
|
-
/**
|
|
1498
|
-
* @description Additional information about the match.
|
|
1499
|
-
*
|
|
1500
|
-
* This information is for human consumption and may not be present in all responses.
|
|
1501
|
-
* @example Single Response - The delivery address was found in the National Database and no further information was required.
|
|
1502
|
-
*/
|
|
1503
|
-
match_information: string;
|
|
1504
|
-
/**
|
|
1505
|
-
* @description Primary delivery address
|
|
1506
|
-
* @example 123 Main St
|
|
1507
|
-
*/
|
|
1508
|
-
address_line_one: string;
|
|
1509
|
-
/**
|
|
1510
|
-
* @description Secondary address information
|
|
1511
|
-
* @example
|
|
1512
|
-
*/
|
|
1513
|
-
address_line_two: string;
|
|
1514
|
-
/**
|
|
1515
|
-
* @description City name
|
|
1516
|
-
* @example Springfield
|
|
1517
|
-
*/
|
|
1518
|
-
city: string;
|
|
1519
|
-
/**
|
|
1520
|
-
* @description State name
|
|
1521
|
-
* @example CO
|
|
1522
|
-
*/
|
|
1523
|
-
state: string;
|
|
1524
|
-
/**
|
|
1525
|
-
* @description Zip code
|
|
1526
|
-
* @example 81073-1119
|
|
1527
|
-
*/
|
|
1528
|
-
zip_code: string;
|
|
1529
|
-
/**
|
|
1530
|
-
* @description 2 letter ISO country code
|
|
1531
|
-
* @example US
|
|
1532
|
-
*/
|
|
1533
|
-
country_iso_2: string;
|
|
1534
|
-
};
|
|
1535
|
-
/** No Address Match */
|
|
1536
|
-
UsaVerifyNoMatch: {
|
|
1537
|
-
/** @description Originally submitted query */
|
|
1538
|
-
query: string;
|
|
1539
|
-
/** @description Originally submitted city */
|
|
1540
|
-
query_city: string;
|
|
1541
|
-
/** @description Originally submitted state */
|
|
1542
|
-
query_state: string;
|
|
1543
|
-
/** @description Originally submitted zip_code */
|
|
1544
|
-
query_zip_code: string;
|
|
1545
|
-
/**
|
|
1546
|
-
* @description Nearest matching address
|
|
1547
|
-
* @enum {object|null}
|
|
1548
|
-
*/
|
|
1549
|
-
match: never | null;
|
|
1550
|
-
/** @enum {number} */
|
|
1551
|
-
count: 0;
|
|
1552
|
-
/**
|
|
1553
|
-
* Format: float
|
|
1554
|
-
* @enum {number}
|
|
1555
|
-
*/
|
|
1556
|
-
fit: 0;
|
|
1557
|
-
/**
|
|
1558
|
-
* Format: float
|
|
1559
|
-
* @enum {number}
|
|
1560
|
-
*/
|
|
1561
|
-
confidence: 0;
|
|
1562
|
-
/**
|
|
1563
|
-
* @description Empty if no match
|
|
1564
|
-
* @enum {string}
|
|
1565
|
-
*/
|
|
1566
|
-
address_line_one: "";
|
|
1567
|
-
/**
|
|
1568
|
-
* @description Empty if no match
|
|
1569
|
-
* @enum {string}
|
|
1570
|
-
*/
|
|
1571
|
-
address_line_two: "";
|
|
1572
|
-
/**
|
|
1573
|
-
* @description Empty if no match
|
|
1574
|
-
* @enum {string}
|
|
1575
|
-
*/
|
|
1576
|
-
city: "";
|
|
1577
|
-
/**
|
|
1578
|
-
* @description Empty if no match
|
|
1579
|
-
* @enum {string}
|
|
1580
|
-
*/
|
|
1581
|
-
state: "";
|
|
1582
|
-
/**
|
|
1583
|
-
* @description Empty if no match
|
|
1584
|
-
* @enum {string}
|
|
1585
|
-
*/
|
|
1586
|
-
zip_code: "";
|
|
1587
|
-
/**
|
|
1588
|
-
* @description Empty if no match
|
|
1589
|
-
* @enum {string}
|
|
1590
|
-
*/
|
|
1591
|
-
country_iso_2: "";
|
|
1592
|
-
};
|
|
1593
|
-
/** Address Verify Response */
|
|
1594
|
-
VerifyResponse: {
|
|
1595
|
-
/**
|
|
1596
|
-
* Format: int32
|
|
1597
|
-
* @enum {integer}
|
|
1598
|
-
*/
|
|
1599
|
-
code: 2000;
|
|
1600
|
-
/** @enum {string} */
|
|
1601
|
-
message: "Success";
|
|
1602
|
-
result: components["schemas"]["UsaVerifyMatch"] | components["schemas"]["UsaVerifyNoMatch"];
|
|
1603
|
-
};
|
|
1604
|
-
/**
|
|
1605
|
-
* Dataset
|
|
1606
|
-
* @description Indicates the provenance of an address.
|
|
1607
|
-
* @enum {string}
|
|
1608
|
-
*/
|
|
1609
|
-
Dataset: "paf" | "pafw" | "pafa" | "mr" | "nyb" | "usps" | "ecaf" | "ecad" | "ab" | "abp" | "herewe" | "heret" | "heresa" | "hereo" | "herena" | "heremeas" | "heremea" | "herem" | "herei" | "herehk" | "hereee" | "hereap" | "gnaf" | "kadaster" | "kartverket" | "sdfi" | "cannar" | "fodbosa" | "mois" | "upujp" | "bev" | "ban" | "swt";
|
|
1610
1483
|
/**
|
|
1611
1484
|
* Address Identifier
|
|
1612
|
-
* @description
|
|
1485
|
+
* @description Globally unique internally generated identifier for an address
|
|
1613
1486
|
*/
|
|
1614
1487
|
ID: string;
|
|
1615
1488
|
/**
|
|
1616
|
-
*
|
|
1617
|
-
* @description
|
|
1618
|
-
* @
|
|
1619
|
-
* "id": "usps_V210079628|10||3797",
|
|
1620
|
-
* "suggestion": "10 Downing St, Montpelier, VT, 05602",
|
|
1621
|
-
* "urls": {}
|
|
1622
|
-
* }
|
|
1489
|
+
* Dataset
|
|
1490
|
+
* @description Indicates the provenance of an address.
|
|
1491
|
+
* @enum {string}
|
|
1623
1492
|
*/
|
|
1624
|
-
|
|
1625
|
-
id: components["schemas"]["ID"];
|
|
1626
|
-
/** @description Address Suggestion to be displayed to the user */
|
|
1627
|
-
suggestion: string;
|
|
1628
|
-
/**
|
|
1629
|
-
* URLs
|
|
1630
|
-
* @description Always an empty object (`{}`). Retrieve the full address with `id`
|
|
1631
|
-
*/
|
|
1632
|
-
urls: Record<string, never>;
|
|
1633
|
-
};
|
|
1634
|
-
/** Address Autocomplete Response */
|
|
1635
|
-
AutocompleteResponse: {
|
|
1636
|
-
result: {
|
|
1637
|
-
hits: components["schemas"]["AddressSuggestion"][];
|
|
1638
|
-
};
|
|
1639
|
-
/**
|
|
1640
|
-
* Format: int32
|
|
1641
|
-
* @enum {integer}
|
|
1642
|
-
*/
|
|
1643
|
-
code: 2000;
|
|
1644
|
-
/** @enum {string} */
|
|
1645
|
-
message: "Success";
|
|
1646
|
-
};
|
|
1493
|
+
Dataset: "paf" | "pafw" | "pafa" | "mr" | "nyb" | "usps" | "ecaf" | "ecad" | "ab" | "abp" | "herewe" | "heret" | "heresa" | "hereo" | "herena" | "heremeas" | "heremea" | "herem" | "herei" | "herehk" | "hereee" | "hereap" | "gnaf" | "kadaster" | "kartverket" | "sdfi" | "cannar" | "fodbosa" | "mois" | "upujp" | "bev" | "ban" | "swt";
|
|
1647
1494
|
/**
|
|
1648
1495
|
* ISO Country Code (3)
|
|
1649
1496
|
* @description 3 letter country code (ISO 3166-1)
|
|
@@ -2571,8 +2418,11 @@ interface components {
|
|
|
2571
2418
|
dpa_entry_date?: string | null;
|
|
2572
2419
|
/**
|
|
2573
2420
|
* Classification Code
|
|
2574
|
-
* @description Current AddressBase classification code
|
|
2575
|
-
*
|
|
2421
|
+
* @description Current AddressBase classification code, passed through verbatim at
|
|
2422
|
+
* whatever level the custodian recorded. Usually tertiary (e.g. `RD03`
|
|
2423
|
+
* semi-detached, `RD04` terraced, `RD06` self-contained flat, `CR01`
|
|
2424
|
+
* retail), but can be quaternary (`LP03PA`), secondary (`RD`) or primary
|
|
2425
|
+
* (`C`). Match on prefix rather than equality. Top-level categories: `R` Residential,
|
|
2576
2426
|
* `C` Commercial, `L` Land, `M` Military, `O` Other, `P` Parent shell,
|
|
2577
2427
|
* `U` Unclassified, `X` Dual use, `Z` Object of interest. NULL when no
|
|
2578
2428
|
* current classification row exists for the UPRN.
|
|
@@ -8270,12 +8120,12 @@ interface components {
|
|
|
8270
8120
|
primary_number: string;
|
|
8271
8121
|
/**
|
|
8272
8122
|
* Secondary Number
|
|
8273
|
-
* @description Number of the
|
|
8123
|
+
* @description Number of the subunit, apartment, suite etc.
|
|
8274
8124
|
*/
|
|
8275
8125
|
secondary_number: string;
|
|
8276
8126
|
/**
|
|
8277
8127
|
* Plus 4 Code
|
|
8278
|
-
* @description 4
|
|
8128
|
+
* @description 4-digit ZIP add-on code. USPS addresses only.
|
|
8279
8129
|
*/
|
|
8280
8130
|
plus_4_code: string;
|
|
8281
8131
|
/**
|
|
@@ -8295,7 +8145,7 @@ interface components {
|
|
|
8295
8145
|
last_line: string;
|
|
8296
8146
|
/**
|
|
8297
8147
|
* ZIP Code
|
|
8298
|
-
* @description Postal code identifying the delivery area. For US addresses this is the 5
|
|
8148
|
+
* @description Postal code identifying the delivery area. For US addresses this is the 5-digit ZIP Code.
|
|
8299
8149
|
*/
|
|
8300
8150
|
zip_code: string;
|
|
8301
8151
|
/**
|
|
@@ -8324,7 +8174,7 @@ interface components {
|
|
|
8324
8174
|
record_type_code: "G" | "H" | "F" | "S" | "P" | "R" | "M" | "";
|
|
8325
8175
|
/**
|
|
8326
8176
|
* Carrier Route ID
|
|
8327
|
-
* @description A 4
|
|
8177
|
+
* @description A 4-character ID identifying the USPS postal route for the address. The first character indicates the route type:
|
|
8328
8178
|
*
|
|
8329
8179
|
* - "B" indicates PO Box
|
|
8330
8180
|
* - "H" indicates highway
|
|
@@ -8398,7 +8248,7 @@ interface components {
|
|
|
8398
8248
|
government_building_indicator: "" | "A" | "B" | "C" | "D" | "E" | "F" | "G";
|
|
8399
8249
|
/**
|
|
8400
8250
|
* State Abbreviation
|
|
8401
|
-
* @description Abbreviated name of the state, province or region. For US addresses this is the 2
|
|
8251
|
+
* @description Abbreviated name of the state, province or region. For US addresses this is the 2-character state, territory or armed forces designation ("AA", "AE" or "AP" for APO/FPO/DPO).
|
|
8402
8252
|
*/
|
|
8403
8253
|
state_abbreviation: string;
|
|
8404
8254
|
/**
|
|
@@ -8447,7 +8297,7 @@ interface components {
|
|
|
8447
8297
|
*
|
|
8448
8298
|
* - B = Branch
|
|
8449
8299
|
* - C = Community post office (CPO)
|
|
8450
|
-
* - N = Non-postal community name, former USPS facility
|
|
8300
|
+
* - N = Non-postal community name, former USPS facility or place name
|
|
8451
8301
|
* - P = Post Office
|
|
8452
8302
|
* - S = Station
|
|
8453
8303
|
* - U = Urbanization
|
|
@@ -8495,6 +8345,170 @@ interface components {
|
|
|
8495
8345
|
county_number: string | number;
|
|
8496
8346
|
native?: components["schemas"]["NativeRecord"];
|
|
8497
8347
|
};
|
|
8348
|
+
/** Address Match */
|
|
8349
|
+
UsaVerifyMatch: {
|
|
8350
|
+
/** @description Submitted query */
|
|
8351
|
+
query: string;
|
|
8352
|
+
/** @description Submitted city */
|
|
8353
|
+
query_city: string;
|
|
8354
|
+
/** @description Submitted state */
|
|
8355
|
+
query_state: string;
|
|
8356
|
+
/** @description Submitted zip_code */
|
|
8357
|
+
query_zip_code: string;
|
|
8358
|
+
/** @description Nearest matching address. A CASS verified address in the United States. Elsewhere, the address in the same format Retrieve Address returns, with the raw dataset record in `native` */
|
|
8359
|
+
match: components["schemas"]["UsaCassVerifiedAddress"] | components["schemas"]["Address"];
|
|
8360
|
+
/** @description The number of addresses we matched to the input. We return the closest match by default. */
|
|
8361
|
+
count: number;
|
|
8362
|
+
/** @description A score represented as a number between 1 and 0. Fit compares the address elements present in your query against the matching address elements. It does not incorporate elements you have not presented in the score. A partial address (e.g. 123 Main St) will have a fit of 1 even though it is missing city and zip code. Its confidence score will be less than 1 however because it is missing some crucial elements. */
|
|
8363
|
+
fit: number;
|
|
8364
|
+
/** @description A confidence score represented as a number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements. */
|
|
8365
|
+
confidence: number;
|
|
8366
|
+
/**
|
|
8367
|
+
* @description Additional information about the match.
|
|
8368
|
+
*
|
|
8369
|
+
* This information is for human consumption and may not be present in all responses.
|
|
8370
|
+
* @example Single Response - The delivery address was found in the National Database and no further information was required.
|
|
8371
|
+
*/
|
|
8372
|
+
match_information: string;
|
|
8373
|
+
/**
|
|
8374
|
+
* @description Primary delivery address
|
|
8375
|
+
* @example 123 Main St
|
|
8376
|
+
*/
|
|
8377
|
+
address_line_one: string;
|
|
8378
|
+
/**
|
|
8379
|
+
* @description Secondary address information
|
|
8380
|
+
* @example
|
|
8381
|
+
*/
|
|
8382
|
+
address_line_two: string;
|
|
8383
|
+
/**
|
|
8384
|
+
* @description City name
|
|
8385
|
+
* @example Springfield
|
|
8386
|
+
*/
|
|
8387
|
+
city: string;
|
|
8388
|
+
/**
|
|
8389
|
+
* @description State name
|
|
8390
|
+
* @example CO
|
|
8391
|
+
*/
|
|
8392
|
+
state: string;
|
|
8393
|
+
/**
|
|
8394
|
+
* @description ZIP code
|
|
8395
|
+
* @example 81073-1119
|
|
8396
|
+
*/
|
|
8397
|
+
zip_code: string;
|
|
8398
|
+
/**
|
|
8399
|
+
* @description 2-letter ISO country code
|
|
8400
|
+
* @example US
|
|
8401
|
+
*/
|
|
8402
|
+
country_iso_2: string;
|
|
8403
|
+
};
|
|
8404
|
+
/** No Address Match */
|
|
8405
|
+
UsaVerifyNoMatch: {
|
|
8406
|
+
/** @description Originally submitted query */
|
|
8407
|
+
query: string;
|
|
8408
|
+
/** @description Originally submitted city */
|
|
8409
|
+
query_city: string;
|
|
8410
|
+
/** @description Originally submitted state */
|
|
8411
|
+
query_state: string;
|
|
8412
|
+
/** @description Originally submitted zip_code */
|
|
8413
|
+
query_zip_code: string;
|
|
8414
|
+
/**
|
|
8415
|
+
* @description Nearest matching address
|
|
8416
|
+
* @enum {object|null}
|
|
8417
|
+
*/
|
|
8418
|
+
match: never | null;
|
|
8419
|
+
/** @enum {integer} */
|
|
8420
|
+
count: 0;
|
|
8421
|
+
/**
|
|
8422
|
+
* Format: float
|
|
8423
|
+
* @enum {number}
|
|
8424
|
+
*/
|
|
8425
|
+
fit: 0;
|
|
8426
|
+
/**
|
|
8427
|
+
* Format: float
|
|
8428
|
+
* @enum {number}
|
|
8429
|
+
*/
|
|
8430
|
+
confidence: 0;
|
|
8431
|
+
/**
|
|
8432
|
+
* @description Why the address could not be verified, for people to read. For example `Address not found`, `House number not valid for this street`, `Invalid city, state or ZIP code` or `Address could not be parsed`.
|
|
8433
|
+
*
|
|
8434
|
+
* The wording may change, so do not parse it. Test `match` for `null` instead.
|
|
8435
|
+
* @example Address not found
|
|
8436
|
+
*/
|
|
8437
|
+
match_information: string;
|
|
8438
|
+
/**
|
|
8439
|
+
* @description Empty if no match
|
|
8440
|
+
* @enum {string}
|
|
8441
|
+
*/
|
|
8442
|
+
address_line_one: "";
|
|
8443
|
+
/**
|
|
8444
|
+
* @description Empty if no match
|
|
8445
|
+
* @enum {string}
|
|
8446
|
+
*/
|
|
8447
|
+
address_line_two: "";
|
|
8448
|
+
/**
|
|
8449
|
+
* @description Empty if no match
|
|
8450
|
+
* @enum {string}
|
|
8451
|
+
*/
|
|
8452
|
+
city: "";
|
|
8453
|
+
/**
|
|
8454
|
+
* @description Empty if no match
|
|
8455
|
+
* @enum {string}
|
|
8456
|
+
*/
|
|
8457
|
+
state: "";
|
|
8458
|
+
/**
|
|
8459
|
+
* @description Empty if no match
|
|
8460
|
+
* @enum {string}
|
|
8461
|
+
*/
|
|
8462
|
+
zip_code: "";
|
|
8463
|
+
/**
|
|
8464
|
+
* @description Empty if no match
|
|
8465
|
+
* @enum {string}
|
|
8466
|
+
*/
|
|
8467
|
+
country_iso_2: "";
|
|
8468
|
+
};
|
|
8469
|
+
/** Address Verify Response */
|
|
8470
|
+
VerifyResponse: {
|
|
8471
|
+
/**
|
|
8472
|
+
* Format: int32
|
|
8473
|
+
* @enum {integer}
|
|
8474
|
+
*/
|
|
8475
|
+
code: 2000;
|
|
8476
|
+
/** @enum {string} */
|
|
8477
|
+
message: "Success";
|
|
8478
|
+
result: components["schemas"]["UsaVerifyMatch"] | components["schemas"]["UsaVerifyNoMatch"];
|
|
8479
|
+
};
|
|
8480
|
+
/**
|
|
8481
|
+
* Address Suggestion
|
|
8482
|
+
* @description Represents an address suggestion for any address in the world
|
|
8483
|
+
* @example {
|
|
8484
|
+
* "id": "usps_V210079628|10||3797",
|
|
8485
|
+
* "suggestion": "10 Downing St, Montpelier, VT, 05602",
|
|
8486
|
+
* "urls": {}
|
|
8487
|
+
* }
|
|
8488
|
+
*/
|
|
8489
|
+
AddressSuggestion: {
|
|
8490
|
+
id: components["schemas"]["ID"];
|
|
8491
|
+
/** @description Address Suggestion to be displayed to the user */
|
|
8492
|
+
suggestion: string;
|
|
8493
|
+
/**
|
|
8494
|
+
* URLs
|
|
8495
|
+
* @description Always an empty object (`{}`). Retrieve the full address with `id`
|
|
8496
|
+
*/
|
|
8497
|
+
urls: Record<string, never>;
|
|
8498
|
+
};
|
|
8499
|
+
/** Address Autocomplete Response */
|
|
8500
|
+
AutocompleteResponse: {
|
|
8501
|
+
result: {
|
|
8502
|
+
hits: components["schemas"]["AddressSuggestion"][];
|
|
8503
|
+
};
|
|
8504
|
+
/**
|
|
8505
|
+
* Format: int32
|
|
8506
|
+
* @enum {integer}
|
|
8507
|
+
*/
|
|
8508
|
+
code: 2000;
|
|
8509
|
+
/** @enum {string} */
|
|
8510
|
+
message: "Success";
|
|
8511
|
+
};
|
|
8498
8512
|
/** Address Retrieve Response */
|
|
8499
8513
|
UsaResolveAddressResponse: {
|
|
8500
8514
|
/**
|
|
@@ -8721,7 +8735,7 @@ interface components {
|
|
|
8721
8735
|
Place: {
|
|
8722
8736
|
/**
|
|
8723
8737
|
* Place Identifier
|
|
8724
|
-
* @description
|
|
8738
|
+
* @description Globally unique internally generated identifier for a place
|
|
8725
8739
|
*/
|
|
8726
8740
|
id: string;
|
|
8727
8741
|
/**
|
|
@@ -8750,26 +8764,40 @@ interface components {
|
|
|
8750
8764
|
message: "Success";
|
|
8751
8765
|
result: components["schemas"]["Place"];
|
|
8752
8766
|
};
|
|
8753
|
-
/**
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8767
|
+
/** Licensee */
|
|
8768
|
+
Licensee: {
|
|
8769
|
+
/**
|
|
8770
|
+
* @description An immutable ID provided for every licensee. Primarily used for paginated list requests.
|
|
8771
|
+
* @example 56a11209ebe230380bf104c3
|
|
8772
|
+
*/
|
|
8773
|
+
id: string;
|
|
8774
|
+
/**
|
|
8775
|
+
* @description Uniquely identifies a licensee for a key.
|
|
8776
|
+
*
|
|
8777
|
+
* Required to perform paid lookups for a specific licensee. Typically begins `sl_`.
|
|
8778
|
+
* @example sl_ijoiqsxeQgXW2gkiE0X94
|
|
8779
|
+
*/
|
|
8780
|
+
key: string;
|
|
8781
|
+
/**
|
|
8782
|
+
* @description Timestamp for when the licensee was created
|
|
8783
|
+
* @example 2016-01-21T17:14:49.971Z
|
|
8784
|
+
*/
|
|
8785
|
+
createdAt: string;
|
|
8758
8786
|
/**
|
|
8759
8787
|
* @description Licensee individual or organisation name
|
|
8760
8788
|
* @example Qwerty Widgets Limited
|
|
8761
8789
|
*/
|
|
8762
|
-
name
|
|
8790
|
+
name: string;
|
|
8763
8791
|
/**
|
|
8764
8792
|
* @description Licensee's first, second and third line address as well as post town concatenated by commas
|
|
8765
8793
|
* @example 12 High Street, Manchester
|
|
8766
8794
|
*/
|
|
8767
|
-
address
|
|
8795
|
+
address: string;
|
|
8768
8796
|
/**
|
|
8769
8797
|
* @description Licensee's postcode
|
|
8770
8798
|
* @example BR8 7RE
|
|
8771
8799
|
*/
|
|
8772
|
-
postcode
|
|
8800
|
+
postcode: string;
|
|
8773
8801
|
/**
|
|
8774
8802
|
* @description A list of allowed URLs. An empty list disables the check.
|
|
8775
8803
|
*
|
|
@@ -8778,36 +8806,14 @@ interface components {
|
|
|
8778
8806
|
* - `https://www.example.com` allows one site. Scheme and host must match
|
|
8779
8807
|
* - `*.example.com` allows the domain and all its subdomains
|
|
8780
8808
|
*/
|
|
8781
|
-
whitelist
|
|
8782
|
-
daily
|
|
8809
|
+
whitelist: string[];
|
|
8810
|
+
daily: {
|
|
8783
8811
|
/**
|
|
8784
8812
|
* Format: int32
|
|
8785
8813
|
* @description The maximum number of lookups this licensee can perform in a day. `null` indicates the limit is not active
|
|
8786
8814
|
* @example 10000
|
|
8787
8815
|
*/
|
|
8788
|
-
limit
|
|
8789
|
-
};
|
|
8790
|
-
};
|
|
8791
|
-
/** Licensee */
|
|
8792
|
-
Licensee: components["schemas"]["LicenseeEditable"] & {
|
|
8793
|
-
/**
|
|
8794
|
-
* @description An immutable ID provided for every licensee. Primarily used for paginated list requests.
|
|
8795
|
-
* @example 56a11209ebe230380bf104c3
|
|
8796
|
-
*/
|
|
8797
|
-
id: string;
|
|
8798
|
-
/**
|
|
8799
|
-
* @description Uniquely identifies a licensee for a key.
|
|
8800
|
-
*
|
|
8801
|
-
* Required to perform paid lookups for a specific licensee. Typically begins `sl_`.
|
|
8802
|
-
* @example sl_ijoiqsxeQgXW2gkiE0X94
|
|
8803
|
-
*/
|
|
8804
|
-
key: string;
|
|
8805
|
-
/**
|
|
8806
|
-
* @description Timestamp for when the licensee was created
|
|
8807
|
-
* @example 2016-01-21T17:14:49.971Z
|
|
8808
|
-
*/
|
|
8809
|
-
createdAt: string;
|
|
8810
|
-
daily: {
|
|
8816
|
+
limit: number | null;
|
|
8811
8817
|
/**
|
|
8812
8818
|
* Format: int32
|
|
8813
8819
|
* @description The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`
|
|
@@ -8825,9 +8831,9 @@ interface components {
|
|
|
8825
8831
|
LicenseesResponse: {
|
|
8826
8832
|
/** @description List of licensees */
|
|
8827
8833
|
result: {
|
|
8828
|
-
licensees
|
|
8834
|
+
licensees: components["schemas"]["Licensee"][];
|
|
8829
8835
|
/** @description Returns true if there are more licensees listed after the maximum number of results as implied by `limit` */
|
|
8830
|
-
hasMore
|
|
8836
|
+
hasMore: boolean;
|
|
8831
8837
|
};
|
|
8832
8838
|
/** @enum {string} */
|
|
8833
8839
|
message: "Success";
|
|
@@ -8837,6 +8843,44 @@ interface components {
|
|
|
8837
8843
|
*/
|
|
8838
8844
|
code: 2000;
|
|
8839
8845
|
};
|
|
8846
|
+
/**
|
|
8847
|
+
* Licensee
|
|
8848
|
+
* @description Licensee object which can be defined by user
|
|
8849
|
+
*/
|
|
8850
|
+
LicenseeEditable: {
|
|
8851
|
+
/**
|
|
8852
|
+
* @description Licensee individual or organisation name
|
|
8853
|
+
* @example Qwerty Widgets Limited
|
|
8854
|
+
*/
|
|
8855
|
+
name?: string;
|
|
8856
|
+
/**
|
|
8857
|
+
* @description Licensee's first, second and third line address as well as post town concatenated by commas
|
|
8858
|
+
* @example 12 High Street, Manchester
|
|
8859
|
+
*/
|
|
8860
|
+
address?: string;
|
|
8861
|
+
/**
|
|
8862
|
+
* @description Licensee's postcode
|
|
8863
|
+
* @example BR8 7RE
|
|
8864
|
+
*/
|
|
8865
|
+
postcode?: string;
|
|
8866
|
+
/**
|
|
8867
|
+
* @description A list of allowed URLs. An empty list disables the check.
|
|
8868
|
+
*
|
|
8869
|
+
* A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
|
|
8870
|
+
*
|
|
8871
|
+
* - `https://www.example.com` allows one site. Scheme and host must match
|
|
8872
|
+
* - `*.example.com` allows the domain and all its subdomains
|
|
8873
|
+
*/
|
|
8874
|
+
whitelist?: string[];
|
|
8875
|
+
daily?: {
|
|
8876
|
+
/**
|
|
8877
|
+
* Format: int32
|
|
8878
|
+
* @description The maximum number of lookups this licensee can perform in a day. `null` indicates the limit is not active
|
|
8879
|
+
* @example 10000
|
|
8880
|
+
*/
|
|
8881
|
+
limit?: number | null;
|
|
8882
|
+
};
|
|
8883
|
+
};
|
|
8840
8884
|
/** Licensee Response */
|
|
8841
8885
|
LicenseeResponse: {
|
|
8842
8886
|
result: components["schemas"]["Licensee"];
|
|
@@ -8851,12 +8895,12 @@ interface components {
|
|
|
8851
8895
|
/** Config Object */
|
|
8852
8896
|
Config: {
|
|
8853
8897
|
/**
|
|
8854
|
-
* @description Timestamp for when the config was
|
|
8898
|
+
* @description Timestamp for when the config was last updated
|
|
8855
8899
|
* @example 2016-01-21T17:14:49.971Z
|
|
8856
8900
|
*/
|
|
8857
8901
|
updatedAt: string;
|
|
8858
8902
|
/**
|
|
8859
|
-
* @description Timestamp for when the config was
|
|
8903
|
+
* @description Timestamp for when the config was created
|
|
8860
8904
|
* @example 2016-01-21T17:14:49.971Z
|
|
8861
8905
|
*/
|
|
8862
8906
|
createdAt: string;
|
|
@@ -9122,7 +9166,7 @@ interface components {
|
|
|
9122
9166
|
/**
|
|
9123
9167
|
* @description **API Key**
|
|
9124
9168
|
*
|
|
9125
|
-
* The API Key
|
|
9169
|
+
* The API Key. Begins `ak_`.
|
|
9126
9170
|
* @example ak_test
|
|
9127
9171
|
*/
|
|
9128
9172
|
ApiKeyPathParam: string;
|
|
@@ -9131,9 +9175,9 @@ interface components {
|
|
|
9131
9175
|
*
|
|
9132
9176
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
9133
9177
|
*
|
|
9134
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
9178
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
9135
9179
|
*
|
|
9136
|
-
* Typically begins `uk_
|
|
9180
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
9137
9181
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
9138
9182
|
*/
|
|
9139
9183
|
UserTokenParam: string;
|
|
@@ -9178,13 +9222,25 @@ interface components {
|
|
|
9178
9222
|
* @example ak_test
|
|
9179
9223
|
*/
|
|
9180
9224
|
ApiKeyParam: string;
|
|
9225
|
+
/**
|
|
9226
|
+
* @description **Remove Firm**
|
|
9227
|
+
*
|
|
9228
|
+
* Removes firm names from the address lines (`line_1`, `line_2`, ...). Outside the USA this covers organization and department names. Remaining lines move up. Useful when delivering to people rather than businesses.
|
|
9229
|
+
*
|
|
9230
|
+
* Set `remove_firm=true` to enable.
|
|
9231
|
+
*
|
|
9232
|
+
* Firm fields and the `native` record are unchanged. If removing the firm would leave no address lines, it is kept and the lines are returned unchanged. Building names are not removed.
|
|
9233
|
+
*/
|
|
9234
|
+
RemoveFirmParam: "true";
|
|
9181
9235
|
/**
|
|
9182
9236
|
* @description **Filter by Dataset**
|
|
9183
9237
|
*
|
|
9184
9238
|
* Comma-separated list of datasets to search within.
|
|
9185
9239
|
*
|
|
9186
9240
|
* Filters results to only include addresses from the specified datasets. Useful for keys with multiple overlapping datasets enabled (e.g. `paf` and `abp`).
|
|
9187
|
-
* @example
|
|
9241
|
+
* @example [
|
|
9242
|
+
* "usps"
|
|
9243
|
+
* ]
|
|
9188
9244
|
*/
|
|
9189
9245
|
DatasetParam: components["schemas"]["Dataset"][];
|
|
9190
9246
|
/**
|
|
@@ -9383,7 +9439,7 @@ interface operations {
|
|
|
9383
9439
|
/**
|
|
9384
9440
|
* @description **API Key**
|
|
9385
9441
|
*
|
|
9386
|
-
* The API Key
|
|
9442
|
+
* The API Key. Begins `ak_`.
|
|
9387
9443
|
* @example ak_test
|
|
9388
9444
|
*/
|
|
9389
9445
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -9429,9 +9485,9 @@ interface operations {
|
|
|
9429
9485
|
*
|
|
9430
9486
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
9431
9487
|
*
|
|
9432
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
9488
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
9433
9489
|
*
|
|
9434
|
-
* Typically begins `uk_
|
|
9490
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
9435
9491
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
9436
9492
|
*/
|
|
9437
9493
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -9441,7 +9497,7 @@ interface operations {
|
|
|
9441
9497
|
/**
|
|
9442
9498
|
* @description **API Key**
|
|
9443
9499
|
*
|
|
9444
|
-
* The API Key
|
|
9500
|
+
* The API Key. Begins `ak_`.
|
|
9445
9501
|
* @example ak_test
|
|
9446
9502
|
*/
|
|
9447
9503
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -9487,9 +9543,9 @@ interface operations {
|
|
|
9487
9543
|
*
|
|
9488
9544
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
9489
9545
|
*
|
|
9490
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
9546
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
9491
9547
|
*
|
|
9492
|
-
* Typically begins `uk_
|
|
9548
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
9493
9549
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
9494
9550
|
*/
|
|
9495
9551
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -9499,7 +9555,7 @@ interface operations {
|
|
|
9499
9555
|
/**
|
|
9500
9556
|
* @description **API Key**
|
|
9501
9557
|
*
|
|
9502
|
-
* The API Key
|
|
9558
|
+
* The API Key. Begins `ak_`.
|
|
9503
9559
|
* @example ak_test
|
|
9504
9560
|
*/
|
|
9505
9561
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -9549,9 +9605,9 @@ interface operations {
|
|
|
9549
9605
|
*
|
|
9550
9606
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
9551
9607
|
*
|
|
9552
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
9608
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
9553
9609
|
*
|
|
9554
|
-
* Typically begins `uk_
|
|
9610
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
9555
9611
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
9556
9612
|
*/
|
|
9557
9613
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -9593,7 +9649,7 @@ interface operations {
|
|
|
9593
9649
|
/**
|
|
9594
9650
|
* @description **API Key**
|
|
9595
9651
|
*
|
|
9596
|
-
* The API Key
|
|
9652
|
+
* The API Key. Begins `ak_`.
|
|
9597
9653
|
* @example ak_test
|
|
9598
9654
|
*/
|
|
9599
9655
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -9630,9 +9686,9 @@ interface operations {
|
|
|
9630
9686
|
*
|
|
9631
9687
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
9632
9688
|
*
|
|
9633
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
9689
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
9634
9690
|
*
|
|
9635
|
-
* Typically begins `uk_
|
|
9691
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
9636
9692
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
9637
9693
|
*/
|
|
9638
9694
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -9663,7 +9719,7 @@ interface operations {
|
|
|
9663
9719
|
/**
|
|
9664
9720
|
* @description **API Key**
|
|
9665
9721
|
*
|
|
9666
|
-
* The API Key
|
|
9722
|
+
* The API Key. Begins `ak_`.
|
|
9667
9723
|
* @example ak_test
|
|
9668
9724
|
*/
|
|
9669
9725
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -9721,6 +9777,16 @@ interface operations {
|
|
|
9721
9777
|
* @example foo,bar
|
|
9722
9778
|
*/
|
|
9723
9779
|
tags?: components["parameters"]["TagsParam"];
|
|
9780
|
+
/**
|
|
9781
|
+
* @description **Remove Firm**
|
|
9782
|
+
*
|
|
9783
|
+
* Removes firm names from the address lines (`line_1`, `line_2`, ...). Outside the USA this covers organization and department names. Remaining lines move up. Useful when delivering to people rather than businesses.
|
|
9784
|
+
*
|
|
9785
|
+
* Set `remove_firm=true` to enable.
|
|
9786
|
+
*
|
|
9787
|
+
* Firm fields and the `native` record are unchanged. If removing the firm would leave no address lines, it is kept and the lines are returned unchanged. Building names are not removed.
|
|
9788
|
+
*/
|
|
9789
|
+
remove_firm?: components["parameters"]["RemoveFirmParam"];
|
|
9724
9790
|
/**
|
|
9725
9791
|
* @description Identify the country of the address to verify. Defaults to United States (USA)
|
|
9726
9792
|
* @example usa
|
|
@@ -9758,7 +9824,7 @@ interface operations {
|
|
|
9758
9824
|
*/
|
|
9759
9825
|
city?: string;
|
|
9760
9826
|
/**
|
|
9761
|
-
* @description State of an address. For the US, use the 2
|
|
9827
|
+
* @description State of an address. For the US, use the 2-letter state abbreviation.
|
|
9762
9828
|
* @example CO
|
|
9763
9829
|
*/
|
|
9764
9830
|
state?: string;
|
|
@@ -9811,7 +9877,9 @@ interface operations {
|
|
|
9811
9877
|
* Comma-separated list of datasets to search within.
|
|
9812
9878
|
*
|
|
9813
9879
|
* Filters results to only include addresses from the specified datasets. Useful for keys with multiple overlapping datasets enabled (e.g. `paf` and `abp`).
|
|
9814
|
-
* @example
|
|
9880
|
+
* @example [
|
|
9881
|
+
* "usps"
|
|
9882
|
+
* ]
|
|
9815
9883
|
*/
|
|
9816
9884
|
dataset?: components["parameters"]["DatasetParam"];
|
|
9817
9885
|
/**
|
|
@@ -10028,6 +10096,16 @@ interface operations {
|
|
|
10028
10096
|
* @example foo,bar
|
|
10029
10097
|
*/
|
|
10030
10098
|
tags?: components["parameters"]["TagsParam"];
|
|
10099
|
+
/**
|
|
10100
|
+
* @description **Remove Firm**
|
|
10101
|
+
*
|
|
10102
|
+
* Removes firm names from the address lines (`line_1`, `line_2`, ...). Outside the USA this covers organization and department names. Remaining lines move up. Useful when delivering to people rather than businesses.
|
|
10103
|
+
*
|
|
10104
|
+
* Set `remove_firm=true` to enable.
|
|
10105
|
+
*
|
|
10106
|
+
* Firm fields and the `native` record are unchanged. If removing the firm would leave no address lines, it is kept and the lines are returned unchanged. Building names are not removed.
|
|
10107
|
+
*/
|
|
10108
|
+
remove_firm?: components["parameters"]["RemoveFirmParam"];
|
|
10031
10109
|
};
|
|
10032
10110
|
header?: never;
|
|
10033
10111
|
path: {
|
|
@@ -10217,16 +10295,16 @@ interface operations {
|
|
|
10217
10295
|
ListLicensees: {
|
|
10218
10296
|
parameters: {
|
|
10219
10297
|
query?: {
|
|
10220
|
-
/** @description ID of the licensee after which to list results */
|
|
10221
|
-
starting_after?:
|
|
10298
|
+
/** @description ID of the licensee after which to list results. Pass the `id` of the last licensee on the previous page. */
|
|
10299
|
+
starting_after?: string;
|
|
10222
10300
|
/**
|
|
10223
10301
|
* @description **Management Key**
|
|
10224
10302
|
*
|
|
10225
10303
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10226
10304
|
*
|
|
10227
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10305
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10228
10306
|
*
|
|
10229
|
-
* Typically begins `uk_
|
|
10307
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10230
10308
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10231
10309
|
*/
|
|
10232
10310
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10247,7 +10325,7 @@ interface operations {
|
|
|
10247
10325
|
/**
|
|
10248
10326
|
* @description **API Key**
|
|
10249
10327
|
*
|
|
10250
|
-
* The API Key
|
|
10328
|
+
* The API Key. Begins `ak_`.
|
|
10251
10329
|
* @example ak_test
|
|
10252
10330
|
*/
|
|
10253
10331
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10284,9 +10362,9 @@ interface operations {
|
|
|
10284
10362
|
*
|
|
10285
10363
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10286
10364
|
*
|
|
10287
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10365
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10288
10366
|
*
|
|
10289
|
-
* Typically begins `uk_
|
|
10367
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10290
10368
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10291
10369
|
*/
|
|
10292
10370
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10296,7 +10374,7 @@ interface operations {
|
|
|
10296
10374
|
/**
|
|
10297
10375
|
* @description **API Key**
|
|
10298
10376
|
*
|
|
10299
|
-
* The API Key
|
|
10377
|
+
* The API Key. Begins `ak_`.
|
|
10300
10378
|
* @example ak_test
|
|
10301
10379
|
*/
|
|
10302
10380
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10337,9 +10415,9 @@ interface operations {
|
|
|
10337
10415
|
*
|
|
10338
10416
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10339
10417
|
*
|
|
10340
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10418
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10341
10419
|
*
|
|
10342
|
-
* Typically begins `uk_
|
|
10420
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10343
10421
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10344
10422
|
*/
|
|
10345
10423
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10349,7 +10427,7 @@ interface operations {
|
|
|
10349
10427
|
/**
|
|
10350
10428
|
* @description **API Key**
|
|
10351
10429
|
*
|
|
10352
|
-
* The API Key
|
|
10430
|
+
* The API Key. Begins `ak_`.
|
|
10353
10431
|
* @example ak_test
|
|
10354
10432
|
*/
|
|
10355
10433
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10393,9 +10471,9 @@ interface operations {
|
|
|
10393
10471
|
*
|
|
10394
10472
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10395
10473
|
*
|
|
10396
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10474
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10397
10475
|
*
|
|
10398
|
-
* Typically begins `uk_
|
|
10476
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10399
10477
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10400
10478
|
*/
|
|
10401
10479
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10405,7 +10483,7 @@ interface operations {
|
|
|
10405
10483
|
/**
|
|
10406
10484
|
* @description **API Key**
|
|
10407
10485
|
*
|
|
10408
|
-
* The API Key
|
|
10486
|
+
* The API Key. Begins `ak_`.
|
|
10409
10487
|
* @example ak_test
|
|
10410
10488
|
*/
|
|
10411
10489
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10453,9 +10531,9 @@ interface operations {
|
|
|
10453
10531
|
*
|
|
10454
10532
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10455
10533
|
*
|
|
10456
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10534
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10457
10535
|
*
|
|
10458
|
-
* Typically begins `uk_
|
|
10536
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10459
10537
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10460
10538
|
*/
|
|
10461
10539
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10465,7 +10543,7 @@ interface operations {
|
|
|
10465
10543
|
/**
|
|
10466
10544
|
* @description **API Key**
|
|
10467
10545
|
*
|
|
10468
|
-
* The API Key
|
|
10546
|
+
* The API Key. Begins `ak_`.
|
|
10469
10547
|
* @example ak_test
|
|
10470
10548
|
*/
|
|
10471
10549
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10524,9 +10602,9 @@ interface operations {
|
|
|
10524
10602
|
*
|
|
10525
10603
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10526
10604
|
*
|
|
10527
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10605
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10528
10606
|
*
|
|
10529
|
-
* Typically begins `uk_
|
|
10607
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10530
10608
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10531
10609
|
*/
|
|
10532
10610
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10536,7 +10614,7 @@ interface operations {
|
|
|
10536
10614
|
/**
|
|
10537
10615
|
* @description **API Key**
|
|
10538
10616
|
*
|
|
10539
|
-
* The API Key
|
|
10617
|
+
* The API Key. Begins `ak_`.
|
|
10540
10618
|
* @example ak_test
|
|
10541
10619
|
*/
|
|
10542
10620
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10580,9 +10658,9 @@ interface operations {
|
|
|
10580
10658
|
*
|
|
10581
10659
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10582
10660
|
*
|
|
10583
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10661
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10584
10662
|
*
|
|
10585
|
-
* Typically begins `uk_
|
|
10663
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10586
10664
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10587
10665
|
*/
|
|
10588
10666
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10592,7 +10670,7 @@ interface operations {
|
|
|
10592
10670
|
/**
|
|
10593
10671
|
* @description **API Key**
|
|
10594
10672
|
*
|
|
10595
|
-
* The API Key
|
|
10673
|
+
* The API Key. Begins `ak_`.
|
|
10596
10674
|
* @example ak_test
|
|
10597
10675
|
*/
|
|
10598
10676
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10629,9 +10707,9 @@ interface operations {
|
|
|
10629
10707
|
*
|
|
10630
10708
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10631
10709
|
*
|
|
10632
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10710
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10633
10711
|
*
|
|
10634
|
-
* Typically begins `uk_
|
|
10712
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10635
10713
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10636
10714
|
*/
|
|
10637
10715
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10641,7 +10719,7 @@ interface operations {
|
|
|
10641
10719
|
/**
|
|
10642
10720
|
* @description **API Key**
|
|
10643
10721
|
*
|
|
10644
|
-
* The API Key
|
|
10722
|
+
* The API Key. Begins `ak_`.
|
|
10645
10723
|
* @example ak_test
|
|
10646
10724
|
*/
|
|
10647
10725
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10682,7 +10760,7 @@ interface operations {
|
|
|
10682
10760
|
/**
|
|
10683
10761
|
* @description **API Key**
|
|
10684
10762
|
*
|
|
10685
|
-
* The API Key
|
|
10763
|
+
* The API Key. Begins `ak_`.
|
|
10686
10764
|
* @example ak_test
|
|
10687
10765
|
*/
|
|
10688
10766
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10735,9 +10813,9 @@ interface operations {
|
|
|
10735
10813
|
*
|
|
10736
10814
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10737
10815
|
*
|
|
10738
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10816
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10739
10817
|
*
|
|
10740
|
-
* Typically begins `uk_
|
|
10818
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10741
10819
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10742
10820
|
*/
|
|
10743
10821
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10747,7 +10825,7 @@ interface operations {
|
|
|
10747
10825
|
/**
|
|
10748
10826
|
* @description **API Key**
|
|
10749
10827
|
*
|
|
10750
|
-
* The API Key
|
|
10828
|
+
* The API Key. Begins `ak_`.
|
|
10751
10829
|
* @example ak_test
|
|
10752
10830
|
*/
|
|
10753
10831
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -10804,9 +10882,9 @@ interface operations {
|
|
|
10804
10882
|
*
|
|
10805
10883
|
* A secret key used to manage your account and API Keys. It was previously called the user token.
|
|
10806
10884
|
*
|
|
10807
|
-
* Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/
|
|
10885
|
+
* Your management key can be retrieved and managed from your [accounts page](https://account.addresszen.com/tokens).
|
|
10808
10886
|
*
|
|
10809
|
-
* Typically begins `uk_
|
|
10887
|
+
* Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
|
|
10810
10888
|
* @example uk_B59ScW1p1HHouf1VqclEPZUx
|
|
10811
10889
|
*/
|
|
10812
10890
|
user_token?: components["parameters"]["UserTokenParam"];
|
|
@@ -10816,7 +10894,7 @@ interface operations {
|
|
|
10816
10894
|
/**
|
|
10817
10895
|
* @description **API Key**
|
|
10818
10896
|
*
|
|
10819
|
-
* The API Key
|
|
10897
|
+
* The API Key. Begins `ak_`.
|
|
10820
10898
|
* @example ak_test
|
|
10821
10899
|
*/
|
|
10822
10900
|
key: components["parameters"]["ApiKeyPathParam"];
|
|
@@ -11074,11 +11152,11 @@ interface operations {
|
|
|
11074
11152
|
/** @example Success */
|
|
11075
11153
|
message: string;
|
|
11076
11154
|
result: {
|
|
11077
|
-
/** @description User-level token used to manage account resources via the
|
|
11155
|
+
/** @description User-level token used to manage account resources via the API. */
|
|
11078
11156
|
user_token: string;
|
|
11079
11157
|
/** @description Initial test API key for the account. */
|
|
11080
11158
|
test_api_key: string;
|
|
11081
|
-
/** @description Internal
|
|
11159
|
+
/** @description Internal API user id. */
|
|
11082
11160
|
user_id: string;
|
|
11083
11161
|
};
|
|
11084
11162
|
};
|