@addresszen/openapi 2.0.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/CHANGELOG.md +6 -0
- package/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/_headers +2 -0
- package/dist/index.html +37 -0
- package/dist/openapi.d.ts +2848 -0
- package/dist/openapi.js +6 -0
- package/dist/openapi.json +4926 -0
- package/dist/openapi.yaml +4835 -0
- package/package.json +63 -0
|
@@ -0,0 +1,4835 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
version: 2.0.0
|
|
4
|
+
license:
|
|
5
|
+
name: AGPLv3
|
|
6
|
+
url: https://opensource.org/licenses/AGPL-3.0
|
|
7
|
+
title: API Reference - AddressZen
|
|
8
|
+
termsOfService: https://terms.addresszen.com
|
|
9
|
+
description: >
|
|
10
|
+
# Getting Started
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Access
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
All API methods are either a `GET`, `POST` or `OPTIONS` request.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
The API communicates over both HTTPS and plain HTTP using IPv4 and IPv6.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
We recommend using HTTPS only although HTTP is available.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
We use appropriate HTTP status codes where possible to indicate the request
|
|
29
|
+
status.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Rate Limiting
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
Each IP address is rate limited at 30 requests per second. Tripping the rate
|
|
36
|
+
limit will result in a 503 response.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
The autocomplete API also has an additional rate limit.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
If you expect to breach the limit please contact us and we can move you to
|
|
43
|
+
an endpoint with a higher limit.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### JSONP
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
[JSONP](http://en.wikipedia.org/wiki/JSONP) requests are supported. Include
|
|
50
|
+
a `callback=` in your request as a query parameter. Your results return
|
|
51
|
+
wrapped in a function designated by your request.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## Authentication
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
Most requests require an **API key** for authentication. Authenticate by
|
|
58
|
+
passing an `api_key` as part of the query string. For example:
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
api.addresszen.com/v1/autocomplete/addresses?api_key=iddqd&q=parkside
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
Alternatively, authentication can be transmitted via the `Authorization`
|
|
69
|
+
header using the following scheme:
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Authorization: IDEALPOSTCODES api_key="iddqd" [other_key="foo"]
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## Versioning
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
This API is versioned with a simple prefix in the URL. The current version
|
|
83
|
+
is `/v1/`. We will maintain backwards-compatibility by releasing breaking
|
|
84
|
+
changes under a new version.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
Please note that the following changes are backwards-compatible:
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
- Adding new properties to existing API responses
|
|
91
|
+
|
|
92
|
+
- Adding new API endpoints
|
|
93
|
+
|
|
94
|
+
- Adding new optional request parameters to existing API endpoints
|
|
95
|
+
|
|
96
|
+
- Changing the order of properties in existing API responses
|
|
97
|
+
|
|
98
|
+
- Changing the autocomplete address suggestion format
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## Error Handling
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
A successful lookup is accompanied with a HTTP status code of 200 and a
|
|
105
|
+
response code of 2000 (found in the body).
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
An error has occurred if the HTTP status code is not 200. Errors can range
|
|
109
|
+
from a benign 404 (resource not found) to more urgent errors (your API Key
|
|
110
|
+
ran out of credit, failed authentication, etc).
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## Testing
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
Each new account comes with a free test balance. Contact us if you need more
|
|
117
|
+
for testing and integration.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Community Key
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
Our documentation and demos make heavy use of our community key `iddqd`.
|
|
124
|
+
This allows for convenient access for trialing the API.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
Many restrictions on this key are relaxed to allow developers make test
|
|
128
|
+
requests. This key has a limit of 15 lookups per IP address per day as well
|
|
129
|
+
as a daily usage cap. If you hit any limit restrictions, you can continue
|
|
130
|
+
testing the API by creating a key of your own and using our free test
|
|
131
|
+
methods.
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
Please be kind with the community key. We're trusting everyone to use it
|
|
135
|
+
responsibly so that other developers may trial the API. Thank you!
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## Metadata
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
Requests that affect your balance may be annotated with arbitrary metadata.
|
|
142
|
+
This data is stored along with your lookup history and can be queried at a
|
|
143
|
+
later date via the API or the dashboard. We call the ability to label your
|
|
144
|
+
requests [tagging](https://docs.ideal-postcodes.co.uk/docs/guides/tags).
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
# Response Codes
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
The API returns two indicators to help you to determine the status of each
|
|
151
|
+
HTTP request.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
The first is the **HTTP Status**, which is found in the status-line of all
|
|
155
|
+
HTTP requests. The API will return status codes that adhere to HTTP /1.1
|
|
156
|
+
Specifications wherever possible.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
`2XX` status codes indicates success while `4XX` and `5XX` indicate client
|
|
160
|
+
and server errors respectively.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
The second is the **API response code**, which can be found in the `code`
|
|
164
|
+
property of the response body. This code will provide a more specific reason
|
|
165
|
+
if a failure has occurred and can point you in the right direction when
|
|
166
|
+
debugging.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
Please use the glossary of code numbers and HTTP status codes below when
|
|
170
|
+
debugging your requests.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
## 200 Request Success
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
| HTTP Code | API Code | Description |
|
|
177
|
+
|
|
178
|
+
| --------- | -------- | -------------------------------------------- |
|
|
179
|
+
|
|
180
|
+
| 200 | 2000 | Success. Request was completed successfully. |
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
## 400 Bad Request
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
The request could not be understood due to some input error.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
| HTTP Code | API Code |
|
|
190
|
+
Description
|
|
191
|
+
|
|
|
192
|
+
|
|
193
|
+
| --------- | -------- |
|
|
194
|
+
-------------------------------------------------------------------------------------------------------------------------------------
|
|
195
|
+
|
|
|
196
|
+
|
|
197
|
+
| 400 | 4000 | Invalid syntax submitted. Some part of your request
|
|
198
|
+
was malformed or did not match our
|
|
199
|
+
specifications. |
|
|
200
|
+
|
|
201
|
+
| 400 | 4001 | Validation failed on your submitted data. Some of
|
|
202
|
+
the data you provided did not meet our validation requirements, e.g. string
|
|
203
|
+
length. |
|
|
204
|
+
|
|
205
|
+
| 400 | 4005 | Invalid start date. Please ensure start dates are
|
|
206
|
+
provided as a UTC Timestamp in
|
|
207
|
+
milliseconds. |
|
|
208
|
+
|
|
209
|
+
| 400 | 4006 | Invalid end date. Please ensure end dates are
|
|
210
|
+
provided as a UTC Timestamp in
|
|
211
|
+
milliseconds. |
|
|
212
|
+
|
|
213
|
+
| 400 | 4007 | Invalid date range. Check if your start and end
|
|
214
|
+
dates are in the right
|
|
215
|
+
order. |
|
|
216
|
+
|
|
217
|
+
| 400 | 4008 | Invalid date range. Check that your date range is
|
|
218
|
+
90 days or
|
|
219
|
+
less. |
|
|
220
|
+
|
|
221
|
+
| 400 | 4009 | Too many tags. Please specify no more than 3 tags
|
|
222
|
+
to
|
|
223
|
+
query.
|
|
224
|
+
|
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
## 401 Unauthorised
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
Authorization credentials are not valid.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
| HTTP Code | API Code |
|
|
234
|
+
Description
|
|
235
|
+
|
|
|
236
|
+
|
|
237
|
+
| --------- | -------- |
|
|
238
|
+
------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
239
|
+
|
|
|
240
|
+
|
|
241
|
+
| 401 | 4010 | Invalid Key. The `api_key` you provided is not
|
|
242
|
+
valid.
|
|
243
|
+
|
|
|
244
|
+
|
|
245
|
+
| 401 | 4011 | Requesting URL not on whitelist. The cross domain
|
|
246
|
+
request is not coming from a whitelisted URL. You can update or disable your
|
|
247
|
+
allowed URLs via your Key settings. |
|
|
248
|
+
|
|
249
|
+
| 401 | 4012 | Failed user authentication. Invalid `user_token`
|
|
250
|
+
presented.
|
|
251
|
+
|
|
|
252
|
+
|
|
253
|
+
| 401 | 4013 | Licensee Key is required. Sublicensed keys require
|
|
254
|
+
you need to present licensee credentials via the `licensee`
|
|
255
|
+
parameter. |
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## 402 Request Failed
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
Your request is well-formed but are not able to complete your request for
|
|
262
|
+
another reason.
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
| HTTP Code | API Code |
|
|
266
|
+
Description
|
|
267
|
+
|
|
|
268
|
+
|
|
269
|
+
| --------- | -------- |
|
|
270
|
+
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
271
|
+
|
|
|
272
|
+
|
|
273
|
+
| 402 | 4020 | Key balance depleted. You're out of lookups on your
|
|
274
|
+
API
|
|
275
|
+
Key.
|
|
276
|
+
|
|
|
277
|
+
|
|
278
|
+
| 402 | 4021 | Limit reached. One of your lookup limits has been
|
|
279
|
+
breached for today. This could either be your total daily limit on your key
|
|
280
|
+
or the individual IP limit. You can either wait for for the limit to reset
|
|
281
|
+
(after a day) or manually disable or increase your limit. |
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
## 404 Resource Not Found
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
The resource you requested does not exist.
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
| HTTP Code | API Code |
|
|
291
|
+
Description
|
|
292
|
+
|
|
|
293
|
+
|
|
294
|
+
| --------- | -------- |
|
|
295
|
+
---------------------------------------------------------------------------------------------
|
|
296
|
+
|
|
|
297
|
+
|
|
298
|
+
| 404 | 4040 | Postcode not found. The postcode you have submitted
|
|
299
|
+
does not exist. |
|
|
300
|
+
|
|
301
|
+
| 404 | 4041 | User not found. Your user could not be identified
|
|
302
|
+
given the credentials you presented. |
|
|
303
|
+
|
|
304
|
+
| 404 | 4042 | Key not found. Your key could not be identified
|
|
305
|
+
given the credentials you presented. |
|
|
306
|
+
|
|
307
|
+
| 404 | 4044 | No UDPRN found. No address is associated with the
|
|
308
|
+
UDPRN queried |
|
|
309
|
+
|
|
310
|
+
| 404 | 4045 | No licensee found. Your licensee could not be
|
|
311
|
+
identified given the credentials you presented. |
|
|
312
|
+
|
|
313
|
+
| 404 | 4046 | No UMPRN found. No Multiple Residence premise is
|
|
314
|
+
associated with the UMPRN queried. |
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
## 500 Server Error
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
A error occurred on our server.
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
| HTTP Code | API Code |
|
|
324
|
+
Description
|
|
325
|
+
|
|
|
326
|
+
|
|
327
|
+
| --------- | -------- |
|
|
328
|
+
------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
329
|
+
|
|
|
330
|
+
|
|
331
|
+
| 500 | 5000 | An error occurred on our end. These errors are
|
|
332
|
+
logged and queued so we can understand what went wrong. However, if you need
|
|
333
|
+
speedy resolution please email support |
|
|
334
|
+
|
|
335
|
+
| 500 | 5001 | Akin to
|
|
336
|
+
5000.
|
|
337
|
+
|
|
|
338
|
+
|
|
339
|
+
| 500 | 5002 | The server took too long to process on our end, so
|
|
340
|
+
we aborted the request. You may retry the
|
|
341
|
+
request. |
|
|
342
|
+
contact:
|
|
343
|
+
email: support@ideal-postcodes.co.uk
|
|
344
|
+
name: Support
|
|
345
|
+
url: https://ideal-postcodes.co.uk/support
|
|
346
|
+
externalDocs:
|
|
347
|
+
description: More on our APIs, libraries with guides and examples
|
|
348
|
+
url: https://docs.ideal-postcodes.co.uk
|
|
349
|
+
servers:
|
|
350
|
+
- url: https://api.ideal-postcodes.co.uk/v1
|
|
351
|
+
description: API Server
|
|
352
|
+
variables: {}
|
|
353
|
+
tags:
|
|
354
|
+
- name: Address Search
|
|
355
|
+
description: Global address autocomplete, for search-as-you-type
|
|
356
|
+
- name: UK
|
|
357
|
+
description: UK Address and Postcode Search
|
|
358
|
+
- name: Keys
|
|
359
|
+
description: Monitor and manage API Keys
|
|
360
|
+
- name: Licensees
|
|
361
|
+
description: >
|
|
362
|
+
The Licensee resource represents an alternate legal End User of our data
|
|
363
|
+
who may not be same entity as the owners of the account.
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
The concept of Licensees underpins our sublicensing platform, which allows
|
|
367
|
+
users to license multiple external organisations or individuals to access
|
|
368
|
+
data under the same account.
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
Sublicensing is ideal for platform vendors, who provide services to
|
|
372
|
+
multiple clients who in turn each have their own users.
|
|
373
|
+
- name: Configs
|
|
374
|
+
description: >
|
|
375
|
+
The Config resource allows users to assign serialised configuration data
|
|
376
|
+
to API Keys. The payloads assigned to a Config object can later be
|
|
377
|
+
retrieved to dynamically configure your integration.
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
Useful if you need to configure your integration remotely rather than
|
|
381
|
+
editing code in situ.
|
|
382
|
+
- name: usps_address
|
|
383
|
+
x-displayName: US Address
|
|
384
|
+
description: |
|
|
385
|
+
<SchemaDefinition schemaRef="#/components/schemas/UspsAddress" />
|
|
386
|
+
- name: uk_address
|
|
387
|
+
x-displayName: UK Address
|
|
388
|
+
description: |
|
|
389
|
+
<SchemaDefinition schemaRef="#/components/schemas/PafAddress" />
|
|
390
|
+
- name: suggestion
|
|
391
|
+
x-displayName: Global Address Suggestion
|
|
392
|
+
description: >
|
|
393
|
+
<SchemaDefinition schemaRef="#/components/schemas/GlobalAddressSuggestion"
|
|
394
|
+
/>
|
|
395
|
+
x-tagGroups:
|
|
396
|
+
- name: Address Search
|
|
397
|
+
tags:
|
|
398
|
+
- Address Search
|
|
399
|
+
- UK
|
|
400
|
+
- name: Management
|
|
401
|
+
tags:
|
|
402
|
+
- Keys
|
|
403
|
+
- Licensees
|
|
404
|
+
- Configs
|
|
405
|
+
- name: Models
|
|
406
|
+
tags:
|
|
407
|
+
- usps_address
|
|
408
|
+
- uk_address
|
|
409
|
+
- suggestion
|
|
410
|
+
paths:
|
|
411
|
+
/postcodes/{postcode}:
|
|
412
|
+
get:
|
|
413
|
+
tags:
|
|
414
|
+
- UK
|
|
415
|
+
summary: Lookup Postcode
|
|
416
|
+
operationId: Postcodes
|
|
417
|
+
description: >
|
|
418
|
+
Returns the complete list of addresses for a postcode. Postcode searches
|
|
419
|
+
are space and case insensitive.
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
The Postcode Lookup API provides a JSON interface to search UK addresses
|
|
423
|
+
from a postcode. It can be used to power Postcode Lookup driven address
|
|
424
|
+
searches, like [Postcode Lookup](/postcode-lookup).
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
## Postcode Not Found
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
Lookup balance is unaffected by invalid postcodes. The API returns a
|
|
431
|
+
`404` response with response body:
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
```json
|
|
435
|
+
|
|
436
|
+
{
|
|
437
|
+
"code": 4040,
|
|
438
|
+
"message": "Postcode not found",
|
|
439
|
+
"suggestions": ["SW1A 0AA"]
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
### Suggestions
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
If a postcode cannot be found, the API will provide up to 5 closest
|
|
449
|
+
matching postcodes. Common errors will be corrected first (e.g. mixing
|
|
450
|
+
up `O` and `0` or `I` and `1`).
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
If the suggestion list is small (fewer than 3), there is a high
|
|
454
|
+
probability the correct postcode is there. You may notify the user or
|
|
455
|
+
immediately trigger new searches.
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
The suggestion list will be empty if the postcode has deviated too far
|
|
459
|
+
from a valid postcode format.
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
## Multiple Residence
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
A small number of postcodes will return more than 100 premises. These
|
|
466
|
+
may require pagination. Use `page` to paginate the result set.
|
|
467
|
+
parameters:
|
|
468
|
+
- name: postcode
|
|
469
|
+
in: path
|
|
470
|
+
description: Postcode to retrieve
|
|
471
|
+
required: true
|
|
472
|
+
style: simple
|
|
473
|
+
explode: false
|
|
474
|
+
schema:
|
|
475
|
+
$ref: '#/components/schemas/Postcode'
|
|
476
|
+
- name: api_key
|
|
477
|
+
in: query
|
|
478
|
+
style: form
|
|
479
|
+
required: true
|
|
480
|
+
explode: false
|
|
481
|
+
schema:
|
|
482
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
483
|
+
- name: filter
|
|
484
|
+
in: query
|
|
485
|
+
style: form
|
|
486
|
+
required: false
|
|
487
|
+
explode: false
|
|
488
|
+
schema:
|
|
489
|
+
$ref: '#/components/schemas/FilterParam'
|
|
490
|
+
- name: page
|
|
491
|
+
in: query
|
|
492
|
+
style: form
|
|
493
|
+
required: false
|
|
494
|
+
explode: false
|
|
495
|
+
schema:
|
|
496
|
+
$ref: '#/components/schemas/PageParam'
|
|
497
|
+
responses:
|
|
498
|
+
'200':
|
|
499
|
+
description: Success
|
|
500
|
+
content:
|
|
501
|
+
application/json:
|
|
502
|
+
schema:
|
|
503
|
+
$ref: '#/components/schemas/PostcodeResponse'
|
|
504
|
+
'404':
|
|
505
|
+
description: Postcode Not Found
|
|
506
|
+
content:
|
|
507
|
+
application/json:
|
|
508
|
+
schema:
|
|
509
|
+
$ref: '#/components/schemas/PostcodeNotFoundResponse'
|
|
510
|
+
x-codeSamples:
|
|
511
|
+
- lang: http
|
|
512
|
+
label: URL
|
|
513
|
+
source: |
|
|
514
|
+
https://api.ideal-postcodes.co.uk/v1/postcodes/SW1A2AA?api_key=iddqd
|
|
515
|
+
- lang: cURL
|
|
516
|
+
label: CLI
|
|
517
|
+
source: |
|
|
518
|
+
curl -G -k \
|
|
519
|
+
--url 'https://api.ideal-postcodes.co.uk/v1/postcodes/SW1A2AA' \
|
|
520
|
+
--d "api_key=iddqd"
|
|
521
|
+
/udprn/{udprn}:
|
|
522
|
+
get:
|
|
523
|
+
tags:
|
|
524
|
+
- UK
|
|
525
|
+
summary: Retrieve by UDPRN
|
|
526
|
+
operationId: UDPRN
|
|
527
|
+
description: >-
|
|
528
|
+
Returns an address as identified by its Unique Delivery Point Reference
|
|
529
|
+
Number (UDPRN).
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
You may find it useful to store UDPRN information as it can be used to
|
|
533
|
+
retrieve the most recent information for an address. It can also be used
|
|
534
|
+
to test for a deleted address.
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
UDPRNs are an eight digit unique numeric code (e.g. 25962203) for any
|
|
538
|
+
premise on the Postcode Address File. It's essentially a unique
|
|
539
|
+
identifier for every address in the UK that Royal Mail has in its
|
|
540
|
+
database.
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
## Testing
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
To test your implementation of our API we have a range of test UDPRNs
|
|
547
|
+
that yield both successful and unsuccessful responses to your request.
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
They are the following:
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
- `0` Returns a successful UDPRN lookup response
|
|
554
|
+
`2000`
|
|
555
|
+
- `-1` Returns "UDPRN not found", error `4044`
|
|
556
|
+
|
|
557
|
+
- `-2` Returns "no lookups remaining", error `4020`
|
|
558
|
+
|
|
559
|
+
- `-3` Returns "daily (or individual) lookup limit breached",
|
|
560
|
+
error `4021`
|
|
561
|
+
|
|
562
|
+
Test request undergo the usual authentication and restriction rules.
|
|
563
|
+
This is to help surface any issues that occur during implementation and
|
|
564
|
+
does not cost you a lookup.
|
|
565
|
+
parameters:
|
|
566
|
+
- name: udprn
|
|
567
|
+
in: path
|
|
568
|
+
description: UDPRN to be retrieved
|
|
569
|
+
required: true
|
|
570
|
+
style: simple
|
|
571
|
+
explode: false
|
|
572
|
+
schema:
|
|
573
|
+
type: string
|
|
574
|
+
- name: api_key
|
|
575
|
+
in: query
|
|
576
|
+
required: true
|
|
577
|
+
style: form
|
|
578
|
+
explode: false
|
|
579
|
+
schema:
|
|
580
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
581
|
+
- name: filter
|
|
582
|
+
in: query
|
|
583
|
+
style: form
|
|
584
|
+
explode: false
|
|
585
|
+
schema:
|
|
586
|
+
$ref: '#/components/schemas/FilterParam'
|
|
587
|
+
responses:
|
|
588
|
+
'200':
|
|
589
|
+
description: Success
|
|
590
|
+
headers: {}
|
|
591
|
+
content:
|
|
592
|
+
application/json:
|
|
593
|
+
schema:
|
|
594
|
+
$ref: '#/components/schemas/UDPRNResponse'
|
|
595
|
+
'404':
|
|
596
|
+
description: Resource not found
|
|
597
|
+
content:
|
|
598
|
+
application/json:
|
|
599
|
+
schema:
|
|
600
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
601
|
+
x-codeSamples:
|
|
602
|
+
- lang: http
|
|
603
|
+
label: URL
|
|
604
|
+
source: |
|
|
605
|
+
https://api.ideal-postcodes.co.uk/v1/udprn/0?api_key=iddqd
|
|
606
|
+
- lang: cURL
|
|
607
|
+
label: CLI
|
|
608
|
+
source: |
|
|
609
|
+
curl -k -G https://api.ideal-postcodes.co.uk/v1/udprn/0 \
|
|
610
|
+
-d "api_key=iddqd"
|
|
611
|
+
/umprn/{umprn}:
|
|
612
|
+
get:
|
|
613
|
+
tags:
|
|
614
|
+
- UK
|
|
615
|
+
summary: Retrieve by UMPRN
|
|
616
|
+
operationId: UMPRN
|
|
617
|
+
description: >
|
|
618
|
+
Returns a multiple occupancy address identifited via its UMPRN (Multiple
|
|
619
|
+
Residence Unique ID).
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
UMPRNs are a unique numeric code for any Multiple Residence household on
|
|
623
|
+
the optional Multiple Residence dataset.
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
## Testing
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
To test your implementation of our API we have a range of test UMPRNs
|
|
630
|
+
that yield both successful and unsuccessful responses to your request.
|
|
631
|
+
They are the following
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
- `0` Returns a successful UMPRN lookup response `2000`
|
|
635
|
+
|
|
636
|
+
- `-1` Returns "UMPRN not found", error `4044`
|
|
637
|
+
|
|
638
|
+
- `-2` Returns "no lookups remaining", error `4020`
|
|
639
|
+
|
|
640
|
+
- `-3` Returns "daily (or individual) lookup limit breached", error
|
|
641
|
+
`4021`
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
Test request undergo the usual authentication and restriction rules.
|
|
645
|
+
This is to help surface any issues that occur during implementation and
|
|
646
|
+
does not cost you a lookup.
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
### Pricing
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
Per lookup charges apply. Empty responses are not charged.
|
|
653
|
+
parameters:
|
|
654
|
+
- name: umprn
|
|
655
|
+
in: path
|
|
656
|
+
description: UMPRN to be retrieved
|
|
657
|
+
required: true
|
|
658
|
+
style: simple
|
|
659
|
+
explode: false
|
|
660
|
+
schema:
|
|
661
|
+
type: string
|
|
662
|
+
- name: api_key
|
|
663
|
+
required: true
|
|
664
|
+
in: query
|
|
665
|
+
style: form
|
|
666
|
+
explode: false
|
|
667
|
+
schema:
|
|
668
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
669
|
+
- name: filter
|
|
670
|
+
in: query
|
|
671
|
+
style: form
|
|
672
|
+
explode: false
|
|
673
|
+
schema:
|
|
674
|
+
$ref: '#/components/schemas/FilterParam'
|
|
675
|
+
responses:
|
|
676
|
+
'200':
|
|
677
|
+
description: Success
|
|
678
|
+
headers: {}
|
|
679
|
+
content:
|
|
680
|
+
application/json:
|
|
681
|
+
schema:
|
|
682
|
+
$ref: '#/components/schemas/UMPRNResponse'
|
|
683
|
+
'404':
|
|
684
|
+
description: Resource not found
|
|
685
|
+
content:
|
|
686
|
+
application/json:
|
|
687
|
+
schema:
|
|
688
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
689
|
+
x-codeSamples:
|
|
690
|
+
- lang: http
|
|
691
|
+
label: URL
|
|
692
|
+
source: |
|
|
693
|
+
https://api.ideal-postcodes.co.uk/v1/umprn/0?api_key=iddqdmr
|
|
694
|
+
- lang: cURL
|
|
695
|
+
label: CLI
|
|
696
|
+
source: |
|
|
697
|
+
curl -k -G https://api.ideal-postcodes.co.uk/v1/umprn/0 \
|
|
698
|
+
-d "api_key=iddqdmr"
|
|
699
|
+
/keys/{key}:
|
|
700
|
+
get:
|
|
701
|
+
tags:
|
|
702
|
+
- Keys
|
|
703
|
+
summary: Availability
|
|
704
|
+
operationId: KeyAvailability
|
|
705
|
+
description: >+
|
|
706
|
+
Returns public information on key. Currently only returns whether the
|
|
707
|
+
key is currently useable via the `available` property. Use this to
|
|
708
|
+
discover if the key is useable before making further requests.
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
You may pass both API Keys (beginning `ak_`) and Sub-licensed Keys
|
|
712
|
+
(beginning `sl_`).
|
|
713
|
+
|
|
714
|
+
## Testing
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
To test your implementation of our API, you may use the following test
|
|
718
|
+
keys.
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
- **iddqd** Availability will return as `true`
|
|
722
|
+
|
|
723
|
+
- **idkfa** Availability will return as `false`
|
|
724
|
+
|
|
725
|
+
parameters:
|
|
726
|
+
- name: key
|
|
727
|
+
in: path
|
|
728
|
+
required: true
|
|
729
|
+
style: simple
|
|
730
|
+
explode: false
|
|
731
|
+
schema:
|
|
732
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
733
|
+
responses:
|
|
734
|
+
'200':
|
|
735
|
+
description: Success
|
|
736
|
+
content:
|
|
737
|
+
application/json:
|
|
738
|
+
schema:
|
|
739
|
+
$ref: '#/components/schemas/ApiKeyResponse'
|
|
740
|
+
'404':
|
|
741
|
+
description: Invalid Key
|
|
742
|
+
content:
|
|
743
|
+
application/json:
|
|
744
|
+
schema:
|
|
745
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
746
|
+
/keys/{key}/details:
|
|
747
|
+
get:
|
|
748
|
+
tags:
|
|
749
|
+
- Keys
|
|
750
|
+
summary: Details
|
|
751
|
+
operationId: KeyDetails
|
|
752
|
+
description: >
|
|
753
|
+
Returns private data on the key including remaining lookups, available
|
|
754
|
+
datasets and usage limits.
|
|
755
|
+
parameters:
|
|
756
|
+
- name: key
|
|
757
|
+
in: path
|
|
758
|
+
required: true
|
|
759
|
+
style: simple
|
|
760
|
+
explode: false
|
|
761
|
+
schema:
|
|
762
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
763
|
+
- name: user_token
|
|
764
|
+
in: query
|
|
765
|
+
style: form
|
|
766
|
+
required: true
|
|
767
|
+
explode: false
|
|
768
|
+
schema:
|
|
769
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
770
|
+
responses:
|
|
771
|
+
'200':
|
|
772
|
+
description: Success
|
|
773
|
+
content:
|
|
774
|
+
application/json:
|
|
775
|
+
schema:
|
|
776
|
+
$ref: '#/components/schemas/ApiKeyDetailsResponse'
|
|
777
|
+
'404':
|
|
778
|
+
description: Resource not found
|
|
779
|
+
content:
|
|
780
|
+
application/json:
|
|
781
|
+
schema:
|
|
782
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
783
|
+
deprecated: false
|
|
784
|
+
/keys/{key}/usage:
|
|
785
|
+
get:
|
|
786
|
+
tags:
|
|
787
|
+
- Keys
|
|
788
|
+
summary: Usage Stats
|
|
789
|
+
operationId: KeyUsage
|
|
790
|
+
description: >
|
|
791
|
+
Reports the number of lookups consumed on a key for a range of days.
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
A maximum interval of 90 days can be provided for analysis. If no start
|
|
795
|
+
or end date is provided, the last 21 days will be used as the default
|
|
796
|
+
interval.
|
|
797
|
+
parameters:
|
|
798
|
+
- name: key
|
|
799
|
+
in: path
|
|
800
|
+
required: true
|
|
801
|
+
style: simple
|
|
802
|
+
explode: false
|
|
803
|
+
schema:
|
|
804
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
805
|
+
- name: start
|
|
806
|
+
in: query
|
|
807
|
+
description: >-
|
|
808
|
+
A start date/time in the form of a UNIX Timestamp in milliseconds,
|
|
809
|
+
e.g. `1418556452651`. If no start time is provided, the start time
|
|
810
|
+
will be assigned to a time 21 days prior to the end time.
|
|
811
|
+
style: form
|
|
812
|
+
explode: false
|
|
813
|
+
schema:
|
|
814
|
+
$ref: '#/components/schemas/StartParam'
|
|
815
|
+
- name: end
|
|
816
|
+
in: query
|
|
817
|
+
description: >-
|
|
818
|
+
An end date/time in the form of a UNIX Timestamp in milliseconds,
|
|
819
|
+
e.g. `1418556452651`. If no end time is provided, the current time
|
|
820
|
+
will be used.
|
|
821
|
+
style: form
|
|
822
|
+
explode: false
|
|
823
|
+
schema:
|
|
824
|
+
$ref: '#/components/schemas/EndParam'
|
|
825
|
+
- name: tags
|
|
826
|
+
in: query
|
|
827
|
+
style: form
|
|
828
|
+
explode: false
|
|
829
|
+
schema:
|
|
830
|
+
$ref: '#/components/schemas/TagsParam'
|
|
831
|
+
- name: licensee
|
|
832
|
+
in: query
|
|
833
|
+
description: >-
|
|
834
|
+
Sublicensed keys only. This will restrict the analysed dataset to a
|
|
835
|
+
specific licensee.
|
|
836
|
+
style: form
|
|
837
|
+
explode: false
|
|
838
|
+
schema:
|
|
839
|
+
$ref: '#/components/schemas/LicenseeParam'
|
|
840
|
+
responses:
|
|
841
|
+
'200':
|
|
842
|
+
description: Success
|
|
843
|
+
content:
|
|
844
|
+
application/json:
|
|
845
|
+
schema:
|
|
846
|
+
$ref: '#/components/schemas/ApiKeyUsageResponse'
|
|
847
|
+
x-codeSamples:
|
|
848
|
+
- lang: http
|
|
849
|
+
label: URL
|
|
850
|
+
source: >
|
|
851
|
+
https://api.ideal-postcodes.co.uk/v1/keys/iddqd/usage?user_token=my_secret_token
|
|
852
|
+
- lang: cURL
|
|
853
|
+
label: CLI
|
|
854
|
+
source: |
|
|
855
|
+
curl -k -G https://api.ideal-postcodes.co.uk/v1/keys/iddqd/usage \
|
|
856
|
+
-d "user_token=my_secret_token"
|
|
857
|
+
/keys/{key}/lookups:
|
|
858
|
+
get:
|
|
859
|
+
tags:
|
|
860
|
+
- Keys
|
|
861
|
+
summary: Logs (CSV)
|
|
862
|
+
operationId: KeyLogs
|
|
863
|
+
description: >
|
|
864
|
+
Reports lookup information on a key for paid lookups.
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
This method requires a `user_token`, which can be found on your
|
|
868
|
+
[accounts page](https://ideal-postcodes.co.uk/account).
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
A maximum interval of 90 days can be provided for analysis. If no start
|
|
872
|
+
or end date is provided, the last 21 days will be used as the default
|
|
873
|
+
interval.
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
## Download Usage History (CSV)
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
`GET /keys/:key/lookups`
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
Returns a CSV download of lookups performed and associated information.
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
Note that the Content-Type returned will be CSV (text/csv). For a non
|
|
886
|
+
200 response, the `Content-Type` will revert to JSON with the error code
|
|
887
|
+
and message embedded.
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
## Data Redaction
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
Personally Identifiable Data (PII) caught in this your usage log
|
|
894
|
+
(including IP, search term and URL data) will be redacted on a weekly
|
|
895
|
+
basis.
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
By default, PII will be redacted if it is older than 21 days. This
|
|
899
|
+
timeframe can be configured from your dashboard.
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
You may prevent PII collection altogether by setting the interval to `0`
|
|
903
|
+
days.
|
|
904
|
+
parameters:
|
|
905
|
+
- name: key
|
|
906
|
+
in: path
|
|
907
|
+
required: true
|
|
908
|
+
style: simple
|
|
909
|
+
explode: false
|
|
910
|
+
schema:
|
|
911
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
912
|
+
- name: start
|
|
913
|
+
in: query
|
|
914
|
+
description: >-
|
|
915
|
+
An start date/time in the form of a UNIX Timestamp in milliseconds,
|
|
916
|
+
e.g. `1418556452651`. If no start time is provided, the start time
|
|
917
|
+
will be assigned to a time 21 days prior to the end time.
|
|
918
|
+
style: form
|
|
919
|
+
explode: false
|
|
920
|
+
schema:
|
|
921
|
+
$ref: '#/components/schemas/StartParam'
|
|
922
|
+
- name: end
|
|
923
|
+
in: query
|
|
924
|
+
description: >-
|
|
925
|
+
An end date/time in the form of a UNIX Timestamp in milliseconds,
|
|
926
|
+
e.g. `1418556452651`. If no end time is provided, the current time
|
|
927
|
+
will be used.
|
|
928
|
+
style: form
|
|
929
|
+
explode: false
|
|
930
|
+
schema:
|
|
931
|
+
$ref: '#/components/schemas/EndParam'
|
|
932
|
+
- name: licensee
|
|
933
|
+
in: query
|
|
934
|
+
description: >-
|
|
935
|
+
Sublicensed keys only. This will restrict the analysed dataset to a
|
|
936
|
+
specific licensee.
|
|
937
|
+
style: form
|
|
938
|
+
explode: false
|
|
939
|
+
schema:
|
|
940
|
+
$ref: '#/components/schemas/LicenseeParam'
|
|
941
|
+
responses:
|
|
942
|
+
'200':
|
|
943
|
+
description: Success
|
|
944
|
+
content:
|
|
945
|
+
text/csv:
|
|
946
|
+
example: >
|
|
947
|
+
2015-02-21T16:05:22.991Z,82.85.128.18,SW12AA,https://www.example.com/,Postcode
|
|
948
|
+
Lookup,
|
|
949
|
+
|
|
950
|
+
2015-02-21T16:05:38.298Z,82.85.128.18,10 Downing Street
|
|
951
|
+
London,https://www.example.com/,Address Lookup,CRM
|
|
952
|
+
|
|
953
|
+
2015-02-21T16:06:49.227Z,82.85.128.18,OX44PP,https://www.example.com/,Postcode
|
|
954
|
+
Lookup,"Website,Live"
|
|
955
|
+
|
|
956
|
+
2015-02-21T16:07:02.706Z,82.85.128.18,PL9
|
|
957
|
+
9HE,https://www.example.com/,Postcode Lookup,
|
|
958
|
+
schema:
|
|
959
|
+
type: string
|
|
960
|
+
description: Success
|
|
961
|
+
x-codeSamples:
|
|
962
|
+
- lang: http
|
|
963
|
+
label: URL
|
|
964
|
+
source: >
|
|
965
|
+
https://api.ideal-postcodes.co.uk/v1/keys/iddqd/lookups?user_token=my_secret_token
|
|
966
|
+
- lang: cURL
|
|
967
|
+
label: CLI
|
|
968
|
+
source: |
|
|
969
|
+
curl -k -G https://api.ideal-postcodes.co.uk/v1/keys/iddqd/lookups \
|
|
970
|
+
-d "user_token=my_secret_token"
|
|
971
|
+
/autocomplete/addresses:
|
|
972
|
+
get:
|
|
973
|
+
tags:
|
|
974
|
+
- Address Search
|
|
975
|
+
summary: Find Address
|
|
976
|
+
description: >
|
|
977
|
+
The address autocomplete API returns a list of address suggestions that
|
|
978
|
+
match the query ordered by relevance score.
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
This API can be used to power realtime address finders, also known as
|
|
982
|
+
address autofill or address autocomplete.
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
If you wish to quickly add address autocompletion to your address forms,
|
|
986
|
+
see [Address Finder](/address-finder) and [associated
|
|
987
|
+
demos](/address-finder-demo).
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
## Implementing Address Autocomplete
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
Retrieving addresses using Address Autocomplete is a 2 step process.
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
1. Retrieve partial address suggestions via `/autocomplete/addresses`
|
|
997
|
+
|
|
998
|
+
2. Retrieve the entire address by following the URL provided by the
|
|
999
|
+
suggestion
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
Step 2 will decrement your lookup balance.
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
Please note, this API is not intended to be a free standalone resource.
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
## Filters
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
You can strictly narrow your result by adding filters to your
|
|
1012
|
+
querystring which correspond with an address attribute.
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
For instance, you can restrict to postcode `SW1A 2AA` by appending
|
|
1016
|
+
`postcode=sw1a2aa`.
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
If a filter term is invalid, e.g. `postcode=SW1A2AAA`, then an empty
|
|
1020
|
+
result set is returned and no lookup is incurred.
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
You can also scope using multiple terms for the same filter with a comma
|
|
1024
|
+
separated list of terms. E.g. Restrict results to E1, E2 and E3 outward
|
|
1025
|
+
codes: `postcode_outward=e1,e2,e3`. Multiple terms are
|
|
1026
|
+
<code>OR</code>'ed, i.e. the matching result sets are combined.
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
All filters can accept multiple terms unless stated otherwise below.
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
Multiple filters can also be combined. E.g. Restrict results to small
|
|
1033
|
+
user organisations in the N postcode area:
|
|
1034
|
+
`su_organisation_indicator=Y&postcode_area=n`. Multiple filters are
|
|
1035
|
+
<code>AND</code>'ed, i.e. each additional filter narrows the result set.
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
A maximum of **10** terms are allowed across all filters.
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
## Biases
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
You can boost certain addresses results that correspond with a certain
|
|
1045
|
+
address attribute. All bias searches are prefixed with `bias_`.
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
Biased searches, unlike filtered searches, also allow unmatched
|
|
1049
|
+
addresses to appear. These will rank lower.
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
For instance, can boost addresses with postcode areas `SW` and `SE` by
|
|
1053
|
+
appending `bias_postcode_area=SW,SE`.
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
No bias effect applies to bias terms that are invalid.
|
|
1057
|
+
|
|
1058
|
+
e.g. `bias_postcode=SW1A2AAA`
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
You may scope using multiple terms for the same bias with a comma
|
|
1062
|
+
separated list of terms. E.g. Restrict results to `E1`, `E2` and `E3`
|
|
1063
|
+
outward codes: <code>bias_postcode_outward=e1,e2,e3</code>.
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
All biases can accept multiple terms unless stated otherwise below.
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
A combined maximum of **5** terms are allowed across all biases.
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
## Suggestion Format
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
The suggestion format is prone to change over time. Attempts to parse
|
|
1076
|
+
the suggestion may result in your integration breaking. Instead use the
|
|
1077
|
+
suggestion as-is.
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
## Rate Limiting
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
You can make up to 3000 requests to the autocomplete API within a 5
|
|
1084
|
+
minute span. The HTTP Header contains information on your current rate
|
|
1085
|
+
limit.
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
| Header |
|
|
1089
|
+
Description
|
|
1090
|
+
|
|
|
1091
|
+
|
|
1092
|
+
| ----------------------- |
|
|
1093
|
+
--------------------------------------------------------------------------------------
|
|
1094
|
+
|
|
|
1095
|
+
|
|
1096
|
+
| `X-RateLimit-Limit` | The maximum number of requests that can be
|
|
1097
|
+
made in 5 minutes |
|
|
1098
|
+
|
|
1099
|
+
| `X-RateLimit-Remaining` | The remaining requests within the current
|
|
1100
|
+
rate limit window |
|
|
1101
|
+
|
|
1102
|
+
| `X-RateLimit-Reset` | The time when the rate limit window resets
|
|
1103
|
+
in Unix Time (seconds) or UTC Epoch seconds |
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
## Pricing
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
This API currently does not affect your balance. However, resolving a
|
|
1110
|
+
suggestion into a full address requires a paid request.
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
Please note, this API is not intended as a standalone free resource.
|
|
1114
|
+
Integrations that consistently make autocomplete requests without a paid
|
|
1115
|
+
request to resolve an address may be disrupted via tightened rate
|
|
1116
|
+
limits. Continued misuse will result in account suspension.
|
|
1117
|
+
operationId: AddressAutocomplete
|
|
1118
|
+
parameters:
|
|
1119
|
+
- name: api_key
|
|
1120
|
+
in: query
|
|
1121
|
+
style: form
|
|
1122
|
+
required: true
|
|
1123
|
+
explode: false
|
|
1124
|
+
schema:
|
|
1125
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1126
|
+
- name: query
|
|
1127
|
+
in: query
|
|
1128
|
+
description: >-
|
|
1129
|
+
Specifies the address you wish to query. Query can be shortened to
|
|
1130
|
+
`q=`
|
|
1131
|
+
style: form
|
|
1132
|
+
explode: false
|
|
1133
|
+
schema:
|
|
1134
|
+
type: string
|
|
1135
|
+
- name: context
|
|
1136
|
+
in: query
|
|
1137
|
+
style: form
|
|
1138
|
+
explode: false
|
|
1139
|
+
schema:
|
|
1140
|
+
$ref: '#/components/schemas/Context'
|
|
1141
|
+
- name: limit
|
|
1142
|
+
in: query
|
|
1143
|
+
style: form
|
|
1144
|
+
description: >
|
|
1145
|
+
Limits number of address suggestions unless a postcode is detected.
|
|
1146
|
+
In this instance entire list of addreses for that postcode is
|
|
1147
|
+
returned.
|
|
1148
|
+
explode: false
|
|
1149
|
+
schema:
|
|
1150
|
+
$ref: '#/components/schemas/LimitParam'
|
|
1151
|
+
- name: postcode_outward
|
|
1152
|
+
in: query
|
|
1153
|
+
style: form
|
|
1154
|
+
explode: false
|
|
1155
|
+
schema:
|
|
1156
|
+
$ref: '#/components/schemas/PostcodeOutwardParam'
|
|
1157
|
+
- name: postcode
|
|
1158
|
+
in: query
|
|
1159
|
+
style: form
|
|
1160
|
+
explode: false
|
|
1161
|
+
schema:
|
|
1162
|
+
$ref: '#/components/schemas/PostcodeParam'
|
|
1163
|
+
- name: postcode_area
|
|
1164
|
+
in: query
|
|
1165
|
+
style: form
|
|
1166
|
+
explode: false
|
|
1167
|
+
schema:
|
|
1168
|
+
$ref: '#/components/schemas/PostcodeAreaParam'
|
|
1169
|
+
- name: postcode_sector
|
|
1170
|
+
in: query
|
|
1171
|
+
style: form
|
|
1172
|
+
explode: false
|
|
1173
|
+
schema:
|
|
1174
|
+
$ref: '#/components/schemas/PostcodeSectorParam'
|
|
1175
|
+
- name: post_town
|
|
1176
|
+
in: query
|
|
1177
|
+
style: form
|
|
1178
|
+
explode: false
|
|
1179
|
+
schema:
|
|
1180
|
+
$ref: '#/components/schemas/PostTownParam'
|
|
1181
|
+
- name: uprn
|
|
1182
|
+
in: query
|
|
1183
|
+
style: form
|
|
1184
|
+
explode: false
|
|
1185
|
+
schema:
|
|
1186
|
+
$ref: '#/components/schemas/UPRNParam'
|
|
1187
|
+
- name: country
|
|
1188
|
+
in: query
|
|
1189
|
+
style: form
|
|
1190
|
+
explode: false
|
|
1191
|
+
schema:
|
|
1192
|
+
$ref: '#/components/schemas/CountryParam'
|
|
1193
|
+
- name: postcode_type
|
|
1194
|
+
in: query
|
|
1195
|
+
style: form
|
|
1196
|
+
explode: false
|
|
1197
|
+
schema:
|
|
1198
|
+
$ref: '#/components/schemas/PostcodeTypeParam'
|
|
1199
|
+
- name: su_organisation_indicator
|
|
1200
|
+
in: query
|
|
1201
|
+
style: form
|
|
1202
|
+
explode: false
|
|
1203
|
+
schema:
|
|
1204
|
+
$ref: '#/components/schemas/SmallUserParam'
|
|
1205
|
+
- name: box
|
|
1206
|
+
in: query
|
|
1207
|
+
style: form
|
|
1208
|
+
explode: false
|
|
1209
|
+
schema:
|
|
1210
|
+
$ref: '#/components/schemas/BoxParam'
|
|
1211
|
+
- name: bias_postcode_outward
|
|
1212
|
+
in: query
|
|
1213
|
+
style: form
|
|
1214
|
+
explode: false
|
|
1215
|
+
schema:
|
|
1216
|
+
$ref: '#/components/schemas/BiasPostcodeOutwardParam'
|
|
1217
|
+
- name: bias_postcode
|
|
1218
|
+
in: query
|
|
1219
|
+
style: form
|
|
1220
|
+
explode: false
|
|
1221
|
+
schema:
|
|
1222
|
+
$ref: '#/components/schemas/BiasPostcodeParam'
|
|
1223
|
+
- name: bias_postcode_area
|
|
1224
|
+
in: query
|
|
1225
|
+
style: form
|
|
1226
|
+
explode: false
|
|
1227
|
+
schema:
|
|
1228
|
+
$ref: '#/components/schemas/BiasPostcodeAreaParam'
|
|
1229
|
+
- name: bias_postcode_sector
|
|
1230
|
+
in: query
|
|
1231
|
+
style: form
|
|
1232
|
+
explode: false
|
|
1233
|
+
schema:
|
|
1234
|
+
$ref: '#/components/schemas/BiasPostcodeSectorParam'
|
|
1235
|
+
- name: bias_post_town
|
|
1236
|
+
in: query
|
|
1237
|
+
style: form
|
|
1238
|
+
explode: false
|
|
1239
|
+
schema:
|
|
1240
|
+
$ref: '#/components/schemas/BiasPosttownParam'
|
|
1241
|
+
- name: bias_thoroughfare
|
|
1242
|
+
in: query
|
|
1243
|
+
style: form
|
|
1244
|
+
explode: false
|
|
1245
|
+
schema:
|
|
1246
|
+
$ref: '#/components/schemas/BiasThoroughfareParam'
|
|
1247
|
+
- name: bias_country
|
|
1248
|
+
in: query
|
|
1249
|
+
style: form
|
|
1250
|
+
explode: false
|
|
1251
|
+
schema:
|
|
1252
|
+
$ref: '#/components/schemas/BiasCountryParam'
|
|
1253
|
+
- name: bias_lonlat
|
|
1254
|
+
in: query
|
|
1255
|
+
style: form
|
|
1256
|
+
explode: false
|
|
1257
|
+
schema:
|
|
1258
|
+
$ref: '#/components/schemas/BiasLonLatParam'
|
|
1259
|
+
- name: bias_ip
|
|
1260
|
+
in: query
|
|
1261
|
+
style: form
|
|
1262
|
+
explode: false
|
|
1263
|
+
schema:
|
|
1264
|
+
$ref: '#/components/schemas/BiasIpParam'
|
|
1265
|
+
responses:
|
|
1266
|
+
'200':
|
|
1267
|
+
description: Success
|
|
1268
|
+
headers:
|
|
1269
|
+
X-RateLimit-Limit:
|
|
1270
|
+
description: The maximum number of requests that can be made in 5 minutes
|
|
1271
|
+
schema:
|
|
1272
|
+
type: number
|
|
1273
|
+
format: int32
|
|
1274
|
+
X-RateLimit-Remaining:
|
|
1275
|
+
description: The remaining requests within the current rate limit window
|
|
1276
|
+
schema:
|
|
1277
|
+
type: number
|
|
1278
|
+
format: int32
|
|
1279
|
+
X-RateLimit-Reset:
|
|
1280
|
+
description: >
|
|
1281
|
+
The time when the rate limit window resets in Unix Time
|
|
1282
|
+
(seconds) or UTC Epoch seconds.
|
|
1283
|
+
schema:
|
|
1284
|
+
type: number
|
|
1285
|
+
format: int32
|
|
1286
|
+
content:
|
|
1287
|
+
application/json:
|
|
1288
|
+
schema:
|
|
1289
|
+
$ref: '#/components/schemas/AutocompleteResponse'
|
|
1290
|
+
x-codeSamples:
|
|
1291
|
+
- lang: http
|
|
1292
|
+
label: URL
|
|
1293
|
+
source: >
|
|
1294
|
+
https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses?api_key=iddqd&q=10%20downing
|
|
1295
|
+
- lang: cURL
|
|
1296
|
+
label: CLI
|
|
1297
|
+
source: >
|
|
1298
|
+
curl -k -G
|
|
1299
|
+
'https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses' \
|
|
1300
|
+
-d 'api_key=iddqd' \
|
|
1301
|
+
--data-urlencode 'query=10 downing'
|
|
1302
|
+
/autocomplete/addresses/{address}/gbr:
|
|
1303
|
+
get:
|
|
1304
|
+
tags:
|
|
1305
|
+
- Address Search
|
|
1306
|
+
summary: Resolve Address (GBR)
|
|
1307
|
+
operationId: Resolve
|
|
1308
|
+
description: >
|
|
1309
|
+
Resolves an address autocompletion by its address ID.
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
Resolved addresses (including global addresses) are returned in a UK
|
|
1313
|
+
format (up to 3 address lines) using UK nomenclature (like postcode and
|
|
1314
|
+
county).
|
|
1315
|
+
parameters:
|
|
1316
|
+
- name: address
|
|
1317
|
+
in: path
|
|
1318
|
+
description: ID of address suggestion
|
|
1319
|
+
required: true
|
|
1320
|
+
style: simple
|
|
1321
|
+
explode: false
|
|
1322
|
+
schema:
|
|
1323
|
+
type: string
|
|
1324
|
+
- name: api_key
|
|
1325
|
+
in: query
|
|
1326
|
+
required: true
|
|
1327
|
+
style: form
|
|
1328
|
+
explode: false
|
|
1329
|
+
schema:
|
|
1330
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1331
|
+
responses:
|
|
1332
|
+
'200':
|
|
1333
|
+
description: Success
|
|
1334
|
+
headers: {}
|
|
1335
|
+
content:
|
|
1336
|
+
application/json:
|
|
1337
|
+
schema:
|
|
1338
|
+
$ref: '#/components/schemas/GbrResolveAddressResponse'
|
|
1339
|
+
'404':
|
|
1340
|
+
description: Resource not found
|
|
1341
|
+
content:
|
|
1342
|
+
application/json:
|
|
1343
|
+
schema:
|
|
1344
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
1345
|
+
x-codeSamples:
|
|
1346
|
+
- lang: http
|
|
1347
|
+
label: URL
|
|
1348
|
+
source: >
|
|
1349
|
+
https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd
|
|
1350
|
+
- lang: cURL
|
|
1351
|
+
label: CLI
|
|
1352
|
+
source: >
|
|
1353
|
+
curl -k -G
|
|
1354
|
+
https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd
|
|
1355
|
+
\
|
|
1356
|
+
-d "api_key=iddqd"
|
|
1357
|
+
/autocomplete/addresses/{address}/usa:
|
|
1358
|
+
get:
|
|
1359
|
+
tags:
|
|
1360
|
+
- Address Search
|
|
1361
|
+
summary: Resolve Address (USA)
|
|
1362
|
+
operationId: ResolveUsa
|
|
1363
|
+
description: >
|
|
1364
|
+
Resolves an address autocompletion by its address ID.
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
Resolved addresses (including global addresses) are returned in a US
|
|
1368
|
+
format (up to 2 address lines) using US nomenclature (like zipcode,
|
|
1369
|
+
state and city).
|
|
1370
|
+
parameters:
|
|
1371
|
+
- name: address
|
|
1372
|
+
in: path
|
|
1373
|
+
description: ID of address suggestion
|
|
1374
|
+
required: true
|
|
1375
|
+
style: simple
|
|
1376
|
+
explode: false
|
|
1377
|
+
schema:
|
|
1378
|
+
type: string
|
|
1379
|
+
- name: api_key
|
|
1380
|
+
in: query
|
|
1381
|
+
required: true
|
|
1382
|
+
style: form
|
|
1383
|
+
explode: false
|
|
1384
|
+
schema:
|
|
1385
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1386
|
+
responses:
|
|
1387
|
+
'200':
|
|
1388
|
+
description: Success
|
|
1389
|
+
headers: {}
|
|
1390
|
+
content:
|
|
1391
|
+
application/json:
|
|
1392
|
+
schema:
|
|
1393
|
+
$ref: '#/components/schemas/UsaResolveAddressResponse'
|
|
1394
|
+
'404':
|
|
1395
|
+
description: Resource not found
|
|
1396
|
+
content:
|
|
1397
|
+
application/json:
|
|
1398
|
+
schema:
|
|
1399
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
1400
|
+
x-codeSamples:
|
|
1401
|
+
- lang: http
|
|
1402
|
+
label: URL
|
|
1403
|
+
source: >
|
|
1404
|
+
https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd
|
|
1405
|
+
- lang: cURL
|
|
1406
|
+
label: CLI
|
|
1407
|
+
source: >
|
|
1408
|
+
curl -k -G
|
|
1409
|
+
https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd
|
|
1410
|
+
\
|
|
1411
|
+
-d "api_key=iddqd"
|
|
1412
|
+
/addresses:
|
|
1413
|
+
get:
|
|
1414
|
+
tags:
|
|
1415
|
+
- UK
|
|
1416
|
+
summary: Extract Addresses
|
|
1417
|
+
description: >
|
|
1418
|
+
Extract a list of complete addresses that match the query ordered by
|
|
1419
|
+
relevance score. This query accepts an optional limit and page query
|
|
1420
|
+
(defaults to 10 and 0 respectively).
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
If a valid postcode is passed as the query string, the entire address
|
|
1424
|
+
list for that postcode is passed as a result. Note, in these cases,
|
|
1425
|
+
limit and page parameters are ignored.
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
This API is designed as a multi-purpose tool for generating address
|
|
1429
|
+
lists, cleansing and wholesale data extraction according to specific
|
|
1430
|
+
parameters.
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
For address autocomplete, see our address finder API - which is designed
|
|
1434
|
+
for speed and address completion.
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
## Filters
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
You can strictly narrow your result by adding filters to your query
|
|
1441
|
+
string which correspond with an address attribute.
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
For instance, you can restrict to postcode `SW1A 2AA` by appending
|
|
1445
|
+
`postcode=sw1a2aa`.
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
If a filter term is invalid, e.g. `postcode=SW1A2AAA`, then an empty
|
|
1449
|
+
result set is returned and no lookup is incurred.
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
You can also scope using multiple terms for the same filter with a comma
|
|
1453
|
+
separated list of terms. E.g. Restrict results to E1, E2 and E3 outward
|
|
1454
|
+
codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the
|
|
1455
|
+
matching result sets are combined.
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
All filters can accept multiple terms unless stated otherwise below.
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
Multiple filters can also be combined. E.g. Restrict results to small
|
|
1462
|
+
user organisations in the N postcode area:
|
|
1463
|
+
`su_organisation_indicator=Y&postcode_area=n`. Multiple filters are
|
|
1464
|
+
`AND`'ed, i.e. each additional filter narrows the result set.
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
A combined maximum of 5 terms are allowed across all filters.
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
## Biases
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
You can boost certain addresses results that correspond with a certain
|
|
1474
|
+
address attribute. All bias searches are prefixed with `bias_`.
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
Biased searches, unlike filtered searches, also allow unmatched
|
|
1478
|
+
addresses to appear . These will rank lower.
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
For instance, you can boost addresses with postcode areas `SW` and `SE`
|
|
1482
|
+
by appending `bias_postcode_area=SW,SE`.
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
If a bias term is invalid, e.g. `bias_postcode=SW1A2AAA` no bias effect
|
|
1486
|
+
is applied.
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
You may scope using multiple terms for the same bias with a comma
|
|
1490
|
+
separated list of terms. E.g. Restrict results to `E1`, `E2` and `E3`
|
|
1491
|
+
outward codes: `bias_postcode_outward=e1,e2,e3`.
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
All biases can accept multiple terms unless stated otherwise below.
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
A combined maximum of 5 terms are allowed across all biases.
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
## Search by Postcode and Building Name or Number
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
Search by postcode and building attribute with the postcode filter and
|
|
1504
|
+
query argument. E.g. For "SW1A 2AA Prime Minister"
|
|
1505
|
+
`/v1/addresses?postcode=sw1a2aa&q=prime minister`.
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
The advantage of using filters is a postcode mismatch does not result in
|
|
1509
|
+
a lookup as no results are returned.
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
#### Search By UPRN
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
Search by UPRN using the `uprn` filter and excluding the query argument.
|
|
1516
|
+
E.g. `/v1/addresses?uprn=100`.
|
|
1517
|
+
|
|
1518
|
+
|
|
1519
|
+
## Testing
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
- **ID1 1QD** Returns a successful query response `2000`
|
|
1523
|
+
|
|
1524
|
+
- **ID1 KFA** Returns an empty query response `2000`
|
|
1525
|
+
|
|
1526
|
+
- **ID1 CLIP** Returns "no lookups remaining" error `4020`
|
|
1527
|
+
|
|
1528
|
+
- **ID1 CHOP** Returns "daily (or individual) lookup limit breached"
|
|
1529
|
+
error `4021`
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
Test request undergo the usual authentication and restriction rules.
|
|
1533
|
+
This is to help surface any issues that occur during implementation and
|
|
1534
|
+
does not cost you a lookup.
|
|
1535
|
+
operationId: Addresses
|
|
1536
|
+
parameters:
|
|
1537
|
+
- name: api_key
|
|
1538
|
+
in: query
|
|
1539
|
+
style: form
|
|
1540
|
+
required: true
|
|
1541
|
+
explode: false
|
|
1542
|
+
schema:
|
|
1543
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1544
|
+
- name: query
|
|
1545
|
+
in: query
|
|
1546
|
+
description: >-
|
|
1547
|
+
Specifies the address you wish to query. Query can be shortened to
|
|
1548
|
+
`q=`
|
|
1549
|
+
style: form
|
|
1550
|
+
explode: false
|
|
1551
|
+
schema:
|
|
1552
|
+
type: string
|
|
1553
|
+
- name: limit
|
|
1554
|
+
in: query
|
|
1555
|
+
style: form
|
|
1556
|
+
explode: false
|
|
1557
|
+
schema:
|
|
1558
|
+
$ref: '#/components/schemas/LimitParam'
|
|
1559
|
+
- name: page
|
|
1560
|
+
in: query
|
|
1561
|
+
style: form
|
|
1562
|
+
explode: false
|
|
1563
|
+
schema:
|
|
1564
|
+
$ref: '#/components/schemas/PageParam'
|
|
1565
|
+
- name: filter
|
|
1566
|
+
in: query
|
|
1567
|
+
style: form
|
|
1568
|
+
explode: false
|
|
1569
|
+
schema:
|
|
1570
|
+
$ref: '#/components/schemas/FilterParam'
|
|
1571
|
+
- name: postcode_outward
|
|
1572
|
+
in: query
|
|
1573
|
+
style: form
|
|
1574
|
+
explode: false
|
|
1575
|
+
schema:
|
|
1576
|
+
$ref: '#/components/schemas/PostcodeOutwardParam'
|
|
1577
|
+
- name: postcode
|
|
1578
|
+
in: query
|
|
1579
|
+
style: form
|
|
1580
|
+
explode: false
|
|
1581
|
+
schema:
|
|
1582
|
+
$ref: '#/components/schemas/PostcodeParam'
|
|
1583
|
+
- name: postcode_area
|
|
1584
|
+
in: query
|
|
1585
|
+
style: form
|
|
1586
|
+
explode: false
|
|
1587
|
+
schema:
|
|
1588
|
+
$ref: '#/components/schemas/PostcodeAreaParam'
|
|
1589
|
+
- name: postcode_sector
|
|
1590
|
+
in: query
|
|
1591
|
+
style: form
|
|
1592
|
+
explode: false
|
|
1593
|
+
schema:
|
|
1594
|
+
$ref: '#/components/schemas/PostcodeSectorParam'
|
|
1595
|
+
- name: post_town
|
|
1596
|
+
in: query
|
|
1597
|
+
style: form
|
|
1598
|
+
explode: false
|
|
1599
|
+
schema:
|
|
1600
|
+
$ref: '#/components/schemas/PostTownParam'
|
|
1601
|
+
- name: uprn
|
|
1602
|
+
in: query
|
|
1603
|
+
style: form
|
|
1604
|
+
explode: false
|
|
1605
|
+
schema:
|
|
1606
|
+
$ref: '#/components/schemas/UPRNParam'
|
|
1607
|
+
- name: country
|
|
1608
|
+
in: query
|
|
1609
|
+
style: form
|
|
1610
|
+
explode: false
|
|
1611
|
+
schema:
|
|
1612
|
+
$ref: '#/components/schemas/CountryParam'
|
|
1613
|
+
- name: postcode_type
|
|
1614
|
+
in: query
|
|
1615
|
+
style: form
|
|
1616
|
+
explode: false
|
|
1617
|
+
schema:
|
|
1618
|
+
$ref: '#/components/schemas/PostcodeTypeParam'
|
|
1619
|
+
- name: su_organisation_indicator
|
|
1620
|
+
in: query
|
|
1621
|
+
style: form
|
|
1622
|
+
explode: false
|
|
1623
|
+
schema:
|
|
1624
|
+
$ref: '#/components/schemas/SmallUserParam'
|
|
1625
|
+
- name: box
|
|
1626
|
+
in: query
|
|
1627
|
+
style: form
|
|
1628
|
+
explode: false
|
|
1629
|
+
schema:
|
|
1630
|
+
$ref: '#/components/schemas/BoxParam'
|
|
1631
|
+
- name: bias_postcode_outward
|
|
1632
|
+
in: query
|
|
1633
|
+
style: form
|
|
1634
|
+
explode: false
|
|
1635
|
+
schema:
|
|
1636
|
+
$ref: '#/components/schemas/BiasPostcodeOutwardParam'
|
|
1637
|
+
- name: bias_postcode
|
|
1638
|
+
in: query
|
|
1639
|
+
style: form
|
|
1640
|
+
explode: false
|
|
1641
|
+
schema:
|
|
1642
|
+
$ref: '#/components/schemas/BiasPostcodeParam'
|
|
1643
|
+
- name: bias_postcode_area
|
|
1644
|
+
in: query
|
|
1645
|
+
style: form
|
|
1646
|
+
explode: false
|
|
1647
|
+
schema:
|
|
1648
|
+
$ref: '#/components/schemas/BiasPostcodeAreaParam'
|
|
1649
|
+
- name: bias_postcode_sector
|
|
1650
|
+
in: query
|
|
1651
|
+
style: form
|
|
1652
|
+
explode: false
|
|
1653
|
+
schema:
|
|
1654
|
+
$ref: '#/components/schemas/BiasPostcodeSectorParam'
|
|
1655
|
+
- name: bias_post_town
|
|
1656
|
+
in: query
|
|
1657
|
+
style: form
|
|
1658
|
+
explode: false
|
|
1659
|
+
schema:
|
|
1660
|
+
$ref: '#/components/schemas/BiasPosttownParam'
|
|
1661
|
+
- name: bias_thoroughfare
|
|
1662
|
+
in: query
|
|
1663
|
+
style: form
|
|
1664
|
+
explode: false
|
|
1665
|
+
schema:
|
|
1666
|
+
$ref: '#/components/schemas/BiasThoroughfareParam'
|
|
1667
|
+
- name: bias_country
|
|
1668
|
+
in: query
|
|
1669
|
+
style: form
|
|
1670
|
+
explode: false
|
|
1671
|
+
schema:
|
|
1672
|
+
$ref: '#/components/schemas/BiasCountryParam'
|
|
1673
|
+
- name: bias_lonlat
|
|
1674
|
+
in: query
|
|
1675
|
+
style: form
|
|
1676
|
+
explode: false
|
|
1677
|
+
schema:
|
|
1678
|
+
$ref: '#/components/schemas/BiasLonLatParam'
|
|
1679
|
+
responses:
|
|
1680
|
+
'200':
|
|
1681
|
+
description: Success
|
|
1682
|
+
content:
|
|
1683
|
+
application/json:
|
|
1684
|
+
schema:
|
|
1685
|
+
$ref: '#/components/schemas/AddressResponse'
|
|
1686
|
+
x-codeSamples:
|
|
1687
|
+
- lang: http
|
|
1688
|
+
label: URL
|
|
1689
|
+
source: >
|
|
1690
|
+
https://api.ideal-postcodes.co.uk/v1/addresses?api_key=iddqd&query=10%20downing%20street%20london
|
|
1691
|
+
- lang: cURL
|
|
1692
|
+
label: CLI
|
|
1693
|
+
source: |
|
|
1694
|
+
curl -k -G 'https://api.ideal-postcodes.co.uk/v1/addresses' \
|
|
1695
|
+
-d 'api_key=iddqd' \
|
|
1696
|
+
--data-urlencode 'query=10 downing street london'
|
|
1697
|
+
/keys/{key}/licensees:
|
|
1698
|
+
get:
|
|
1699
|
+
tags:
|
|
1700
|
+
- Licensees
|
|
1701
|
+
summary: List
|
|
1702
|
+
description: Returns a list of licensees for a key.
|
|
1703
|
+
operationId: ListLicensees
|
|
1704
|
+
parameters:
|
|
1705
|
+
- name: key
|
|
1706
|
+
in: path
|
|
1707
|
+
required: true
|
|
1708
|
+
style: simple
|
|
1709
|
+
explode: false
|
|
1710
|
+
schema:
|
|
1711
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1712
|
+
- name: starting_after
|
|
1713
|
+
in: query
|
|
1714
|
+
description: >-
|
|
1715
|
+
Specify ID of the licensee after which you would like to list
|
|
1716
|
+
results
|
|
1717
|
+
style: form
|
|
1718
|
+
explode: false
|
|
1719
|
+
schema:
|
|
1720
|
+
type: integer
|
|
1721
|
+
format: int32
|
|
1722
|
+
- name: user_token
|
|
1723
|
+
in: query
|
|
1724
|
+
required: true
|
|
1725
|
+
style: form
|
|
1726
|
+
explode: false
|
|
1727
|
+
schema:
|
|
1728
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
1729
|
+
- name: limit
|
|
1730
|
+
in: query
|
|
1731
|
+
description: >-
|
|
1732
|
+
Specify the maximum number of results to return per page. Default
|
|
1733
|
+
and maximum is `100`.
|
|
1734
|
+
style: form
|
|
1735
|
+
explode: false
|
|
1736
|
+
schema:
|
|
1737
|
+
$ref: '#/components/schemas/LimitParam'
|
|
1738
|
+
- name: query
|
|
1739
|
+
in: query
|
|
1740
|
+
description: Filter result by licensee name. Query can be shortened to `q=`
|
|
1741
|
+
style: form
|
|
1742
|
+
explode: false
|
|
1743
|
+
schema:
|
|
1744
|
+
type: string
|
|
1745
|
+
responses:
|
|
1746
|
+
'200':
|
|
1747
|
+
description: Success
|
|
1748
|
+
content:
|
|
1749
|
+
application/json:
|
|
1750
|
+
schema:
|
|
1751
|
+
$ref: '#/components/schemas/LicenseesResponse'
|
|
1752
|
+
post:
|
|
1753
|
+
tags:
|
|
1754
|
+
- Licensees
|
|
1755
|
+
summary: Create
|
|
1756
|
+
description: Create a licensee for the specified API Key.
|
|
1757
|
+
operationId: CreateLicensee
|
|
1758
|
+
parameters:
|
|
1759
|
+
- name: key
|
|
1760
|
+
in: path
|
|
1761
|
+
required: true
|
|
1762
|
+
style: simple
|
|
1763
|
+
explode: false
|
|
1764
|
+
schema:
|
|
1765
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1766
|
+
- name: user_token
|
|
1767
|
+
in: query
|
|
1768
|
+
required: true
|
|
1769
|
+
style: form
|
|
1770
|
+
explode: false
|
|
1771
|
+
schema:
|
|
1772
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
1773
|
+
requestBody:
|
|
1774
|
+
content:
|
|
1775
|
+
application/json:
|
|
1776
|
+
schema:
|
|
1777
|
+
$ref: '#/components/schemas/LicenseeEditable'
|
|
1778
|
+
required: true
|
|
1779
|
+
responses:
|
|
1780
|
+
'200':
|
|
1781
|
+
description: Success
|
|
1782
|
+
content:
|
|
1783
|
+
application/json:
|
|
1784
|
+
schema:
|
|
1785
|
+
$ref: '#/components/schemas/LicenseeResponse'
|
|
1786
|
+
/keys/{key}/licensees/{licensee}:
|
|
1787
|
+
get:
|
|
1788
|
+
tags:
|
|
1789
|
+
- Licensees
|
|
1790
|
+
summary: Retrieve
|
|
1791
|
+
description: Returns licensee information as identified by the licensee key.
|
|
1792
|
+
operationId: RetrieveLicensee
|
|
1793
|
+
parameters:
|
|
1794
|
+
- name: key
|
|
1795
|
+
in: path
|
|
1796
|
+
required: true
|
|
1797
|
+
style: simple
|
|
1798
|
+
explode: false
|
|
1799
|
+
schema:
|
|
1800
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1801
|
+
- name: licensee
|
|
1802
|
+
in: path
|
|
1803
|
+
required: true
|
|
1804
|
+
style: simple
|
|
1805
|
+
explode: false
|
|
1806
|
+
schema:
|
|
1807
|
+
$ref: '#/components/schemas/LicenseeParam'
|
|
1808
|
+
- name: user_token
|
|
1809
|
+
in: query
|
|
1810
|
+
required: true
|
|
1811
|
+
style: form
|
|
1812
|
+
explode: false
|
|
1813
|
+
schema:
|
|
1814
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
1815
|
+
responses:
|
|
1816
|
+
'200':
|
|
1817
|
+
description: Success
|
|
1818
|
+
headers: {}
|
|
1819
|
+
content:
|
|
1820
|
+
application/json:
|
|
1821
|
+
schema:
|
|
1822
|
+
$ref: '#/components/schemas/LicenseeResponse'
|
|
1823
|
+
delete:
|
|
1824
|
+
tags:
|
|
1825
|
+
- Licensees
|
|
1826
|
+
summary: Cancel
|
|
1827
|
+
description: >-
|
|
1828
|
+
Cancels a licensee key. This renders a licensee unusable. This action
|
|
1829
|
+
can be reversed if you get in contact with us.
|
|
1830
|
+
operationId: DeleteLicensee
|
|
1831
|
+
parameters:
|
|
1832
|
+
- name: key
|
|
1833
|
+
in: path
|
|
1834
|
+
required: true
|
|
1835
|
+
style: simple
|
|
1836
|
+
explode: false
|
|
1837
|
+
schema:
|
|
1838
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1839
|
+
- name: licensee
|
|
1840
|
+
in: path
|
|
1841
|
+
required: true
|
|
1842
|
+
style: simple
|
|
1843
|
+
explode: false
|
|
1844
|
+
schema:
|
|
1845
|
+
$ref: '#/components/schemas/LicenseeParam'
|
|
1846
|
+
- name: user_token
|
|
1847
|
+
in: query
|
|
1848
|
+
required: true
|
|
1849
|
+
style: form
|
|
1850
|
+
explode: false
|
|
1851
|
+
schema:
|
|
1852
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
1853
|
+
responses:
|
|
1854
|
+
'200':
|
|
1855
|
+
description: Success
|
|
1856
|
+
content:
|
|
1857
|
+
application/json:
|
|
1858
|
+
schema:
|
|
1859
|
+
required:
|
|
1860
|
+
- result
|
|
1861
|
+
- code
|
|
1862
|
+
- message
|
|
1863
|
+
title: Licensee Delete Response
|
|
1864
|
+
type: object
|
|
1865
|
+
properties:
|
|
1866
|
+
result:
|
|
1867
|
+
type: object
|
|
1868
|
+
required:
|
|
1869
|
+
- deleted
|
|
1870
|
+
properties:
|
|
1871
|
+
deleted:
|
|
1872
|
+
type: number
|
|
1873
|
+
format: int32
|
|
1874
|
+
example: 1
|
|
1875
|
+
minimum: 0
|
|
1876
|
+
code:
|
|
1877
|
+
type: integer
|
|
1878
|
+
format: int32
|
|
1879
|
+
enum:
|
|
1880
|
+
- 2000
|
|
1881
|
+
message:
|
|
1882
|
+
type: string
|
|
1883
|
+
enum:
|
|
1884
|
+
- Success
|
|
1885
|
+
put:
|
|
1886
|
+
tags:
|
|
1887
|
+
- Licensees
|
|
1888
|
+
summary: Update
|
|
1889
|
+
description: Update Licensee
|
|
1890
|
+
operationId: UpdateLicensee
|
|
1891
|
+
parameters:
|
|
1892
|
+
- name: key
|
|
1893
|
+
in: path
|
|
1894
|
+
required: true
|
|
1895
|
+
style: simple
|
|
1896
|
+
explode: false
|
|
1897
|
+
schema:
|
|
1898
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1899
|
+
- name: licensee
|
|
1900
|
+
in: path
|
|
1901
|
+
required: true
|
|
1902
|
+
style: simple
|
|
1903
|
+
explode: false
|
|
1904
|
+
schema:
|
|
1905
|
+
$ref: '#/components/schemas/LicenseeParam'
|
|
1906
|
+
- name: user_token
|
|
1907
|
+
in: query
|
|
1908
|
+
required: true
|
|
1909
|
+
style: form
|
|
1910
|
+
explode: false
|
|
1911
|
+
schema:
|
|
1912
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
1913
|
+
requestBody:
|
|
1914
|
+
content:
|
|
1915
|
+
application/json:
|
|
1916
|
+
schema:
|
|
1917
|
+
$ref: '#/components/schemas/LicenseeEditable'
|
|
1918
|
+
required: true
|
|
1919
|
+
responses:
|
|
1920
|
+
'200':
|
|
1921
|
+
description: Success
|
|
1922
|
+
content:
|
|
1923
|
+
application/json:
|
|
1924
|
+
schema:
|
|
1925
|
+
$ref: '#/components/schemas/LicenseeResponse'
|
|
1926
|
+
/keys/{key}/configs:
|
|
1927
|
+
get:
|
|
1928
|
+
tags:
|
|
1929
|
+
- Configs
|
|
1930
|
+
summary: List
|
|
1931
|
+
description: Lists configurations associated with a key
|
|
1932
|
+
operationId: ListConfigs
|
|
1933
|
+
parameters:
|
|
1934
|
+
- name: key
|
|
1935
|
+
in: path
|
|
1936
|
+
required: true
|
|
1937
|
+
style: simple
|
|
1938
|
+
explode: false
|
|
1939
|
+
schema:
|
|
1940
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1941
|
+
- name: user_token
|
|
1942
|
+
in: query
|
|
1943
|
+
required: true
|
|
1944
|
+
style: form
|
|
1945
|
+
explode: false
|
|
1946
|
+
schema:
|
|
1947
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
1948
|
+
responses:
|
|
1949
|
+
'200':
|
|
1950
|
+
description: Success
|
|
1951
|
+
content:
|
|
1952
|
+
application/json:
|
|
1953
|
+
schema:
|
|
1954
|
+
$ref: '#/components/schemas/ConfigsResponse'
|
|
1955
|
+
'400':
|
|
1956
|
+
description: Bad Request
|
|
1957
|
+
content:
|
|
1958
|
+
application/json:
|
|
1959
|
+
schema:
|
|
1960
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
1961
|
+
'401':
|
|
1962
|
+
description: Unauthorized Request
|
|
1963
|
+
content:
|
|
1964
|
+
application/json:
|
|
1965
|
+
schema:
|
|
1966
|
+
$ref: '#/components/schemas/UnauthorizedResponse'
|
|
1967
|
+
post:
|
|
1968
|
+
tags:
|
|
1969
|
+
- Configs
|
|
1970
|
+
summary: Create
|
|
1971
|
+
description: Create a config
|
|
1972
|
+
operationId: CreateConfig
|
|
1973
|
+
parameters:
|
|
1974
|
+
- name: key
|
|
1975
|
+
in: path
|
|
1976
|
+
required: true
|
|
1977
|
+
style: simple
|
|
1978
|
+
explode: false
|
|
1979
|
+
schema:
|
|
1980
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
1981
|
+
- name: user_token
|
|
1982
|
+
in: query
|
|
1983
|
+
required: true
|
|
1984
|
+
style: form
|
|
1985
|
+
explode: false
|
|
1986
|
+
schema:
|
|
1987
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
1988
|
+
requestBody:
|
|
1989
|
+
content:
|
|
1990
|
+
application/json:
|
|
1991
|
+
schema:
|
|
1992
|
+
$ref: '#/components/schemas/ConfigNewParam'
|
|
1993
|
+
required: true
|
|
1994
|
+
responses:
|
|
1995
|
+
'200':
|
|
1996
|
+
description: Success
|
|
1997
|
+
content:
|
|
1998
|
+
application/json:
|
|
1999
|
+
schema:
|
|
2000
|
+
$ref: '#/components/schemas/ConfigResponse'
|
|
2001
|
+
'400':
|
|
2002
|
+
description: Bad Request
|
|
2003
|
+
content:
|
|
2004
|
+
application/json:
|
|
2005
|
+
schema:
|
|
2006
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
2007
|
+
'401':
|
|
2008
|
+
description: Unauthorized Request
|
|
2009
|
+
content:
|
|
2010
|
+
application/json:
|
|
2011
|
+
schema:
|
|
2012
|
+
$ref: '#/components/schemas/UnauthorizedResponse'
|
|
2013
|
+
/keys/{key}/configs/{config}:
|
|
2014
|
+
get:
|
|
2015
|
+
tags:
|
|
2016
|
+
- Configs
|
|
2017
|
+
summary: Retrieve
|
|
2018
|
+
description: Retrieve config object by name
|
|
2019
|
+
operationId: RetrieveConfig
|
|
2020
|
+
parameters:
|
|
2021
|
+
- name: key
|
|
2022
|
+
in: path
|
|
2023
|
+
required: true
|
|
2024
|
+
style: simple
|
|
2025
|
+
explode: false
|
|
2026
|
+
schema:
|
|
2027
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
2028
|
+
- name: config
|
|
2029
|
+
in: path
|
|
2030
|
+
required: true
|
|
2031
|
+
style: simple
|
|
2032
|
+
explode: false
|
|
2033
|
+
schema:
|
|
2034
|
+
$ref: '#/components/schemas/ConfigParam'
|
|
2035
|
+
responses:
|
|
2036
|
+
'200':
|
|
2037
|
+
description: Success
|
|
2038
|
+
headers: {}
|
|
2039
|
+
content:
|
|
2040
|
+
application/json:
|
|
2041
|
+
schema:
|
|
2042
|
+
$ref: '#/components/schemas/ConfigResponse'
|
|
2043
|
+
'400':
|
|
2044
|
+
description: Bad Request
|
|
2045
|
+
content:
|
|
2046
|
+
application/json:
|
|
2047
|
+
schema:
|
|
2048
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
2049
|
+
'404':
|
|
2050
|
+
description: Not Found
|
|
2051
|
+
content:
|
|
2052
|
+
application/json:
|
|
2053
|
+
schema:
|
|
2054
|
+
$ref: '#/components/schemas/NotFoundResponse'
|
|
2055
|
+
delete:
|
|
2056
|
+
tags:
|
|
2057
|
+
- Configs
|
|
2058
|
+
summary: Delete
|
|
2059
|
+
description: Permanently deletes a configuration object.
|
|
2060
|
+
operationId: DeleteConfig
|
|
2061
|
+
parameters:
|
|
2062
|
+
- name: key
|
|
2063
|
+
in: path
|
|
2064
|
+
required: true
|
|
2065
|
+
style: simple
|
|
2066
|
+
explode: false
|
|
2067
|
+
schema:
|
|
2068
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
2069
|
+
- name: config
|
|
2070
|
+
in: path
|
|
2071
|
+
required: true
|
|
2072
|
+
style: simple
|
|
2073
|
+
explode: false
|
|
2074
|
+
schema:
|
|
2075
|
+
$ref: '#/components/schemas/ConfigParam'
|
|
2076
|
+
- name: user_token
|
|
2077
|
+
in: query
|
|
2078
|
+
required: true
|
|
2079
|
+
style: form
|
|
2080
|
+
explode: false
|
|
2081
|
+
schema:
|
|
2082
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
2083
|
+
responses:
|
|
2084
|
+
'200':
|
|
2085
|
+
description: Success
|
|
2086
|
+
content:
|
|
2087
|
+
application/json:
|
|
2088
|
+
schema:
|
|
2089
|
+
title: Config Delete Response
|
|
2090
|
+
type: object
|
|
2091
|
+
required:
|
|
2092
|
+
- result
|
|
2093
|
+
- code
|
|
2094
|
+
- message
|
|
2095
|
+
properties:
|
|
2096
|
+
result:
|
|
2097
|
+
type: object
|
|
2098
|
+
required:
|
|
2099
|
+
- deleted
|
|
2100
|
+
properties:
|
|
2101
|
+
deleted:
|
|
2102
|
+
type: number
|
|
2103
|
+
format: int32
|
|
2104
|
+
example: 1
|
|
2105
|
+
minimum: 0
|
|
2106
|
+
code:
|
|
2107
|
+
type: integer
|
|
2108
|
+
format: int32
|
|
2109
|
+
enum:
|
|
2110
|
+
- 2000
|
|
2111
|
+
message:
|
|
2112
|
+
type: string
|
|
2113
|
+
enum:
|
|
2114
|
+
- Success
|
|
2115
|
+
'400':
|
|
2116
|
+
description: Bad Request
|
|
2117
|
+
content:
|
|
2118
|
+
application/json:
|
|
2119
|
+
schema:
|
|
2120
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
2121
|
+
'401':
|
|
2122
|
+
description: Unauthorized Request
|
|
2123
|
+
content:
|
|
2124
|
+
application/json:
|
|
2125
|
+
schema:
|
|
2126
|
+
$ref: '#/components/schemas/UnauthorizedResponse'
|
|
2127
|
+
'404':
|
|
2128
|
+
description: Not Found
|
|
2129
|
+
content:
|
|
2130
|
+
application/json:
|
|
2131
|
+
schema:
|
|
2132
|
+
$ref: '#/components/schemas/NotFoundResponse'
|
|
2133
|
+
post:
|
|
2134
|
+
tags:
|
|
2135
|
+
- Configs
|
|
2136
|
+
summary: Update
|
|
2137
|
+
description: Updates configuration object
|
|
2138
|
+
operationId: UpdateConfig
|
|
2139
|
+
parameters:
|
|
2140
|
+
- name: key
|
|
2141
|
+
in: path
|
|
2142
|
+
required: true
|
|
2143
|
+
style: simple
|
|
2144
|
+
explode: false
|
|
2145
|
+
schema:
|
|
2146
|
+
$ref: '#/components/schemas/ApiKeyParam'
|
|
2147
|
+
- name: config
|
|
2148
|
+
in: path
|
|
2149
|
+
required: true
|
|
2150
|
+
style: simple
|
|
2151
|
+
explode: false
|
|
2152
|
+
schema:
|
|
2153
|
+
$ref: '#/components/schemas/ConfigParam'
|
|
2154
|
+
- name: user_token
|
|
2155
|
+
in: query
|
|
2156
|
+
required: true
|
|
2157
|
+
style: form
|
|
2158
|
+
explode: false
|
|
2159
|
+
schema:
|
|
2160
|
+
$ref: '#/components/schemas/UserTokenParam'
|
|
2161
|
+
requestBody:
|
|
2162
|
+
content:
|
|
2163
|
+
application/json:
|
|
2164
|
+
schema:
|
|
2165
|
+
$ref: '#/components/schemas/ConfigUpdateParam'
|
|
2166
|
+
required: true
|
|
2167
|
+
responses:
|
|
2168
|
+
'200':
|
|
2169
|
+
description: Success
|
|
2170
|
+
content:
|
|
2171
|
+
application/json:
|
|
2172
|
+
schema:
|
|
2173
|
+
$ref: '#/components/schemas/ConfigResponse'
|
|
2174
|
+
'400':
|
|
2175
|
+
description: Bad Request
|
|
2176
|
+
content:
|
|
2177
|
+
application/json:
|
|
2178
|
+
schema:
|
|
2179
|
+
$ref: '#/components/schemas/BadRequestResponse'
|
|
2180
|
+
'401':
|
|
2181
|
+
description: Unauthorized Request
|
|
2182
|
+
content:
|
|
2183
|
+
application/json:
|
|
2184
|
+
schema:
|
|
2185
|
+
$ref: '#/components/schemas/UnauthorizedResponse'
|
|
2186
|
+
'404':
|
|
2187
|
+
description: Not Found
|
|
2188
|
+
content:
|
|
2189
|
+
application/json:
|
|
2190
|
+
schema:
|
|
2191
|
+
$ref: '#/components/schemas/NotFoundResponse'
|
|
2192
|
+
components:
|
|
2193
|
+
schemas:
|
|
2194
|
+
Postcode:
|
|
2195
|
+
title: Postcode
|
|
2196
|
+
type: string
|
|
2197
|
+
description: Correctly formatted postcode. Capitalised and spaced.
|
|
2198
|
+
maxLength: 8
|
|
2199
|
+
minLength: 6
|
|
2200
|
+
example: SW1A 2AA
|
|
2201
|
+
ApiKeyParam:
|
|
2202
|
+
title: API Key
|
|
2203
|
+
type: string
|
|
2204
|
+
description: |
|
|
2205
|
+
Your API Key. Typically beings `ak_`.
|
|
2206
|
+
|
|
2207
|
+
Available from your dashboard
|
|
2208
|
+
example: ak_hk71kco54zGSGvF9eXXrvvnMOLLNh
|
|
2209
|
+
FilterParam:
|
|
2210
|
+
title: Filter
|
|
2211
|
+
type: string
|
|
2212
|
+
description: >
|
|
2213
|
+
Comma separated whitelist of address elements to return.
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
E.g. `filter=line_1,line_2,line_3` returns only `line_1`, `line_2` and
|
|
2217
|
+
`line_3` address elements in your response
|
|
2218
|
+
example: line_1,line_2,line_3
|
|
2219
|
+
PageParam:
|
|
2220
|
+
title: Page
|
|
2221
|
+
type: integer
|
|
2222
|
+
format: int32
|
|
2223
|
+
description: >
|
|
2224
|
+
0 indexed indicator of the page of results to receive. Virtually all
|
|
2225
|
+
postcode results are returned on page 0.
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
A small number of Multiple Residence postcodes may need pagination (i.e.
|
|
2229
|
+
have more than 100 premises).
|
|
2230
|
+
minimum: 0
|
|
2231
|
+
default: 0
|
|
2232
|
+
example: 0
|
|
2233
|
+
PostcodeOutward:
|
|
2234
|
+
title: Postcode Outward
|
|
2235
|
+
type: string
|
|
2236
|
+
description: >-
|
|
2237
|
+
The first part of a postcode is known as the outward code. e.g. The
|
|
2238
|
+
outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct
|
|
2239
|
+
local area for delivery. This part of the code contains the area and the
|
|
2240
|
+
district to which the mail is to be delivered, e.g. ‘PO1’, ‘SW1A’ or
|
|
2241
|
+
‘B23’.
|
|
2242
|
+
maxLength: 4
|
|
2243
|
+
minLength: 2
|
|
2244
|
+
example: SW1A
|
|
2245
|
+
PostcodeInward:
|
|
2246
|
+
title: Postcode Inward
|
|
2247
|
+
type: string
|
|
2248
|
+
description: >-
|
|
2249
|
+
The second part of a postcode is known as the inward Code. e.g. The
|
|
2250
|
+
inward code of ID1 1QD is 1QD. This part is one number followed by two
|
|
2251
|
+
letters. The number identifies the sector in the postal district. The
|
|
2252
|
+
letters then define one or more properties in that sector.
|
|
2253
|
+
maxLength: 3
|
|
2254
|
+
minLength: 3
|
|
2255
|
+
example: 2AA
|
|
2256
|
+
PostTown:
|
|
2257
|
+
title: Post Town
|
|
2258
|
+
type: string
|
|
2259
|
+
description: >-
|
|
2260
|
+
A Post Town is mandatory for delivery of mail to a Delivery Point. This
|
|
2261
|
+
is not necessarily the nearest town geographically, but a routing
|
|
2262
|
+
instruction to the Royal Mail delivery office sorting mail for that
|
|
2263
|
+
Delivery Point. A Post Town will always be present in every address, and
|
|
2264
|
+
for some Localities the Post Town will be the only locality element
|
|
2265
|
+
present.
|
|
2266
|
+
maxLength: 30
|
|
2267
|
+
example: London
|
|
2268
|
+
DependantLocality:
|
|
2269
|
+
title: Dependant Locality
|
|
2270
|
+
type: string
|
|
2271
|
+
description: >-
|
|
2272
|
+
When the same thoroughfare name reoccurs in a Post town, it may not be
|
|
2273
|
+
possible to make it dependant on a dependant thoroughfare. In this case
|
|
2274
|
+
the thoroughfare is dependant on a locality. For example if we want to
|
|
2275
|
+
find 1 Back Lane in Huddersfield we see that there are three.
|
|
2276
|
+
maxLength: 35
|
|
2277
|
+
example: ''
|
|
2278
|
+
DoubleDependantLocality:
|
|
2279
|
+
title: Double Dependant Locality
|
|
2280
|
+
type: string
|
|
2281
|
+
description: >-
|
|
2282
|
+
Used to supplement Dependant Locality. A Double Dependant Locality
|
|
2283
|
+
supplied along with a Dependant Locality if the Dependant Locality
|
|
2284
|
+
exists twice in the same locality.
|
|
2285
|
+
maxLength: 35
|
|
2286
|
+
example: ''
|
|
2287
|
+
Thoroughfare:
|
|
2288
|
+
title: Thoroughfare
|
|
2289
|
+
type: string
|
|
2290
|
+
description: >-
|
|
2291
|
+
Also known as the street or road name. In general each Thoroughfare Name
|
|
2292
|
+
will have a separate Postcode. Longer Thoroughfares with high number
|
|
2293
|
+
ranges often have multiple Postcodes covering the entire length of the
|
|
2294
|
+
road, with breaks at suitable points e.g. junctions or natural breaks in
|
|
2295
|
+
the road.
|
|
2296
|
+
maxLength: 80
|
|
2297
|
+
example: Downing Street
|
|
2298
|
+
DependantThoroughfare:
|
|
2299
|
+
title: Dependant Thoroughfare
|
|
2300
|
+
type: string
|
|
2301
|
+
description: >-
|
|
2302
|
+
Used to supplement thoroughfare. When a thoroughfare name is used twice
|
|
2303
|
+
in the same Post Town, the dependant thoroughfare is added to uniquely
|
|
2304
|
+
indentify a delivery point.
|
|
2305
|
+
maxLength: 80
|
|
2306
|
+
example: ''
|
|
2307
|
+
BuildingNumber:
|
|
2308
|
+
title: Building Number
|
|
2309
|
+
type: string
|
|
2310
|
+
description: Number to identify premise on a thoroughfare or dependant thoroughfare.
|
|
2311
|
+
maxLength: 4
|
|
2312
|
+
example: '10'
|
|
2313
|
+
BuildingName:
|
|
2314
|
+
title: Building Name
|
|
2315
|
+
type: string
|
|
2316
|
+
description: >-
|
|
2317
|
+
Name of residential or commercial premise. E.g. The Manor, 1-2, A, 12A,
|
|
2318
|
+
K, Victoria House
|
|
2319
|
+
maxLength: 50
|
|
2320
|
+
example: ''
|
|
2321
|
+
SubBuildingName:
|
|
2322
|
+
title: Sub-Building Name
|
|
2323
|
+
type: string
|
|
2324
|
+
description: >-
|
|
2325
|
+
When a premise is split into individual units such as flats, apartments
|
|
2326
|
+
or business units. Cannot be present without either building_name or
|
|
2327
|
+
building_number. E.g. Flat 1, A, 10B
|
|
2328
|
+
maxLength: 30
|
|
2329
|
+
example: ''
|
|
2330
|
+
POBox:
|
|
2331
|
+
title: PO Box
|
|
2332
|
+
type: string
|
|
2333
|
+
description: >-
|
|
2334
|
+
When the PO Box Number field is populated it will contain PO BOX nnnnnn
|
|
2335
|
+
where n represents the PO Box number. Note that the PO Box details can
|
|
2336
|
+
occasionally consist of a combination of numbers and letters. PO Box
|
|
2337
|
+
Numbers are only allocated to Large Users.
|
|
2338
|
+
maxLength: 6
|
|
2339
|
+
example: HK860
|
|
2340
|
+
DepartmentName:
|
|
2341
|
+
title: Department Name
|
|
2342
|
+
type: string
|
|
2343
|
+
description: >-
|
|
2344
|
+
Used to supplment Organisation Name to identify a deparment within the
|
|
2345
|
+
organisation.
|
|
2346
|
+
maxLength: 60
|
|
2347
|
+
example: ''
|
|
2348
|
+
OrganisationName:
|
|
2349
|
+
title: Organisation Name
|
|
2350
|
+
type: string
|
|
2351
|
+
description: >-
|
|
2352
|
+
Used to supplment Organisation Name to identify a deparment within the
|
|
2353
|
+
organisation.
|
|
2354
|
+
maxLength: 60
|
|
2355
|
+
example: Prime Minister & First Lord Of The Treasury
|
|
2356
|
+
UDPRN:
|
|
2357
|
+
title: Unique Delivery Point Reference Number (UDPRN)
|
|
2358
|
+
type: integer
|
|
2359
|
+
format: int32
|
|
2360
|
+
description: >-
|
|
2361
|
+
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail
|
|
2362
|
+
assigns a unique UDPRN code for each premise on PAF. Simple, unique
|
|
2363
|
+
reference number for each Delivery Point. Unlikely to be reused when an
|
|
2364
|
+
address expires. Up to 8-digit numeric code. A new UDPRN is
|
|
2365
|
+
automatically assigned to each new Delivery Point added to PAF.
|
|
2366
|
+
example: 23747771
|
|
2367
|
+
UMPRN:
|
|
2368
|
+
title: UMPRN
|
|
2369
|
+
description: >-
|
|
2370
|
+
A small minority of individual premises (as identified by a UDPRN) may
|
|
2371
|
+
have multiple occupants behind the same letterbox. These are known as
|
|
2372
|
+
Multiple Residence occupants and can be queried via the Multiple
|
|
2373
|
+
Residence dataset. Simple, unique reference number for each Multiple
|
|
2374
|
+
Residence occupant. 8-character numeric code. Note: this will be an
|
|
2375
|
+
empty string `""` when not used for legacy reasons
|
|
2376
|
+
oneOf:
|
|
2377
|
+
- type: string
|
|
2378
|
+
description: If premise is not multiple occupancy, this will be an empty string
|
|
2379
|
+
enum:
|
|
2380
|
+
- ''
|
|
2381
|
+
- type: number
|
|
2382
|
+
description: If premise is multiple occupancy, this will be an integer
|
|
2383
|
+
example: 983729
|
|
2384
|
+
minimum: 0
|
|
2385
|
+
maximum: 99999999
|
|
2386
|
+
PostcodeType:
|
|
2387
|
+
title: Postcode Type
|
|
2388
|
+
enum:
|
|
2389
|
+
- S
|
|
2390
|
+
- L
|
|
2391
|
+
type: string
|
|
2392
|
+
description: >-
|
|
2393
|
+
This indicates the type of user. It can only take the values 'S' or 'L'
|
|
2394
|
+
indicating small or large respectively. Large User Postcodes. These are
|
|
2395
|
+
assigned to one single address either due to the large volume of mail
|
|
2396
|
+
received at that address, or because a PO Box or Selectapost service has
|
|
2397
|
+
been set up. Small User Postcodes. These identify a group of Delivery
|
|
2398
|
+
Points. On average there are 15 Delivery Points per Postcode. However
|
|
2399
|
+
this can vary between 1 and, in some cases, 100. There will never be
|
|
2400
|
+
more than 100 Delivery Points on a Postcode.
|
|
2401
|
+
example: S
|
|
2402
|
+
SuOrganisationIndicator:
|
|
2403
|
+
title: Small User Organisation Indicator
|
|
2404
|
+
type: string
|
|
2405
|
+
description: >-
|
|
2406
|
+
Small User Organisation Indicator can have the values 'Y' or space. A
|
|
2407
|
+
value of 'Y' indicates that a Small User Organisation is present at this
|
|
2408
|
+
address.
|
|
2409
|
+
example: ''
|
|
2410
|
+
DeliveryPointSuffix:
|
|
2411
|
+
title: Delivery Point Suffix
|
|
2412
|
+
type: string
|
|
2413
|
+
description: >-
|
|
2414
|
+
A unique Royal Mail 2-character code (the first numeric & the second
|
|
2415
|
+
alphabetical), which, when added to the Postcode, enables each live
|
|
2416
|
+
Delivery Point to be uniquely identified. Once the Delivery Point is
|
|
2417
|
+
deleted from PAF the DPS may be reused (although they aren’t reused
|
|
2418
|
+
until all remaining Delivery Points in the range have been allocated).
|
|
2419
|
+
The DPS for a Large User is always '1A' as each Large User has its own
|
|
2420
|
+
Postcode. E.g. 2B
|
|
2421
|
+
example: 1A
|
|
2422
|
+
Line1:
|
|
2423
|
+
title: Line 1
|
|
2424
|
+
type: string
|
|
2425
|
+
description: >-
|
|
2426
|
+
First Address Line. Often contains premise and thoroughfare information.
|
|
2427
|
+
In the case of a commercial premise, the first line is always the full
|
|
2428
|
+
name of the registered organisation. Never empty.
|
|
2429
|
+
example: Prime Minister & First Lord of Treasury
|
|
2430
|
+
Line2:
|
|
2431
|
+
title: Line 2
|
|
2432
|
+
type: string
|
|
2433
|
+
description: >-
|
|
2434
|
+
Second Address Line. Often contains thoroughfare and locality
|
|
2435
|
+
information. May be empty.
|
|
2436
|
+
example: 10 Downing Street
|
|
2437
|
+
Line3:
|
|
2438
|
+
title: Line 3
|
|
2439
|
+
type: string
|
|
2440
|
+
description: Third address line. May be empty.
|
|
2441
|
+
example: ''
|
|
2442
|
+
Premise:
|
|
2443
|
+
title: Premise
|
|
2444
|
+
type: string
|
|
2445
|
+
description: >-
|
|
2446
|
+
A pre-computed string which sensibly combines building_number,
|
|
2447
|
+
building_name and sub_building_name. building_number, building_name and
|
|
2448
|
+
sub_building_name represent raw data from Royal Mail's and can be
|
|
2449
|
+
difficult to parse if you are unaware of how the Postcode Address File
|
|
2450
|
+
premise fields work together. For this reason, we also provide a
|
|
2451
|
+
pre-computed premise field which intelligently gathers these points into
|
|
2452
|
+
a single, simple premise string. This field is ideal if you want to pull
|
|
2453
|
+
premise information and thoroughfare information separately instead of
|
|
2454
|
+
using our address lines data.
|
|
2455
|
+
maxLength: 84
|
|
2456
|
+
example: '10'
|
|
2457
|
+
Country:
|
|
2458
|
+
title: Country
|
|
2459
|
+
type: string
|
|
2460
|
+
description: >-
|
|
2461
|
+
The country for which the postcode belongs to. May be empty for a small
|
|
2462
|
+
number of addresses.
|
|
2463
|
+
example: England
|
|
2464
|
+
County:
|
|
2465
|
+
title: County
|
|
2466
|
+
type: string
|
|
2467
|
+
description: >-
|
|
2468
|
+
Since postal, administrative or traditional counties may not apply to
|
|
2469
|
+
some addresses, the county field is designed to return whatever county
|
|
2470
|
+
data is available. Normally, the postal county is returned. If this is
|
|
2471
|
+
not present, the county field will fall back to the administrative
|
|
2472
|
+
county. If the administrative county is also not present, the county
|
|
2473
|
+
field will fall back to the traditional county. May be empty in cases
|
|
2474
|
+
where no administrative, postal or traditional county present.
|
|
2475
|
+
example: London
|
|
2476
|
+
AdministrativeCounty:
|
|
2477
|
+
title: Administrative County
|
|
2478
|
+
type: string
|
|
2479
|
+
description: >-
|
|
2480
|
+
The current administrative county to which the postcode has been
|
|
2481
|
+
assigned. A Unitary Authority name, where one is present. If there is no
|
|
2482
|
+
Unitary Authority, the County name is used. This information is not
|
|
2483
|
+
static, because County boundaries may change due to administrative
|
|
2484
|
+
changes. Data source: ONS. May be empty.
|
|
2485
|
+
example: ''
|
|
2486
|
+
PostalCounty:
|
|
2487
|
+
title: Postal County
|
|
2488
|
+
type: string
|
|
2489
|
+
description: >-
|
|
2490
|
+
Postal counties were used for the distribution of mail before the
|
|
2491
|
+
Postcode system was introduced in the 1970s. The Former Postal County
|
|
2492
|
+
was the Administrative County at the time. This data rarely changes.
|
|
2493
|
+
Data source: Royal Mail. May be empty.
|
|
2494
|
+
example: London
|
|
2495
|
+
TraditionalCounty:
|
|
2496
|
+
title: Traditional County
|
|
2497
|
+
type: string
|
|
2498
|
+
description: >-
|
|
2499
|
+
Traditional counties are provided by the Association of British
|
|
2500
|
+
Counties. It’s historical data, and can date from the 1800s. Data
|
|
2501
|
+
source: Royal Mail. May be empty.
|
|
2502
|
+
example: Greater London
|
|
2503
|
+
District:
|
|
2504
|
+
title: District
|
|
2505
|
+
type: string
|
|
2506
|
+
description: >-
|
|
2507
|
+
The current district/unitary authority to which the postcode has been
|
|
2508
|
+
assigned. Data source: ONS
|
|
2509
|
+
example: Westminster
|
|
2510
|
+
Ward:
|
|
2511
|
+
title: Ward
|
|
2512
|
+
type: string
|
|
2513
|
+
description: >-
|
|
2514
|
+
The current administrative/electoral area to which the postcode has been
|
|
2515
|
+
assigned. May be empty for a small number of addresses. Data source: ONS
|
|
2516
|
+
example: St. James'
|
|
2517
|
+
Longitude:
|
|
2518
|
+
title: Longitude
|
|
2519
|
+
description: >-
|
|
2520
|
+
The longitude of the postcode (WGS84/ETRS89). Accurate at the postcode
|
|
2521
|
+
level Can be a positive or negative decimal. E.g. -0.1283983 Returns an
|
|
2522
|
+
empty string if no location data is available. Otherwise, a number is
|
|
2523
|
+
returned
|
|
2524
|
+
oneOf:
|
|
2525
|
+
- type: string
|
|
2526
|
+
description: Empty string `""` if not available
|
|
2527
|
+
enum:
|
|
2528
|
+
- ''
|
|
2529
|
+
- type: number
|
|
2530
|
+
description: Represents longitude
|
|
2531
|
+
example: 0.002823
|
|
2532
|
+
minimum: -180
|
|
2533
|
+
maximum: 180
|
|
2534
|
+
Latitude:
|
|
2535
|
+
title: Longitude
|
|
2536
|
+
description: >-
|
|
2537
|
+
The latitude of the postcode (WGS84/ETRS89). Accurate at the postcode
|
|
2538
|
+
level Can be a positive or negative decimal. E.g. 51.5083983 Returns an
|
|
2539
|
+
empty string if no location data is available. Otherwise a number is
|
|
2540
|
+
returned.
|
|
2541
|
+
oneOf:
|
|
2542
|
+
- type: string
|
|
2543
|
+
description: Empty string `""` if not available
|
|
2544
|
+
enum:
|
|
2545
|
+
- ''
|
|
2546
|
+
- type: number
|
|
2547
|
+
description: Represents latitude
|
|
2548
|
+
example: 52.938278
|
|
2549
|
+
minimum: -180
|
|
2550
|
+
maximum: 180
|
|
2551
|
+
Eastings:
|
|
2552
|
+
title: Eastings
|
|
2553
|
+
description: >-
|
|
2554
|
+
Eastings reference using the [Ordnance Survey National Grid reference
|
|
2555
|
+
system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)
|
|
2556
|
+
Northern Ireland Eastings uses the [Irish Grid Reference
|
|
2557
|
+
System](https://en.wikipedia.org/wiki/Irish_grid_reference_system)
|
|
2558
|
+
Metres from origin. E.g. 550458 Returns an empty string if no location
|
|
2559
|
+
data is available. Otherwise a number is returned
|
|
2560
|
+
oneOf:
|
|
2561
|
+
- type: string
|
|
2562
|
+
description: Empty string `""` if not available
|
|
2563
|
+
enum:
|
|
2564
|
+
- ''
|
|
2565
|
+
- type: number
|
|
2566
|
+
description: Metres offset east from origin
|
|
2567
|
+
example: 9382
|
|
2568
|
+
minimum: 0
|
|
2569
|
+
maximum: 999999
|
|
2570
|
+
Northings:
|
|
2571
|
+
title: Eastings
|
|
2572
|
+
description: >-
|
|
2573
|
+
Northings reference using the [Ordnance Survey National Grid reference
|
|
2574
|
+
system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)
|
|
2575
|
+
Northern Ireland Northings uses the [Irish Grid Reference
|
|
2576
|
+
System](https://en.wikipedia.org/wiki/Irish_grid_reference_system)
|
|
2577
|
+
Metres from origin. E.g. 180458 Returns an empty string if no location
|
|
2578
|
+
data is available. Otherwise a number is returned
|
|
2579
|
+
oneOf:
|
|
2580
|
+
- type: string
|
|
2581
|
+
description: Empty string `""` if not available
|
|
2582
|
+
enum:
|
|
2583
|
+
- ''
|
|
2584
|
+
- type: number
|
|
2585
|
+
description: Metres offset north from origin
|
|
2586
|
+
example: 123932
|
|
2587
|
+
minimum: 0
|
|
2588
|
+
maximum: 999999
|
|
2589
|
+
UPRN:
|
|
2590
|
+
title: Unique Delivery Point Reference Number (UDPRN)
|
|
2591
|
+
type: string
|
|
2592
|
+
description: >-
|
|
2593
|
+
UPRN stands for Unique Property Reference Number and is maintained by
|
|
2594
|
+
the Ordnance Survey (OS). Local governments in the UK have allocated a
|
|
2595
|
+
unique number for each land or property. See our UPRN guide for more
|
|
2596
|
+
information. Up to 12 digits in length. Multiple Residence premises
|
|
2597
|
+
currently share the same UPRN as the parent premise. May not be
|
|
2598
|
+
available for a small number of Great Britain addresses due to longer
|
|
2599
|
+
update cycles for Ordnance Survey's AddressBase datasets. Returns empty
|
|
2600
|
+
string "" in these instances. Although UPRN takes an integer format, we
|
|
2601
|
+
encode and transmit this data as strings. As a 12 digit number, the UPRN
|
|
2602
|
+
can exceed the maximum safe integer (Number.MAX_SAFE_INTEGER) in most
|
|
2603
|
+
browsers causing this datapoint to be corrupted. Take special care when
|
|
2604
|
+
storing UPRN. As a 12 digit identifier, you will need 64 bits to encode
|
|
2605
|
+
every possible UPRN value.
|
|
2606
|
+
ID:
|
|
2607
|
+
title: ID
|
|
2608
|
+
type: string
|
|
2609
|
+
description: Global unique internally generated identifier for an address.
|
|
2610
|
+
example: paf_8387729
|
|
2611
|
+
Dataset:
|
|
2612
|
+
title: Dataset
|
|
2613
|
+
type: string
|
|
2614
|
+
description: Indicates the provenance of an address
|
|
2615
|
+
enum:
|
|
2616
|
+
- paf
|
|
2617
|
+
- mr
|
|
2618
|
+
- nyb
|
|
2619
|
+
- usps
|
|
2620
|
+
CountryISO:
|
|
2621
|
+
title: ISO Country Code
|
|
2622
|
+
type: string
|
|
2623
|
+
description: 3 letter ISO country code
|
|
2624
|
+
enum:
|
|
2625
|
+
- GBR
|
|
2626
|
+
- IMN
|
|
2627
|
+
- JEY
|
|
2628
|
+
- GGY
|
|
2629
|
+
- USA
|
|
2630
|
+
- PRI
|
|
2631
|
+
- GUM
|
|
2632
|
+
PafAddress:
|
|
2633
|
+
title: Postcode Address File Address
|
|
2634
|
+
description: Standard UK Address.
|
|
2635
|
+
required:
|
|
2636
|
+
- postcode
|
|
2637
|
+
- postcode_outward
|
|
2638
|
+
- postcode_inward
|
|
2639
|
+
- post_town
|
|
2640
|
+
- dependant_locality
|
|
2641
|
+
- double_dependant_locality
|
|
2642
|
+
- thoroughfare
|
|
2643
|
+
- dependant_thoroughfare
|
|
2644
|
+
- building_number
|
|
2645
|
+
- building_name
|
|
2646
|
+
- sub_building_name
|
|
2647
|
+
- po_box
|
|
2648
|
+
- department_name
|
|
2649
|
+
- organisation_name
|
|
2650
|
+
- udprn
|
|
2651
|
+
- umprn
|
|
2652
|
+
- postcode_type
|
|
2653
|
+
- su_organisation_indicator
|
|
2654
|
+
- delivery_point_suffix
|
|
2655
|
+
- line_1
|
|
2656
|
+
- line_2
|
|
2657
|
+
- line_3
|
|
2658
|
+
- premise
|
|
2659
|
+
- country
|
|
2660
|
+
- administrative_county
|
|
2661
|
+
- postal_county
|
|
2662
|
+
- traditional_county
|
|
2663
|
+
- district
|
|
2664
|
+
- ward
|
|
2665
|
+
- longitude
|
|
2666
|
+
- latitude
|
|
2667
|
+
- eastings
|
|
2668
|
+
- northings
|
|
2669
|
+
- uprn
|
|
2670
|
+
- county
|
|
2671
|
+
- id
|
|
2672
|
+
- dataset
|
|
2673
|
+
- country_iso
|
|
2674
|
+
properties:
|
|
2675
|
+
postcode:
|
|
2676
|
+
$ref: '#/components/schemas/Postcode'
|
|
2677
|
+
postcode_outward:
|
|
2678
|
+
$ref: '#/components/schemas/PostcodeOutward'
|
|
2679
|
+
postcode_inward:
|
|
2680
|
+
$ref: '#/components/schemas/PostcodeInward'
|
|
2681
|
+
post_town:
|
|
2682
|
+
$ref: '#/components/schemas/PostTown'
|
|
2683
|
+
dependant_locality:
|
|
2684
|
+
$ref: '#/components/schemas/DependantLocality'
|
|
2685
|
+
double_dependant_locality:
|
|
2686
|
+
$ref: '#/components/schemas/DoubleDependantLocality'
|
|
2687
|
+
thoroughfare:
|
|
2688
|
+
$ref: '#/components/schemas/Thoroughfare'
|
|
2689
|
+
dependant_thoroughfare:
|
|
2690
|
+
$ref: '#/components/schemas/DependantThoroughfare'
|
|
2691
|
+
building_number:
|
|
2692
|
+
$ref: '#/components/schemas/BuildingNumber'
|
|
2693
|
+
building_name:
|
|
2694
|
+
$ref: '#/components/schemas/BuildingName'
|
|
2695
|
+
sub_building_name:
|
|
2696
|
+
$ref: '#/components/schemas/SubBuildingName'
|
|
2697
|
+
po_box:
|
|
2698
|
+
$ref: '#/components/schemas/POBox'
|
|
2699
|
+
department_name:
|
|
2700
|
+
$ref: '#/components/schemas/DepartmentName'
|
|
2701
|
+
organisation_name:
|
|
2702
|
+
$ref: '#/components/schemas/OrganisationName'
|
|
2703
|
+
udprn:
|
|
2704
|
+
$ref: '#/components/schemas/UDPRN'
|
|
2705
|
+
umprn:
|
|
2706
|
+
$ref: '#/components/schemas/UMPRN'
|
|
2707
|
+
postcode_type:
|
|
2708
|
+
$ref: '#/components/schemas/PostcodeType'
|
|
2709
|
+
su_organisation_indicator:
|
|
2710
|
+
$ref: '#/components/schemas/SuOrganisationIndicator'
|
|
2711
|
+
delivery_point_suffix:
|
|
2712
|
+
$ref: '#/components/schemas/DeliveryPointSuffix'
|
|
2713
|
+
line_1:
|
|
2714
|
+
$ref: '#/components/schemas/Line1'
|
|
2715
|
+
line_2:
|
|
2716
|
+
$ref: '#/components/schemas/Line2'
|
|
2717
|
+
line_3:
|
|
2718
|
+
$ref: '#/components/schemas/Line3'
|
|
2719
|
+
premise:
|
|
2720
|
+
$ref: '#/components/schemas/Premise'
|
|
2721
|
+
country:
|
|
2722
|
+
$ref: '#/components/schemas/Country'
|
|
2723
|
+
county:
|
|
2724
|
+
$ref: '#/components/schemas/County'
|
|
2725
|
+
administrative_county:
|
|
2726
|
+
$ref: '#/components/schemas/AdministrativeCounty'
|
|
2727
|
+
postal_county:
|
|
2728
|
+
$ref: '#/components/schemas/PostalCounty'
|
|
2729
|
+
traditional_county:
|
|
2730
|
+
$ref: '#/components/schemas/TraditionalCounty'
|
|
2731
|
+
district:
|
|
2732
|
+
$ref: '#/components/schemas/District'
|
|
2733
|
+
ward:
|
|
2734
|
+
$ref: '#/components/schemas/Ward'
|
|
2735
|
+
longitude:
|
|
2736
|
+
$ref: '#/components/schemas/Longitude'
|
|
2737
|
+
latitude:
|
|
2738
|
+
$ref: '#/components/schemas/Latitude'
|
|
2739
|
+
eastings:
|
|
2740
|
+
$ref: '#/components/schemas/Eastings'
|
|
2741
|
+
northings:
|
|
2742
|
+
$ref: '#/components/schemas/Northings'
|
|
2743
|
+
uprn:
|
|
2744
|
+
$ref: '#/components/schemas/UPRN'
|
|
2745
|
+
id:
|
|
2746
|
+
$ref: '#/components/schemas/ID'
|
|
2747
|
+
dataset:
|
|
2748
|
+
$ref: '#/components/schemas/Dataset'
|
|
2749
|
+
enum:
|
|
2750
|
+
- paf
|
|
2751
|
+
country_iso:
|
|
2752
|
+
$ref: '#/components/schemas/CountryISO'
|
|
2753
|
+
enum:
|
|
2754
|
+
- GBR
|
|
2755
|
+
- IMN
|
|
2756
|
+
- JEY
|
|
2757
|
+
- GGY
|
|
2758
|
+
MrAddress:
|
|
2759
|
+
title: Multiple Residence Address
|
|
2760
|
+
description: >-
|
|
2761
|
+
Subdivision of a Postcode Address File address. Does not have its own
|
|
2762
|
+
delivery point.
|
|
2763
|
+
allOf:
|
|
2764
|
+
- $ref: '#/components/schemas/PafAddress'
|
|
2765
|
+
- type: object
|
|
2766
|
+
properties:
|
|
2767
|
+
dataset:
|
|
2768
|
+
$ref: '#/components/schemas/Dataset'
|
|
2769
|
+
enum:
|
|
2770
|
+
- mr
|
|
2771
|
+
NybAddress:
|
|
2772
|
+
title: Not Yet Built Address
|
|
2773
|
+
description: UK premise under construction
|
|
2774
|
+
allOf:
|
|
2775
|
+
- $ref: '#/components/schemas/PafAddress'
|
|
2776
|
+
- type: object
|
|
2777
|
+
properties:
|
|
2778
|
+
dataset:
|
|
2779
|
+
$ref: '#/components/schemas/Dataset'
|
|
2780
|
+
enum:
|
|
2781
|
+
- mr
|
|
2782
|
+
PostcodeResponse:
|
|
2783
|
+
title: Postcode Response
|
|
2784
|
+
type: object
|
|
2785
|
+
required:
|
|
2786
|
+
- message
|
|
2787
|
+
- code
|
|
2788
|
+
- result
|
|
2789
|
+
properties:
|
|
2790
|
+
result:
|
|
2791
|
+
type: array
|
|
2792
|
+
items:
|
|
2793
|
+
oneOf:
|
|
2794
|
+
- $ref: '#/components/schemas/PafAddress'
|
|
2795
|
+
- $ref: '#/components/schemas/MrAddress'
|
|
2796
|
+
- $ref: '#/components/schemas/NybAddress'
|
|
2797
|
+
description: All addresses listed at the postcode
|
|
2798
|
+
code:
|
|
2799
|
+
type: integer
|
|
2800
|
+
format: int32
|
|
2801
|
+
enum:
|
|
2802
|
+
- 2000
|
|
2803
|
+
message:
|
|
2804
|
+
type: string
|
|
2805
|
+
enum:
|
|
2806
|
+
- Success
|
|
2807
|
+
PostcodeNotFoundResponse:
|
|
2808
|
+
title: Postcode Not Found
|
|
2809
|
+
type: object
|
|
2810
|
+
required:
|
|
2811
|
+
- message
|
|
2812
|
+
- code
|
|
2813
|
+
- suggestions
|
|
2814
|
+
properties:
|
|
2815
|
+
code:
|
|
2816
|
+
type: integer
|
|
2817
|
+
format: int32
|
|
2818
|
+
enum:
|
|
2819
|
+
- 4040
|
|
2820
|
+
message:
|
|
2821
|
+
type: string
|
|
2822
|
+
enum:
|
|
2823
|
+
- Postcode not found
|
|
2824
|
+
suggestions:
|
|
2825
|
+
description: A list of alternate nearest matching postcodes you can try
|
|
2826
|
+
type: array
|
|
2827
|
+
items:
|
|
2828
|
+
type: string
|
|
2829
|
+
example: SN13 0SF
|
|
2830
|
+
UDPRNResponse:
|
|
2831
|
+
title: UDPRN Response
|
|
2832
|
+
type: object
|
|
2833
|
+
required:
|
|
2834
|
+
- message
|
|
2835
|
+
- code
|
|
2836
|
+
- result
|
|
2837
|
+
properties:
|
|
2838
|
+
result:
|
|
2839
|
+
oneOf:
|
|
2840
|
+
- $ref: '#/components/schemas/PafAddress'
|
|
2841
|
+
- $ref: '#/components/schemas/NybAddress'
|
|
2842
|
+
code:
|
|
2843
|
+
type: integer
|
|
2844
|
+
format: int32
|
|
2845
|
+
enum:
|
|
2846
|
+
- 2000
|
|
2847
|
+
message:
|
|
2848
|
+
type: string
|
|
2849
|
+
enum:
|
|
2850
|
+
- Success
|
|
2851
|
+
ErrorResponse:
|
|
2852
|
+
title: Basic Error Response
|
|
2853
|
+
type: object
|
|
2854
|
+
required:
|
|
2855
|
+
- code
|
|
2856
|
+
- message
|
|
2857
|
+
properties:
|
|
2858
|
+
code:
|
|
2859
|
+
type: integer
|
|
2860
|
+
description: >-
|
|
2861
|
+
API Response Code. Non `2xxx` code indicates a failure. This code
|
|
2862
|
+
will provide a more specific reason when a failure occurs and
|
|
2863
|
+
facilitates debugging.
|
|
2864
|
+
format: int32
|
|
2865
|
+
message:
|
|
2866
|
+
type: string
|
|
2867
|
+
description: Human readable error message supplied with every error response.
|
|
2868
|
+
UMPRNResponse:
|
|
2869
|
+
title: UDPRN Response
|
|
2870
|
+
type: object
|
|
2871
|
+
required:
|
|
2872
|
+
- message
|
|
2873
|
+
- code
|
|
2874
|
+
- result
|
|
2875
|
+
properties:
|
|
2876
|
+
result:
|
|
2877
|
+
oneOf:
|
|
2878
|
+
- $ref: '#/components/schemas/MrAddress'
|
|
2879
|
+
code:
|
|
2880
|
+
type: integer
|
|
2881
|
+
format: int32
|
|
2882
|
+
enum:
|
|
2883
|
+
- 2000
|
|
2884
|
+
message:
|
|
2885
|
+
type: string
|
|
2886
|
+
enum:
|
|
2887
|
+
- Success
|
|
2888
|
+
ApiKey:
|
|
2889
|
+
title: Key
|
|
2890
|
+
type: object
|
|
2891
|
+
required:
|
|
2892
|
+
- available
|
|
2893
|
+
properties:
|
|
2894
|
+
available:
|
|
2895
|
+
description: |
|
|
2896
|
+
Determines whether the key can be used by the requesting agent.
|
|
2897
|
+
|
|
2898
|
+
Returns false if one of the following conditions are met:
|
|
2899
|
+
- Key has no lookups remaining
|
|
2900
|
+
- Daily limit has been reached on the key
|
|
2901
|
+
- Daily individual limit has been reached
|
|
2902
|
+
- Key is not being used via an authorised URL
|
|
2903
|
+
- (Sublicensed key only) Key has a valid licensee attached
|
|
2904
|
+
- (Sublicensed key only) Key is not being used via an authorised URL specified by licensee
|
|
2905
|
+
type: boolean
|
|
2906
|
+
example: true
|
|
2907
|
+
ApiKeyResponse:
|
|
2908
|
+
title: API Key Response
|
|
2909
|
+
type: object
|
|
2910
|
+
required:
|
|
2911
|
+
- message
|
|
2912
|
+
- code
|
|
2913
|
+
- result
|
|
2914
|
+
properties:
|
|
2915
|
+
result:
|
|
2916
|
+
$ref: '#/components/schemas/ApiKey'
|
|
2917
|
+
message:
|
|
2918
|
+
type: string
|
|
2919
|
+
enum:
|
|
2920
|
+
- Success
|
|
2921
|
+
code:
|
|
2922
|
+
type: integer
|
|
2923
|
+
format: int32
|
|
2924
|
+
enum:
|
|
2925
|
+
- 2000
|
|
2926
|
+
UserTokenParam:
|
|
2927
|
+
title: User Token
|
|
2928
|
+
type: string
|
|
2929
|
+
description: >
|
|
2930
|
+
A secret key used for sensitive operations on your account and API Keys.
|
|
2931
|
+
|
|
2932
|
+
|
|
2933
|
+
Your user token can be retrieved and managed from your [accounts
|
|
2934
|
+
page](https://ideal-postcodes.co.uk/account).
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
Typically beings `uk_...`
|
|
2938
|
+
example: uk_B59ScW1p1HHouf1VqclEPZUx
|
|
2939
|
+
ApiKeyDailyLimit:
|
|
2940
|
+
title: API Key Daily Limit
|
|
2941
|
+
type: object
|
|
2942
|
+
required:
|
|
2943
|
+
- limit
|
|
2944
|
+
- consumed
|
|
2945
|
+
properties:
|
|
2946
|
+
limit:
|
|
2947
|
+
x-nullable: true
|
|
2948
|
+
minimum: 0
|
|
2949
|
+
example: 1000
|
|
2950
|
+
type: integer
|
|
2951
|
+
description: >-
|
|
2952
|
+
`number` or `null`. The daily lookup limit currently set on your
|
|
2953
|
+
key.
|
|
2954
|
+
|
|
2955
|
+
`null` means the limit is currently disabled.
|
|
2956
|
+
format: int32
|
|
2957
|
+
consumed:
|
|
2958
|
+
minimum: 0
|
|
2959
|
+
example: 288
|
|
2960
|
+
type: integer
|
|
2961
|
+
description: >-
|
|
2962
|
+
Number of lookups performed today which count towards your daily
|
|
2963
|
+
limit.
|
|
2964
|
+
format: int32
|
|
2965
|
+
ApiKeyIndividualLimit:
|
|
2966
|
+
title: API Key Individual Limit
|
|
2967
|
+
type: object
|
|
2968
|
+
required:
|
|
2969
|
+
- limit
|
|
2970
|
+
properties:
|
|
2971
|
+
limit:
|
|
2972
|
+
minimum: 0
|
|
2973
|
+
example: 30
|
|
2974
|
+
x-nullable: true
|
|
2975
|
+
type: integer
|
|
2976
|
+
description: >-
|
|
2977
|
+
`number` or `null` Limit set on the number of lookups that can be
|
|
2978
|
+
|
|
2979
|
+
performed from a single IP address. `null` means the limit is
|
|
2980
|
+
currently
|
|
2981
|
+
|
|
2982
|
+
disabled.
|
|
2983
|
+
format: int32
|
|
2984
|
+
ApiKeyNotifications:
|
|
2985
|
+
title: API Key Notifications
|
|
2986
|
+
type: object
|
|
2987
|
+
required:
|
|
2988
|
+
- emails
|
|
2989
|
+
- enabled
|
|
2990
|
+
properties:
|
|
2991
|
+
emails:
|
|
2992
|
+
type: array
|
|
2993
|
+
description: >-
|
|
2994
|
+
A list of email addresses designated by you to receive notifications
|
|
2995
|
+
about this key.
|
|
2996
|
+
items:
|
|
2997
|
+
type: string
|
|
2998
|
+
example: person@example.com
|
|
2999
|
+
enabled:
|
|
3000
|
+
description: Indicates whether email notifications are enabled.
|
|
3001
|
+
type: boolean
|
|
3002
|
+
ApiKeyDatasets:
|
|
3003
|
+
title: API Key Dataset Availability
|
|
3004
|
+
description: >-
|
|
3005
|
+
Indicates which datasets are available and added by default to the
|
|
3006
|
+
address responses
|
|
3007
|
+
type: object
|
|
3008
|
+
required:
|
|
3009
|
+
- paf
|
|
3010
|
+
- mr
|
|
3011
|
+
- nyb
|
|
3012
|
+
properties:
|
|
3013
|
+
paf:
|
|
3014
|
+
type: boolean
|
|
3015
|
+
description: UK Postcode Address File enabled
|
|
3016
|
+
example: true
|
|
3017
|
+
mr:
|
|
3018
|
+
type: boolean
|
|
3019
|
+
description: UK Multiple Residence Dataset enabled
|
|
3020
|
+
example: true
|
|
3021
|
+
nyb:
|
|
3022
|
+
type: boolean
|
|
3023
|
+
description: UK Not Yet Built Dataset enabled
|
|
3024
|
+
example: false
|
|
3025
|
+
ApiKeyAutomatedTopup:
|
|
3026
|
+
title: API Key Automated Topup
|
|
3027
|
+
description: Automated topup status
|
|
3028
|
+
type: object
|
|
3029
|
+
required:
|
|
3030
|
+
- enabled
|
|
3031
|
+
properties:
|
|
3032
|
+
enabled:
|
|
3033
|
+
type: boolean
|
|
3034
|
+
description: Indicates whether automated top-ups are enabled
|
|
3035
|
+
example: true
|
|
3036
|
+
ApiKeyCurrentPurchase:
|
|
3037
|
+
title: API Key Batch Purchase
|
|
3038
|
+
type: object
|
|
3039
|
+
required:
|
|
3040
|
+
- expires
|
|
3041
|
+
- purchased
|
|
3042
|
+
- consumed
|
|
3043
|
+
properties:
|
|
3044
|
+
expires:
|
|
3045
|
+
x-nullable: true
|
|
3046
|
+
type: string
|
|
3047
|
+
example: '2022-01-06T11:41:27.092Z'
|
|
3048
|
+
description: >-
|
|
3049
|
+
`string` or `null` The date when this purchase will expire in
|
|
3050
|
+
simplified
|
|
3051
|
+
|
|
3052
|
+
extended ISO format (ISO 8601). This is typically 365 days from the
|
|
3053
|
+
time
|
|
3054
|
+
|
|
3055
|
+
of first use. This field will be `null` if the purchase has not yet
|
|
3056
|
+
been
|
|
3057
|
+
|
|
3058
|
+
used.
|
|
3059
|
+
purchased:
|
|
3060
|
+
minimum: 0
|
|
3061
|
+
type: integer
|
|
3062
|
+
description: Number of procured lookups from this purchase.
|
|
3063
|
+
example: 20000
|
|
3064
|
+
format: int32
|
|
3065
|
+
consumed:
|
|
3066
|
+
minimum: 0
|
|
3067
|
+
type: integer
|
|
3068
|
+
description: Number of consumed lookups off this purchase.
|
|
3069
|
+
format: int32
|
|
3070
|
+
example: 121
|
|
3071
|
+
ApiKeyDetails:
|
|
3072
|
+
title: API Key Details
|
|
3073
|
+
type: object
|
|
3074
|
+
required:
|
|
3075
|
+
- lookups_remaining
|
|
3076
|
+
- daily_limit
|
|
3077
|
+
- individual_limit
|
|
3078
|
+
- allowed_urls
|
|
3079
|
+
- notificatinos
|
|
3080
|
+
- automated_topups
|
|
3081
|
+
- current_purchases
|
|
3082
|
+
properties:
|
|
3083
|
+
lookups_remaining:
|
|
3084
|
+
minimum: 0
|
|
3085
|
+
example: 19889
|
|
3086
|
+
type: integer
|
|
3087
|
+
format: int32
|
|
3088
|
+
daily_limit:
|
|
3089
|
+
$ref: '#/components/schemas/ApiKeyDailyLimit'
|
|
3090
|
+
individual_limit:
|
|
3091
|
+
$ref: '#/components/schemas/ApiKeyIndividualLimit'
|
|
3092
|
+
allowed_urls:
|
|
3093
|
+
type: array
|
|
3094
|
+
items:
|
|
3095
|
+
type: string
|
|
3096
|
+
description: >-
|
|
3097
|
+
A list of allowed URLs. An empty list means that allowed URLs are
|
|
3098
|
+
disabled.
|
|
3099
|
+
notifications:
|
|
3100
|
+
$ref: '#/components/schemas/ApiKeyNotifications'
|
|
3101
|
+
datasets:
|
|
3102
|
+
$ref: '#/components/schemas/ApiKeyDatasets'
|
|
3103
|
+
automated_topups:
|
|
3104
|
+
$ref: '#/components/schemas/ApiKeyAutomatedTopup'
|
|
3105
|
+
current_purchases:
|
|
3106
|
+
type: array
|
|
3107
|
+
items:
|
|
3108
|
+
$ref: '#/components/schemas/ApiKeyCurrentPurchase'
|
|
3109
|
+
description: Current balance purchases attached to key.
|
|
3110
|
+
ApiKeyDetailsResponse:
|
|
3111
|
+
title: API Key Details Response
|
|
3112
|
+
type: object
|
|
3113
|
+
required:
|
|
3114
|
+
- message
|
|
3115
|
+
- code
|
|
3116
|
+
- result
|
|
3117
|
+
properties:
|
|
3118
|
+
result:
|
|
3119
|
+
$ref: '#/components/schemas/ApiKeyDetails'
|
|
3120
|
+
code:
|
|
3121
|
+
type: integer
|
|
3122
|
+
format: int32
|
|
3123
|
+
enum:
|
|
3124
|
+
- 2000
|
|
3125
|
+
message:
|
|
3126
|
+
type: string
|
|
3127
|
+
enum:
|
|
3128
|
+
- Success
|
|
3129
|
+
StartParam:
|
|
3130
|
+
title: Start Time
|
|
3131
|
+
type: integer
|
|
3132
|
+
format: int32
|
|
3133
|
+
description: >
|
|
3134
|
+
A start date/time in the form of a UNIX Timestamp in milliseconds, e.g.
|
|
3135
|
+
`1418556452651`.
|
|
3136
|
+
example: 1418556452651
|
|
3137
|
+
EndParam:
|
|
3138
|
+
title: End Time
|
|
3139
|
+
type: integer
|
|
3140
|
+
format: int32
|
|
3141
|
+
description: >
|
|
3142
|
+
An start date/time in the form of a UNIX Timestamp in milliseconds,
|
|
3143
|
+
e.g. `1418556477882`.
|
|
3144
|
+
example: 1418556477882
|
|
3145
|
+
TagsParam:
|
|
3146
|
+
title: Tags
|
|
3147
|
+
type: string
|
|
3148
|
+
description: >
|
|
3149
|
+
A comma separated list of tags to query over.
|
|
3150
|
+
|
|
3151
|
+
|
|
3152
|
+
Useful if you want to specify the circumstances in which the request was
|
|
3153
|
+
made.
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
If multiple tags are specified, the response will only comprise of
|
|
3157
|
+
requests for which all the tags are satisfied - i.e. searching
|
|
3158
|
+
`"foo,bar"` will only query requests which tagged both `"foo"` and
|
|
3159
|
+
`"bar"`.
|
|
3160
|
+
example: foo,bar
|
|
3161
|
+
LicenseeParam:
|
|
3162
|
+
title: Licensee Key
|
|
3163
|
+
type: string
|
|
3164
|
+
description: |
|
|
3165
|
+
Uniquely identifies a licensee
|
|
3166
|
+
example: sk_hk71kco54zGSGvF9eXXrvvnMOLLNh
|
|
3167
|
+
KeyUsageResult:
|
|
3168
|
+
title: Key Usage
|
|
3169
|
+
type: object
|
|
3170
|
+
required:
|
|
3171
|
+
- start
|
|
3172
|
+
- end
|
|
3173
|
+
- total
|
|
3174
|
+
- dailyCount
|
|
3175
|
+
properties:
|
|
3176
|
+
start:
|
|
3177
|
+
type: string
|
|
3178
|
+
description: Start date in ISO 8601 format.
|
|
3179
|
+
example: '2015-01-22T15:08:06.609Z'
|
|
3180
|
+
end:
|
|
3181
|
+
type: string
|
|
3182
|
+
description: End date in ISO 8601 format.
|
|
3183
|
+
example: '2015-01-23T15:08:06.609Z'
|
|
3184
|
+
total:
|
|
3185
|
+
type: integer
|
|
3186
|
+
description: Total of paid lookups performed in specified period.
|
|
3187
|
+
format: int32
|
|
3188
|
+
example: 132
|
|
3189
|
+
dailyCount:
|
|
3190
|
+
type: array
|
|
3191
|
+
description: >
|
|
3192
|
+
An array of objects representing number of paid lookups made on
|
|
3193
|
+
specific days, ordered by date. Each object contains a `date`
|
|
3194
|
+
attribute, which represents the day and a `count` attribute, which
|
|
3195
|
+
represents the number of paid lookups made on that day.
|
|
3196
|
+
items:
|
|
3197
|
+
type: object
|
|
3198
|
+
required:
|
|
3199
|
+
- date
|
|
3200
|
+
- count
|
|
3201
|
+
properties:
|
|
3202
|
+
date:
|
|
3203
|
+
type: string
|
|
3204
|
+
example: '2015-01-22T00:00:00.000Z'
|
|
3205
|
+
count:
|
|
3206
|
+
type: integer
|
|
3207
|
+
format: int32
|
|
3208
|
+
example: 132
|
|
3209
|
+
ApiKeyUsageResponse:
|
|
3210
|
+
title: Key Usage Response
|
|
3211
|
+
type: object
|
|
3212
|
+
required:
|
|
3213
|
+
- message
|
|
3214
|
+
- code
|
|
3215
|
+
- result
|
|
3216
|
+
properties:
|
|
3217
|
+
result:
|
|
3218
|
+
$ref: '#/components/schemas/KeyUsageResult'
|
|
3219
|
+
code:
|
|
3220
|
+
type: integer
|
|
3221
|
+
format: int32
|
|
3222
|
+
enum:
|
|
3223
|
+
- 2000
|
|
3224
|
+
message:
|
|
3225
|
+
type: string
|
|
3226
|
+
enum:
|
|
3227
|
+
- Success
|
|
3228
|
+
Context:
|
|
3229
|
+
title: Context
|
|
3230
|
+
type: string
|
|
3231
|
+
enum:
|
|
3232
|
+
- gbr
|
|
3233
|
+
- usa
|
|
3234
|
+
description: Limits search results within a geographical boundary or country.
|
|
3235
|
+
LimitParam:
|
|
3236
|
+
title: Limit
|
|
3237
|
+
description: >
|
|
3238
|
+
Specifies the maximum number of suggestions to retrieve.
|
|
3239
|
+
|
|
3240
|
+
|
|
3241
|
+
By default the limit is 10, unless a postcode is queried (then all
|
|
3242
|
+
addresses at that postcode will be returned). Limit can be shortened to
|
|
3243
|
+
`l=`
|
|
3244
|
+
minimum: 1
|
|
3245
|
+
maximum: 100
|
|
3246
|
+
default: 10
|
|
3247
|
+
example: 5
|
|
3248
|
+
type: integer
|
|
3249
|
+
format: int32
|
|
3250
|
+
PostcodeOutwardParam:
|
|
3251
|
+
title: Postcode Outward
|
|
3252
|
+
type: string
|
|
3253
|
+
description: Filter by outward code.
|
|
3254
|
+
example: 1AA
|
|
3255
|
+
PostcodeParam:
|
|
3256
|
+
title: Postcode
|
|
3257
|
+
type: string
|
|
3258
|
+
description: >-
|
|
3259
|
+
Filter by postcode. Can be combined with query to perform a postcode +
|
|
3260
|
+
building number/name search.
|
|
3261
|
+
example: SW1A 2AA
|
|
3262
|
+
PostcodeAreaParam:
|
|
3263
|
+
title: Postcode Area
|
|
3264
|
+
type: string
|
|
3265
|
+
description: >-
|
|
3266
|
+
Filter by postcode. Can be combined with query to perform a postcode +
|
|
3267
|
+
building number/name search.
|
|
3268
|
+
example: SW
|
|
3269
|
+
PostcodeSectorParam:
|
|
3270
|
+
title: Postcode Sector
|
|
3271
|
+
type: string
|
|
3272
|
+
description: >-
|
|
3273
|
+
Filter by postcode sector, the outward code plus first numeric of the
|
|
3274
|
+
inward code.
|
|
3275
|
+
example: SW1A 2
|
|
3276
|
+
PostTownParam:
|
|
3277
|
+
title: Post Town
|
|
3278
|
+
type: string
|
|
3279
|
+
description: 'Filter by town. '
|
|
3280
|
+
example: London
|
|
3281
|
+
UPRNParam:
|
|
3282
|
+
title: UPRN
|
|
3283
|
+
type: integer
|
|
3284
|
+
description: >-
|
|
3285
|
+
Filters by UPRN. Does not accept comma separated terms. Only a single
|
|
3286
|
+
term is permitted
|
|
3287
|
+
example: '100023336956'
|
|
3288
|
+
CountryParam:
|
|
3289
|
+
title: Country
|
|
3290
|
+
type: string
|
|
3291
|
+
description: >-
|
|
3292
|
+
Filter by country. Possible values are England, Scotland, Wales,
|
|
3293
|
+
Northern Ireland, Jersey, Guernsey and Isle of Man.
|
|
3294
|
+
example: England
|
|
3295
|
+
PostcodeTypeParam:
|
|
3296
|
+
title: Country
|
|
3297
|
+
type: string
|
|
3298
|
+
description: >-
|
|
3299
|
+
Filter by Postcode Type. Useful for separating organisational and
|
|
3300
|
+
residential addresses
|
|
3301
|
+
example: L
|
|
3302
|
+
SmallUserParam:
|
|
3303
|
+
title: SU Organisation Indicator
|
|
3304
|
+
type: string
|
|
3305
|
+
description: >-
|
|
3306
|
+
Filter by Organisation Indicator. Useful for separating organisational
|
|
3307
|
+
and residential addresses
|
|
3308
|
+
example: 'Y'
|
|
3309
|
+
BoxParam:
|
|
3310
|
+
title: Box
|
|
3311
|
+
type: string
|
|
3312
|
+
description: >-
|
|
3313
|
+
Restrict search to a geospatial box determined by the "top-left" and
|
|
3314
|
+
"bottom-right" gelocations. Only one geospatial box can be provided.
|
|
3315
|
+
example: 2.095,57.15,-2.096,57.14
|
|
3316
|
+
BiasPostcodeOutwardParam:
|
|
3317
|
+
title: Bias Postcode Outward
|
|
3318
|
+
type: string
|
|
3319
|
+
description: Bias by outward code
|
|
3320
|
+
BiasPostcodeParam:
|
|
3321
|
+
title: Bias Postcode
|
|
3322
|
+
type: string
|
|
3323
|
+
description: >-
|
|
3324
|
+
Bias by postcode. Can be combined with query to perform a postcode +
|
|
3325
|
+
building number/name search.
|
|
3326
|
+
example: /addresses?postcode=SW1A2AA&q=10
|
|
3327
|
+
BiasPostcodeAreaParam:
|
|
3328
|
+
title: Bias Postcode Area
|
|
3329
|
+
type: string
|
|
3330
|
+
description: >-
|
|
3331
|
+
Bias by postcode area, the first one or two non-numeric characters of a
|
|
3332
|
+
postcode.
|
|
3333
|
+
example: The postcode area of SW1A 2AA and N1 6RT are SW and N respectively
|
|
3334
|
+
BiasPostcodeSectorParam:
|
|
3335
|
+
title: Bias Postcode Sector
|
|
3336
|
+
type: string
|
|
3337
|
+
description: >-
|
|
3338
|
+
Bias by postcode sector, the outward code plus first numeric of the
|
|
3339
|
+
inward code.
|
|
3340
|
+
example: SW1A 2AA is SW1A 2
|
|
3341
|
+
BiasPosttownParam:
|
|
3342
|
+
title: Bias Post Town
|
|
3343
|
+
type: string
|
|
3344
|
+
description: Bias by town.
|
|
3345
|
+
BiasThoroughfareParam:
|
|
3346
|
+
title: Bias Thoroughfare
|
|
3347
|
+
type: string
|
|
3348
|
+
description: Bias by street name.
|
|
3349
|
+
BiasCountryParam:
|
|
3350
|
+
title: Bias County
|
|
3351
|
+
type: string
|
|
3352
|
+
description: >-
|
|
3353
|
+
Bias by country. Possible values are England, Scotland, Wales, Northern
|
|
3354
|
+
Ireland, Jersey, Guernsey and Isle of Man.
|
|
3355
|
+
BiasLonLatParam:
|
|
3356
|
+
title: Bias Lon/Lat
|
|
3357
|
+
type: string
|
|
3358
|
+
description: >-
|
|
3359
|
+
Bias search to a geospatial circle determined by an origin and radius in
|
|
3360
|
+
meters. Max radius is `50000`. Uses the format
|
|
3361
|
+
bias_lonlat=[longitude],[latitude],[radius in metres] Only one
|
|
3362
|
+
geospatial bias may be provided
|
|
3363
|
+
example: '-2.095,57.15,100'
|
|
3364
|
+
BiasIpParam:
|
|
3365
|
+
title: Bias query by Geolocation of IP
|
|
3366
|
+
type: string
|
|
3367
|
+
enum:
|
|
3368
|
+
- 'true'
|
|
3369
|
+
description: |-
|
|
3370
|
+
Biases search based on approximate geolocation of IP address.
|
|
3371
|
+
Set `bias_ip=true` to enable.
|
|
3372
|
+
example: bias_ip=true
|
|
3373
|
+
PafSuggestion:
|
|
3374
|
+
title: UK Postcode Address File Address Autocompletion Hit
|
|
3375
|
+
description: Represents an address suggestion from the UK Postcode Address File.
|
|
3376
|
+
type: object
|
|
3377
|
+
required:
|
|
3378
|
+
- id
|
|
3379
|
+
- suggestion
|
|
3380
|
+
- udprn
|
|
3381
|
+
- urls
|
|
3382
|
+
properties:
|
|
3383
|
+
id:
|
|
3384
|
+
$ref: '#/components/schemas/ID'
|
|
3385
|
+
suggestion:
|
|
3386
|
+
type: string
|
|
3387
|
+
description: Address suggestion for your given query.
|
|
3388
|
+
example: Flat 6, 12 Roskear, Camborne, TR14
|
|
3389
|
+
udprn:
|
|
3390
|
+
$ref: '#/components/schemas/UDPRN'
|
|
3391
|
+
urls:
|
|
3392
|
+
required:
|
|
3393
|
+
- udprn
|
|
3394
|
+
type: object
|
|
3395
|
+
properties:
|
|
3396
|
+
udprn:
|
|
3397
|
+
type: string
|
|
3398
|
+
description: >-
|
|
3399
|
+
URL to retrieve the entire details for a given address
|
|
3400
|
+
suggestion by the UDPRN
|
|
3401
|
+
example: /v1/udprn/50985827
|
|
3402
|
+
MrSuggestion:
|
|
3403
|
+
title: Multiple Residence Address Autocompletion Hit
|
|
3404
|
+
type: object
|
|
3405
|
+
required:
|
|
3406
|
+
- id
|
|
3407
|
+
- suggestion
|
|
3408
|
+
- udprn
|
|
3409
|
+
- umprn
|
|
3410
|
+
- urls
|
|
3411
|
+
properties:
|
|
3412
|
+
id:
|
|
3413
|
+
$ref: '#/components/schemas/ID'
|
|
3414
|
+
suggestion:
|
|
3415
|
+
type: string
|
|
3416
|
+
description: Address suggestion for your given query.
|
|
3417
|
+
example: Flat 6, 12 Roskear, Camborne, TR14
|
|
3418
|
+
udprn:
|
|
3419
|
+
$ref: '#/components/schemas/UDPRN'
|
|
3420
|
+
umprn:
|
|
3421
|
+
type: number
|
|
3422
|
+
format: int32
|
|
3423
|
+
description: >-
|
|
3424
|
+
Optionally returned field, representing the UMPRN of a Multiple
|
|
3425
|
+
Residence household
|
|
3426
|
+
example: 51103417
|
|
3427
|
+
urls:
|
|
3428
|
+
type: object
|
|
3429
|
+
required:
|
|
3430
|
+
- udprn
|
|
3431
|
+
- umprn
|
|
3432
|
+
properties:
|
|
3433
|
+
udprn:
|
|
3434
|
+
type: string
|
|
3435
|
+
description: >-
|
|
3436
|
+
URL to retrieve the entire details for a given address
|
|
3437
|
+
suggestion by the UDPRN
|
|
3438
|
+
example: /v1/udprn/50985827
|
|
3439
|
+
umprn:
|
|
3440
|
+
type: string
|
|
3441
|
+
description: >-
|
|
3442
|
+
Optionally returned field, to retrieve the entire details for a
|
|
3443
|
+
suggested Multiple Residence household
|
|
3444
|
+
example: /v1/umprn/51103417
|
|
3445
|
+
NybSuggestion:
|
|
3446
|
+
title: Not Yet Built Address Autocompletion Hit
|
|
3447
|
+
allOf:
|
|
3448
|
+
- $ref: '#/components/schemas/PafSuggestion'
|
|
3449
|
+
GlobalAddressSuggestion:
|
|
3450
|
+
title: Global Address Autocompletion Suggestion
|
|
3451
|
+
description: Represents an address suggestion for any address in the world
|
|
3452
|
+
type: object
|
|
3453
|
+
required:
|
|
3454
|
+
- id
|
|
3455
|
+
- suggestion
|
|
3456
|
+
- urls
|
|
3457
|
+
properties:
|
|
3458
|
+
id:
|
|
3459
|
+
$ref: '#/components/schemas/ID'
|
|
3460
|
+
suggestion:
|
|
3461
|
+
type: string
|
|
3462
|
+
description: Address Suggestion to be displayed to the user
|
|
3463
|
+
example: Flat 6, 12 Roskear, Camborne, TR14
|
|
3464
|
+
urls:
|
|
3465
|
+
type: object
|
|
3466
|
+
properties:
|
|
3467
|
+
id:
|
|
3468
|
+
type: string
|
|
3469
|
+
description: >-
|
|
3470
|
+
URL to retrieve the entire details for a given address
|
|
3471
|
+
suggestion by the UDPRN
|
|
3472
|
+
example: /v1/udprn/50985827
|
|
3473
|
+
AutocompleteResponse:
|
|
3474
|
+
title: Address Autocomplete Response
|
|
3475
|
+
type: object
|
|
3476
|
+
required:
|
|
3477
|
+
- message
|
|
3478
|
+
- code
|
|
3479
|
+
- result
|
|
3480
|
+
properties:
|
|
3481
|
+
result:
|
|
3482
|
+
type: object
|
|
3483
|
+
required:
|
|
3484
|
+
- hits
|
|
3485
|
+
properties:
|
|
3486
|
+
hits:
|
|
3487
|
+
type: array
|
|
3488
|
+
items:
|
|
3489
|
+
oneOf:
|
|
3490
|
+
- $ref: '#/components/schemas/PafSuggestion'
|
|
3491
|
+
- $ref: '#/components/schemas/MrSuggestion'
|
|
3492
|
+
- $ref: '#/components/schemas/NybSuggestion'
|
|
3493
|
+
- $ref: '#/components/schemas/GlobalAddressSuggestion'
|
|
3494
|
+
code:
|
|
3495
|
+
type: integer
|
|
3496
|
+
format: int32
|
|
3497
|
+
enum:
|
|
3498
|
+
- 2000
|
|
3499
|
+
message:
|
|
3500
|
+
type: string
|
|
3501
|
+
enum:
|
|
3502
|
+
- Success
|
|
3503
|
+
GbrGlobalAddress:
|
|
3504
|
+
title: Global Address
|
|
3505
|
+
description: Global (non-UK) address in the UK address format
|
|
3506
|
+
required:
|
|
3507
|
+
- postcode
|
|
3508
|
+
- postcode_outward
|
|
3509
|
+
- postcode_inward
|
|
3510
|
+
- post_town
|
|
3511
|
+
- dependant_locality
|
|
3512
|
+
- double_dependant_locality
|
|
3513
|
+
- thoroughfare
|
|
3514
|
+
- dependant_thoroughfare
|
|
3515
|
+
- building_number
|
|
3516
|
+
- building_name
|
|
3517
|
+
- sub_building_name
|
|
3518
|
+
- po_box
|
|
3519
|
+
- department_name
|
|
3520
|
+
- organisation_name
|
|
3521
|
+
- udprn
|
|
3522
|
+
- umprn
|
|
3523
|
+
- postcode_type
|
|
3524
|
+
- su_organisation_indicator
|
|
3525
|
+
- delivery_point_suffix
|
|
3526
|
+
- line_1
|
|
3527
|
+
- line_2
|
|
3528
|
+
- line_3
|
|
3529
|
+
- premise
|
|
3530
|
+
- country
|
|
3531
|
+
- administrative_county
|
|
3532
|
+
- postal_county
|
|
3533
|
+
- traditional_county
|
|
3534
|
+
- district
|
|
3535
|
+
- ward
|
|
3536
|
+
- longitude
|
|
3537
|
+
- latitude
|
|
3538
|
+
- eastings
|
|
3539
|
+
- northings
|
|
3540
|
+
- uprn
|
|
3541
|
+
- county
|
|
3542
|
+
- id
|
|
3543
|
+
- dataset
|
|
3544
|
+
- country_iso
|
|
3545
|
+
properties:
|
|
3546
|
+
postcode:
|
|
3547
|
+
type: string
|
|
3548
|
+
description: Postal or Zip Code
|
|
3549
|
+
postcode_outward:
|
|
3550
|
+
type: string
|
|
3551
|
+
description: Not available for non-UK addresses
|
|
3552
|
+
enum:
|
|
3553
|
+
- ''
|
|
3554
|
+
postcode_inward:
|
|
3555
|
+
type: string
|
|
3556
|
+
description: Not available for non-UK addresses
|
|
3557
|
+
enum:
|
|
3558
|
+
- ''
|
|
3559
|
+
post_town:
|
|
3560
|
+
type: string
|
|
3561
|
+
description: Town or City
|
|
3562
|
+
dependant_locality:
|
|
3563
|
+
$ref: '#/components/schemas/DependantLocality'
|
|
3564
|
+
double_dependant_locality:
|
|
3565
|
+
$ref: '#/components/schemas/DoubleDependantLocality'
|
|
3566
|
+
thoroughfare:
|
|
3567
|
+
$ref: '#/components/schemas/Thoroughfare'
|
|
3568
|
+
dependant_thoroughfare:
|
|
3569
|
+
$ref: '#/components/schemas/DependantThoroughfare'
|
|
3570
|
+
building_number:
|
|
3571
|
+
$ref: '#/components/schemas/BuildingNumber'
|
|
3572
|
+
building_name:
|
|
3573
|
+
$ref: '#/components/schemas/BuildingName'
|
|
3574
|
+
sub_building_name:
|
|
3575
|
+
$ref: '#/components/schemas/SubBuildingName'
|
|
3576
|
+
po_box:
|
|
3577
|
+
type: string
|
|
3578
|
+
description: PO Box
|
|
3579
|
+
department_name:
|
|
3580
|
+
type: string
|
|
3581
|
+
description: Department name at premise
|
|
3582
|
+
organisation_name:
|
|
3583
|
+
type: string
|
|
3584
|
+
description: Name of organisation at premise
|
|
3585
|
+
udprn:
|
|
3586
|
+
type: string
|
|
3587
|
+
description: Not available for non-UK addresses. See id for address identifier
|
|
3588
|
+
enum:
|
|
3589
|
+
- ''
|
|
3590
|
+
umprn:
|
|
3591
|
+
type: string
|
|
3592
|
+
description: Not available for non-UK addresses. See id for address identifier
|
|
3593
|
+
enum:
|
|
3594
|
+
- ''
|
|
3595
|
+
postcode_type:
|
|
3596
|
+
type: string
|
|
3597
|
+
description: Not available for non-UK addresses
|
|
3598
|
+
enum:
|
|
3599
|
+
- ''
|
|
3600
|
+
su_organisation_indicator:
|
|
3601
|
+
type: string
|
|
3602
|
+
description: Not available for non-UK addresses
|
|
3603
|
+
enum:
|
|
3604
|
+
- ''
|
|
3605
|
+
delivery_point_suffix:
|
|
3606
|
+
type: string
|
|
3607
|
+
description: Not available for non-UK addresses
|
|
3608
|
+
enum:
|
|
3609
|
+
- ''
|
|
3610
|
+
line_1:
|
|
3611
|
+
$ref: '#/components/schemas/Line1'
|
|
3612
|
+
line_2:
|
|
3613
|
+
$ref: '#/components/schemas/Line2'
|
|
3614
|
+
line_3:
|
|
3615
|
+
$ref: '#/components/schemas/Line3'
|
|
3616
|
+
premise:
|
|
3617
|
+
$ref: '#/components/schemas/Premise'
|
|
3618
|
+
country:
|
|
3619
|
+
$ref: '#/components/schemas/Country'
|
|
3620
|
+
county:
|
|
3621
|
+
type: string
|
|
3622
|
+
description: Province, state or county
|
|
3623
|
+
administrative_county:
|
|
3624
|
+
type: string
|
|
3625
|
+
description: Not available for non-UK addresses
|
|
3626
|
+
enum:
|
|
3627
|
+
- ''
|
|
3628
|
+
postal_county:
|
|
3629
|
+
type: string
|
|
3630
|
+
description: Not available for non-UK addresses
|
|
3631
|
+
enum:
|
|
3632
|
+
- ''
|
|
3633
|
+
traditional_county:
|
|
3634
|
+
type: string
|
|
3635
|
+
description: Not available for non-UK addresses
|
|
3636
|
+
enum:
|
|
3637
|
+
- ''
|
|
3638
|
+
district:
|
|
3639
|
+
$ref: '#/components/schemas/District'
|
|
3640
|
+
ward:
|
|
3641
|
+
$ref: '#/components/schemas/Ward'
|
|
3642
|
+
longitude:
|
|
3643
|
+
$ref: '#/components/schemas/Longitude'
|
|
3644
|
+
latitude:
|
|
3645
|
+
$ref: '#/components/schemas/Latitude'
|
|
3646
|
+
eastings:
|
|
3647
|
+
type: string
|
|
3648
|
+
description: Not available for non-UK addresses
|
|
3649
|
+
enum:
|
|
3650
|
+
- ''
|
|
3651
|
+
northings:
|
|
3652
|
+
type: string
|
|
3653
|
+
description: Not available for non-UK addresses
|
|
3654
|
+
enum:
|
|
3655
|
+
- ''
|
|
3656
|
+
uprn:
|
|
3657
|
+
type: string
|
|
3658
|
+
description: Not available for non-UK addresses. See id for address identifier
|
|
3659
|
+
enum:
|
|
3660
|
+
- ''
|
|
3661
|
+
id:
|
|
3662
|
+
$ref: '#/components/schemas/ID'
|
|
3663
|
+
dataset:
|
|
3664
|
+
$ref: '#/components/schemas/Dataset'
|
|
3665
|
+
country_iso:
|
|
3666
|
+
$ref: '#/components/schemas/CountryISO'
|
|
3667
|
+
GbrResolveAddressResponse:
|
|
3668
|
+
title: Address Resolution Response (GBR)
|
|
3669
|
+
type: object
|
|
3670
|
+
required:
|
|
3671
|
+
- message
|
|
3672
|
+
- code
|
|
3673
|
+
- result
|
|
3674
|
+
properties:
|
|
3675
|
+
code:
|
|
3676
|
+
type: integer
|
|
3677
|
+
format: int32
|
|
3678
|
+
enum:
|
|
3679
|
+
- 2000
|
|
3680
|
+
message:
|
|
3681
|
+
type: string
|
|
3682
|
+
enum:
|
|
3683
|
+
- Success
|
|
3684
|
+
result:
|
|
3685
|
+
oneOf:
|
|
3686
|
+
- $ref: '#/components/schemas/PafAddress'
|
|
3687
|
+
- $ref: '#/components/schemas/MrAddress'
|
|
3688
|
+
- $ref: '#/components/schemas/NybAddress'
|
|
3689
|
+
- $ref: '#/components/schemas/GbrGlobalAddress'
|
|
3690
|
+
usps_dataset:
|
|
3691
|
+
title: USA Dataset
|
|
3692
|
+
type: string
|
|
3693
|
+
description: Identifies the address as sourced from USPS
|
|
3694
|
+
enum:
|
|
3695
|
+
- usps
|
|
3696
|
+
usps_country:
|
|
3697
|
+
title: Country
|
|
3698
|
+
type: string
|
|
3699
|
+
description: Full country name associated with address
|
|
3700
|
+
enum:
|
|
3701
|
+
- United States
|
|
3702
|
+
- Guam
|
|
3703
|
+
- Puerto Rico
|
|
3704
|
+
usps_country_iso:
|
|
3705
|
+
title: USPS ISO Country Codes
|
|
3706
|
+
type: string
|
|
3707
|
+
description: 3 letter ISO country code associated with USA
|
|
3708
|
+
enum:
|
|
3709
|
+
- USA
|
|
3710
|
+
- PRI
|
|
3711
|
+
- GUM
|
|
3712
|
+
primary_number:
|
|
3713
|
+
title: Primary Number
|
|
3714
|
+
type: string
|
|
3715
|
+
description: >-
|
|
3716
|
+
A house, rural route, contract box, or Post Office Box number. The
|
|
3717
|
+
numeric or alphanumeric component of an address preceding the street
|
|
3718
|
+
name. Often referred to as house number.
|
|
3719
|
+
example: A298
|
|
3720
|
+
secondary_number:
|
|
3721
|
+
title: Secondary Number
|
|
3722
|
+
type: string
|
|
3723
|
+
description: Number of the sub unit, apartment, suite etc
|
|
3724
|
+
example: 123A
|
|
3725
|
+
plus_4_code:
|
|
3726
|
+
title: Plus 4 Code
|
|
3727
|
+
type: string
|
|
3728
|
+
description: 4 digit ZIP add-on code.
|
|
3729
|
+
example: '1234'
|
|
3730
|
+
line_1:
|
|
3731
|
+
title: First Address Line
|
|
3732
|
+
type: string
|
|
3733
|
+
description: The primary delivery line (usually the street address) of the address.
|
|
3734
|
+
example: 12 Armstrong Ct Apt 12
|
|
3735
|
+
line_2:
|
|
3736
|
+
title: Second Address Line
|
|
3737
|
+
type: string
|
|
3738
|
+
description: >-
|
|
3739
|
+
Secondary delivery line of the address. Typically populated if the first
|
|
3740
|
+
line is the firm or building name.
|
|
3741
|
+
example: 9450 Pinecroft Dr
|
|
3742
|
+
last_line:
|
|
3743
|
+
title: TITLE
|
|
3744
|
+
type: string
|
|
3745
|
+
description: Last line of the address comprising of city, state, zip code and zip+4
|
|
3746
|
+
example: GREENWICH, CT, 06830-1234
|
|
3747
|
+
zip_code:
|
|
3748
|
+
title: ZIP Code
|
|
3749
|
+
type: string
|
|
3750
|
+
description: >-
|
|
3751
|
+
A 5-digit code that identifies a specific geographic delivery area. ZIP
|
|
3752
|
+
Codes can represent an area within a state, or a single building or
|
|
3753
|
+
company that has a very high mail volume.
|
|
3754
|
+
example: '1234'
|
|
3755
|
+
zip_plus_4_code:
|
|
3756
|
+
title: ZIP + 4 Code
|
|
3757
|
+
type: string
|
|
3758
|
+
description: >-
|
|
3759
|
+
Nine-digit code that identifies a small geographic delivery area that is
|
|
3760
|
+
serviceable by a single carrier; appears in the last line of the address
|
|
3761
|
+
on a mail piece.
|
|
3762
|
+
example: 12345-6789
|
|
3763
|
+
update_key_number:
|
|
3764
|
+
title: Update Key Number
|
|
3765
|
+
type: string
|
|
3766
|
+
description: >-
|
|
3767
|
+
Field that contains a number that uniquely identifies a record; used to
|
|
3768
|
+
identify the base record to which an add or delete transaction is being
|
|
3769
|
+
directed. The Update Key Number field is used only when applying
|
|
3770
|
+
transactions to the base file; it is not used in address matching and
|
|
3771
|
+
remains fixed for the life of the record. The field is alphanumeric and
|
|
3772
|
+
consists of the database segment code (V1, V2, W1, W2, X1, X2, Y1, Y2,
|
|
3773
|
+
Z1, or Z2) and eight characters containing an alphanumeric value ranging
|
|
3774
|
+
from 00000001 to AAAAAAAA.
|
|
3775
|
+
example: '00000001'
|
|
3776
|
+
record_type_code:
|
|
3777
|
+
title: Record Type Code
|
|
3778
|
+
type: string
|
|
3779
|
+
description: >-
|
|
3780
|
+
An alphabetic value that identifies the type of data in the record. - G
|
|
3781
|
+
= General delivery (5-Digit ZIP, ZIP + 4, and Carrier Route products) -
|
|
3782
|
+
H = High-rise (ZIP + 4 only) - F = Firm (ZIP + 4 only) - S = Street
|
|
3783
|
+
(5-Digit ZIP, ZIP + 4, and Carrier Route products) - P = PO Box (5-Digit
|
|
3784
|
+
ZIP, ZIP + 4, and Carrier Route products) - R = Rural route/contract
|
|
3785
|
+
(5-Digit ZIP, ZIP + 4, and Carrier Route products) - M = Multi-carrier
|
|
3786
|
+
(Carrier Route product only)
|
|
3787
|
+
enum:
|
|
3788
|
+
- G
|
|
3789
|
+
- H
|
|
3790
|
+
- F
|
|
3791
|
+
- S
|
|
3792
|
+
- P
|
|
3793
|
+
- R
|
|
3794
|
+
- M
|
|
3795
|
+
- ''
|
|
3796
|
+
carrier_route_id:
|
|
3797
|
+
title: Carrier Route ID
|
|
3798
|
+
type: string
|
|
3799
|
+
description: |-
|
|
3800
|
+
A 4 character ID identifying the postal route for the address.
|
|
3801
|
+
The first character indicates the route type. Specifically:
|
|
3802
|
+
- "B" indicates PO Box
|
|
3803
|
+
- "H" indicates highway
|
|
3804
|
+
- "C" indicates city
|
|
3805
|
+
- "G" indicates general
|
|
3806
|
+
- "R" indicates rural
|
|
3807
|
+
example: R012
|
|
3808
|
+
street_pre_directional_abbreviation:
|
|
3809
|
+
title: Street Pre-Directional Abbreviation
|
|
3810
|
+
type: string
|
|
3811
|
+
description: A geographic direction that precedes the street name.
|
|
3812
|
+
street_name:
|
|
3813
|
+
title: Street Name
|
|
3814
|
+
type: string
|
|
3815
|
+
description: >-
|
|
3816
|
+
The official name of a street as assigned by a local governing
|
|
3817
|
+
authority. The Street Name field contains only the street name and does
|
|
3818
|
+
not include directionals (EAST, WEST, etc.) or suffixes (ST, DR, BLVD,
|
|
3819
|
+
etc.). This element may also contain literals, such as PO BOX, GENERAL
|
|
3820
|
+
DELIVERY, USS, PSC, or UNIT.
|
|
3821
|
+
example: GOSHEN
|
|
3822
|
+
street_suffix_abbreviation:
|
|
3823
|
+
title: Street Suffix Abbreviation
|
|
3824
|
+
type: string
|
|
3825
|
+
description: >-
|
|
3826
|
+
Code that is the standard USPS abbreviation for the trailing designator
|
|
3827
|
+
in a street address.
|
|
3828
|
+
example: ST
|
|
3829
|
+
street_post_directional_abbreviation:
|
|
3830
|
+
title: Street Post Directional Abbreviation
|
|
3831
|
+
type: string
|
|
3832
|
+
description: A geographic direction that follows the street name.
|
|
3833
|
+
building_or_firm_name:
|
|
3834
|
+
title: Building or Firm Name
|
|
3835
|
+
type: string
|
|
3836
|
+
description: >-
|
|
3837
|
+
The name of a company, building, apartment complex, shopping center, or
|
|
3838
|
+
other distinguishing secondary address information.
|
|
3839
|
+
|
|
3840
|
+
This field is normally used with firm and highrise records but may also
|
|
3841
|
+
contain literals such as “Postmaster” or “United States Postal Service.”
|
|
3842
|
+
example: POSTMASTER
|
|
3843
|
+
address_secondary_abbreviation:
|
|
3844
|
+
title: Address Secondary Abbreviation
|
|
3845
|
+
type: string
|
|
3846
|
+
description: >-
|
|
3847
|
+
A descriptive code used to identify the type of address secondary range
|
|
3848
|
+
information in the Address Secondary Range field.
|
|
3849
|
+
|
|
3850
|
+
This code may be useful in address matching, e.g., the secondary address
|
|
3851
|
+
numbers may indicate apartment, suite, or trailer numbers.
|
|
3852
|
+
base_alternate_code:
|
|
3853
|
+
title: Base Alternate Code
|
|
3854
|
+
type: string
|
|
3855
|
+
description: >-
|
|
3856
|
+
Code that specifies whether a record is a base (preferred) or alternate
|
|
3857
|
+
record.
|
|
3858
|
+
|
|
3859
|
+
Base records (represented as "B") can represent a range of addresses or
|
|
3860
|
+
an individual address, such as a firm record, while alternate records
|
|
3861
|
+
(represented as "A") are individual delivery points. Base records are
|
|
3862
|
+
generally preferred over alternate records.
|
|
3863
|
+
|
|
3864
|
+
Government deliveries will only be listed on alternate records with the
|
|
3865
|
+
appropriate government building indicator (federal, state, or city) set.
|
|
3866
|
+
enum:
|
|
3867
|
+
- A
|
|
3868
|
+
- B
|
|
3869
|
+
- ''
|
|
3870
|
+
lacs_status_indicator:
|
|
3871
|
+
title: LACS Status Indicator
|
|
3872
|
+
type: string
|
|
3873
|
+
description: >-
|
|
3874
|
+
The Locatable Address Conversion Service (LACS) indicator describes
|
|
3875
|
+
records that have been converted to the LACS system (a product/system in
|
|
3876
|
+
a different USPS® product line that allows mailers to identify and
|
|
3877
|
+
convert a rural route address to a city-style address). Rural route and
|
|
3878
|
+
some city addresses are being modified to city-style addresses so that
|
|
3879
|
+
emergency services (e.g., ambulances, police) can find these addresses
|
|
3880
|
+
more efficiently.
|
|
3881
|
+
|
|
3882
|
+
- L = LACS address: The old (usually rural-route) address that has been
|
|
3883
|
+
converted for the LACS system.
|
|
3884
|
+
|
|
3885
|
+
- Blank = Not applicable
|
|
3886
|
+
enum:
|
|
3887
|
+
- ''
|
|
3888
|
+
- L
|
|
3889
|
+
government_building_indicator:
|
|
3890
|
+
title: Government Building Indicator
|
|
3891
|
+
type: string
|
|
3892
|
+
description: >-
|
|
3893
|
+
An alphabetic value that identifies the type of government agency at the
|
|
3894
|
+
delivery point and/or whether a firm is the only delivery at an address.
|
|
3895
|
+
For this purpose, "address" is defined as the complete delivery line
|
|
3896
|
+
(e.g., complete street address and, if included as part of the firm
|
|
3897
|
+
record, the secondary abbreviation and/or address secondary number).
|
|
3898
|
+
|
|
3899
|
+
- A = City government building—alternates only
|
|
3900
|
+
|
|
3901
|
+
- B = Federal government building—alternates only
|
|
3902
|
+
|
|
3903
|
+
- C = State government building—alternates only
|
|
3904
|
+
|
|
3905
|
+
- D = Firm only—base and alternates
|
|
3906
|
+
|
|
3907
|
+
- E = City government building and firm only—alternates only
|
|
3908
|
+
|
|
3909
|
+
- F = Federal government building and firm only—alternates only
|
|
3910
|
+
|
|
3911
|
+
- G = State government building and firm only—alternates only
|
|
3912
|
+
enum:
|
|
3913
|
+
- ''
|
|
3914
|
+
- A
|
|
3915
|
+
- B
|
|
3916
|
+
- C
|
|
3917
|
+
- D
|
|
3918
|
+
- E
|
|
3919
|
+
- F
|
|
3920
|
+
- G
|
|
3921
|
+
state_abbreviation:
|
|
3922
|
+
title: State Abbreviation
|
|
3923
|
+
type: string
|
|
3924
|
+
description: >-
|
|
3925
|
+
A 2-character abbreviation for the name of a state, U.S. territory, or
|
|
3926
|
+
armed forces ZIP Code designation. If APO/FPO/DPO, then the state
|
|
3927
|
+
abbreviation will be “AA,” “AE,” or “AP.”
|
|
3928
|
+
example: NY
|
|
3929
|
+
state:
|
|
3930
|
+
title: State
|
|
3931
|
+
type: string
|
|
3932
|
+
description: >-
|
|
3933
|
+
Full name of a state, U.S. territory, or armed forces ZIP Code
|
|
3934
|
+
designation.
|
|
3935
|
+
example: New York
|
|
3936
|
+
municipality_city_state_key:
|
|
3937
|
+
title: Municipality City State Key
|
|
3938
|
+
type: string
|
|
3939
|
+
description: Municipality City State Key. Currently blank.
|
|
3940
|
+
urbanization_city_state_key:
|
|
3941
|
+
title: Urbanization City State Key
|
|
3942
|
+
type: string
|
|
3943
|
+
description: >-
|
|
3944
|
+
An index to the City State file that provides the urbanization name for
|
|
3945
|
+
this delivery range.
|
|
3946
|
+
example: V18475
|
|
3947
|
+
preferred_last_line_city_state_key:
|
|
3948
|
+
title: Preferred Last Line City State Key
|
|
3949
|
+
type: string
|
|
3950
|
+
description: >-
|
|
3951
|
+
In the Carrier Route, Five-Digit ZIP Code, Delivery Statistics, and ZIP
|
|
3952
|
+
+ 4 products, an index to the City State product record that provides
|
|
3953
|
+
the preferred last-line name for this address range. In the City State
|
|
3954
|
+
product, the preferred last line city/state key contains the key value
|
|
3955
|
+
of a City State product record that has the default preferred or
|
|
3956
|
+
alternate preferred last-line key for a given ZIP Code.
|
|
3957
|
+
example: V13916
|
|
3958
|
+
county:
|
|
3959
|
+
title: County Name
|
|
3960
|
+
type: string
|
|
3961
|
+
description: >-
|
|
3962
|
+
The name of the county or parish in which the 5-digit ZIP Code resides.
|
|
3963
|
+
If APO/FPO/DPO, then the county name will be blank.
|
|
3964
|
+
example: SUFFOLK
|
|
3965
|
+
city:
|
|
3966
|
+
title: City Name
|
|
3967
|
+
type: string
|
|
3968
|
+
description: >-
|
|
3969
|
+
A valid city name for mailing purposes; appears in the last line of an
|
|
3970
|
+
address on a mail piece.
|
|
3971
|
+
example: HOLTSVILLE
|
|
3972
|
+
city_abbreviation:
|
|
3973
|
+
title: City State Name Abbreviation
|
|
3974
|
+
type: string
|
|
3975
|
+
description: >-
|
|
3976
|
+
A standard 13-character abbreviation for a city/state name. This field
|
|
3977
|
+
is only used for names that are greater than 13 characters in length and
|
|
3978
|
+
have a city/state mailing name indicator of "Y." If the field is longer
|
|
3979
|
+
than 13 characters and the city/state mailing name indicator is "N," the
|
|
3980
|
+
field will be blank.
|
|
3981
|
+
example: W TOWNSHEND
|
|
3982
|
+
preferred_city:
|
|
3983
|
+
title: Preferred Last Line City State Name
|
|
3984
|
+
type: string
|
|
3985
|
+
description: >-
|
|
3986
|
+
Field that contains the default preferred or alternate preferred
|
|
3987
|
+
last-line name for a ZIP Code.
|
|
3988
|
+
example: AGUADA
|
|
3989
|
+
city_state_name_facility_code:
|
|
3990
|
+
title: City State Name Facility Code
|
|
3991
|
+
type: string
|
|
3992
|
+
description: >-
|
|
3993
|
+
The type of locale identified in the city/state name. The facility may
|
|
3994
|
+
be a USPS facility, such as a post office, station, or branch, or it may
|
|
3995
|
+
be a non-postal place name. City/state name facility codes include the
|
|
3996
|
+
following:
|
|
3997
|
+
|
|
3998
|
+
- B = Branch
|
|
3999
|
+
|
|
4000
|
+
- C = Community post office (CPO)
|
|
4001
|
+
|
|
4002
|
+
- N = Non-postal community name, former USPS facility, or place name
|
|
4003
|
+
|
|
4004
|
+
- P = Post Office
|
|
4005
|
+
|
|
4006
|
+
- S = Station
|
|
4007
|
+
|
|
4008
|
+
- U = Urbanization
|
|
4009
|
+
enum:
|
|
4010
|
+
- B
|
|
4011
|
+
- C
|
|
4012
|
+
- 'N'
|
|
4013
|
+
- P
|
|
4014
|
+
- S
|
|
4015
|
+
- U
|
|
4016
|
+
- 'Y'
|
|
4017
|
+
- ''
|
|
4018
|
+
zip_classification_code:
|
|
4019
|
+
title: ZIP Classification Code
|
|
4020
|
+
type: string
|
|
4021
|
+
description: >-
|
|
4022
|
+
A field that describes the type of ZIP area that a 5-digit ZIP Code
|
|
4023
|
+
serves, e.g., a single educational institution, post office boxes only,
|
|
4024
|
+
or a single address that has unusually high mail volume or many
|
|
4025
|
+
different addresses.
|
|
4026
|
+
- M = Military ZIP Code
|
|
4027
|
+
- P = ZIP Code having only Post Office Boxes
|
|
4028
|
+
- U = Unique ZIP Code (ZIP assigned to a single organization)
|
|
4029
|
+
- Blank = Standard ZIP with many addresses assigned to it
|
|
4030
|
+
enum:
|
|
4031
|
+
- ''
|
|
4032
|
+
- M
|
|
4033
|
+
- P
|
|
4034
|
+
- U
|
|
4035
|
+
city_state_mailing_name_indicator:
|
|
4036
|
+
title: City State Mailing Name Indicator
|
|
4037
|
+
type: string
|
|
4038
|
+
description: >-
|
|
4039
|
+
Specifies whether or not the city state name can be used as a last line
|
|
4040
|
+
of address on a mail piece.
|
|
4041
|
+
|
|
4042
|
+
- "Y = City/state name is a USPS-approved mailing name."
|
|
4043
|
+
|
|
4044
|
+
- "N = City/state name is not approved for mailing purposes."
|
|
4045
|
+
carrier_route_rate_sortation:
|
|
4046
|
+
title: Carrier Route Rate Sortation and Merged 5-Digit Indicator
|
|
4047
|
+
type: string
|
|
4048
|
+
description: >-
|
|
4049
|
+
Identifies where automation Carrier Route rates are available and where
|
|
4050
|
+
the commingling of automation and non-automation mail, including
|
|
4051
|
+
Enhanced Carrier Routes and 5-digit presort, on the same pallet or in
|
|
4052
|
+
the same container is allowed.
|
|
4053
|
+
finance_number:
|
|
4054
|
+
title: Finance Number
|
|
4055
|
+
oneOf:
|
|
4056
|
+
- type: string
|
|
4057
|
+
description: Empty string `""` if not available
|
|
4058
|
+
- type: number
|
|
4059
|
+
description: Finance Number
|
|
4060
|
+
example: 351560
|
|
4061
|
+
description: >-
|
|
4062
|
+
A code assigned to Postal Service facilities (primarily Post Offices) to
|
|
4063
|
+
collect cost and statistical data and compile revenue and expense data.
|
|
4064
|
+
congressional_district_number:
|
|
4065
|
+
title: Congressional District Number
|
|
4066
|
+
oneOf:
|
|
4067
|
+
- type: string
|
|
4068
|
+
description: Empty string `""` if not available
|
|
4069
|
+
- type: number
|
|
4070
|
+
description: Congressional district number
|
|
4071
|
+
example: 6
|
|
4072
|
+
description: >-
|
|
4073
|
+
A standard value identifying a geographic area within the United States
|
|
4074
|
+
served by a member of the U.S. House of Representatives. If Army/Air
|
|
4075
|
+
Force (APO), Fleet Post Office (FPO), or Diplomatic/Defense Post Office
|
|
4076
|
+
(DPO), this field will be blank. If there is only one member of Congress
|
|
4077
|
+
within a state, the code will be "AL" (at large).
|
|
4078
|
+
county_number:
|
|
4079
|
+
title: County Number
|
|
4080
|
+
oneOf:
|
|
4081
|
+
- type: string
|
|
4082
|
+
description: Empty string `""` if not available
|
|
4083
|
+
- type: number
|
|
4084
|
+
description: FIPS code
|
|
4085
|
+
example: 53
|
|
4086
|
+
description: >-
|
|
4087
|
+
The Federal Information Processing Standard (FIPS) code assigned to a
|
|
4088
|
+
given county or parish within a state. In Alaska, it identifies a region
|
|
4089
|
+
within the state. If APO/FPO/DPO, and the record type is “S,” “H,” or
|
|
4090
|
+
“F,” the county number will be blank.
|
|
4091
|
+
UspsAddress:
|
|
4092
|
+
title: United States Postal Service Address
|
|
4093
|
+
description: Standard USA Address
|
|
4094
|
+
required:
|
|
4095
|
+
- id
|
|
4096
|
+
- dataset
|
|
4097
|
+
- country_iso
|
|
4098
|
+
- primary_number
|
|
4099
|
+
- secondary_number
|
|
4100
|
+
- plus_4_code
|
|
4101
|
+
- line_1
|
|
4102
|
+
- line_2
|
|
4103
|
+
- last_line
|
|
4104
|
+
- zip_code
|
|
4105
|
+
- zip_plus_4_code
|
|
4106
|
+
- update_key_number
|
|
4107
|
+
- record_type_code
|
|
4108
|
+
- carrier_route_id
|
|
4109
|
+
- street_pre_directional_abbreviation
|
|
4110
|
+
- street_name
|
|
4111
|
+
- street_suffix_abbreviation
|
|
4112
|
+
- street_post_directional_abbreviation
|
|
4113
|
+
- building_or_firm_name
|
|
4114
|
+
- address_secondary_abbreviation
|
|
4115
|
+
- base_alternate_code
|
|
4116
|
+
- lacs_status_indicator
|
|
4117
|
+
- government_building_indicator
|
|
4118
|
+
- state_abbreviation
|
|
4119
|
+
- state
|
|
4120
|
+
- municipality_city_state_key
|
|
4121
|
+
- urbanization_city_state_key
|
|
4122
|
+
- preferred_last_line_city_state_key
|
|
4123
|
+
- county
|
|
4124
|
+
- city
|
|
4125
|
+
- city_abbreviation
|
|
4126
|
+
- preferred_city
|
|
4127
|
+
- city_state_name_facility_code
|
|
4128
|
+
- zip_classification_code
|
|
4129
|
+
- city_state_mailing_name_indicator
|
|
4130
|
+
- carrier_route_rate_sortation
|
|
4131
|
+
- finance_number
|
|
4132
|
+
- congressional_district_number
|
|
4133
|
+
- county_number
|
|
4134
|
+
properties:
|
|
4135
|
+
id:
|
|
4136
|
+
$ref: '#/components/schemas/ID'
|
|
4137
|
+
dataset:
|
|
4138
|
+
$ref: '#/components/schemas/usps_dataset'
|
|
4139
|
+
country:
|
|
4140
|
+
$ref: '#/components/schemas/usps_country'
|
|
4141
|
+
country_iso:
|
|
4142
|
+
$ref: '#/components/schemas/usps_country_iso'
|
|
4143
|
+
primary_number:
|
|
4144
|
+
$ref: '#/components/schemas/primary_number'
|
|
4145
|
+
secondary_number:
|
|
4146
|
+
$ref: '#/components/schemas/secondary_number'
|
|
4147
|
+
plus_4_code:
|
|
4148
|
+
$ref: '#/components/schemas/plus_4_code'
|
|
4149
|
+
line_1:
|
|
4150
|
+
$ref: '#/components/schemas/line_1'
|
|
4151
|
+
line_2:
|
|
4152
|
+
$ref: '#/components/schemas/line_2'
|
|
4153
|
+
last_line:
|
|
4154
|
+
$ref: '#/components/schemas/last_line'
|
|
4155
|
+
zip_code:
|
|
4156
|
+
$ref: '#/components/schemas/zip_code'
|
|
4157
|
+
zip_plus_4_code:
|
|
4158
|
+
$ref: '#/components/schemas/zip_plus_4_code'
|
|
4159
|
+
update_key_number:
|
|
4160
|
+
$ref: '#/components/schemas/update_key_number'
|
|
4161
|
+
record_type_code:
|
|
4162
|
+
$ref: '#/components/schemas/record_type_code'
|
|
4163
|
+
carrier_route_id:
|
|
4164
|
+
$ref: '#/components/schemas/carrier_route_id'
|
|
4165
|
+
street_pre_directional_abbreviation:
|
|
4166
|
+
$ref: '#/components/schemas/street_pre_directional_abbreviation'
|
|
4167
|
+
street_name:
|
|
4168
|
+
$ref: '#/components/schemas/street_name'
|
|
4169
|
+
street_suffix_abbreviation:
|
|
4170
|
+
$ref: '#/components/schemas/street_suffix_abbreviation'
|
|
4171
|
+
street_post_directional_abbreviation:
|
|
4172
|
+
$ref: '#/components/schemas/street_post_directional_abbreviation'
|
|
4173
|
+
building_or_firm_name:
|
|
4174
|
+
$ref: '#/components/schemas/building_or_firm_name'
|
|
4175
|
+
address_secondary_abbreviation:
|
|
4176
|
+
$ref: '#/components/schemas/address_secondary_abbreviation'
|
|
4177
|
+
base_alternate_code:
|
|
4178
|
+
$ref: '#/components/schemas/base_alternate_code'
|
|
4179
|
+
lacs_status_indicator:
|
|
4180
|
+
$ref: '#/components/schemas/lacs_status_indicator'
|
|
4181
|
+
government_building_indicator:
|
|
4182
|
+
$ref: '#/components/schemas/government_building_indicator'
|
|
4183
|
+
state_abbreviation:
|
|
4184
|
+
$ref: '#/components/schemas/state_abbreviation'
|
|
4185
|
+
state:
|
|
4186
|
+
$ref: '#/components/schemas/state'
|
|
4187
|
+
municipality_city_state_key:
|
|
4188
|
+
$ref: '#/components/schemas/municipality_city_state_key'
|
|
4189
|
+
urbanization_city_state_key:
|
|
4190
|
+
$ref: '#/components/schemas/urbanization_city_state_key'
|
|
4191
|
+
preferred_last_line_city_state_key:
|
|
4192
|
+
$ref: '#/components/schemas/preferred_last_line_city_state_key'
|
|
4193
|
+
county:
|
|
4194
|
+
$ref: '#/components/schemas/county'
|
|
4195
|
+
city:
|
|
4196
|
+
$ref: '#/components/schemas/city'
|
|
4197
|
+
city_abbreviation:
|
|
4198
|
+
$ref: '#/components/schemas/city_abbreviation'
|
|
4199
|
+
preferred_city:
|
|
4200
|
+
$ref: '#/components/schemas/preferred_city'
|
|
4201
|
+
city_state_name_facility_code:
|
|
4202
|
+
$ref: '#/components/schemas/city_state_name_facility_code'
|
|
4203
|
+
zip_classification_code:
|
|
4204
|
+
$ref: '#/components/schemas/zip_classification_code'
|
|
4205
|
+
city_state_mailing_name_indicator:
|
|
4206
|
+
$ref: '#/components/schemas/city_state_mailing_name_indicator'
|
|
4207
|
+
carrier_route_rate_sortation:
|
|
4208
|
+
$ref: '#/components/schemas/carrier_route_rate_sortation'
|
|
4209
|
+
finance_number:
|
|
4210
|
+
$ref: '#/components/schemas/finance_number'
|
|
4211
|
+
congressional_district_number:
|
|
4212
|
+
$ref: '#/components/schemas/congressional_district_number'
|
|
4213
|
+
county_number:
|
|
4214
|
+
$ref: '#/components/schemas/county_number'
|
|
4215
|
+
UsaGlobalAddress:
|
|
4216
|
+
title: Global Address
|
|
4217
|
+
description: Global (non-US) Address in the US address format
|
|
4218
|
+
required:
|
|
4219
|
+
- id
|
|
4220
|
+
- dataset
|
|
4221
|
+
- country_iso
|
|
4222
|
+
- primary_number
|
|
4223
|
+
- secondary_number
|
|
4224
|
+
- plus_4_code
|
|
4225
|
+
- line_1
|
|
4226
|
+
- line_2
|
|
4227
|
+
- last_line
|
|
4228
|
+
- zip_code
|
|
4229
|
+
- zip_plus_4_code
|
|
4230
|
+
- update_key_number
|
|
4231
|
+
- record_type_code
|
|
4232
|
+
- carrier_route_id
|
|
4233
|
+
- street_pre_directional_abbreviation
|
|
4234
|
+
- street_name
|
|
4235
|
+
- street_suffix_abbreviation
|
|
4236
|
+
- street_post_directional_abbreviation
|
|
4237
|
+
- building_or_firm_name
|
|
4238
|
+
- address_secondary_abbreviation
|
|
4239
|
+
- base_alternate_code
|
|
4240
|
+
- lacs_status_indicator
|
|
4241
|
+
- government_building_indicator
|
|
4242
|
+
- state_abbreviation
|
|
4243
|
+
- state
|
|
4244
|
+
- municipality_city_state_key
|
|
4245
|
+
- urbanization_city_state_key
|
|
4246
|
+
- preferred_last_line_city_state_key
|
|
4247
|
+
- county
|
|
4248
|
+
- city
|
|
4249
|
+
- city_abbreviation
|
|
4250
|
+
- preferred_city
|
|
4251
|
+
- city_state_name_facility_code
|
|
4252
|
+
- zip_classification_code
|
|
4253
|
+
- city_state_mailing_name_indicator
|
|
4254
|
+
- carrier_route_rate_sortation
|
|
4255
|
+
- finance_number
|
|
4256
|
+
- congressional_district_number
|
|
4257
|
+
- county_number
|
|
4258
|
+
properties:
|
|
4259
|
+
id:
|
|
4260
|
+
$ref: '#/components/schemas/ID'
|
|
4261
|
+
dataset:
|
|
4262
|
+
$ref: '#/components/schemas/Dataset'
|
|
4263
|
+
enum:
|
|
4264
|
+
- paf
|
|
4265
|
+
country:
|
|
4266
|
+
$ref: '#/components/schemas/Country'
|
|
4267
|
+
country_iso:
|
|
4268
|
+
$ref: '#/components/schemas/CountryISO'
|
|
4269
|
+
primary_number:
|
|
4270
|
+
type: string
|
|
4271
|
+
description: Not available for non-US addresses
|
|
4272
|
+
enum:
|
|
4273
|
+
- ''
|
|
4274
|
+
secondary_number:
|
|
4275
|
+
type: string
|
|
4276
|
+
description: Not available for non-US addresses
|
|
4277
|
+
enum:
|
|
4278
|
+
- ''
|
|
4279
|
+
plus_4_code:
|
|
4280
|
+
type: string
|
|
4281
|
+
description: Not available for non-US addresses
|
|
4282
|
+
enum:
|
|
4283
|
+
- ''
|
|
4284
|
+
line_1:
|
|
4285
|
+
type: string
|
|
4286
|
+
description: First line of address
|
|
4287
|
+
line_2:
|
|
4288
|
+
type: string
|
|
4289
|
+
description: Second line of address
|
|
4290
|
+
last_line:
|
|
4291
|
+
type: string
|
|
4292
|
+
description: Not available for non-US addresses
|
|
4293
|
+
enum:
|
|
4294
|
+
- ''
|
|
4295
|
+
zip_code:
|
|
4296
|
+
type: string
|
|
4297
|
+
description: Partial postcode of address
|
|
4298
|
+
zip_plus_4_code:
|
|
4299
|
+
type: string
|
|
4300
|
+
description: Full postal code of address
|
|
4301
|
+
update_key_number:
|
|
4302
|
+
type: string
|
|
4303
|
+
description: Not available for non-US addresses
|
|
4304
|
+
enum:
|
|
4305
|
+
- ''
|
|
4306
|
+
record_type_code:
|
|
4307
|
+
type: string
|
|
4308
|
+
description: Not available for non-US addresses
|
|
4309
|
+
enum:
|
|
4310
|
+
- ''
|
|
4311
|
+
carrier_route_id:
|
|
4312
|
+
type: string
|
|
4313
|
+
description: Not available for non-US addresses
|
|
4314
|
+
enum:
|
|
4315
|
+
- ''
|
|
4316
|
+
street_pre_directional_abbreviation:
|
|
4317
|
+
type: string
|
|
4318
|
+
description: Not available for non-US addresses
|
|
4319
|
+
enum:
|
|
4320
|
+
- ''
|
|
4321
|
+
street_name:
|
|
4322
|
+
type: string
|
|
4323
|
+
description: Not available for non-US addresses
|
|
4324
|
+
enum:
|
|
4325
|
+
- ''
|
|
4326
|
+
street_suffix_abbreviation:
|
|
4327
|
+
type: string
|
|
4328
|
+
description: Not available for non-US addresses
|
|
4329
|
+
enum:
|
|
4330
|
+
- ''
|
|
4331
|
+
street_post_directional_abbreviation:
|
|
4332
|
+
type: string
|
|
4333
|
+
description: Not available for non-US addresses
|
|
4334
|
+
enum:
|
|
4335
|
+
- ''
|
|
4336
|
+
building_or_firm_name:
|
|
4337
|
+
type: string
|
|
4338
|
+
description: Not available for non-US addresses
|
|
4339
|
+
enum:
|
|
4340
|
+
- ''
|
|
4341
|
+
address_secondary_abbreviation:
|
|
4342
|
+
type: string
|
|
4343
|
+
description: Not available for non-US addresses
|
|
4344
|
+
enum:
|
|
4345
|
+
- ''
|
|
4346
|
+
base_alternate_code:
|
|
4347
|
+
type: string
|
|
4348
|
+
description: Not available for non-US addresses
|
|
4349
|
+
enum:
|
|
4350
|
+
- ''
|
|
4351
|
+
lacs_status_indicator:
|
|
4352
|
+
type: string
|
|
4353
|
+
description: Not available for non-US addresses
|
|
4354
|
+
enum:
|
|
4355
|
+
- ''
|
|
4356
|
+
government_building_indicator:
|
|
4357
|
+
type: string
|
|
4358
|
+
description: Not available for non-US addresses
|
|
4359
|
+
enum:
|
|
4360
|
+
- ''
|
|
4361
|
+
state:
|
|
4362
|
+
type: string
|
|
4363
|
+
description: State or province
|
|
4364
|
+
state_abbreviation:
|
|
4365
|
+
type: string
|
|
4366
|
+
description: Code of state or province (if available)
|
|
4367
|
+
municipality_city_state_key:
|
|
4368
|
+
type: string
|
|
4369
|
+
description: Not available for non-US addresses
|
|
4370
|
+
enum:
|
|
4371
|
+
- ''
|
|
4372
|
+
urbanization_city_state_key:
|
|
4373
|
+
type: string
|
|
4374
|
+
description: Not available for non-US addresses
|
|
4375
|
+
enum:
|
|
4376
|
+
- ''
|
|
4377
|
+
preferred_last_line_city_state_key:
|
|
4378
|
+
type: string
|
|
4379
|
+
description: Not available for non-US addresses
|
|
4380
|
+
enum:
|
|
4381
|
+
- ''
|
|
4382
|
+
county:
|
|
4383
|
+
type: string
|
|
4384
|
+
description: County name
|
|
4385
|
+
city:
|
|
4386
|
+
type: string
|
|
4387
|
+
description: City name
|
|
4388
|
+
city_abbreviation:
|
|
4389
|
+
type: string
|
|
4390
|
+
description: City name abbreviation (if available)
|
|
4391
|
+
preferred_city:
|
|
4392
|
+
type: string
|
|
4393
|
+
description: Not available for non-US addresses
|
|
4394
|
+
enum:
|
|
4395
|
+
- ''
|
|
4396
|
+
city_state_name_facility_code:
|
|
4397
|
+
type: string
|
|
4398
|
+
description: Not available for non-US addresses
|
|
4399
|
+
enum:
|
|
4400
|
+
- ''
|
|
4401
|
+
zip_classification_code:
|
|
4402
|
+
type: string
|
|
4403
|
+
description: Not available for non-US addresses
|
|
4404
|
+
enum:
|
|
4405
|
+
- ''
|
|
4406
|
+
city_state_mailing_name_indicator:
|
|
4407
|
+
type: string
|
|
4408
|
+
description: Not available for non-US addresses
|
|
4409
|
+
enum:
|
|
4410
|
+
- ''
|
|
4411
|
+
carrier_route_rate_sortation:
|
|
4412
|
+
type: string
|
|
4413
|
+
description: Not available for non-US addresses
|
|
4414
|
+
enum:
|
|
4415
|
+
- ''
|
|
4416
|
+
finance_number:
|
|
4417
|
+
type: string
|
|
4418
|
+
description: Not available for non-US addresses
|
|
4419
|
+
enum:
|
|
4420
|
+
- ''
|
|
4421
|
+
congressional_district_number:
|
|
4422
|
+
type: string
|
|
4423
|
+
description: Not available for non-US addresses
|
|
4424
|
+
enum:
|
|
4425
|
+
- ''
|
|
4426
|
+
county_number:
|
|
4427
|
+
type: string
|
|
4428
|
+
description: Not available for non-US addresses
|
|
4429
|
+
enum:
|
|
4430
|
+
- ''
|
|
4431
|
+
UsaResolveAddressResponse:
|
|
4432
|
+
title: Address Resolution Response (USA)
|
|
4433
|
+
type: object
|
|
4434
|
+
required:
|
|
4435
|
+
- message
|
|
4436
|
+
- code
|
|
4437
|
+
- result
|
|
4438
|
+
properties:
|
|
4439
|
+
code:
|
|
4440
|
+
type: integer
|
|
4441
|
+
format: int32
|
|
4442
|
+
enum:
|
|
4443
|
+
- 2000
|
|
4444
|
+
message:
|
|
4445
|
+
type: string
|
|
4446
|
+
enum:
|
|
4447
|
+
- Success
|
|
4448
|
+
result:
|
|
4449
|
+
oneOf:
|
|
4450
|
+
- $ref: '#/components/schemas/UspsAddress'
|
|
4451
|
+
- $ref: '#/components/schemas/UsaGlobalAddress'
|
|
4452
|
+
AddressResponse:
|
|
4453
|
+
title: Address Search Response
|
|
4454
|
+
type: object
|
|
4455
|
+
required:
|
|
4456
|
+
- message
|
|
4457
|
+
- code
|
|
4458
|
+
- result
|
|
4459
|
+
properties:
|
|
4460
|
+
code:
|
|
4461
|
+
type: integer
|
|
4462
|
+
format: int32
|
|
4463
|
+
enum:
|
|
4464
|
+
- 2000
|
|
4465
|
+
message:
|
|
4466
|
+
type: string
|
|
4467
|
+
enum:
|
|
4468
|
+
- Success
|
|
4469
|
+
result:
|
|
4470
|
+
type: object
|
|
4471
|
+
required:
|
|
4472
|
+
- hits
|
|
4473
|
+
- total
|
|
4474
|
+
- limit
|
|
4475
|
+
- page
|
|
4476
|
+
properties:
|
|
4477
|
+
hits:
|
|
4478
|
+
type: array
|
|
4479
|
+
description: |
|
|
4480
|
+
List of matching addresses
|
|
4481
|
+
items:
|
|
4482
|
+
oneOf:
|
|
4483
|
+
- $ref: '#/components/schemas/PafAddress'
|
|
4484
|
+
- $ref: '#/components/schemas/MrAddress'
|
|
4485
|
+
- $ref: '#/components/schemas/NybAddress'
|
|
4486
|
+
total:
|
|
4487
|
+
minimum: 0
|
|
4488
|
+
maximum: 10000
|
|
4489
|
+
type: integer
|
|
4490
|
+
format: int32
|
|
4491
|
+
limit:
|
|
4492
|
+
maximum: 100
|
|
4493
|
+
minimum: 0
|
|
4494
|
+
default: 10
|
|
4495
|
+
example: 10
|
|
4496
|
+
type: integer
|
|
4497
|
+
format: int32
|
|
4498
|
+
page:
|
|
4499
|
+
minimum: 0
|
|
4500
|
+
default: 0
|
|
4501
|
+
example: 0
|
|
4502
|
+
maximum: 10
|
|
4503
|
+
type: integer
|
|
4504
|
+
format: int32
|
|
4505
|
+
LicenseeEditable:
|
|
4506
|
+
title: Licensee
|
|
4507
|
+
description: Licensee object which can be defined by user
|
|
4508
|
+
type: object
|
|
4509
|
+
properties:
|
|
4510
|
+
name:
|
|
4511
|
+
type: string
|
|
4512
|
+
example: Qwerty Widgets Limited
|
|
4513
|
+
description: Licensee individual or organisation name
|
|
4514
|
+
address:
|
|
4515
|
+
example: 12 High Street, Manchester
|
|
4516
|
+
type: string
|
|
4517
|
+
description: >-
|
|
4518
|
+
Licensee's first, second and third line address as well as post town
|
|
4519
|
+
concatenated by commas
|
|
4520
|
+
postcode:
|
|
4521
|
+
example: ID1 1QD
|
|
4522
|
+
type: string
|
|
4523
|
+
description: Licensee's postcode
|
|
4524
|
+
whitelist:
|
|
4525
|
+
type: array
|
|
4526
|
+
items:
|
|
4527
|
+
type: string
|
|
4528
|
+
example: https://www.example.com
|
|
4529
|
+
description: >-
|
|
4530
|
+
A list of allowed URLs. An empty list means that whitelisting is
|
|
4531
|
+
disabled
|
|
4532
|
+
daily:
|
|
4533
|
+
type: object
|
|
4534
|
+
properties:
|
|
4535
|
+
limit:
|
|
4536
|
+
example: 10000
|
|
4537
|
+
x-nullable: true
|
|
4538
|
+
minimum: 0
|
|
4539
|
+
format: int32
|
|
4540
|
+
type: number
|
|
4541
|
+
description: >-
|
|
4542
|
+
The maximum number of lookups this licensee can perform in a
|
|
4543
|
+
day. `null` indicates the limit is not active
|
|
4544
|
+
Licensee:
|
|
4545
|
+
title: Licensee
|
|
4546
|
+
allOf:
|
|
4547
|
+
- $ref: '#/components/schemas/LicenseeEditable'
|
|
4548
|
+
- type: object
|
|
4549
|
+
required:
|
|
4550
|
+
- id
|
|
4551
|
+
- key
|
|
4552
|
+
- createdAt
|
|
4553
|
+
- name
|
|
4554
|
+
- address
|
|
4555
|
+
- postcode
|
|
4556
|
+
- whitelist
|
|
4557
|
+
- daily
|
|
4558
|
+
properties:
|
|
4559
|
+
id:
|
|
4560
|
+
type: string
|
|
4561
|
+
example: 56a11209ebe230380bf104c3
|
|
4562
|
+
description: >
|
|
4563
|
+
An immutable ID provided for every licensee. Primarily used for
|
|
4564
|
+
paginated list requests.
|
|
4565
|
+
key:
|
|
4566
|
+
type: string
|
|
4567
|
+
example: sl_ijoiqsxeQgXW2gkiE0X94
|
|
4568
|
+
description: >
|
|
4569
|
+
Uniquely identifies a licensee for a key.
|
|
4570
|
+
|
|
4571
|
+
|
|
4572
|
+
Required to perform paid lookups for a specific licensee.
|
|
4573
|
+
Typically begins `sk_`.
|
|
4574
|
+
createdAt:
|
|
4575
|
+
type: string
|
|
4576
|
+
example: '2016-01-21T17:14:49.971Z'
|
|
4577
|
+
description: Timestamp for when the licensee was created
|
|
4578
|
+
daily:
|
|
4579
|
+
required:
|
|
4580
|
+
- count
|
|
4581
|
+
- updatedAt
|
|
4582
|
+
type: object
|
|
4583
|
+
properties:
|
|
4584
|
+
count:
|
|
4585
|
+
example: 232
|
|
4586
|
+
minimum: 0
|
|
4587
|
+
type: number
|
|
4588
|
+
format: int32
|
|
4589
|
+
description: >-
|
|
4590
|
+
The number lookups performed by the licensee on the day
|
|
4591
|
+
represented b `licesees.daily.updatedAt`
|
|
4592
|
+
updatedAt:
|
|
4593
|
+
type: string
|
|
4594
|
+
example: '2016-08-05T16:43:28.865Z'
|
|
4595
|
+
description: The timestamp when the limit was last used.
|
|
4596
|
+
LicenseesResponse:
|
|
4597
|
+
title: Licensee List Response
|
|
4598
|
+
type: object
|
|
4599
|
+
required:
|
|
4600
|
+
- message
|
|
4601
|
+
- code
|
|
4602
|
+
- result
|
|
4603
|
+
properties:
|
|
4604
|
+
result:
|
|
4605
|
+
description: List of licensees
|
|
4606
|
+
type: object
|
|
4607
|
+
properties:
|
|
4608
|
+
licensees:
|
|
4609
|
+
type: array
|
|
4610
|
+
items:
|
|
4611
|
+
$ref: '#/components/schemas/Licensee'
|
|
4612
|
+
hasMore:
|
|
4613
|
+
type: boolean
|
|
4614
|
+
description: >-
|
|
4615
|
+
Returns true if there are more licensees listed after the
|
|
4616
|
+
maximum number of results as implied by `limit`
|
|
4617
|
+
message:
|
|
4618
|
+
type: string
|
|
4619
|
+
enum:
|
|
4620
|
+
- Success
|
|
4621
|
+
code:
|
|
4622
|
+
type: integer
|
|
4623
|
+
format: int32
|
|
4624
|
+
enum:
|
|
4625
|
+
- 2000
|
|
4626
|
+
LicenseeResponse:
|
|
4627
|
+
title: Licensee Response
|
|
4628
|
+
type: object
|
|
4629
|
+
required:
|
|
4630
|
+
- message
|
|
4631
|
+
- code
|
|
4632
|
+
- result
|
|
4633
|
+
properties:
|
|
4634
|
+
result:
|
|
4635
|
+
$ref: '#/components/schemas/Licensee'
|
|
4636
|
+
code:
|
|
4637
|
+
type: integer
|
|
4638
|
+
format: int32
|
|
4639
|
+
enum:
|
|
4640
|
+
- 2000
|
|
4641
|
+
message:
|
|
4642
|
+
type: string
|
|
4643
|
+
enum:
|
|
4644
|
+
- Success
|
|
4645
|
+
Config:
|
|
4646
|
+
title: Config Object
|
|
4647
|
+
type: object
|
|
4648
|
+
required:
|
|
4649
|
+
- updatedAt
|
|
4650
|
+
- createdAt
|
|
4651
|
+
- name
|
|
4652
|
+
- payload
|
|
4653
|
+
properties:
|
|
4654
|
+
updatedAt:
|
|
4655
|
+
type: string
|
|
4656
|
+
example: '2016-01-21T17:14:49.971Z'
|
|
4657
|
+
description: Timestamp for when the config was created
|
|
4658
|
+
createdAt:
|
|
4659
|
+
type: string
|
|
4660
|
+
example: '2016-01-21T17:14:49.971Z'
|
|
4661
|
+
description: Timestamp for when the config was updated
|
|
4662
|
+
name:
|
|
4663
|
+
type: string
|
|
4664
|
+
example: woocommerce
|
|
4665
|
+
description: A unique name to identify the configuration payload
|
|
4666
|
+
minimum: 0
|
|
4667
|
+
maximum: 32
|
|
4668
|
+
payload:
|
|
4669
|
+
example: |
|
|
4670
|
+
{
|
|
4671
|
+
"removeOrganisation": false
|
|
4672
|
+
}
|
|
4673
|
+
type: string
|
|
4674
|
+
minimum: 0
|
|
4675
|
+
maximum: 4096
|
|
4676
|
+
description: A serialised payload of up to `4096` characters
|
|
4677
|
+
ConfigsResponse:
|
|
4678
|
+
title: Config List Response
|
|
4679
|
+
type: object
|
|
4680
|
+
required:
|
|
4681
|
+
- message
|
|
4682
|
+
- code
|
|
4683
|
+
- result
|
|
4684
|
+
properties:
|
|
4685
|
+
result:
|
|
4686
|
+
description: List of configurations
|
|
4687
|
+
type: object
|
|
4688
|
+
required:
|
|
4689
|
+
- configs
|
|
4690
|
+
properties:
|
|
4691
|
+
configs:
|
|
4692
|
+
type: array
|
|
4693
|
+
items:
|
|
4694
|
+
$ref: '#/components/schemas/Config'
|
|
4695
|
+
message:
|
|
4696
|
+
type: string
|
|
4697
|
+
enum:
|
|
4698
|
+
- Success
|
|
4699
|
+
code:
|
|
4700
|
+
type: integer
|
|
4701
|
+
format: int32
|
|
4702
|
+
enum:
|
|
4703
|
+
- 2000
|
|
4704
|
+
BadRequestResponse:
|
|
4705
|
+
title: Bad Request Error Response
|
|
4706
|
+
allOf:
|
|
4707
|
+
- $ref: '#/components/schemas/ErrorResponse'
|
|
4708
|
+
- type: object
|
|
4709
|
+
required:
|
|
4710
|
+
- code
|
|
4711
|
+
- message
|
|
4712
|
+
properties:
|
|
4713
|
+
code:
|
|
4714
|
+
type: integer
|
|
4715
|
+
description: '`400X` type error response code'
|
|
4716
|
+
format: int32
|
|
4717
|
+
message:
|
|
4718
|
+
type: string
|
|
4719
|
+
description: Bad request error description
|
|
4720
|
+
errors:
|
|
4721
|
+
type: array
|
|
4722
|
+
items:
|
|
4723
|
+
type: object
|
|
4724
|
+
required:
|
|
4725
|
+
- path
|
|
4726
|
+
- message
|
|
4727
|
+
properties:
|
|
4728
|
+
message:
|
|
4729
|
+
type: string
|
|
4730
|
+
example: should have required property 'type'
|
|
4731
|
+
description: >-
|
|
4732
|
+
Indicates location of error in request query or URL
|
|
4733
|
+
parameter
|
|
4734
|
+
path:
|
|
4735
|
+
type: string
|
|
4736
|
+
example: .query.type
|
|
4737
|
+
description: >-
|
|
4738
|
+
Indicates location of error in request query or URL
|
|
4739
|
+
parameter
|
|
4740
|
+
errorCode:
|
|
4741
|
+
type: string
|
|
4742
|
+
example: required.openapi.validation
|
|
4743
|
+
UnauthorizedResponse:
|
|
4744
|
+
title: Unauthorized Request Error Response
|
|
4745
|
+
allOf:
|
|
4746
|
+
- $ref: '#/components/schemas/ErrorResponse'
|
|
4747
|
+
- type: object
|
|
4748
|
+
required:
|
|
4749
|
+
- code
|
|
4750
|
+
- message
|
|
4751
|
+
properties:
|
|
4752
|
+
code:
|
|
4753
|
+
type: integer
|
|
4754
|
+
description: '`401X` type error response code'
|
|
4755
|
+
format: int32
|
|
4756
|
+
message:
|
|
4757
|
+
type: string
|
|
4758
|
+
description: Unauthorized request error description
|
|
4759
|
+
ConfigNewParam:
|
|
4760
|
+
title: New Config Object
|
|
4761
|
+
description: Required configuration object parameters
|
|
4762
|
+
type: object
|
|
4763
|
+
required:
|
|
4764
|
+
- name
|
|
4765
|
+
- payload
|
|
4766
|
+
properties:
|
|
4767
|
+
name:
|
|
4768
|
+
type: string
|
|
4769
|
+
example: woocommerce
|
|
4770
|
+
description: A unique name to identify the configuration payload
|
|
4771
|
+
minimum: 0
|
|
4772
|
+
maximum: 32
|
|
4773
|
+
payload:
|
|
4774
|
+
example: |
|
|
4775
|
+
{
|
|
4776
|
+
"removeOrganisation": false
|
|
4777
|
+
}
|
|
4778
|
+
type: string
|
|
4779
|
+
minimum: 0
|
|
4780
|
+
maximum: 4096
|
|
4781
|
+
description: A serialised payload of up to `4096` characters
|
|
4782
|
+
ConfigResponse:
|
|
4783
|
+
title: Config Response
|
|
4784
|
+
type: object
|
|
4785
|
+
required:
|
|
4786
|
+
- result
|
|
4787
|
+
- code
|
|
4788
|
+
- message
|
|
4789
|
+
properties:
|
|
4790
|
+
result:
|
|
4791
|
+
$ref: '#/components/schemas/Config'
|
|
4792
|
+
code:
|
|
4793
|
+
type: integer
|
|
4794
|
+
format: int32
|
|
4795
|
+
enum:
|
|
4796
|
+
- 2000
|
|
4797
|
+
message:
|
|
4798
|
+
type: string
|
|
4799
|
+
enum:
|
|
4800
|
+
- Success
|
|
4801
|
+
ConfigParam:
|
|
4802
|
+
title: Configuration Name
|
|
4803
|
+
type: string
|
|
4804
|
+
description: User provided configuration object name
|
|
4805
|
+
example: idpc-be
|
|
4806
|
+
NotFoundResponse:
|
|
4807
|
+
title: Not Found Response
|
|
4808
|
+
allOf:
|
|
4809
|
+
- $ref: '#/components/schemas/ErrorResponse'
|
|
4810
|
+
- type: object
|
|
4811
|
+
required:
|
|
4812
|
+
- code
|
|
4813
|
+
- message
|
|
4814
|
+
properties:
|
|
4815
|
+
code:
|
|
4816
|
+
type: integer
|
|
4817
|
+
description: '`404X` type error response code'
|
|
4818
|
+
format: int32
|
|
4819
|
+
message:
|
|
4820
|
+
type: string
|
|
4821
|
+
description: Resource not found error description
|
|
4822
|
+
ConfigUpdateParam:
|
|
4823
|
+
title: Update Config Object
|
|
4824
|
+
description: Config object update parameters
|
|
4825
|
+
type: object
|
|
4826
|
+
properties:
|
|
4827
|
+
payload:
|
|
4828
|
+
example: |
|
|
4829
|
+
{
|
|
4830
|
+
"removeOrganisation": false
|
|
4831
|
+
}
|
|
4832
|
+
type: string
|
|
4833
|
+
minimum: 0
|
|
4834
|
+
maximum: 4096
|
|
4835
|
+
description: A serialised payload of up to `4096` characters
|