@addresszen/openapi 4.1.0 → 4.2.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.cjs +1 -19
- package/dist/index.d.cts +291 -250
- package/dist/index.d.ts +291 -250
- package/dist/index.mjs +0 -1
- package/dist/openapi.json +577 -501
- package/dist/openapi.yaml +750 -671
- package/openapi.ts +291 -250
- package/package.json +10 -5
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/openapi.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.2.0",
|
|
5
5
|
"license": {
|
|
6
6
|
"name": "Copyright (C) IDDQD Limited - All Rights Reserved",
|
|
7
7
|
"url": "https://terms.addresszen.com"
|
|
@@ -198,12 +198,12 @@
|
|
|
198
198
|
{
|
|
199
199
|
"lang": "JavaScript",
|
|
200
200
|
"label": "JavaScript",
|
|
201
|
-
"source": "
|
|
201
|
+
"source": "import { createZenClient, keyAvailability } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await keyAvailability({\n client,\n path: { key: 'ak_test' },\n});\n"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"lang": "Python",
|
|
205
205
|
"label": "Python",
|
|
206
|
-
"source": "import
|
|
206
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.key_availability(\"ak_test\")\n"
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"lang": "Ruby",
|
|
@@ -286,12 +286,12 @@
|
|
|
286
286
|
{
|
|
287
287
|
"lang": "JavaScript",
|
|
288
288
|
"label": "JavaScript",
|
|
289
|
-
"source": "
|
|
289
|
+
"source": "import { createZenClient, keyDetails } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await keyDetails({\n client,\n path: { key: 'ak_test' },\n});\n"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"lang": "Python",
|
|
293
293
|
"label": "Python",
|
|
294
|
-
"source": "import
|
|
294
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.key_details(\"ak_test\", user_token=\"uk_secret\")\n"
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
"lang": "Ruby",
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
"Keys"
|
|
311
311
|
],
|
|
312
312
|
"summary": "Update Details",
|
|
313
|
-
"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`.",
|
|
313
|
+
"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.",
|
|
314
314
|
"operationId": "UpdateKeyDetails",
|
|
315
315
|
"security": [
|
|
316
316
|
{
|
|
@@ -371,27 +371,27 @@
|
|
|
371
371
|
{
|
|
372
372
|
"lang": "cURL",
|
|
373
373
|
"label": "curl",
|
|
374
|
-
"source": "curl -X PUT 'https://api.addresszen.com/v1/keys/ak_test/details?user_token=uk_secret' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"name\": \"My Updated Key\",\n \"daily_limit\": 1000,\n \"notifications\": {\n \"enabled\": true\n }\n }'\n"
|
|
374
|
+
"source": "curl -X PUT 'https://api.addresszen.com/v1/keys/ak_test/details?user_token=uk_secret' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"name\": \"My Updated Key\",\n \"daily_limit\": {\n \"limit\": 1000\n },\n \"notifications\": {\n \"enabled\": true\n }\n }'\n"
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
377
|
"lang": "JavaScript",
|
|
378
378
|
"label": "JavaScript",
|
|
379
|
-
"source": "
|
|
379
|
+
"source": "import { createZenClient, updateKeyDetails } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await updateKeyDetails({\n client,\n path: { key: 'ak_test' },\n body: {\n name: 'My Updated Key',\n daily_limit: {\n limit: 1000,\n },\n notifications: {\n enabled: true,\n },\n },\n});\n"
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
382
|
"lang": "Python",
|
|
383
383
|
"label": "Python",
|
|
384
|
-
"source": "import
|
|
384
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.update_key_details(\n \"ak_test\",\n user_token=\"uk_secret\",\n name=\"My Updated Key\",\n daily_limit={\"limit\": 1000},\n notifications={\"enabled\": True},\n )\n"
|
|
385
385
|
},
|
|
386
386
|
{
|
|
387
387
|
"lang": "Ruby",
|
|
388
388
|
"label": "Ruby",
|
|
389
|
-
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/keys/ak_test/details?user_token=uk_secret\")\nbody = {\n name: \"My Updated Key\",\n daily_limit: 1000,\n notifications: {\n enabled: true,\n },\n}\nresponse = Net::HTTP.put(uri, body.to_json, \"Content-Type\" => \"application/json\")\nresult = JSON.parse(response.body)[\"result\"]\n"
|
|
389
|
+
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/keys/ak_test/details?user_token=uk_secret\")\nbody = {\n name: \"My Updated Key\",\n daily_limit: {\n limit: 1000,\n },\n notifications: {\n enabled: true,\n },\n}\nresponse = Net::HTTP.put(uri, body.to_json, \"Content-Type\" => \"application/json\")\nresult = JSON.parse(response.body)[\"result\"]\n"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
"lang": "PHP",
|
|
393
393
|
"label": "PHP",
|
|
394
|
-
"source": "<?php\n$ch = curl_init(\"https://api.addresszen.com/v1/keys/ak_test/details?user_token=uk_secret\");\ncurl_setopt_array($ch, [\n CURLOPT_CUSTOMREQUEST => \"PUT\",\n CURLOPT_HTTPHEADER => [\"Content-Type: application/json\"],\n CURLOPT_POSTFIELDS => json_encode([\n \"name\" => \"My Updated Key\",\n \"daily_limit\" => 1000,\n \"notifications\" => [\n \"enabled\" => true,\n ],\n ]),\n CURLOPT_RETURNTRANSFER => true,\n]);\n$result = json_decode(curl_exec($ch), true)[\"result\"];\n"
|
|
394
|
+
"source": "<?php\n$ch = curl_init(\"https://api.addresszen.com/v1/keys/ak_test/details?user_token=uk_secret\");\ncurl_setopt_array($ch, [\n CURLOPT_CUSTOMREQUEST => \"PUT\",\n CURLOPT_HTTPHEADER => [\"Content-Type: application/json\"],\n CURLOPT_POSTFIELDS => json_encode([\n \"name\" => \"My Updated Key\",\n \"daily_limit\" => [\n \"limit\" => 1000,\n ],\n \"notifications\" => [\n \"enabled\" => true,\n ],\n ]),\n CURLOPT_RETURNTRANSFER => true,\n]);\n$result = json_decode(curl_exec($ch), true)[\"result\"];\n"
|
|
395
395
|
}
|
|
396
396
|
]
|
|
397
397
|
}
|
|
@@ -465,12 +465,12 @@
|
|
|
465
465
|
{
|
|
466
466
|
"lang": "JavaScript",
|
|
467
467
|
"label": "JavaScript",
|
|
468
|
-
"source": "
|
|
468
|
+
"source": "import { createZenClient, keyUsage } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await keyUsage({\n client,\n path: { key: 'ak_test' },\n});\n"
|
|
469
469
|
},
|
|
470
470
|
{
|
|
471
471
|
"lang": "Python",
|
|
472
472
|
"label": "Python",
|
|
473
|
-
"source": "import
|
|
473
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.key_usage(\"ak_test\", user_token=\"uk_secret\")\n"
|
|
474
474
|
},
|
|
475
475
|
{
|
|
476
476
|
"lang": "Ruby",
|
|
@@ -553,12 +553,12 @@
|
|
|
553
553
|
{
|
|
554
554
|
"lang": "JavaScript",
|
|
555
555
|
"label": "JavaScript",
|
|
556
|
-
"source": "
|
|
556
|
+
"source": "import { createZenClient, keyLogs } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data: csv } = await keyLogs({\n client,\n path: { key: 'ak_test' },\n});\n"
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
559
|
"lang": "Python",
|
|
560
560
|
"label": "Python",
|
|
561
|
-
"source": "import
|
|
561
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.key_logs(\"ak_test\", user_token=\"uk_secret\")\n"
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
564
|
"lang": "Ruby",
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
"Address Search"
|
|
580
580
|
],
|
|
581
581
|
"summary": "Verify Address",
|
|
582
|
-
"description": "Verifies an address against the USPS Coding Accuracy Support System (CASS) and returns it standardized and corrected.\n\nSubmit 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.\n\nA 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.
|
|
582
|
+
"description": "Verifies an address against the USPS Coding Accuracy Support System (CASS) and returns it standardized and corrected.\n\nSubmit 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.\n\nA 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.\n\nAn 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.\n\nIn 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`.\n\n## Countries\n\nVerify 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.\n\nOutside 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.\n\nThe 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`.\n",
|
|
583
583
|
"operationId": "AddressVerify",
|
|
584
584
|
"security": [
|
|
585
585
|
{
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
},
|
|
631
631
|
"state": {
|
|
632
632
|
"type": "string",
|
|
633
|
-
"description": "State of an address. For the US, use the 2
|
|
633
|
+
"description": "State of an address. For the US, use the 2-letter state abbreviation.\n",
|
|
634
634
|
"example": "CO"
|
|
635
635
|
}
|
|
636
636
|
}
|
|
@@ -669,12 +669,12 @@
|
|
|
669
669
|
{
|
|
670
670
|
"lang": "JavaScript",
|
|
671
671
|
"label": "JavaScript",
|
|
672
|
-
"source": "
|
|
672
|
+
"source": "import { createZenClient, addressVerify } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await addressVerify({\n client,\n body: {\n query: '123 Main St, Springfield, IL 62701',\n },\n});\n"
|
|
673
673
|
},
|
|
674
674
|
{
|
|
675
675
|
"lang": "Python",
|
|
676
676
|
"label": "Python",
|
|
677
|
-
"source": "
|
|
677
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.address_verify(query=\"123 Main St, Springfield, IL 62701\")\n"
|
|
678
678
|
},
|
|
679
679
|
{
|
|
680
680
|
"lang": "Ruby",
|
|
@@ -901,12 +901,17 @@
|
|
|
901
901
|
{
|
|
902
902
|
"lang": "JavaScript",
|
|
903
903
|
"label": "JavaScript",
|
|
904
|
-
"source": "
|
|
904
|
+
"source": "import { createZenClient } from '@addresszen/sdk';\nimport { createAutocomplete } from '@addresszen/sdk/autocomplete';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\n// Debounces keystrokes, drops superseded requests and caches suggestions\nconst autocomplete = createAutocomplete({ client });\n\nconst hits = await autocomplete.find({ query: '1600 Pennsylvania' });\nif (hits?.length) {\n const address = await autocomplete.retrieve({ hit: hits[0] });\n}\n"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"lang": "JavaScript",
|
|
908
|
+
"label": "JavaScript (direct)",
|
|
909
|
+
"source": "import { createZenClient, findAddress } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await findAddress({\n client,\n query: { query: '1600 Pennsylvania' },\n});\n"
|
|
905
910
|
},
|
|
906
911
|
{
|
|
907
912
|
"lang": "Python",
|
|
908
913
|
"label": "Python",
|
|
909
|
-
"source": "
|
|
914
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.find_address(query=\"1600 Pennsylvania\")\n"
|
|
910
915
|
},
|
|
911
916
|
{
|
|
912
917
|
"lang": "Ruby",
|
|
@@ -1007,12 +1012,17 @@
|
|
|
1007
1012
|
{
|
|
1008
1013
|
"lang": "JavaScript",
|
|
1009
1014
|
"label": "JavaScript",
|
|
1010
|
-
"source": "
|
|
1015
|
+
"source": "import { createZenClient } from '@addresszen/sdk';\nimport { createAutocomplete } from '@addresszen/sdk/autocomplete';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\n// Debounces keystrokes, drops superseded requests and caches suggestions\nconst autocomplete = createAutocomplete({ client });\n\nconst hits = await autocomplete.find({ query: '1600 Pennsylvania' });\nif (hits?.length) {\n const address = await autocomplete.retrieve({ hit: hits[0] });\n}\n"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"lang": "JavaScript",
|
|
1019
|
+
"label": "JavaScript (direct)",
|
|
1020
|
+
"source": "import { createZenClient, retrieveAddress } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await retrieveAddress({\n client,\n path: { address: 'usps_V118834572|310||3191' },\n});\n"
|
|
1011
1021
|
},
|
|
1012
1022
|
{
|
|
1013
1023
|
"lang": "Python",
|
|
1014
1024
|
"label": "Python",
|
|
1015
|
-
"source": "
|
|
1025
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.retrieve_address(\"usps_V118834572|310||3191\")\n"
|
|
1016
1026
|
},
|
|
1017
1027
|
{
|
|
1018
1028
|
"lang": "Ruby",
|
|
@@ -1157,12 +1167,12 @@
|
|
|
1157
1167
|
{
|
|
1158
1168
|
"lang": "JavaScript",
|
|
1159
1169
|
"label": "JavaScript",
|
|
1160
|
-
"source": "
|
|
1170
|
+
"source": "import { createZenClient, findPlace } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await findPlace({\n client,\n query: { query: 'london' },\n});\n"
|
|
1161
1171
|
},
|
|
1162
1172
|
{
|
|
1163
1173
|
"lang": "Python",
|
|
1164
1174
|
"label": "Python",
|
|
1165
|
-
"source": "
|
|
1175
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.find_place(query=\"london\")\n"
|
|
1166
1176
|
},
|
|
1167
1177
|
{
|
|
1168
1178
|
"lang": "Ruby",
|
|
@@ -1413,12 +1423,12 @@
|
|
|
1413
1423
|
{
|
|
1414
1424
|
"lang": "JavaScript",
|
|
1415
1425
|
"label": "JavaScript",
|
|
1416
|
-
"source": "
|
|
1426
|
+
"source": "import { createZenClient, resolvePlace } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await resolvePlace({\n client,\n path: { place: 'geonames_5353' },\n});\n"
|
|
1417
1427
|
},
|
|
1418
1428
|
{
|
|
1419
1429
|
"lang": "Python",
|
|
1420
1430
|
"label": "Python",
|
|
1421
|
-
"source": "
|
|
1431
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.resolve_place(\"geonames_5353\")\n"
|
|
1422
1432
|
},
|
|
1423
1433
|
{
|
|
1424
1434
|
"lang": "Ruby",
|
|
@@ -1514,12 +1524,12 @@
|
|
|
1514
1524
|
{
|
|
1515
1525
|
"lang": "JavaScript",
|
|
1516
1526
|
"label": "JavaScript",
|
|
1517
|
-
"source": "
|
|
1527
|
+
"source": "import { createZenClient, listLicensees } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await listLicensees({\n client,\n path: { key: 'ak_test' },\n});\n"
|
|
1518
1528
|
},
|
|
1519
1529
|
{
|
|
1520
1530
|
"lang": "Python",
|
|
1521
1531
|
"label": "Python",
|
|
1522
|
-
"source": "import
|
|
1532
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.list_licensees(\"ak_test\", user_token=\"uk_secret\")\n"
|
|
1523
1533
|
},
|
|
1524
1534
|
{
|
|
1525
1535
|
"lang": "Ruby",
|
|
@@ -1594,12 +1604,12 @@
|
|
|
1594
1604
|
{
|
|
1595
1605
|
"lang": "JavaScript",
|
|
1596
1606
|
"label": "JavaScript",
|
|
1597
|
-
"source": "
|
|
1607
|
+
"source": "import { createZenClient, createLicensee } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await createLicensee({\n client,\n path: { key: 'ak_test' },\n body: {\n name: 'Qwerty Widgets Limited',\n address: '12 High Street, Manchester',\n postcode: 'BR8 7RE',\n whitelist: [],\n daily: {\n limit: 10000,\n },\n },\n});\n"
|
|
1598
1608
|
},
|
|
1599
1609
|
{
|
|
1600
1610
|
"lang": "Python",
|
|
1601
1611
|
"label": "Python",
|
|
1602
|
-
"source": "import
|
|
1612
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.create_licensee(\n \"ak_test\",\n user_token=\"uk_secret\",\n name=\"Qwerty Widgets Limited\",\n address=\"12 High Street, Manchester\",\n postcode=\"BR8 7RE\",\n whitelist=[],\n daily={\"limit\": 10000},\n )\n"
|
|
1603
1613
|
},
|
|
1604
1614
|
{
|
|
1605
1615
|
"lang": "Ruby",
|
|
@@ -1675,12 +1685,12 @@
|
|
|
1675
1685
|
{
|
|
1676
1686
|
"lang": "JavaScript",
|
|
1677
1687
|
"label": "JavaScript",
|
|
1678
|
-
"source": "
|
|
1688
|
+
"source": "import { createZenClient, retrieveLicensee } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await retrieveLicensee({\n client,\n path: { key: 'ak_test', licensee: 'sl_ijoiqsxeQgXW2gkiE0X94' },\n});\n"
|
|
1679
1689
|
},
|
|
1680
1690
|
{
|
|
1681
1691
|
"lang": "Python",
|
|
1682
1692
|
"label": "Python",
|
|
1683
|
-
"source": "import
|
|
1693
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.retrieve_licensee(\"ak_test\", \"sl_ijoiqsxeQgXW2gkiE0X94\", user_token=\"uk_secret\")\n"
|
|
1684
1694
|
},
|
|
1685
1695
|
{
|
|
1686
1696
|
"lang": "Ruby",
|
|
@@ -1783,12 +1793,12 @@
|
|
|
1783
1793
|
{
|
|
1784
1794
|
"lang": "JavaScript",
|
|
1785
1795
|
"label": "JavaScript",
|
|
1786
|
-
"source": "
|
|
1796
|
+
"source": "import { createZenClient, deleteLicensee } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await deleteLicensee({\n client,\n path: { key: 'ak_test', licensee: 'sl_ijoiqsxeQgXW2gkiE0X94' },\n});\n"
|
|
1787
1797
|
},
|
|
1788
1798
|
{
|
|
1789
1799
|
"lang": "Python",
|
|
1790
1800
|
"label": "Python",
|
|
1791
|
-
"source": "import
|
|
1801
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.delete_licensee(\"ak_test\", \"sl_ijoiqsxeQgXW2gkiE0X94\", user_token=\"uk_secret\")\n"
|
|
1792
1802
|
},
|
|
1793
1803
|
{
|
|
1794
1804
|
"lang": "Ruby",
|
|
@@ -1866,12 +1876,12 @@
|
|
|
1866
1876
|
{
|
|
1867
1877
|
"lang": "JavaScript",
|
|
1868
1878
|
"label": "JavaScript",
|
|
1869
|
-
"source": "
|
|
1879
|
+
"source": "import { createZenClient, updateLicensee } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await updateLicensee({\n client,\n path: { key: 'ak_test', licensee: 'sl_ijoiqsxeQgXW2gkiE0X94' },\n body: {\n daily: {\n limit: 20000,\n },\n },\n});\n"
|
|
1870
1880
|
},
|
|
1871
1881
|
{
|
|
1872
1882
|
"lang": "Python",
|
|
1873
1883
|
"label": "Python",
|
|
1874
|
-
"source": "import
|
|
1884
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.update_licensee(\n \"ak_test\",\n \"sl_ijoiqsxeQgXW2gkiE0X94\",\n user_token=\"uk_secret\",\n daily={\"limit\": 20000},\n )\n"
|
|
1875
1885
|
},
|
|
1876
1886
|
{
|
|
1877
1887
|
"lang": "Ruby",
|
|
@@ -1931,7 +1941,34 @@
|
|
|
1931
1941
|
}
|
|
1932
1942
|
}
|
|
1933
1943
|
}
|
|
1934
|
-
}
|
|
1944
|
+
},
|
|
1945
|
+
"x-codeSamples": [
|
|
1946
|
+
{
|
|
1947
|
+
"lang": "cURL",
|
|
1948
|
+
"label": "curl",
|
|
1949
|
+
"source": "curl -X POST 'https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94/regenerate-key?user_token=uk_secret'\n"
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"lang": "JavaScript",
|
|
1953
|
+
"label": "JavaScript",
|
|
1954
|
+
"source": "import { createZenClient, regenerateLicenseeKey } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await regenerateLicenseeKey({\n client,\n path: { key: 'ak_test', licensee: 'sl_ijoiqsxeQgXW2gkiE0X94' },\n});\n"
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
"lang": "Python",
|
|
1958
|
+
"label": "Python",
|
|
1959
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.regenerate_licensee_key(\"ak_test\", \"sl_ijoiqsxeQgXW2gkiE0X94\", user_token=\"uk_secret\")\n"
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"lang": "Ruby",
|
|
1963
|
+
"label": "Ruby",
|
|
1964
|
+
"source": "require \"net/http\"\nrequire \"json\"\n\nuri = URI(\"https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94/regenerate-key?user_token=uk_secret\")\nresponse = Net::HTTP.post(uri, \"\")\nresult = JSON.parse(response.body)[\"result\"]\n"
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"lang": "PHP",
|
|
1968
|
+
"label": "PHP",
|
|
1969
|
+
"source": "<?php\n$ch = curl_init(\"https://api.addresszen.com/v1/keys/ak_test/licensees/sl_ijoiqsxeQgXW2gkiE0X94/regenerate-key?user_token=uk_secret\");\ncurl_setopt_array($ch, [\n CURLOPT_POST => true,\n CURLOPT_RETURNTRANSFER => true,\n]);\n$result = json_decode(curl_exec($ch), true)[\"result\"];\n"
|
|
1970
|
+
}
|
|
1971
|
+
]
|
|
1935
1972
|
}
|
|
1936
1973
|
},
|
|
1937
1974
|
"/keys/{key}/configs": {
|
|
@@ -1991,12 +2028,12 @@
|
|
|
1991
2028
|
{
|
|
1992
2029
|
"lang": "JavaScript",
|
|
1993
2030
|
"label": "JavaScript",
|
|
1994
|
-
"source": "
|
|
2031
|
+
"source": "import { createZenClient, listConfigs } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await listConfigs({\n client,\n path: { key: 'ak_test' },\n});\n"
|
|
1995
2032
|
},
|
|
1996
2033
|
{
|
|
1997
2034
|
"lang": "Python",
|
|
1998
2035
|
"label": "Python",
|
|
1999
|
-
"source": "import
|
|
2036
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.list_configs(\"ak_test\", user_token=\"uk_secret\")\n"
|
|
2000
2037
|
},
|
|
2001
2038
|
{
|
|
2002
2039
|
"lang": "Ruby",
|
|
@@ -2071,12 +2108,12 @@
|
|
|
2071
2108
|
{
|
|
2072
2109
|
"lang": "JavaScript",
|
|
2073
2110
|
"label": "JavaScript",
|
|
2074
|
-
"source": "
|
|
2111
|
+
"source": "import { createZenClient, createConfig } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await createConfig({\n client,\n path: { key: 'ak_test' },\n body: {\n name: 'woocommerce',\n payload: '{\"removeOrganisation\": false}',\n },\n});\n"
|
|
2075
2112
|
},
|
|
2076
2113
|
{
|
|
2077
2114
|
"lang": "Python",
|
|
2078
2115
|
"label": "Python",
|
|
2079
|
-
"source": "import
|
|
2116
|
+
"source": "# pip install addresszen\nimport json\n\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.create_config(\n \"ak_test\",\n user_token=\"uk_secret\",\n name=\"woocommerce\",\n payload=json.dumps({\"removeOrganisation\": False}),\n )\n"
|
|
2080
2117
|
},
|
|
2081
2118
|
{
|
|
2082
2119
|
"lang": "Ruby",
|
|
@@ -2154,12 +2191,12 @@
|
|
|
2154
2191
|
{
|
|
2155
2192
|
"lang": "JavaScript",
|
|
2156
2193
|
"label": "JavaScript",
|
|
2157
|
-
"source": "
|
|
2194
|
+
"source": "import { createZenClient, retrieveConfig } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await retrieveConfig({\n client,\n path: { key: 'ak_test', config: 'woocommerce' },\n});\n"
|
|
2158
2195
|
},
|
|
2159
2196
|
{
|
|
2160
2197
|
"lang": "Python",
|
|
2161
2198
|
"label": "Python",
|
|
2162
|
-
"source": "import
|
|
2199
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.retrieve_config(\"ak_test\", \"woocommerce\")\n"
|
|
2163
2200
|
},
|
|
2164
2201
|
{
|
|
2165
2202
|
"lang": "Ruby",
|
|
@@ -2272,12 +2309,12 @@
|
|
|
2272
2309
|
{
|
|
2273
2310
|
"lang": "JavaScript",
|
|
2274
2311
|
"label": "JavaScript",
|
|
2275
|
-
"source": "
|
|
2312
|
+
"source": "import { createZenClient, deleteConfig } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await deleteConfig({\n client,\n path: { key: 'ak_test', config: 'woocommerce' },\n});\n"
|
|
2276
2313
|
},
|
|
2277
2314
|
{
|
|
2278
2315
|
"lang": "Python",
|
|
2279
2316
|
"label": "Python",
|
|
2280
|
-
"source": "import
|
|
2317
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.delete_config(\"ak_test\", \"woocommerce\", user_token=\"uk_secret\")\n"
|
|
2281
2318
|
},
|
|
2282
2319
|
{
|
|
2283
2320
|
"lang": "Ruby",
|
|
@@ -2365,12 +2402,12 @@
|
|
|
2365
2402
|
{
|
|
2366
2403
|
"lang": "JavaScript",
|
|
2367
2404
|
"label": "JavaScript",
|
|
2368
|
-
"source": "
|
|
2405
|
+
"source": "import { createZenClient, updateConfig } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test', userToken: 'uk_secret' });\n\nconst { data } = await updateConfig({\n client,\n path: { key: 'ak_test', config: 'woocommerce' },\n body: {\n payload: '{\"removeOrganisation\": true}',\n },\n});\n"
|
|
2369
2406
|
},
|
|
2370
2407
|
{
|
|
2371
2408
|
"lang": "Python",
|
|
2372
2409
|
"label": "Python",
|
|
2373
|
-
"source": "import
|
|
2410
|
+
"source": "# pip install addresszen\nimport json\n\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.update_config(\n \"ak_test\",\n \"woocommerce\",\n user_token=\"uk_secret\",\n payload=json.dumps({\"removeOrganisation\": True}),\n )\n"
|
|
2374
2411
|
},
|
|
2375
2412
|
{
|
|
2376
2413
|
"lang": "Ruby",
|
|
@@ -2471,12 +2508,12 @@
|
|
|
2471
2508
|
{
|
|
2472
2509
|
"lang": "JavaScript",
|
|
2473
2510
|
"label": "JavaScript",
|
|
2474
|
-
"source": "
|
|
2511
|
+
"source": "import { createZenClient, emailValidation } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await emailValidation({\n client,\n query: { query: 'foo@domain.com' },\n});\n"
|
|
2475
2512
|
},
|
|
2476
2513
|
{
|
|
2477
2514
|
"lang": "Python",
|
|
2478
2515
|
"label": "Python",
|
|
2479
|
-
"source": "import
|
|
2516
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.email_validation(query=\"foo@domain.com\")\n"
|
|
2480
2517
|
},
|
|
2481
2518
|
{
|
|
2482
2519
|
"lang": "Ruby",
|
|
@@ -2602,12 +2639,12 @@
|
|
|
2602
2639
|
{
|
|
2603
2640
|
"lang": "JavaScript",
|
|
2604
2641
|
"label": "JavaScript",
|
|
2605
|
-
"source": "
|
|
2642
|
+
"source": "import { createZenClient, phoneNumberValidation } from '@addresszen/sdk';\n\nconst client = createZenClient({ apiKey: 'ak_test' });\n\nconst { data } = await phoneNumberValidation({\n client,\n query: { query: '02071128019' },\n});\n"
|
|
2606
2643
|
},
|
|
2607
2644
|
{
|
|
2608
2645
|
"lang": "Python",
|
|
2609
2646
|
"label": "Python",
|
|
2610
|
-
"source": "
|
|
2647
|
+
"source": "# pip install addresszen\nfrom addresszen import AddressZen\n\nwith AddressZen(\"ak_test\") as client:\n result = client.phone_number_validation(query=\"02071128019\")\n"
|
|
2611
2648
|
},
|
|
2612
2649
|
{
|
|
2613
2650
|
"lang": "Ruby",
|
|
@@ -2825,7 +2862,7 @@
|
|
|
2825
2862
|
"properties": {
|
|
2826
2863
|
"user_token": {
|
|
2827
2864
|
"type": "string",
|
|
2828
|
-
"description": "User-level token used to manage account resources via the
|
|
2865
|
+
"description": "User-level token used to manage account resources via the API."
|
|
2829
2866
|
},
|
|
2830
2867
|
"test_api_key": {
|
|
2831
2868
|
"type": "string",
|
|
@@ -2833,7 +2870,7 @@
|
|
|
2833
2870
|
},
|
|
2834
2871
|
"user_id": {
|
|
2835
2872
|
"type": "string",
|
|
2836
|
-
"description": "Internal
|
|
2873
|
+
"description": "Internal API user id."
|
|
2837
2874
|
}
|
|
2838
2875
|
}
|
|
2839
2876
|
}
|
|
@@ -2974,7 +3011,7 @@
|
|
|
2974
3011
|
"type": "string"
|
|
2975
3012
|
},
|
|
2976
3013
|
"example": "ak_test",
|
|
2977
|
-
"description": "**API Key**\n\nThe API Key
|
|
3014
|
+
"description": "**API Key**\n\nThe API Key. Begins `ak_`.\n"
|
|
2978
3015
|
},
|
|
2979
3016
|
"UserTokenParam": {
|
|
2980
3017
|
"in": "query",
|
|
@@ -2984,7 +3021,7 @@
|
|
|
2984
3021
|
"type": "string"
|
|
2985
3022
|
},
|
|
2986
3023
|
"name": "user_token",
|
|
2987
|
-
"description": "**Management Key**\n\nA secret key used to manage your account and API Keys. It was previously called the user token.\n\nYour management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).\n\nTypically begins `uk_
|
|
3024
|
+
"description": "**Management Key**\n\nA secret key used to manage your account and API Keys. It was previously called the user token.\n\nYour management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).\n\nTypically 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.\n",
|
|
2988
3025
|
"example": "uk_B59ScW1p1HHouf1VqclEPZUx"
|
|
2989
3026
|
},
|
|
2990
3027
|
"StartParam": {
|
|
@@ -3440,7 +3477,7 @@
|
|
|
3440
3477
|
]
|
|
3441
3478
|
},
|
|
3442
3479
|
"available": {
|
|
3443
|
-
"description": "Determines whether the key can be used by the requesting agent. \n\nReturns false if one of the following conditions is met:\n - Key has no lookups remaining\n - Daily limit has been reached on the key\n - Daily individual limit has been reached\n - Key is not being used via an authorised URL\n - (Sublicensed key only) Key has
|
|
3480
|
+
"description": "Determines whether the key can be used by the requesting agent. \n\nReturns false if one of the following conditions is met:\n - Key has no lookups remaining\n - Daily limit has been reached on the key\n - Daily individual limit has been reached\n - Key is not being used via an authorised URL\n - (Sublicensed key only) Key has no valid licensee attached\n - (Sublicensed key only) Key is not being used via an authorised URL specified by licensee\n",
|
|
3444
3481
|
"type": "boolean",
|
|
3445
3482
|
"example": true
|
|
3446
3483
|
}
|
|
@@ -4028,7 +4065,7 @@
|
|
|
4028
4065
|
"x-nullable": true,
|
|
4029
4066
|
"nullable": true,
|
|
4030
4067
|
"type": "integer",
|
|
4031
|
-
"description": "`number` or `null
|
|
4068
|
+
"description": "`number` or `null`. Limit set on the number of lookups that can be\nperformed from a single IP address. `null` means the limit is currently\ndisabled.",
|
|
4032
4069
|
"format": "int32"
|
|
4033
4070
|
}
|
|
4034
4071
|
}
|
|
@@ -4092,7 +4129,7 @@
|
|
|
4092
4129
|
},
|
|
4093
4130
|
"datasets": {
|
|
4094
4131
|
"title": "API Key Dataset Availability",
|
|
4095
|
-
"description": "
|
|
4132
|
+
"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.",
|
|
4096
4133
|
"type": "object",
|
|
4097
4134
|
"properties": {
|
|
4098
4135
|
"pafa": {
|
|
@@ -4415,7 +4452,7 @@
|
|
|
4415
4452
|
},
|
|
4416
4453
|
"check_digit": {
|
|
4417
4454
|
"type": "string",
|
|
4418
|
-
"description": "Character following the 5 or 9
|
|
4455
|
+
"description": "Character following the 5-digit or 9-digit ZIP Code. Part of the 11-digit barcode\n"
|
|
4419
4456
|
},
|
|
4420
4457
|
"city": {
|
|
4421
4458
|
"type": "string",
|
|
@@ -4431,7 +4468,7 @@
|
|
|
4431
4468
|
},
|
|
4432
4469
|
"country_code": {
|
|
4433
4470
|
"type": "string",
|
|
4434
|
-
"description": "
|
|
4471
|
+
"description": "ISO 3166 country code. Empty string if not present\n"
|
|
4435
4472
|
},
|
|
4436
4473
|
"county": {
|
|
4437
4474
|
"type": "string",
|
|
@@ -4555,7 +4592,7 @@
|
|
|
4555
4592
|
},
|
|
4556
4593
|
"parsed_pmb_number": {
|
|
4557
4594
|
"type": "string",
|
|
4558
|
-
"description": "
|
|
4595
|
+
"description": "Private Mail Box (PMB) number, if one is found in an address. Empty string if not present\n"
|
|
4559
4596
|
},
|
|
4560
4597
|
"parsed_post_directional": {
|
|
4561
4598
|
"type": "string",
|
|
@@ -4679,250 +4716,10 @@
|
|
|
4679
4716
|
"zip_code": "88310-5631"
|
|
4680
4717
|
}
|
|
4681
4718
|
},
|
|
4682
|
-
"
|
|
4683
|
-
"title": "Address
|
|
4684
|
-
"type": "
|
|
4685
|
-
"
|
|
4686
|
-
"query",
|
|
4687
|
-
"query_city",
|
|
4688
|
-
"query_state",
|
|
4689
|
-
"query_zip_code",
|
|
4690
|
-
"match",
|
|
4691
|
-
"count",
|
|
4692
|
-
"fit",
|
|
4693
|
-
"confidence",
|
|
4694
|
-
"match_information",
|
|
4695
|
-
"address_line_one",
|
|
4696
|
-
"address_line_two",
|
|
4697
|
-
"city",
|
|
4698
|
-
"state",
|
|
4699
|
-
"zip_code",
|
|
4700
|
-
"country_iso_2"
|
|
4701
|
-
],
|
|
4702
|
-
"properties": {
|
|
4703
|
-
"query": {
|
|
4704
|
-
"type": "string",
|
|
4705
|
-
"description": "Submitted query"
|
|
4706
|
-
},
|
|
4707
|
-
"query_city": {
|
|
4708
|
-
"type": "string",
|
|
4709
|
-
"description": "Submitted city"
|
|
4710
|
-
},
|
|
4711
|
-
"query_state": {
|
|
4712
|
-
"type": "string",
|
|
4713
|
-
"description": "Submitted state"
|
|
4714
|
-
},
|
|
4715
|
-
"query_zip_code": {
|
|
4716
|
-
"type": "string",
|
|
4717
|
-
"description": "Submitted zip_code"
|
|
4718
|
-
},
|
|
4719
|
-
"match": {
|
|
4720
|
-
"description": "Nearest matching address",
|
|
4721
|
-
"allOf": [
|
|
4722
|
-
{
|
|
4723
|
-
"$ref": "#/components/schemas/UsaCassVerifiedAddress"
|
|
4724
|
-
}
|
|
4725
|
-
]
|
|
4726
|
-
},
|
|
4727
|
-
"count": {
|
|
4728
|
-
"type": "number",
|
|
4729
|
-
"description": "The number of addresses we matched to the input. We return the closest match by default.\n",
|
|
4730
|
-
"maximum": 10,
|
|
4731
|
-
"minimum": 0
|
|
4732
|
-
},
|
|
4733
|
-
"fit": {
|
|
4734
|
-
"type": "number",
|
|
4735
|
-
"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.\n",
|
|
4736
|
-
"maximum": 1,
|
|
4737
|
-
"minimum": 0
|
|
4738
|
-
},
|
|
4739
|
-
"confidence": {
|
|
4740
|
-
"type": "number",
|
|
4741
|
-
"maximum": 1,
|
|
4742
|
-
"minimum": 0,
|
|
4743
|
-
"description": "A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements.\n"
|
|
4744
|
-
},
|
|
4745
|
-
"match_information": {
|
|
4746
|
-
"type": "string",
|
|
4747
|
-
"description": "Additional information about the match.\n\nThis information is for human consumption and may not be present in all responses.\n",
|
|
4748
|
-
"example": "Single Response - The delivery address was found in the National Database and no further information was required."
|
|
4749
|
-
},
|
|
4750
|
-
"address_line_one": {
|
|
4751
|
-
"type": "string",
|
|
4752
|
-
"description": "Primary delivery address\n",
|
|
4753
|
-
"example": "123 Main St"
|
|
4754
|
-
},
|
|
4755
|
-
"address_line_two": {
|
|
4756
|
-
"type": "string",
|
|
4757
|
-
"description": "Secondary address information\n",
|
|
4758
|
-
"example": ""
|
|
4759
|
-
},
|
|
4760
|
-
"city": {
|
|
4761
|
-
"type": "string",
|
|
4762
|
-
"description": "City name\n",
|
|
4763
|
-
"example": "Springfield"
|
|
4764
|
-
},
|
|
4765
|
-
"state": {
|
|
4766
|
-
"type": "string",
|
|
4767
|
-
"description": "State name\n",
|
|
4768
|
-
"example": "CO"
|
|
4769
|
-
},
|
|
4770
|
-
"zip_code": {
|
|
4771
|
-
"type": "string",
|
|
4772
|
-
"description": "Zip code\n",
|
|
4773
|
-
"example": "81073-1119"
|
|
4774
|
-
},
|
|
4775
|
-
"country_iso_2": {
|
|
4776
|
-
"type": "string",
|
|
4777
|
-
"description": "2 letter ISO country code\n",
|
|
4778
|
-
"example": "US"
|
|
4779
|
-
}
|
|
4780
|
-
}
|
|
4781
|
-
},
|
|
4782
|
-
"UsaVerifyNoMatch": {
|
|
4783
|
-
"type": "object",
|
|
4784
|
-
"title": "No Address Match",
|
|
4785
|
-
"required": [
|
|
4786
|
-
"query",
|
|
4787
|
-
"query_city",
|
|
4788
|
-
"query_state",
|
|
4789
|
-
"query_zip_code",
|
|
4790
|
-
"match",
|
|
4791
|
-
"count",
|
|
4792
|
-
"fit",
|
|
4793
|
-
"confidence",
|
|
4794
|
-
"address_line_one",
|
|
4795
|
-
"address_line_two",
|
|
4796
|
-
"city",
|
|
4797
|
-
"state",
|
|
4798
|
-
"zip_code",
|
|
4799
|
-
"country_iso_2"
|
|
4800
|
-
],
|
|
4801
|
-
"properties": {
|
|
4802
|
-
"query": {
|
|
4803
|
-
"type": "string",
|
|
4804
|
-
"description": "Originally submitted query"
|
|
4805
|
-
},
|
|
4806
|
-
"query_city": {
|
|
4807
|
-
"type": "string",
|
|
4808
|
-
"description": "Originally submitted city"
|
|
4809
|
-
},
|
|
4810
|
-
"query_state": {
|
|
4811
|
-
"type": "string",
|
|
4812
|
-
"description": "Originally submitted state"
|
|
4813
|
-
},
|
|
4814
|
-
"query_zip_code": {
|
|
4815
|
-
"type": "string",
|
|
4816
|
-
"description": "Originally submitted zip_code"
|
|
4817
|
-
},
|
|
4818
|
-
"match": {
|
|
4819
|
-
"description": "Nearest matching address",
|
|
4820
|
-
"type": "object",
|
|
4821
|
-
"nullable": true,
|
|
4822
|
-
"enum": [
|
|
4823
|
-
null
|
|
4824
|
-
]
|
|
4825
|
-
},
|
|
4826
|
-
"count": {
|
|
4827
|
-
"type": "number",
|
|
4828
|
-
"description": "",
|
|
4829
|
-
"enum": [
|
|
4830
|
-
0
|
|
4831
|
-
]
|
|
4832
|
-
},
|
|
4833
|
-
"fit": {
|
|
4834
|
-
"type": "number",
|
|
4835
|
-
"format": "float",
|
|
4836
|
-
"description": "",
|
|
4837
|
-
"enum": [
|
|
4838
|
-
0
|
|
4839
|
-
]
|
|
4840
|
-
},
|
|
4841
|
-
"confidence": {
|
|
4842
|
-
"type": "number",
|
|
4843
|
-
"format": "float",
|
|
4844
|
-
"description": "",
|
|
4845
|
-
"enum": [
|
|
4846
|
-
0
|
|
4847
|
-
]
|
|
4848
|
-
},
|
|
4849
|
-
"address_line_one": {
|
|
4850
|
-
"type": "string",
|
|
4851
|
-
"description": "Empty if no match\n",
|
|
4852
|
-
"enum": [
|
|
4853
|
-
""
|
|
4854
|
-
]
|
|
4855
|
-
},
|
|
4856
|
-
"address_line_two": {
|
|
4857
|
-
"type": "string",
|
|
4858
|
-
"description": "Empty if no match\n",
|
|
4859
|
-
"enum": [
|
|
4860
|
-
""
|
|
4861
|
-
]
|
|
4862
|
-
},
|
|
4863
|
-
"city": {
|
|
4864
|
-
"type": "string",
|
|
4865
|
-
"description": "Empty if no match\n",
|
|
4866
|
-
"enum": [
|
|
4867
|
-
""
|
|
4868
|
-
]
|
|
4869
|
-
},
|
|
4870
|
-
"state": {
|
|
4871
|
-
"type": "string",
|
|
4872
|
-
"description": "Empty if no match\n",
|
|
4873
|
-
"enum": [
|
|
4874
|
-
""
|
|
4875
|
-
]
|
|
4876
|
-
},
|
|
4877
|
-
"zip_code": {
|
|
4878
|
-
"type": "string",
|
|
4879
|
-
"description": "Empty if no match\n",
|
|
4880
|
-
"enum": [
|
|
4881
|
-
""
|
|
4882
|
-
]
|
|
4883
|
-
},
|
|
4884
|
-
"country_iso_2": {
|
|
4885
|
-
"type": "string",
|
|
4886
|
-
"description": "Empty if no match\n",
|
|
4887
|
-
"enum": [
|
|
4888
|
-
""
|
|
4889
|
-
]
|
|
4890
|
-
}
|
|
4891
|
-
}
|
|
4892
|
-
},
|
|
4893
|
-
"VerifyResponse": {
|
|
4894
|
-
"title": "Address Verify Response",
|
|
4895
|
-
"type": "object",
|
|
4896
|
-
"required": [
|
|
4897
|
-
"message",
|
|
4898
|
-
"code",
|
|
4899
|
-
"result"
|
|
4900
|
-
],
|
|
4901
|
-
"properties": {
|
|
4902
|
-
"code": {
|
|
4903
|
-
"type": "integer",
|
|
4904
|
-
"format": "int32",
|
|
4905
|
-
"enum": [
|
|
4906
|
-
2000
|
|
4907
|
-
]
|
|
4908
|
-
},
|
|
4909
|
-
"message": {
|
|
4910
|
-
"type": "string",
|
|
4911
|
-
"enum": [
|
|
4912
|
-
"Success"
|
|
4913
|
-
]
|
|
4914
|
-
},
|
|
4915
|
-
"result": {
|
|
4916
|
-
"oneOf": [
|
|
4917
|
-
{
|
|
4918
|
-
"$ref": "#/components/schemas/UsaVerifyMatch"
|
|
4919
|
-
},
|
|
4920
|
-
{
|
|
4921
|
-
"$ref": "#/components/schemas/UsaVerifyNoMatch"
|
|
4922
|
-
}
|
|
4923
|
-
]
|
|
4924
|
-
}
|
|
4925
|
-
}
|
|
4719
|
+
"ID": {
|
|
4720
|
+
"title": "Address Identifier",
|
|
4721
|
+
"type": "string",
|
|
4722
|
+
"description": "Globally unique internally generated identifier for an address"
|
|
4926
4723
|
},
|
|
4927
4724
|
"Dataset": {
|
|
4928
4725
|
"title": "Dataset",
|
|
@@ -4964,79 +4761,6 @@
|
|
|
4964
4761
|
"swt"
|
|
4965
4762
|
]
|
|
4966
4763
|
},
|
|
4967
|
-
"ID": {
|
|
4968
|
-
"title": "Address Identifier",
|
|
4969
|
-
"type": "string",
|
|
4970
|
-
"description": "Global unique internally generated identifier for an address"
|
|
4971
|
-
},
|
|
4972
|
-
"AddressSuggestion": {
|
|
4973
|
-
"title": "Address Suggestion",
|
|
4974
|
-
"description": "Represents an address suggestion for any address in the world",
|
|
4975
|
-
"type": "object",
|
|
4976
|
-
"required": [
|
|
4977
|
-
"id",
|
|
4978
|
-
"suggestion",
|
|
4979
|
-
"urls"
|
|
4980
|
-
],
|
|
4981
|
-
"example": {
|
|
4982
|
-
"id": "usps_V210079628|10||3797",
|
|
4983
|
-
"suggestion": "10 Downing St, Montpelier, VT, 05602",
|
|
4984
|
-
"urls": {}
|
|
4985
|
-
},
|
|
4986
|
-
"properties": {
|
|
4987
|
-
"id": {
|
|
4988
|
-
"$ref": "#/components/schemas/ID"
|
|
4989
|
-
},
|
|
4990
|
-
"suggestion": {
|
|
4991
|
-
"type": "string",
|
|
4992
|
-
"description": "Address Suggestion to be displayed to the user"
|
|
4993
|
-
},
|
|
4994
|
-
"urls": {
|
|
4995
|
-
"title": "URLs",
|
|
4996
|
-
"type": "object",
|
|
4997
|
-
"description": "Always an empty object (`{}`). Retrieve the full address with `id`",
|
|
4998
|
-
"additionalProperties": false
|
|
4999
|
-
}
|
|
5000
|
-
}
|
|
5001
|
-
},
|
|
5002
|
-
"AutocompleteResponse": {
|
|
5003
|
-
"title": "Address Autocomplete Response",
|
|
5004
|
-
"type": "object",
|
|
5005
|
-
"required": [
|
|
5006
|
-
"message",
|
|
5007
|
-
"code",
|
|
5008
|
-
"result"
|
|
5009
|
-
],
|
|
5010
|
-
"properties": {
|
|
5011
|
-
"result": {
|
|
5012
|
-
"type": "object",
|
|
5013
|
-
"required": [
|
|
5014
|
-
"hits"
|
|
5015
|
-
],
|
|
5016
|
-
"properties": {
|
|
5017
|
-
"hits": {
|
|
5018
|
-
"type": "array",
|
|
5019
|
-
"items": {
|
|
5020
|
-
"$ref": "#/components/schemas/AddressSuggestion"
|
|
5021
|
-
}
|
|
5022
|
-
}
|
|
5023
|
-
}
|
|
5024
|
-
},
|
|
5025
|
-
"code": {
|
|
5026
|
-
"type": "integer",
|
|
5027
|
-
"format": "int32",
|
|
5028
|
-
"enum": [
|
|
5029
|
-
2000
|
|
5030
|
-
]
|
|
5031
|
-
},
|
|
5032
|
-
"message": {
|
|
5033
|
-
"type": "string",
|
|
5034
|
-
"enum": [
|
|
5035
|
-
"Success"
|
|
5036
|
-
]
|
|
5037
|
-
}
|
|
5038
|
-
}
|
|
5039
|
-
},
|
|
5040
4764
|
"CountryISO": {
|
|
5041
4765
|
"title": "ISO Country Code (3)",
|
|
5042
4766
|
"type": "string",
|
|
@@ -14257,12 +13981,12 @@
|
|
|
14257
13981
|
"secondary_number": {
|
|
14258
13982
|
"title": "Secondary Number",
|
|
14259
13983
|
"type": "string",
|
|
14260
|
-
"description": "Number of the
|
|
13984
|
+
"description": "Number of the subunit, apartment, suite etc."
|
|
14261
13985
|
},
|
|
14262
13986
|
"plus_4_code": {
|
|
14263
13987
|
"title": "Plus 4 Code",
|
|
14264
13988
|
"type": "string",
|
|
14265
|
-
"description": "4
|
|
13989
|
+
"description": "4-digit ZIP add-on code. USPS addresses only."
|
|
14266
13990
|
},
|
|
14267
13991
|
"line_1": {
|
|
14268
13992
|
"title": "First Address Line",
|
|
@@ -14282,7 +14006,7 @@
|
|
|
14282
14006
|
"zip_code": {
|
|
14283
14007
|
"title": "ZIP Code",
|
|
14284
14008
|
"type": "string",
|
|
14285
|
-
"description": "Postal code identifying the delivery area. For US addresses this is the 5
|
|
14009
|
+
"description": "Postal code identifying the delivery area. For US addresses this is the 5-digit ZIP Code."
|
|
14286
14010
|
},
|
|
14287
14011
|
"zip_plus_4_code": {
|
|
14288
14012
|
"title": "ZIP + 4 Code",
|
|
@@ -14312,7 +14036,7 @@
|
|
|
14312
14036
|
"carrier_route_id": {
|
|
14313
14037
|
"title": "Carrier Route ID",
|
|
14314
14038
|
"type": "string",
|
|
14315
|
-
"description": "A 4
|
|
14039
|
+
"description": "A 4-character ID identifying the USPS postal route for the address. The first character indicates the route type:\n\n- \"B\" indicates PO Box\n- \"H\" indicates highway\n- \"C\" indicates city\n- \"G\" indicates general\n- \"R\" indicates rural"
|
|
14316
14040
|
},
|
|
14317
14041
|
"street_pre_directional_abbreviation": {
|
|
14318
14042
|
"title": "Street Pre-Directional Abbreviation",
|
|
@@ -14381,7 +14105,7 @@
|
|
|
14381
14105
|
"state_abbreviation": {
|
|
14382
14106
|
"title": "State Abbreviation",
|
|
14383
14107
|
"type": "string",
|
|
14384
|
-
"description": "Abbreviated name of the state, province or region. For US addresses this is the 2
|
|
14108
|
+
"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)."
|
|
14385
14109
|
},
|
|
14386
14110
|
"state": {
|
|
14387
14111
|
"title": "State",
|
|
@@ -14550,80 +14274,402 @@
|
|
|
14550
14274
|
"county_number": 103
|
|
14551
14275
|
}
|
|
14552
14276
|
},
|
|
14553
|
-
"
|
|
14554
|
-
"title": "Address
|
|
14277
|
+
"UsaVerifyMatch": {
|
|
14278
|
+
"title": "Address Match",
|
|
14555
14279
|
"type": "object",
|
|
14556
14280
|
"required": [
|
|
14557
|
-
"
|
|
14558
|
-
"
|
|
14559
|
-
"
|
|
14281
|
+
"query",
|
|
14282
|
+
"query_city",
|
|
14283
|
+
"query_state",
|
|
14284
|
+
"query_zip_code",
|
|
14285
|
+
"match",
|
|
14286
|
+
"count",
|
|
14287
|
+
"fit",
|
|
14288
|
+
"confidence",
|
|
14289
|
+
"match_information",
|
|
14290
|
+
"address_line_one",
|
|
14291
|
+
"address_line_two",
|
|
14292
|
+
"city",
|
|
14293
|
+
"state",
|
|
14294
|
+
"zip_code",
|
|
14295
|
+
"country_iso_2"
|
|
14560
14296
|
],
|
|
14561
14297
|
"properties": {
|
|
14562
|
-
"
|
|
14563
|
-
"type": "
|
|
14564
|
-
"
|
|
14565
|
-
"enum": [
|
|
14566
|
-
2000
|
|
14567
|
-
]
|
|
14298
|
+
"query": {
|
|
14299
|
+
"type": "string",
|
|
14300
|
+
"description": "Submitted query"
|
|
14568
14301
|
},
|
|
14569
|
-
"
|
|
14302
|
+
"query_city": {
|
|
14570
14303
|
"type": "string",
|
|
14571
|
-
"
|
|
14572
|
-
"Success"
|
|
14573
|
-
]
|
|
14304
|
+
"description": "Submitted city"
|
|
14574
14305
|
},
|
|
14575
|
-
"
|
|
14576
|
-
"
|
|
14306
|
+
"query_state": {
|
|
14307
|
+
"type": "string",
|
|
14308
|
+
"description": "Submitted state"
|
|
14309
|
+
},
|
|
14310
|
+
"query_zip_code": {
|
|
14311
|
+
"type": "string",
|
|
14312
|
+
"description": "Submitted zip_code"
|
|
14313
|
+
},
|
|
14314
|
+
"match": {
|
|
14315
|
+
"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`\n",
|
|
14316
|
+
"oneOf": [
|
|
14317
|
+
{
|
|
14318
|
+
"$ref": "#/components/schemas/UsaCassVerifiedAddress"
|
|
14319
|
+
},
|
|
14577
14320
|
{
|
|
14578
14321
|
"$ref": "#/components/schemas/Address"
|
|
14579
14322
|
}
|
|
14580
14323
|
]
|
|
14324
|
+
},
|
|
14325
|
+
"count": {
|
|
14326
|
+
"type": "number",
|
|
14327
|
+
"description": "The number of addresses we matched to the input. We return the closest match by default.\n",
|
|
14328
|
+
"maximum": 10,
|
|
14329
|
+
"minimum": 0
|
|
14330
|
+
},
|
|
14331
|
+
"fit": {
|
|
14332
|
+
"type": "number",
|
|
14333
|
+
"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.\n",
|
|
14334
|
+
"maximum": 1,
|
|
14335
|
+
"minimum": 0
|
|
14336
|
+
},
|
|
14337
|
+
"confidence": {
|
|
14338
|
+
"type": "number",
|
|
14339
|
+
"maximum": 1,
|
|
14340
|
+
"minimum": 0,
|
|
14341
|
+
"description": "A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements.\n"
|
|
14342
|
+
},
|
|
14343
|
+
"match_information": {
|
|
14344
|
+
"type": "string",
|
|
14345
|
+
"description": "Additional information about the match.\n\nThis information is for human consumption and may not be present in all responses.\n",
|
|
14346
|
+
"example": "Single Response - The delivery address was found in the National Database and no further information was required."
|
|
14347
|
+
},
|
|
14348
|
+
"address_line_one": {
|
|
14349
|
+
"type": "string",
|
|
14350
|
+
"description": "Primary delivery address\n",
|
|
14351
|
+
"example": "123 Main St"
|
|
14352
|
+
},
|
|
14353
|
+
"address_line_two": {
|
|
14354
|
+
"type": "string",
|
|
14355
|
+
"description": "Secondary address information\n",
|
|
14356
|
+
"example": ""
|
|
14357
|
+
},
|
|
14358
|
+
"city": {
|
|
14359
|
+
"type": "string",
|
|
14360
|
+
"description": "City name\n",
|
|
14361
|
+
"example": "Springfield"
|
|
14362
|
+
},
|
|
14363
|
+
"state": {
|
|
14364
|
+
"type": "string",
|
|
14365
|
+
"description": "State name\n",
|
|
14366
|
+
"example": "CO"
|
|
14367
|
+
},
|
|
14368
|
+
"zip_code": {
|
|
14369
|
+
"type": "string",
|
|
14370
|
+
"description": "ZIP code\n",
|
|
14371
|
+
"example": "81073-1119"
|
|
14372
|
+
},
|
|
14373
|
+
"country_iso_2": {
|
|
14374
|
+
"type": "string",
|
|
14375
|
+
"description": "2-letter ISO country code\n",
|
|
14376
|
+
"example": "US"
|
|
14581
14377
|
}
|
|
14582
14378
|
}
|
|
14583
14379
|
},
|
|
14584
|
-
"
|
|
14585
|
-
"title": "ID",
|
|
14586
|
-
"type": "string",
|
|
14587
|
-
"description": "Unique identifier for place\n",
|
|
14588
|
-
"example": "geonames_7296662"
|
|
14589
|
-
},
|
|
14590
|
-
"place_name": {
|
|
14591
|
-
"title": "Place Name",
|
|
14592
|
-
"type": "string",
|
|
14593
|
-
"description": "Place name\n",
|
|
14594
|
-
"example": "Strumpshaw"
|
|
14595
|
-
},
|
|
14596
|
-
"place_descriptive_name": {
|
|
14597
|
-
"title": "Descriptive Place Name",
|
|
14598
|
-
"type": "string",
|
|
14599
|
-
"description": "Longer form description of the place.\n",
|
|
14600
|
-
"example": "Strumpshaw, Norfolk, England"
|
|
14601
|
-
},
|
|
14602
|
-
"place_country_iso": {
|
|
14603
|
-
"title": "Country",
|
|
14604
|
-
"type": "string",
|
|
14605
|
-
"description": " 3 letter country code (ISO 3166-1)\n",
|
|
14606
|
-
"example": "GBR"
|
|
14607
|
-
},
|
|
14608
|
-
"PlaceSuggestion": {
|
|
14609
|
-
"title": "Place Suggestion",
|
|
14610
|
-
"description": "Represents a possible place given an autocomplete query.\n",
|
|
14380
|
+
"UsaVerifyNoMatch": {
|
|
14611
14381
|
"type": "object",
|
|
14382
|
+
"title": "No Address Match",
|
|
14612
14383
|
"required": [
|
|
14613
|
-
"
|
|
14614
|
-
"
|
|
14615
|
-
"
|
|
14616
|
-
"
|
|
14384
|
+
"query",
|
|
14385
|
+
"query_city",
|
|
14386
|
+
"query_state",
|
|
14387
|
+
"query_zip_code",
|
|
14388
|
+
"match",
|
|
14389
|
+
"count",
|
|
14390
|
+
"fit",
|
|
14391
|
+
"confidence",
|
|
14392
|
+
"match_information",
|
|
14393
|
+
"address_line_one",
|
|
14394
|
+
"address_line_two",
|
|
14395
|
+
"city",
|
|
14396
|
+
"state",
|
|
14397
|
+
"zip_code",
|
|
14398
|
+
"country_iso_2"
|
|
14617
14399
|
],
|
|
14618
14400
|
"properties": {
|
|
14619
|
-
"
|
|
14620
|
-
"
|
|
14621
|
-
|
|
14622
|
-
"name": {
|
|
14623
|
-
"$ref": "#/components/schemas/place_name"
|
|
14401
|
+
"query": {
|
|
14402
|
+
"type": "string",
|
|
14403
|
+
"description": "Originally submitted query"
|
|
14624
14404
|
},
|
|
14625
|
-
"
|
|
14626
|
-
"
|
|
14405
|
+
"query_city": {
|
|
14406
|
+
"type": "string",
|
|
14407
|
+
"description": "Originally submitted city"
|
|
14408
|
+
},
|
|
14409
|
+
"query_state": {
|
|
14410
|
+
"type": "string",
|
|
14411
|
+
"description": "Originally submitted state"
|
|
14412
|
+
},
|
|
14413
|
+
"query_zip_code": {
|
|
14414
|
+
"type": "string",
|
|
14415
|
+
"description": "Originally submitted zip_code"
|
|
14416
|
+
},
|
|
14417
|
+
"match": {
|
|
14418
|
+
"description": "Nearest matching address",
|
|
14419
|
+
"type": "object",
|
|
14420
|
+
"nullable": true,
|
|
14421
|
+
"enum": [
|
|
14422
|
+
null
|
|
14423
|
+
]
|
|
14424
|
+
},
|
|
14425
|
+
"count": {
|
|
14426
|
+
"type": "number",
|
|
14427
|
+
"description": "",
|
|
14428
|
+
"enum": [
|
|
14429
|
+
0
|
|
14430
|
+
]
|
|
14431
|
+
},
|
|
14432
|
+
"fit": {
|
|
14433
|
+
"type": "number",
|
|
14434
|
+
"format": "float",
|
|
14435
|
+
"description": "",
|
|
14436
|
+
"enum": [
|
|
14437
|
+
0
|
|
14438
|
+
]
|
|
14439
|
+
},
|
|
14440
|
+
"confidence": {
|
|
14441
|
+
"type": "number",
|
|
14442
|
+
"format": "float",
|
|
14443
|
+
"description": "",
|
|
14444
|
+
"enum": [
|
|
14445
|
+
0
|
|
14446
|
+
]
|
|
14447
|
+
},
|
|
14448
|
+
"match_information": {
|
|
14449
|
+
"type": "string",
|
|
14450
|
+
"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`.\n\nThe wording may change, so do not parse it. Test `match` for `null` instead.\n",
|
|
14451
|
+
"example": "Address not found"
|
|
14452
|
+
},
|
|
14453
|
+
"address_line_one": {
|
|
14454
|
+
"type": "string",
|
|
14455
|
+
"description": "Empty if no match\n",
|
|
14456
|
+
"enum": [
|
|
14457
|
+
""
|
|
14458
|
+
]
|
|
14459
|
+
},
|
|
14460
|
+
"address_line_two": {
|
|
14461
|
+
"type": "string",
|
|
14462
|
+
"description": "Empty if no match\n",
|
|
14463
|
+
"enum": [
|
|
14464
|
+
""
|
|
14465
|
+
]
|
|
14466
|
+
},
|
|
14467
|
+
"city": {
|
|
14468
|
+
"type": "string",
|
|
14469
|
+
"description": "Empty if no match\n",
|
|
14470
|
+
"enum": [
|
|
14471
|
+
""
|
|
14472
|
+
]
|
|
14473
|
+
},
|
|
14474
|
+
"state": {
|
|
14475
|
+
"type": "string",
|
|
14476
|
+
"description": "Empty if no match\n",
|
|
14477
|
+
"enum": [
|
|
14478
|
+
""
|
|
14479
|
+
]
|
|
14480
|
+
},
|
|
14481
|
+
"zip_code": {
|
|
14482
|
+
"type": "string",
|
|
14483
|
+
"description": "Empty if no match\n",
|
|
14484
|
+
"enum": [
|
|
14485
|
+
""
|
|
14486
|
+
]
|
|
14487
|
+
},
|
|
14488
|
+
"country_iso_2": {
|
|
14489
|
+
"type": "string",
|
|
14490
|
+
"description": "Empty if no match\n",
|
|
14491
|
+
"enum": [
|
|
14492
|
+
""
|
|
14493
|
+
]
|
|
14494
|
+
}
|
|
14495
|
+
}
|
|
14496
|
+
},
|
|
14497
|
+
"VerifyResponse": {
|
|
14498
|
+
"title": "Address Verify Response",
|
|
14499
|
+
"type": "object",
|
|
14500
|
+
"required": [
|
|
14501
|
+
"message",
|
|
14502
|
+
"code",
|
|
14503
|
+
"result"
|
|
14504
|
+
],
|
|
14505
|
+
"properties": {
|
|
14506
|
+
"code": {
|
|
14507
|
+
"type": "integer",
|
|
14508
|
+
"format": "int32",
|
|
14509
|
+
"enum": [
|
|
14510
|
+
2000
|
|
14511
|
+
]
|
|
14512
|
+
},
|
|
14513
|
+
"message": {
|
|
14514
|
+
"type": "string",
|
|
14515
|
+
"enum": [
|
|
14516
|
+
"Success"
|
|
14517
|
+
]
|
|
14518
|
+
},
|
|
14519
|
+
"result": {
|
|
14520
|
+
"oneOf": [
|
|
14521
|
+
{
|
|
14522
|
+
"$ref": "#/components/schemas/UsaVerifyMatch"
|
|
14523
|
+
},
|
|
14524
|
+
{
|
|
14525
|
+
"$ref": "#/components/schemas/UsaVerifyNoMatch"
|
|
14526
|
+
}
|
|
14527
|
+
]
|
|
14528
|
+
}
|
|
14529
|
+
}
|
|
14530
|
+
},
|
|
14531
|
+
"AddressSuggestion": {
|
|
14532
|
+
"title": "Address Suggestion",
|
|
14533
|
+
"description": "Represents an address suggestion for any address in the world",
|
|
14534
|
+
"type": "object",
|
|
14535
|
+
"required": [
|
|
14536
|
+
"id",
|
|
14537
|
+
"suggestion",
|
|
14538
|
+
"urls"
|
|
14539
|
+
],
|
|
14540
|
+
"example": {
|
|
14541
|
+
"id": "usps_V210079628|10||3797",
|
|
14542
|
+
"suggestion": "10 Downing St, Montpelier, VT, 05602",
|
|
14543
|
+
"urls": {}
|
|
14544
|
+
},
|
|
14545
|
+
"properties": {
|
|
14546
|
+
"id": {
|
|
14547
|
+
"$ref": "#/components/schemas/ID"
|
|
14548
|
+
},
|
|
14549
|
+
"suggestion": {
|
|
14550
|
+
"type": "string",
|
|
14551
|
+
"description": "Address Suggestion to be displayed to the user"
|
|
14552
|
+
},
|
|
14553
|
+
"urls": {
|
|
14554
|
+
"title": "URLs",
|
|
14555
|
+
"type": "object",
|
|
14556
|
+
"description": "Always an empty object (`{}`). Retrieve the full address with `id`",
|
|
14557
|
+
"additionalProperties": false
|
|
14558
|
+
}
|
|
14559
|
+
}
|
|
14560
|
+
},
|
|
14561
|
+
"AutocompleteResponse": {
|
|
14562
|
+
"title": "Address Autocomplete Response",
|
|
14563
|
+
"type": "object",
|
|
14564
|
+
"required": [
|
|
14565
|
+
"message",
|
|
14566
|
+
"code",
|
|
14567
|
+
"result"
|
|
14568
|
+
],
|
|
14569
|
+
"properties": {
|
|
14570
|
+
"result": {
|
|
14571
|
+
"type": "object",
|
|
14572
|
+
"required": [
|
|
14573
|
+
"hits"
|
|
14574
|
+
],
|
|
14575
|
+
"properties": {
|
|
14576
|
+
"hits": {
|
|
14577
|
+
"type": "array",
|
|
14578
|
+
"items": {
|
|
14579
|
+
"$ref": "#/components/schemas/AddressSuggestion"
|
|
14580
|
+
}
|
|
14581
|
+
}
|
|
14582
|
+
}
|
|
14583
|
+
},
|
|
14584
|
+
"code": {
|
|
14585
|
+
"type": "integer",
|
|
14586
|
+
"format": "int32",
|
|
14587
|
+
"enum": [
|
|
14588
|
+
2000
|
|
14589
|
+
]
|
|
14590
|
+
},
|
|
14591
|
+
"message": {
|
|
14592
|
+
"type": "string",
|
|
14593
|
+
"enum": [
|
|
14594
|
+
"Success"
|
|
14595
|
+
]
|
|
14596
|
+
}
|
|
14597
|
+
}
|
|
14598
|
+
},
|
|
14599
|
+
"UsaResolveAddressResponse": {
|
|
14600
|
+
"title": "Address Retrieve Response",
|
|
14601
|
+
"type": "object",
|
|
14602
|
+
"required": [
|
|
14603
|
+
"message",
|
|
14604
|
+
"code",
|
|
14605
|
+
"result"
|
|
14606
|
+
],
|
|
14607
|
+
"properties": {
|
|
14608
|
+
"code": {
|
|
14609
|
+
"type": "integer",
|
|
14610
|
+
"format": "int32",
|
|
14611
|
+
"enum": [
|
|
14612
|
+
2000
|
|
14613
|
+
]
|
|
14614
|
+
},
|
|
14615
|
+
"message": {
|
|
14616
|
+
"type": "string",
|
|
14617
|
+
"enum": [
|
|
14618
|
+
"Success"
|
|
14619
|
+
]
|
|
14620
|
+
},
|
|
14621
|
+
"result": {
|
|
14622
|
+
"allOf": [
|
|
14623
|
+
{
|
|
14624
|
+
"$ref": "#/components/schemas/Address"
|
|
14625
|
+
}
|
|
14626
|
+
]
|
|
14627
|
+
}
|
|
14628
|
+
}
|
|
14629
|
+
},
|
|
14630
|
+
"place_id": {
|
|
14631
|
+
"title": "ID",
|
|
14632
|
+
"type": "string",
|
|
14633
|
+
"description": "Unique identifier for place\n",
|
|
14634
|
+
"example": "geonames_7296662"
|
|
14635
|
+
},
|
|
14636
|
+
"place_name": {
|
|
14637
|
+
"title": "Place Name",
|
|
14638
|
+
"type": "string",
|
|
14639
|
+
"description": "Place name\n",
|
|
14640
|
+
"example": "Strumpshaw"
|
|
14641
|
+
},
|
|
14642
|
+
"place_descriptive_name": {
|
|
14643
|
+
"title": "Descriptive Place Name",
|
|
14644
|
+
"type": "string",
|
|
14645
|
+
"description": "Longer form description of the place.\n",
|
|
14646
|
+
"example": "Strumpshaw, Norfolk, England"
|
|
14647
|
+
},
|
|
14648
|
+
"place_country_iso": {
|
|
14649
|
+
"title": "Country",
|
|
14650
|
+
"type": "string",
|
|
14651
|
+
"description": " 3 letter country code (ISO 3166-1)\n",
|
|
14652
|
+
"example": "GBR"
|
|
14653
|
+
},
|
|
14654
|
+
"PlaceSuggestion": {
|
|
14655
|
+
"title": "Place Suggestion",
|
|
14656
|
+
"description": "Represents a possible place given an autocomplete query.\n",
|
|
14657
|
+
"type": "object",
|
|
14658
|
+
"required": [
|
|
14659
|
+
"id",
|
|
14660
|
+
"name",
|
|
14661
|
+
"descriptive_name",
|
|
14662
|
+
"country_iso"
|
|
14663
|
+
],
|
|
14664
|
+
"properties": {
|
|
14665
|
+
"id": {
|
|
14666
|
+
"$ref": "#/components/schemas/place_id"
|
|
14667
|
+
},
|
|
14668
|
+
"name": {
|
|
14669
|
+
"$ref": "#/components/schemas/place_name"
|
|
14670
|
+
},
|
|
14671
|
+
"descriptive_name": {
|
|
14672
|
+
"$ref": "#/components/schemas/place_descriptive_name"
|
|
14627
14673
|
},
|
|
14628
14674
|
"country_iso": {
|
|
14629
14675
|
"$ref": "#/components/schemas/place_country_iso"
|
|
@@ -14915,7 +14961,7 @@
|
|
|
14915
14961
|
"id": {
|
|
14916
14962
|
"title": "Place Identifier",
|
|
14917
14963
|
"type": "string",
|
|
14918
|
-
"description": "
|
|
14964
|
+
"description": "Globally unique internally generated identifier for a place"
|
|
14919
14965
|
},
|
|
14920
14966
|
"dataset": {
|
|
14921
14967
|
"title": "Dataset",
|
|
@@ -15019,11 +15065,35 @@
|
|
|
15019
15065
|
}
|
|
15020
15066
|
}
|
|
15021
15067
|
},
|
|
15022
|
-
"
|
|
15068
|
+
"Licensee": {
|
|
15023
15069
|
"title": "Licensee",
|
|
15024
|
-
"description": "Licensee object which can be defined by user",
|
|
15025
15070
|
"type": "object",
|
|
15071
|
+
"required": [
|
|
15072
|
+
"id",
|
|
15073
|
+
"key",
|
|
15074
|
+
"createdAt",
|
|
15075
|
+
"name",
|
|
15076
|
+
"address",
|
|
15077
|
+
"postcode",
|
|
15078
|
+
"whitelist",
|
|
15079
|
+
"daily"
|
|
15080
|
+
],
|
|
15026
15081
|
"properties": {
|
|
15082
|
+
"id": {
|
|
15083
|
+
"type": "string",
|
|
15084
|
+
"example": "56a11209ebe230380bf104c3",
|
|
15085
|
+
"description": "An immutable ID provided for every licensee. Primarily used for paginated list requests.\n"
|
|
15086
|
+
},
|
|
15087
|
+
"key": {
|
|
15088
|
+
"type": "string",
|
|
15089
|
+
"example": "sl_ijoiqsxeQgXW2gkiE0X94",
|
|
15090
|
+
"description": "Uniquely identifies a licensee for a key.\n\nRequired to perform paid lookups for a specific licensee. Typically begins `sl_`.\n"
|
|
15091
|
+
},
|
|
15092
|
+
"createdAt": {
|
|
15093
|
+
"type": "string",
|
|
15094
|
+
"example": "2016-01-21T17:14:49.971Z",
|
|
15095
|
+
"description": "Timestamp for when the licensee was created"
|
|
15096
|
+
},
|
|
15027
15097
|
"name": {
|
|
15028
15098
|
"type": "string",
|
|
15029
15099
|
"example": "Qwerty Widgets Limited",
|
|
@@ -15049,6 +15119,11 @@
|
|
|
15049
15119
|
},
|
|
15050
15120
|
"daily": {
|
|
15051
15121
|
"type": "object",
|
|
15122
|
+
"required": [
|
|
15123
|
+
"limit",
|
|
15124
|
+
"count",
|
|
15125
|
+
"updatedAt"
|
|
15126
|
+
],
|
|
15052
15127
|
"properties": {
|
|
15053
15128
|
"limit": {
|
|
15054
15129
|
"example": 10000,
|
|
@@ -15058,69 +15133,22 @@
|
|
|
15058
15133
|
"format": "int32",
|
|
15059
15134
|
"type": "number",
|
|
15060
15135
|
"description": "The maximum number of lookups this licensee can perform in a day. `null` indicates the limit is not active"
|
|
15061
|
-
}
|
|
15062
|
-
}
|
|
15063
|
-
}
|
|
15064
|
-
}
|
|
15065
|
-
},
|
|
15066
|
-
"Licensee": {
|
|
15067
|
-
"title": "Licensee",
|
|
15068
|
-
"allOf": [
|
|
15069
|
-
{
|
|
15070
|
-
"$ref": "#/components/schemas/LicenseeEditable"
|
|
15071
|
-
},
|
|
15072
|
-
{
|
|
15073
|
-
"type": "object",
|
|
15074
|
-
"required": [
|
|
15075
|
-
"id",
|
|
15076
|
-
"key",
|
|
15077
|
-
"createdAt",
|
|
15078
|
-
"name",
|
|
15079
|
-
"address",
|
|
15080
|
-
"postcode",
|
|
15081
|
-
"whitelist",
|
|
15082
|
-
"daily"
|
|
15083
|
-
],
|
|
15084
|
-
"properties": {
|
|
15085
|
-
"id": {
|
|
15086
|
-
"type": "string",
|
|
15087
|
-
"example": "56a11209ebe230380bf104c3",
|
|
15088
|
-
"description": "An immutable ID provided for every licensee. Primarily used for paginated list requests.\n"
|
|
15089
15136
|
},
|
|
15090
|
-
"
|
|
15091
|
-
"
|
|
15092
|
-
"
|
|
15093
|
-
"
|
|
15137
|
+
"count": {
|
|
15138
|
+
"example": 232,
|
|
15139
|
+
"minimum": 0,
|
|
15140
|
+
"type": "number",
|
|
15141
|
+
"format": "int32",
|
|
15142
|
+
"description": "The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`"
|
|
15094
15143
|
},
|
|
15095
|
-
"
|
|
15144
|
+
"updatedAt": {
|
|
15096
15145
|
"type": "string",
|
|
15097
|
-
"example": "2016-
|
|
15098
|
-
"description": "
|
|
15099
|
-
},
|
|
15100
|
-
"daily": {
|
|
15101
|
-
"required": [
|
|
15102
|
-
"count",
|
|
15103
|
-
"updatedAt"
|
|
15104
|
-
],
|
|
15105
|
-
"type": "object",
|
|
15106
|
-
"properties": {
|
|
15107
|
-
"count": {
|
|
15108
|
-
"example": 232,
|
|
15109
|
-
"minimum": 0,
|
|
15110
|
-
"type": "number",
|
|
15111
|
-
"format": "int32",
|
|
15112
|
-
"description": "The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`"
|
|
15113
|
-
},
|
|
15114
|
-
"updatedAt": {
|
|
15115
|
-
"type": "string",
|
|
15116
|
-
"example": "2016-08-05T16:43:28.865Z",
|
|
15117
|
-
"description": "The timestamp when the limit was last used."
|
|
15118
|
-
}
|
|
15119
|
-
}
|
|
15146
|
+
"example": "2016-08-05T16:43:28.865Z",
|
|
15147
|
+
"description": "The timestamp when the limit was last used."
|
|
15120
15148
|
}
|
|
15121
15149
|
}
|
|
15122
15150
|
}
|
|
15123
|
-
|
|
15151
|
+
}
|
|
15124
15152
|
},
|
|
15125
15153
|
"LicenseesResponse": {
|
|
15126
15154
|
"title": "Licensee List Response",
|
|
@@ -15134,6 +15162,10 @@
|
|
|
15134
15162
|
"result": {
|
|
15135
15163
|
"description": "List of licensees",
|
|
15136
15164
|
"type": "object",
|
|
15165
|
+
"required": [
|
|
15166
|
+
"licensees",
|
|
15167
|
+
"hasMore"
|
|
15168
|
+
],
|
|
15137
15169
|
"properties": {
|
|
15138
15170
|
"licensees": {
|
|
15139
15171
|
"type": "array",
|
|
@@ -15162,6 +15194,50 @@
|
|
|
15162
15194
|
}
|
|
15163
15195
|
}
|
|
15164
15196
|
},
|
|
15197
|
+
"LicenseeEditable": {
|
|
15198
|
+
"title": "Licensee",
|
|
15199
|
+
"description": "Licensee object which can be defined by user",
|
|
15200
|
+
"type": "object",
|
|
15201
|
+
"properties": {
|
|
15202
|
+
"name": {
|
|
15203
|
+
"type": "string",
|
|
15204
|
+
"example": "Qwerty Widgets Limited",
|
|
15205
|
+
"description": "Licensee individual or organisation name"
|
|
15206
|
+
},
|
|
15207
|
+
"address": {
|
|
15208
|
+
"example": "12 High Street, Manchester",
|
|
15209
|
+
"type": "string",
|
|
15210
|
+
"description": "Licensee's first, second and third line address as well as post town concatenated by commas"
|
|
15211
|
+
},
|
|
15212
|
+
"postcode": {
|
|
15213
|
+
"example": "BR8 7RE",
|
|
15214
|
+
"type": "string",
|
|
15215
|
+
"description": "Licensee's postcode"
|
|
15216
|
+
},
|
|
15217
|
+
"whitelist": {
|
|
15218
|
+
"type": "array",
|
|
15219
|
+
"items": {
|
|
15220
|
+
"type": "string",
|
|
15221
|
+
"example": "https://www.example.com"
|
|
15222
|
+
},
|
|
15223
|
+
"description": "A list of allowed URLs. An empty list disables the check.\n\nA request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:\n\n- `https://www.example.com` allows one site. Scheme and host must match\n- `*.example.com` allows the domain and all its subdomains"
|
|
15224
|
+
},
|
|
15225
|
+
"daily": {
|
|
15226
|
+
"type": "object",
|
|
15227
|
+
"properties": {
|
|
15228
|
+
"limit": {
|
|
15229
|
+
"example": 10000,
|
|
15230
|
+
"x-nullable": true,
|
|
15231
|
+
"nullable": true,
|
|
15232
|
+
"minimum": 0,
|
|
15233
|
+
"format": "int32",
|
|
15234
|
+
"type": "number",
|
|
15235
|
+
"description": "The maximum number of lookups this licensee can perform in a day. `null` indicates the limit is not active"
|
|
15236
|
+
}
|
|
15237
|
+
}
|
|
15238
|
+
}
|
|
15239
|
+
}
|
|
15240
|
+
},
|
|
15165
15241
|
"LicenseeResponse": {
|
|
15166
15242
|
"title": "Licensee Response",
|
|
15167
15243
|
"type": "object",
|
|
@@ -15202,12 +15278,12 @@
|
|
|
15202
15278
|
"updatedAt": {
|
|
15203
15279
|
"type": "string",
|
|
15204
15280
|
"example": "2016-01-21T17:14:49.971Z",
|
|
15205
|
-
"description": "Timestamp for when the config was
|
|
15281
|
+
"description": "Timestamp for when the config was last updated"
|
|
15206
15282
|
},
|
|
15207
15283
|
"createdAt": {
|
|
15208
15284
|
"type": "string",
|
|
15209
15285
|
"example": "2016-01-21T17:14:49.971Z",
|
|
15210
|
-
"description": "Timestamp for when the config was
|
|
15286
|
+
"description": "Timestamp for when the config was created"
|
|
15211
15287
|
},
|
|
15212
15288
|
"name": {
|
|
15213
15289
|
"type": "string",
|