@addresszen/openapi 3.4.0 → 3.5.1

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/openapi.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "4.11.0",
4
+ "version": "3.5.1",
5
5
  "license": {
6
6
  "name": "AGPLv3",
7
7
  "url": "https://opensource.org/licenses/AGPL-3.0"
8
8
  },
9
9
  "title": "API Reference",
10
10
  "termsOfService": "https://terms.addresszen.com",
11
- "description": "## Getting Started\n\nAll API methods are either a `GET`, `POST` or `OPTIONS` request.\n\nThe API communicates over both HTTPS and plain HTTP using IPv4 and IPv6.\n\nWe recommend using HTTPS only although HTTP is available.\n\nWe use appropriate HTTP status codes where possible to indicate the request status.\n\n## OpenAPI Spec\n\nOur OpenAPI specification is available at:\n\n- [Github Repository](https://github.com/ideal-postcodes/openapi)\n- [API Reference](https://openapi.addresszen.com)\n- [OpenAPI v3 JSON File](https://openapi.addresszen.com/openapi.json)\n- [OpenAPI v3 YAML File](https://openapi.addresszen.com/openapi.yaml)\n- [NPM Package](https://www.npmjs.com/package/@ideal-postcodes/openapi)\n\n## Rate Limiting\n\nEach IP address is rate limited at 30 requests per second. Tripping the rate limit will result in a 503 response.\n\nThe autocomplete API also has an additional rate limit.\n\nIf you expect to breach the limit please contact us and we can move you to an endpoint with a higher limit.\n\n## Authentication\n\nMost requests require an **API key** for authentication. Authenticate by passing an `api_key` as part of the query string. For example:\n\n```\napi.addresszen.com/v1/autocomplete/addresses?api_key=iddqd&q=parkside\n```\n\nAlternatively, authentication can be transmitted via the `Authorization` header using the following scheme:\n\n```\nAuthorization: api_key=\"iddqd\" [other_key=\"foo\"]\n```\n\n## Versioning\n\nThis API is versioned with a simple prefix in the URL. The current version is `/v1/`. We will maintain backwards-compatibility by releasing breaking changes under a new version.\n\nPlease note that the following changes are backwards-compatible:\n\n- Adding new properties to existing API responses\n- Adding new API endpoints\n- Adding new optional request parameters to existing API endpoints\n- Changing the order of properties in existing API responses\n- Changing the autocomplete address suggestion format\n\n## Error Handling\n\nA successful lookup is accompanied with a HTTP status code of 200 and a response code of 2000 (found in the body).\n\nAn error has occurred if the HTTP status code is not 200. Errors can range from a benign 404 (resource not found) to more urgent errors (your API Key ran out of credit, failed authentication, etc).\n\n## Testing\n\nEach new account comes with a free test balance. Contact us if you need more for testing and integration.\n\n## Metadata\n\nRequests that affect your balance may be annotated with arbitrary metadata. This data is stored along with your lookup history and can be queried at a later date via the API or the dashboard. We call the ability to label your requests [tagging](https://docs.addresszen.com/docs/guides/tags).\n\n## Response Codes\n\nThe API returns two indicators to help you to determine the status of each HTTP request.\n\nThe first is the **HTTP Status**, which is found in the status-line of all HTTP requests. The API will return status codes that adhere to HTTP /1.1 Specifications wherever possible.\n\n`2XX` status codes indicates success while `4XX` and `5XX` indicate client and server errors respectively.\n\nThe second is the **API response code**, which can be found in the `code` property of the response body. This code will provide a more specific reason if a failure has occurred and can point you in the right direction when debugging.\n",
11
+ "description": "## Getting Started\n\nAll API methods are either a `GET`, `POST` or `OPTIONS` request.\n\nThe API communicates over both HTTPS and plain HTTP using IPv4 and IPv6.\n\nWe recommend using HTTPS only although HTTP is available.\n\nWe use appropriate HTTP status codes where possible to indicate the request status.\n\n## OpenAPI Spec\n\nOur OpenAPI specification is available at:\n\n- [Github Repository](https://github.com/addresszen/openapi)\n- [API Reference](https://openapi.addresszen.com)\n- [OpenAPI v3 JSON File](https://openapi.addresszen.com/openapi.json)\n- [OpenAPI v3 YAML File](https://openapi.addresszen.com/openapi.yaml)\n- [NPM Package](https://www.npmjs.com/package/@addresszen/openapi)\n\n## Rate Limiting\n\nEach IP address is rate limited at 30 requests per second. Tripping the rate limit will result in a 503 response.\n\nThe autocomplete API also has an additional rate limit.\n\nIf you expect to breach the limit please contact us and we can move you to an endpoint with a higher limit.\n\n## Authentication\n\nMost requests require an **API key** for authentication. Authenticate by passing an `api_key` as part of the query string. For example:\n\n```\napi.addresszen.com/v1/autocomplete/addresses?api_key=iddqd&q=parkside\n```\n\nAlternatively, authentication can be transmitted via the `Authorization` header using the following scheme:\n\n```\nAuthorization: api_key=\"iddqd\" [other_key=\"foo\"]\n```\n\n## Versioning\n\nThis API is versioned with a simple prefix in the URL. The current version is `/v1/`. We will maintain backwards-compatibility by releasing breaking changes under a new version.\n\nPlease note that the following changes are backwards-compatible:\n\n- Adding new properties to existing API responses\n- Adding new API endpoints\n- Adding new optional request parameters to existing API endpoints\n- Changing the order of properties in existing API responses\n- Changing the autocomplete address suggestion format\n\n## Error Handling\n\nA successful lookup is accompanied with a HTTP status code of 200 and a response code of 2000 (found in the body).\n\nAn error has occurred if the HTTP status code is not 200. Errors can range from a benign 404 (resource not found) to more urgent errors (your API Key ran out of credit, failed authentication, etc).\n\n## Testing\n\nEach new account comes with a free test balance. Contact us if you need more for testing and integration.\n\n## Metadata\n\nRequests that affect your balance may be annotated with arbitrary metadata. This data is stored along with your lookup history and can be queried at a later date via the API or the dashboard. We call the ability to label your requests [tagging](https://docs.addresszen.com/docs/guides/tags).\n\n## Response Codes\n\nThe API returns two indicators to help you to determine the status of each HTTP request.\n\nThe first is the **HTTP Status**, which is found in the status-line of all HTTP requests. The API will return status codes that adhere to HTTP /1.1 Specifications wherever possible.\n\n`2XX` status codes indicates success while `4XX` and `5XX` indicate client and server errors respectively.\n\nThe second is the **API response code**, which can be found in the `code` property of the response body. This code will provide a more specific reason if a failure has occurred and can point you in the right direction when debugging.\n",
12
12
  "contact": {
13
13
  "email": "support@addresszen.com",
14
14
  "name": "Support",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  {
43
43
  "name": "Licensees",
44
- "description": "The Licensee resource represents an alternate legal End User of our data who may not be same entity as the owners of the account.\n\nThe concept of Licensees underpins our sublicensing platform, which allows users to license multiple external organisations or individuals to access data under the same account.\n\nSublicensing is ideal for platform vendors, who provide services to multiple clients who in turn each have their own users.\n"
44
+ "description": "The Licensee resource represents an alternate legal End User of our data who may not be the same entity as the owners of the account.\n\nThe concept of Licensees underpins our sublicensing platform, which allows users to license multiple external organisations or individuals to access data under the same account.\n\nSublicensing is ideal for platform vendors, who provide services to multiple clients who in turn each have their own users.\n"
45
45
  },
46
46
  {
47
47
  "name": "Configs",
@@ -95,7 +95,7 @@
95
95
  ],
96
96
  "summary": "Lookup Postcode",
97
97
  "operationId": "Postcodes",
98
- "description": "Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.\n\nThe Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Postcode Lookup driven address searches, like [Postcode Lookup](/postcode-lookup).\n\n## Postcode Not Found\n\nLookup balance is unaffected by invalid postcodes. The API returns a `404` response with response body:\n\n```json\n{\n \"code\": 4040,\n \"message\": \"Postcode not found\",\n \"suggestions\": [\"SW1A 0AA\"]\n}\n```\n\n### Suggestions\n\nIf a postcode cannot be found, the API will provide up to 5 closest matching postcodes. Common errors will be corrected first (e.g. mixing up `O` and `0` or `I` and `1`).\n\nIf the suggestion list is small (fewer than 3), there is a high probability the correct postcode is there. You may notify the user or immediately trigger new searches.\n\nThe suggestion list will be empty if the postcode has deviated too far from a valid postcode format.\n\n## Multiple Residence\n\nA small number of postcodes will return more than 100 premises. These may require pagination. Use `page` to paginate the result set.\n",
98
+ "description": "Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.\n\nThe Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Address Lookup driven address searches, like [Address Lookup](/docs/address-lookup/).\n\n## Postcode Not Found\n\nLookup balance is unaffected by invalid postcodes. The API returns a `404` response with response body:\n\n```json\n{\n \"code\": 4040,\n \"message\": \"Postcode not found\",\n \"suggestions\": [\"SW1A 0AA\"]\n}\n```\n\n### Suggestions\n\nIf a postcode cannot be found, the API will provide up to 5 closest matching postcodes. Common errors will be corrected first (e.g. mixing up `O` and `0` or `I` and `1`).\n\nIf the suggestion list is small (fewer than 3), there is a high probability the correct postcode is there. You may notify the user or immediately trigger new searches.\n\nThe suggestion list will be empty if the postcode has deviated too far from a valid postcode format.\n\n## Multiple Residence\n\nA small number of postcodes will return more than 100 premises. These may require pagination. Use `page` to paginate the result set.\n",
99
99
  "parameters": [
100
100
  {
101
101
  "name": "postcode",
@@ -346,7 +346,7 @@
346
346
  ],
347
347
  "summary": "Retrieve by UMPRN",
348
348
  "operationId": "UMPRN",
349
- "description": "Returns a multiple occupancy address identifited via its UMPRN (Multiple Residence Unique ID).\n\nUMPRNs are a unique numeric code for any Multiple Residence household on the optional Multiple Residence dataset.\n\n## Testing\n\nTo test your implementation of our API we have a range of test UMPRNs that yield both successful and unsuccessful responses to your request. They are the following\n\n- `0` Returns a successful UMPRN lookup response `2000`\n- `-1` Returns \"UMPRN not found\", error `4044`\n- `-2` Returns \"no lookups remaining\", error `4020`\n- `-3` Returns \"daily (or individual) lookup limit breached\", error `4021`\n\nTest request undergo the usual authentication and restriction rules. This is to help surface any issues that occur during implementation and does not cost you a lookup.\n\n### Pricing\n\nPer lookup charges apply. Empty responses are not charged.\n",
349
+ "description": "Returns a multiple occupancy address identified via its UMPRN (Multiple Residence Unique ID).\n\nUMPRNs are a unique numeric code for any Multiple Residence household on the optional Multiple Residence dataset.\n\n## Testing\n\nTo test your implementation of our API we have a range of test UMPRNs that yield both successful and unsuccessful responses to your request. They are the following\n\n- `0` Returns a successful UMPRN lookup response `2000`\n- `-1` Returns \"UMPRN not found\", error `4044`\n- `-2` Returns \"no lookups remaining\", error `4020`\n- `-3` Returns \"daily (or individual) lookup limit breached\", error `4021`\n\nTest request undergo the usual authentication and restriction rules. This is to help surface any issues that occur during implementation and does not cost you a lookup.\n\n### Pricing\n\nPer lookup charges apply. Empty responses are not charged.\n",
350
350
  "parameters": [
351
351
  {
352
352
  "name": "umprn",
@@ -461,7 +461,7 @@
461
461
  ],
462
462
  "summary": "Availability",
463
463
  "operationId": "KeyAvailability",
464
- "description": "Returns public information on your API Key.\n\nThis endpoint can be used for the following:\n- Determine if the key is currently useable via the `available` property\n- Determine available contexts for a an API Key\n- Identify the currently likely context of a user given their location\n\nYou may pass both API Keys (beginning `ak_`) and Sub-licensed Keys (beginning `sl_`).\n",
464
+ "description": "Returns public information on your API Key.\n\nThis endpoint can be used for the following:\n - Determine if the key is currently usable via the `available` property\n - Determine available contexts for an API Key\n- Identify the currently likely context of a user given their location\n\nYou may pass both API Keys (beginning `ak_`) and Sub-licensed Keys (beginning `sl_`).\n",
465
465
  "parameters": [
466
466
  {
467
467
  "$ref": "#/components/parameters/ApiKeyPathParam"
@@ -743,7 +743,7 @@
743
743
  "UK"
744
744
  ],
745
745
  "summary": "Cleanse Address",
746
- "description": "The address cleanse API attempts to return the closest matching address for any given address inputs. We also return a number of Match Level indicators that describe the degree to which the suggested address matches the input address. The more impaired the input address, the harder it is to cleanse.\n\n## Confidence Score\n\nThe confidence score is a number ranging between 0 and 1. Where 1 implies a full match and 0 implies no major elements completely match. Each incorrect, missing or misspelled element will subtract from the overall confidence score.\n\n### Deciding on an Acceptable Confidence Score Threshold\n\nDifferent address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organistation name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.\n\nWhen determining an acceptable Confidence Score threshold you should load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top-to-bottom you will be able to observe matches from best to worst. As you start to hit the lower quality searches, you will be able to roughly determine:\n- Which confidence scores indicate ambigious matches (i.e. up to building level only)\n- Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)\n\nDepending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the throroughfare or building name only? Are accurate organisation names an important feature?\n",
746
+ "description": "The address cleanse API attempts to return the closest matching address for any given address inputs. We also return a number of Match Level indicators that describe the degree to which the suggested address matches the input address. The more impaired the input address, the harder it is to cleanse.\n\n## Confidence Score\n\nThe confidence score is a number ranging between 0 and 1. Where 1 implies a full match and 0 implies no major elements completely match. Each incorrect, missing or misspelled element will subtract from the overall confidence score.\n\n### Deciding on an Acceptable Confidence Score Threshold\n\nDifferent address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organisation name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.\n\nWhen determining an acceptable Confidence Score threshold you should load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top-to-bottom you will be able to observe matches from best to worst. As you start to hit the lower quality searches, you will be able to roughly determine:\n - Which confidence scores indicate ambiguous matches (i.e. up to building level only)\n- Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)\n\nDepending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organisation names an important feature?\n",
747
747
  "operationId": "AddressCleanse",
748
748
  "parameters": [
749
749
  {
@@ -854,7 +854,7 @@
854
854
  "US"
855
855
  ],
856
856
  "summary": "Verify Address",
857
- "description": "The address verify API validates, corrects, and standardizes individual addresses based on USPS's Coding Accuracy Support System (CASS).\n\nThe address verify API accepts the 3 combination of inputs:\n\n- Free-form address submitted as a single string in `query`\n - Example: \"123 Main St, Springfield, CO 81073-1119\"\n- Only free-form and zip code address components submitted as separate parameters:\n - `query` for the street address\n - `zip_code` for the ZIP code\n - Example:\n - `query`: \"123 Main St, Springfield CO\"\n - `zip_code`: \"81073-1119\"\n- Only free-form, city and state address components submitted as separate parameters:\n - `query` for the street address\n - `city` for the city\n - `state` for the state\n - Example:\n - `query`: \"123 Main St\"\n - `city`: \"Springfield\"\n - `state`: \"CO\"\n",
857
+ "description": "The address verify API validates, corrects, and standardizes individual addresses based on USPS's Coding Accuracy Support System (CASS).\n\nThe address verify API accepts the 3 combination of inputs:\n\n- Free-form address submitted as a single string in `query`\n - Example: \"123 Main St, Springfield, CO 81073-1119\"\n- Only free-form and zip code address components submitted as separate parameters:\n - `query` for the first address line\n - `zip_code` for the ZIP code\n - Example:\n - `query`: \"123 Main St, Springfield CO\"\n - `zip_code`: \"81073-1119\"\n- Only free-form, city and state address components submitted as separate parameters:\n - `query` for the first address line\n - `city` for the city\n - `state` for the state\n - Example:\n - `query`: \"123 Main St\"\n - `city`: \"Springfield\"\n - `state`: \"CO\"\n",
858
858
  "operationId": "AddressVerify",
859
859
  "parameters": [
860
860
  {
@@ -885,7 +885,7 @@
885
885
  "properties": {
886
886
  "query": {
887
887
  "type": "string",
888
- "description": "Freeform address input to verify.\n\nCan be submitted standalone, or with the following address components:\n- `zip_code`\n- `city` and `state`\n",
888
+ "description": "Address input to verify.\n\nIf submitting a freeform address verification query, enter the full address. E.g. `query=123 Main St, Springfield, CO, 81073`\n\nOtherwise, query can be accompanied with the following address components:\n- `zip_code`\n- `city` and `state`\n\nIf zip_code or `city` and `state` or supplied, please omit this information from query by using it purely for the first address line. E.g. `query=123 Main St`\n",
889
889
  "example": "123 Main St, Springfield, CO 81073"
890
890
  },
891
891
  "zip_code": {
@@ -983,6 +983,9 @@
983
983
  },
984
984
  "style": "form"
985
985
  },
986
+ {
987
+ "$ref": "#/components/parameters/DatasetParam"
988
+ },
986
989
  {
987
990
  "$ref": "#/components/parameters/ContextParam"
988
991
  },
@@ -1473,7 +1476,7 @@
1473
1476
  "Place Search"
1474
1477
  ],
1475
1478
  "summary": "Find Place",
1476
- "description": "Query for geographical places across countries. Each query will return a list of place suggestions, which consists of a place name, descriptive name and id.\n\nThis API returns geographical information such as countries, capitals, administrative areas and more. It is ideal for correctly identifying a place along with any other details like geolocation.\n\n## Implementing Place Autocomplete\n\nExtracting the full information of a place is a 2 step process:\n\n1. Retrieve place suggestions via /places\n2. Retrieve the entire place with the ID provided in the suggestion\n\n## Suggestion Format\n\nEach place suggestion contains a descriptive name which you can provide to users to uniquely idenfity a place.\n\n## Rate Limiting and Cost\n\nThe rate limit for the Autocomplete API is 3000 requests per 5 minutes. HTTP Headers inform about the current rate limit.\n\nAutocomplete API usage does not impact your balance, but resolving a suggestion to a full address requires a paid request. Autocomplete requests without subsequent paid requests may result in rate limitation or suspension.\n",
1479
+ "description": "Query for geographical places across countries. Each query will return a list of place suggestions, which consists of a place name, descriptive name and id.\n\nThis API returns geographical information such as countries, capitals, administrative areas and more. It is ideal for correctly identifying a place along with any other details like geolocation.\n\n## Implementing Place Autocomplete\n\nExtracting the full information of a place is a 2 step process:\n\n1. Retrieve place suggestions via /places\n2. Retrieve the entire place with the ID provided in the suggestion\n\n## Suggestion Format\n\nEach place suggestion contains a descriptive name which you can provide to users to uniquely identify a place.\n\n## Rate Limiting and Cost\n\nThe rate limit for the Autocomplete API is 3000 requests per 5 minutes. HTTP Headers inform about the current rate limit.\n\nAutocomplete API usage does not impact your balance, but resolving a suggestion to a full address requires a paid request. Autocomplete requests without subsequent paid requests may result in rate limitation or suspension.\n",
1477
1480
  "operationId": "FindPlace",
1478
1481
  "parameters": [
1479
1482
  {
@@ -3777,7 +3780,7 @@
3777
3780
  "Dataset": {
3778
3781
  "title": "Dataset",
3779
3782
  "type": "string",
3780
- "description": "Indicates the provenance of an address.\n\n - `paf` (GBR) Postcode Address File\n - `usps` (USA) USPS Zip+4\n - `mr` (GBR) Multiple Residence File\n - `nyb` (GBR) Not Yet Built File\n - `pafa` (GBR) Alias File\n - `pafw` (GBR) Welsh File\n - `ab` (GBR) AddressBase Core\n - `ecaf` (IRL) Eircode ECAF\n - `ecad` (IRL) Eircode ECAD\n - `herewe` (Western Europe) Western Europe Dataset\n - `heret` (Taiwan) Taiwan Dataset\n - `heresa` (South America) South America Dataset\n - `hereo` (Oceania) Oceania Dataset\n - `herena` (North America) North America Dataset\n - `herei` (India) India Dataset\n - `heremea` (Middle East and Africa) Middle East and Africa Dataset\n - `herem` (Macau) Macau Dataset\n - `herehk` (Hong Kong) Hong Kong Dataset\n - `hereee` (Eastern Europe) Eastern Europe Dataset\n - `hereap` (Asia Pacific) Asia Pacific Dataset\n - `gnaf` (AUS) Geoscape Geocoded National Address File\n - `kadaster` (NLD) Kadaster BAG 2.0 Address File\n - `kartverket` (NOR) Norway Dataset\n - `sdfi` (DNK) Denmark Dataset\n - `cannar` (CAN) Canada National Address Register Dataset\n - `fodbosa` (BEL) Belgium Dataset\n - `mois` (KOR) South Korea Dataset\n - `upujp` (JPN) Japan UPU Address File",
3783
+ "description": "Indicates the provenance of an address.\n\n - `paf` (GBR) Postcode Address File\n - `usps` (USA) USPS Zip+4\n - `mr` (GBR) Multiple Residence File\n - `nyb` (GBR) Not Yet Built File\n - `pafa` (GBR) Alias File\n - `pafw` (GBR) Welsh File\n - `ab` (GBR) AddressBase Core\n - `ecaf` (IRL) Eircode ECAF\n - `ecad` (IRL) Eircode ECAD\n - `herewe` (Western Europe) Western Europe Dataset\n - `heret` (Taiwan) Taiwan Dataset\n - `heresa` (South America) South America Dataset\n - `hereo` (Oceania) Oceania Dataset\n - `herena` (North America) North America Dataset\n - `herei` (India) India Dataset\n - `heremea` (Middle East and Africa) Middle East and Africa Dataset\n - `herem` (Macau) Macau Dataset\n - `herehk` (Hong Kong) Hong Kong Dataset\n - `hereee` (Eastern Europe) Eastern Europe Dataset\n - `hereap` (Asia Pacific) Asia Pacific Dataset\n - `gnaf` (AUS) Geoscape Geocoded National Address File\n - `kadaster` (NLD) Kadaster BAG 2.0 Address File\n - `kartverket` (NOR) Norway Dataset\n - `sdfi` (DNK) Denmark Dataset\n - `cannar` (CAN) Canada National Address Register Dataset\n - `fodbosa` (BEL) Belgium Dataset\n - `mois` (KOR) South Korea Dataset\n - `upujp` (JPN) Japan UPU Address File\n - `bev` (AUT) Austria Dataset",
3781
3784
  "enum": [
3782
3785
  "paf",
3783
3786
  "pafw",
@@ -3807,7 +3810,8 @@
3807
3810
  "cannar",
3808
3811
  "fodbosa",
3809
3812
  "mois",
3810
- "upujp"
3813
+ "upujp",
3814
+ "bev"
3811
3815
  ]
3812
3816
  },
3813
3817
  "CountryISO": {
@@ -9582,6 +9586,334 @@
9582
9586
  }
9583
9587
  }
9584
9588
  },
9589
+ "BevAddress": {
9590
+ "required": [
9591
+ "id",
9592
+ "dataset",
9593
+ "country",
9594
+ "country_iso",
9595
+ "country_iso_2",
9596
+ "language",
9597
+ "address",
9598
+ "line_1",
9599
+ "line_2",
9600
+ "latitude",
9601
+ "longitude",
9602
+ "adrcd",
9603
+ "kgnr",
9604
+ "gkz",
9605
+ "okz",
9606
+ "plz",
9607
+ "skz",
9608
+ "zaehlsprengel",
9609
+ "hausnrtext",
9610
+ "hausnrzahl1",
9611
+ "hausnrbuchstabe1",
9612
+ "hausnrverbindung1",
9613
+ "hausnrzahl2",
9614
+ "hausnrbuchstabe2",
9615
+ "hausnrbereich",
9616
+ "hnr_adr_zusammen",
9617
+ "gnradresse",
9618
+ "hofname",
9619
+ "rw",
9620
+ "hw",
9621
+ "epsg",
9622
+ "quelladresse",
9623
+ "bestimmungsart",
9624
+ "subcd",
9625
+ "objektnummer",
9626
+ "objfunktkennziffer",
9627
+ "hauptadresse",
9628
+ "hausnrverbindung2",
9629
+ "hausnrzahl3",
9630
+ "hausnrbuchstabe3",
9631
+ "hausnrverbindung3",
9632
+ "hausnrzahl4",
9633
+ "hausnrbuchstabe4",
9634
+ "hausnrgebaeudebez",
9635
+ "hnr_geb_zusammen",
9636
+ "eigenschaft",
9637
+ "gemeindename",
9638
+ "ortsname",
9639
+ "strassenname",
9640
+ "strassennamenzusatz",
9641
+ "szusadrbest",
9642
+ "zustellort",
9643
+ "zustellort_id",
9644
+ "zaehlsprengelname"
9645
+ ],
9646
+ "properties": {
9647
+ "id": {
9648
+ "$ref": "#/components/schemas/ID"
9649
+ },
9650
+ "dataset": {
9651
+ "type": "string",
9652
+ "enum": [
9653
+ "bev"
9654
+ ]
9655
+ },
9656
+ "country_iso": {
9657
+ "description": " 3 letter country code (ISO 3166-1)\n",
9658
+ "enum": [
9659
+ "AUT"
9660
+ ]
9661
+ },
9662
+ "country_iso_2": {
9663
+ "type": "string",
9664
+ "description": " 2 letter country code (ISO 3166-1)\n",
9665
+ "enum": [
9666
+ "AT"
9667
+ ]
9668
+ },
9669
+ "country": {
9670
+ "type": "string",
9671
+ "description": " Full country names (ISO 3166)\n",
9672
+ "enum": [
9673
+ "Austria"
9674
+ ]
9675
+ },
9676
+ "language": {
9677
+ "enum": [
9678
+ "de"
9679
+ ],
9680
+ "description": "Language represented by 2 letter ISO Code (639-1)\n"
9681
+ },
9682
+ "address": {
9683
+ "type": "string",
9684
+ "description": "Combination of hnr_adr_zusammen and hnr_geb_zusammen - the full house number and building designation.\n\nCan be empty string `\"\"` if not present.\n",
9685
+ "example": "40"
9686
+ },
9687
+ "line_1": {
9688
+ "type": "string",
9689
+ "description": "First address line.\n\nCan be empty string `\"\"` if not present.\n",
9690
+ "example": "Villa Kranzmayer"
9691
+ },
9692
+ "line_2": {
9693
+ "type": "string",
9694
+ "description": "Second address line.\n\nCan be empty string `\"\"` if not present.\n",
9695
+ "example": "Römerweg 48"
9696
+ },
9697
+ "longitude": {
9698
+ "$ref": "#/components/schemas/Longitude"
9699
+ },
9700
+ "latitude": {
9701
+ "$ref": "#/components/schemas/Latitude"
9702
+ },
9703
+ "adrcd": {
9704
+ "type": "string",
9705
+ "description": "Unique identifier of the address\n"
9706
+ },
9707
+ "kgnr": {
9708
+ "type": "string",
9709
+ "description": "Cadastral number of the municipality of the land parcel associated with the address\n"
9710
+ },
9711
+ "gkz": {
9712
+ "type": "string",
9713
+ "description": "Municipality unique identifier\n"
9714
+ },
9715
+ "okz": {
9716
+ "type": "string",
9717
+ "description": "Locality unique identifier\n"
9718
+ },
9719
+ "plz": {
9720
+ "type": "string",
9721
+ "description": "Postal code\n"
9722
+ },
9723
+ "skz": {
9724
+ "type": "string",
9725
+ "description": "Street unique identifier\n"
9726
+ },
9727
+ "zaehlsprengel": {
9728
+ "type": "string",
9729
+ "description": "Census district unique identifier\n"
9730
+ },
9731
+ "hausnrtext": {
9732
+ "type": "string",
9733
+ "description": "Text before house number\n"
9734
+ },
9735
+ "hausnrzahl1": {
9736
+ "oneOf": [
9737
+ {
9738
+ "type": "string",
9739
+ "description": "Empty string `\"\"` if not available\n"
9740
+ },
9741
+ {
9742
+ "type": "number",
9743
+ "description": "House number part 1\n"
9744
+ }
9745
+ ]
9746
+ },
9747
+ "hausnrbuchstabe1": {
9748
+ "type": "string",
9749
+ "description": "House letter part 1\n"
9750
+ },
9751
+ "hausnrverbindung1": {
9752
+ "type": "string",
9753
+ "description": "House number connector 1\n"
9754
+ },
9755
+ "hausnrzahl2": {
9756
+ "oneOf": [
9757
+ {
9758
+ "type": "string",
9759
+ "description": "Empty string `\"\"` if not available\n"
9760
+ },
9761
+ {
9762
+ "type": "number",
9763
+ "description": "House number part 2\n"
9764
+ }
9765
+ ]
9766
+ },
9767
+ "hausnrbuchstabe2": {
9768
+ "type": "string",
9769
+ "description": "House letter part 2\n"
9770
+ },
9771
+ "hausnrbereich": {
9772
+ "type": "string",
9773
+ "description": "House number range scheme (even, odd, all or not specified)\n"
9774
+ },
9775
+ "hnr_adr_zusammen": {
9776
+ "type": "string",
9777
+ "description": "Complete house number (combination of house number parts and letters)\n"
9778
+ },
9779
+ "gnradresse": {
9780
+ "type": "number",
9781
+ "description": "Parcel number used as an address when no house number is present\n"
9782
+ },
9783
+ "hofname": {
9784
+ "type": "string",
9785
+ "description": "Name of building or building complex (e.g. farmstead)\n"
9786
+ },
9787
+ "rw": {
9788
+ "type": "string",
9789
+ "description": "Easting / X coordinate\n"
9790
+ },
9791
+ "hw": {
9792
+ "type": "string",
9793
+ "description": "Northing / Y coordinate\n"
9794
+ },
9795
+ "epsg": {
9796
+ "type": "number",
9797
+ "description": "Coordinate reference system identifier\n"
9798
+ },
9799
+ "quelladresse": {
9800
+ "type": "string",
9801
+ "description": "Coordinate accuracy level (building level, parcel level, etc.)\n"
9802
+ },
9803
+ "bestimmungsart": {
9804
+ "type": "string",
9805
+ "description": "Coordinate determination method (DKM, surveying office, municipality, etc.)\n"
9806
+ },
9807
+ "subcd": {
9808
+ "type": "string",
9809
+ "description": "Subcode to distinguish multiple buildings at the same address\n"
9810
+ },
9811
+ "objektnummer": {
9812
+ "type": "string",
9813
+ "description": "Object number of the building\n"
9814
+ },
9815
+ "objfunktkennziffer": {
9816
+ "type": "string",
9817
+ "description": "All building function codes related to the address\n\nCan be empty string `\"\"` if not present.\n"
9818
+ },
9819
+ "hauptadresse": {
9820
+ "oneOf": [
9821
+ {
9822
+ "type": "string",
9823
+ "description": "Empty string `\"\"` if not available\n"
9824
+ },
9825
+ {
9826
+ "type": "number",
9827
+ "description": "Indicates whether this address is the primary address for the associated building.\n"
9828
+ }
9829
+ ]
9830
+ },
9831
+ "hausnrverbindung2": {
9832
+ "type": "string",
9833
+ "description": "House number connector 2\n"
9834
+ },
9835
+ "hausnrzahl3": {
9836
+ "oneOf": [
9837
+ {
9838
+ "type": "string",
9839
+ "description": "Empty string `\"\"` if not available\n"
9840
+ },
9841
+ {
9842
+ "type": "number",
9843
+ "description": "House number part 3\n"
9844
+ }
9845
+ ]
9846
+ },
9847
+ "hausnrbuchstabe3": {
9848
+ "type": "string",
9849
+ "description": "House letter part 3\n"
9850
+ },
9851
+ "hausnrverbindung3": {
9852
+ "type": "string",
9853
+ "description": "House number connector 3\n"
9854
+ },
9855
+ "hausnrzahl4": {
9856
+ "oneOf": [
9857
+ {
9858
+ "type": "string",
9859
+ "description": "Empty string `\"\"` if not available\n"
9860
+ },
9861
+ {
9862
+ "type": "number",
9863
+ "description": "House number part 4\n"
9864
+ }
9865
+ ]
9866
+ },
9867
+ "hausnrbuchstabe4": {
9868
+ "type": "string",
9869
+ "description": "House letter part 4\n"
9870
+ },
9871
+ "hausnrgebaeudebez": {
9872
+ "type": "string",
9873
+ "description": "Building description\n"
9874
+ },
9875
+ "hnr_geb_zusammen": {
9876
+ "type": "string",
9877
+ "description": "Combination of house number and building designation\n"
9878
+ },
9879
+ "eigenschaft": {
9880
+ "type": "string",
9881
+ "description": "Code indicating the primary use or function of the building associated with the address\n"
9882
+ },
9883
+ "gemeindename": {
9884
+ "type": "string",
9885
+ "description": "Name of the municipality\n"
9886
+ },
9887
+ "ortsname": {
9888
+ "type": "string",
9889
+ "description": "Name of the locality\n"
9890
+ },
9891
+ "strassenname": {
9892
+ "type": "string",
9893
+ "description": "Name of the street\n"
9894
+ },
9895
+ "strassennamenzusatz": {
9896
+ "type": "string",
9897
+ "description": "Street type (e.g., \"Allee\", \"Strasse\", etc.)\n"
9898
+ },
9899
+ "szusadrbest": {
9900
+ "type": "number",
9901
+ "description": "Indicates whether the street type is included in the street name\n"
9902
+ },
9903
+ "zustellort": {
9904
+ "type": "string",
9905
+ "description": "Postal town name\n"
9906
+ },
9907
+ "zustellort_id": {
9908
+ "type": "string",
9909
+ "description": "Postal town identifier\n"
9910
+ },
9911
+ "zaehlsprengelname": {
9912
+ "type": "string",
9913
+ "description": "Name of the census district\n"
9914
+ }
9915
+ }
9916
+ },
9585
9917
  "GbrGlobalAddress": {
9586
9918
  "title": "Global Address",
9587
9919
  "description": "Global (non-UK) address in the UK address format",
@@ -9731,6 +10063,9 @@
9731
10063
  },
9732
10064
  {
9733
10065
  "$ref": "#/components/schemas/UpujpAddress"
10066
+ },
10067
+ {
10068
+ "$ref": "#/components/schemas/BevAddress"
9734
10069
  }
9735
10070
  ]
9736
10071
  },
@@ -9764,10 +10099,8 @@
9764
10099
  },
9765
10100
  "thoroughfare": {
9766
10101
  "type": "string",
9767
- "description": "Not available for non-UK addresses",
9768
- "enum": [
9769
- ""
9770
- ]
10102
+ "description": "Street name",
10103
+ "example": "Georgia Ave"
9771
10104
  },
9772
10105
  "dependant_thoroughfare": {
9773
10106
  "type": "string",
@@ -9778,24 +10111,18 @@
9778
10111
  },
9779
10112
  "building_number": {
9780
10113
  "type": "string",
9781
- "description": "Not available for non-UK addresses",
9782
- "enum": [
9783
- ""
9784
- ]
10114
+ "description": "Address or house number",
10115
+ "example": "2"
9785
10116
  },
9786
10117
  "building_name": {
9787
10118
  "type": "string",
9788
- "description": "Not available for non-UK addresses",
9789
- "enum": [
9790
- ""
9791
- ]
10119
+ "description": "Name of the building associated with the address",
10120
+ "example": "Holland House"
9792
10121
  },
9793
10122
  "sub_building_name": {
9794
10123
  "type": "string",
9795
- "description": "Not available for non-UK addresses",
9796
- "enum": [
9797
- ""
9798
- ]
10124
+ "description": "Name of the sub-building associated with the address",
10125
+ "example": "Kingscourt Post Office"
9799
10126
  },
9800
10127
  "premise": {
9801
10128
  "type": "string",
@@ -9806,10 +10133,8 @@
9806
10133
  },
9807
10134
  "po_box": {
9808
10135
  "type": "string",
9809
- "description": "Not available for non-UK addresses",
9810
- "enum": [
9811
- ""
9812
- ]
10136
+ "description": "PO Box number",
10137
+ "example": "100"
9813
10138
  },
9814
10139
  "department_name": {
9815
10140
  "type": "string",
@@ -9820,10 +10145,8 @@
9820
10145
  },
9821
10146
  "organisation_name": {
9822
10147
  "type": "string",
9823
- "description": "Not available for non-UK addresses",
9824
- "enum": [
9825
- ""
9826
- ]
10148
+ "description": "Name of the company or organisation associated with the address",
10149
+ "example": "Farrell's Gift Shop"
9827
10150
  },
9828
10151
  "udprn": {
9829
10152
  "type": "string",
@@ -10433,6 +10756,32 @@
10433
10756
  }
10434
10757
  }
10435
10758
  },
10759
+ "ApiKeyMonthlyLimit": {
10760
+ "title": "API Key Monthly Limit",
10761
+ "type": "object",
10762
+ "required": [
10763
+ "limit",
10764
+ "consumed"
10765
+ ],
10766
+ "properties": {
10767
+ "limit": {
10768
+ "x-nullable": true,
10769
+ "nullable": true,
10770
+ "minimum": 0,
10771
+ "example": 10000,
10772
+ "type": "integer",
10773
+ "description": "`number` or `null`. The monthly lookup limit currently set on your key.\n`null` means the limit is currently disabled.",
10774
+ "format": "int32"
10775
+ },
10776
+ "consumed": {
10777
+ "minimum": 0,
10778
+ "example": 2500,
10779
+ "type": "integer",
10780
+ "description": "Number of lookups performed this month which count towards your monthly limit.",
10781
+ "format": "int32"
10782
+ }
10783
+ }
10784
+ },
10436
10785
  "ApiKeyIndividualLimit": {
10437
10786
  "title": "API Key Individual Limit",
10438
10787
  "type": "object",
@@ -10456,7 +10805,10 @@
10456
10805
  "type": "object",
10457
10806
  "required": [
10458
10807
  "emails",
10459
- "enabled"
10808
+ "enabled",
10809
+ "balance_threshold",
10810
+ "no_balance",
10811
+ "limit_reached"
10460
10812
  ],
10461
10813
  "properties": {
10462
10814
  "emails": {
@@ -10470,6 +10822,23 @@
10470
10822
  "enabled": {
10471
10823
  "description": "Indicates whether email notifications are enabled.",
10472
10824
  "type": "boolean"
10825
+ },
10826
+ "balance_threshold": {
10827
+ "type": "integer",
10828
+ "format": "int32",
10829
+ "minimum": 0,
10830
+ "x-nullable": true,
10831
+ "nullable": true,
10832
+ "description": "Balance threshold that triggers a reminder email. null means disabled.",
10833
+ "example": 500
10834
+ },
10835
+ "no_balance": {
10836
+ "type": "boolean",
10837
+ "description": "Send notice when balance hits zero."
10838
+ },
10839
+ "limit_reached": {
10840
+ "type": "boolean",
10841
+ "description": "Send notice when rate limit is reached."
10473
10842
  }
10474
10843
  }
10475
10844
  },
@@ -10509,7 +10878,10 @@
10509
10878
  "cannar",
10510
10879
  "fodbosa",
10511
10880
  "mois",
10512
- "upujp"
10881
+ "upujp",
10882
+ "bev",
10883
+ "gbrcleanse",
10884
+ "uspscleanse"
10513
10885
  ],
10514
10886
  "properties": {
10515
10887
  "paf": {
@@ -10670,6 +11042,21 @@
10670
11042
  "type": "boolean",
10671
11043
  "description": "Japan: UPU Address File",
10672
11044
  "example": true
11045
+ },
11046
+ "bev": {
11047
+ "type": "boolean",
11048
+ "description": "Austria: BEV Address File",
11049
+ "example": true
11050
+ },
11051
+ "gbrcleanse": {
11052
+ "type": "boolean",
11053
+ "description": "UK GBR Cleanse",
11054
+ "example": true
11055
+ },
11056
+ "uspscleanse": {
11057
+ "type": "boolean",
11058
+ "description": "US CASS Cleanse",
11059
+ "example": true
10673
11060
  }
10674
11061
  }
10675
11062
  },
@@ -10724,8 +11111,11 @@
10724
11111
  "title": "API Key Details",
10725
11112
  "type": "object",
10726
11113
  "required": [
11114
+ "name",
11115
+ "contexts",
10727
11116
  "lookups_remaining",
10728
11117
  "daily_limit",
11118
+ "monthly_limit",
10729
11119
  "individual_limit",
10730
11120
  "allowed_urls",
10731
11121
  "redact_days",
@@ -10736,6 +11126,14 @@
10736
11126
  "datasets"
10737
11127
  ],
10738
11128
  "properties": {
11129
+ "name": {
11130
+ "type": "string",
11131
+ "description": "A name for the key",
11132
+ "example": "My API Key"
11133
+ },
11134
+ "contexts": {
11135
+ "$ref": "#/components/schemas/AvailableContexts"
11136
+ },
10739
11137
  "lookups_remaining": {
10740
11138
  "minimum": 0,
10741
11139
  "example": 19889,
@@ -10745,6 +11143,9 @@
10745
11143
  "daily_limit": {
10746
11144
  "$ref": "#/components/schemas/ApiKeyDailyLimit"
10747
11145
  },
11146
+ "monthly_limit": {
11147
+ "$ref": "#/components/schemas/ApiKeyMonthlyLimit"
11148
+ },
10748
11149
  "individual_limit": {
10749
11150
  "$ref": "#/components/schemas/ApiKeyIndividualLimit"
10750
11151
  },
@@ -10814,6 +11215,13 @@
10814
11215
  "title": "API Key Details Update",
10815
11216
  "type": "object",
10816
11217
  "properties": {
11218
+ "name": {
11219
+ "type": "string",
11220
+ "maxLength": 32,
11221
+ "pattern": "^(\\w|\\s){0,32}$",
11222
+ "description": "A name for the key",
11223
+ "example": "My API Key"
11224
+ },
10817
11225
  "daily_limit": {
10818
11226
  "title": "Daily Rate Limit",
10819
11227
  "type": "object",
@@ -10829,6 +11237,21 @@
10829
11237
  }
10830
11238
  }
10831
11239
  },
11240
+ "monthly_limit": {
11241
+ "title": "Monthly Rate Limit",
11242
+ "type": "object",
11243
+ "properties": {
11244
+ "limit": {
11245
+ "x-nullable": true,
11246
+ "nullable": true,
11247
+ "minimum": 0,
11248
+ "example": 10000,
11249
+ "type": "integer",
11250
+ "description": "`number` or `null`. The monthly lookup limit currently set on your key.\n`null` means the limit is currently disabled.",
11251
+ "format": "int32"
11252
+ }
11253
+ }
11254
+ },
10832
11255
  "individual_limit": {
10833
11256
  "title": "API Key Individual Limit",
10834
11257
  "type": "object",
@@ -10876,6 +11299,23 @@
10876
11299
  "enabled": {
10877
11300
  "description": "Indicates whether email notifications are enabled.",
10878
11301
  "type": "boolean"
11302
+ },
11303
+ "balance_threshold": {
11304
+ "type": "integer",
11305
+ "format": "int32",
11306
+ "minimum": 0,
11307
+ "x-nullable": true,
11308
+ "nullable": true,
11309
+ "description": "Balance threshold that triggers a reminder email. null to disable.",
11310
+ "example": 500
11311
+ },
11312
+ "no_balance": {
11313
+ "type": "boolean",
11314
+ "description": "Send notice when balance hits zero."
11315
+ },
11316
+ "limit_reached": {
11317
+ "type": "boolean",
11318
+ "description": "Send notice when rate limit is reached."
10879
11319
  }
10880
11320
  }
10881
11321
  },
@@ -11013,6 +11453,31 @@
11013
11453
  "type": "boolean",
11014
11454
  "description": "Japan: UPU Address File",
11015
11455
  "example": true
11456
+ },
11457
+ "bev": {
11458
+ "type": "boolean",
11459
+ "description": "Austria: BEV Address File",
11460
+ "example": true
11461
+ },
11462
+ "ab": {
11463
+ "type": "boolean",
11464
+ "description": "UK AddressBase dataset",
11465
+ "example": false
11466
+ },
11467
+ "nip": {
11468
+ "type": "boolean",
11469
+ "description": "Northern Ireland Pointer Dataset",
11470
+ "example": false
11471
+ },
11472
+ "gbrcleanse": {
11473
+ "type": "boolean",
11474
+ "description": "UK GBR Cleanse",
11475
+ "example": true
11476
+ },
11477
+ "uspscleanse": {
11478
+ "type": "boolean",
11479
+ "description": "US CASS Cleanse",
11480
+ "example": true
11016
11481
  }
11017
11482
  }
11018
11483
  }
@@ -12305,17 +12770,13 @@
12305
12770
  },
12306
12771
  "primary_number": {
12307
12772
  "type": "string",
12308
- "description": "Not available for non-US addresses",
12309
- "enum": [
12310
- ""
12311
- ]
12773
+ "description": "House number or PO Box number",
12774
+ "example": "10"
12312
12775
  },
12313
12776
  "secondary_number": {
12314
12777
  "type": "string",
12315
- "description": "Not available for non-US addresses",
12316
- "enum": [
12317
- ""
12318
- ]
12778
+ "description": "Unit or apartment number",
12779
+ "example": "4"
12319
12780
  },
12320
12781
  "plus_4_code": {
12321
12782
  "type": "string",
@@ -12377,10 +12838,8 @@
12377
12838
  },
12378
12839
  "street_name": {
12379
12840
  "type": "string",
12380
- "description": "Not available for non-US addresses",
12381
- "enum": [
12382
- ""
12383
- ]
12841
+ "description": "Street name",
12842
+ "example": "Harvey St"
12384
12843
  },
12385
12844
  "street_suffix_abbreviation": {
12386
12845
  "type": "string",
@@ -12398,10 +12857,8 @@
12398
12857
  },
12399
12858
  "building_or_firm_name": {
12400
12859
  "type": "string",
12401
- "description": "Not available for non-US addresses",
12402
- "enum": [
12403
- ""
12404
- ]
12860
+ "description": "Name of the company or building associated with the address",
12861
+ "example": "Cooper Ltd"
12405
12862
  },
12406
12863
  "address_secondary_abbreviation": {
12407
12864
  "type": "string",
@@ -12581,6 +13038,9 @@
12581
13038
  },
12582
13039
  {
12583
13040
  "$ref": "#/components/schemas/UpujpAddress"
13041
+ },
13042
+ {
13043
+ "$ref": "#/components/schemas/BevAddress"
12584
13044
  }
12585
13045
  ]
12586
13046
  }
@@ -14142,6 +14602,20 @@
14142
14602
  },
14143
14603
  "style": "form"
14144
14604
  },
14605
+ "DatasetParam": {
14606
+ "name": "dataset",
14607
+ "in": "query",
14608
+ "style": "form",
14609
+ "explode": false,
14610
+ "schema": {
14611
+ "type": "array",
14612
+ "items": {
14613
+ "$ref": "#/components/schemas/Dataset"
14614
+ }
14615
+ },
14616
+ "description": "**Filter by Dataset**\n\nComma-separated list of datasets to search within.\n\nFilters autocomplete results to only include addresses from the specified datasets.\n",
14617
+ "example": "paf,nyb"
14618
+ },
14145
14619
  "ContextParam": {
14146
14620
  "name": "context",
14147
14621
  "in": "query",