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