-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1373 lines (1321 loc) · 37.4 KB
/
Copy pathopenapi.yaml
File metadata and controls
1373 lines (1321 loc) · 37.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Checkify API
description: >-
Australian and New Zealand address validation, business lookups, identity
checks, and communication validation through a single REST interface.
version: "1.0.0"
contact:
name: Checkify
url: https://checkify.com.au
x-logo:
url: https://checkify.com.au/logo.png
servers:
- url: https://checkify.com.au/api/v1
description: Production
security:
- BearerAuth: []
tags:
- name: Account
description: Plan, usage, and billing information
- name: Address
description: Address autocomplete, reverse geocode, suburb, and postcode lookups
- name: Business
description: ABN, ACN, company/business name availability, and activity search
- name: Identity
description: Sanctions screening, Director ID, and TFN validation
- name: Communication
description: Email and phone validation
- name: Batch
description: Asynchronous bulk processing
paths:
/account:
get:
operationId: getAccount
summary: Get account details
description: >
Returns your current plan, unit usage, billing period, subscription
status, and a per-endpoint breakdown of API calls for the current
period. Costs 0 units. Usage breakdown is cached for 5 minutes.
tags: [Account]
responses:
"200":
description: Account details
content:
application/json:
schema:
$ref: "#/components/schemas/Account"
"401":
$ref: "#/components/responses/Unauthorized"
/autocomplete:
get:
operationId: autocomplete
summary: Address autocomplete
description: >
Type-ahead address search across 17.8 M+ Australian and New Zealand
addresses. Returns a map of address IDs to highlighted HTML strings.
Costs 0 units.
tags: [Address]
parameters:
- name: query
in: query
required: true
description: Search term, min 3 characters
schema:
type: string
minLength: 3
- $ref: "#/components/parameters/Country"
responses:
"200":
description: Map of address IDs to highlighted HTML strings
content:
application/json:
schema:
type: object
additionalProperties:
type: string
example:
CKNSW717780562: "<strong>1</strong> <strong>Smith</strong> <strong>St</strong>reet, SYDNEY NSW 2000"
CKNSW718422105: "<strong>1</strong> <strong>Smith</strong> Rd, MARRICKVILLE NSW 2204"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/autocomplete-details:
get:
operationId: autocompleteDetails
summary: Address details
description: >
Fetch the full structured record for an address ID returned by
/autocomplete. Costs 1 unit.
tags: [Address]
parameters:
- name: id
in: query
required: true
description: Address ID from /autocomplete
schema:
type: string
- $ref: "#/components/parameters/Country"
responses:
"200":
description: Full structured address record
content:
application/json:
schema:
$ref: "#/components/schemas/AddressDetails"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"422":
$ref: "#/components/responses/ValidationError"
/reverse:
get:
operationId: reverseGeocode
summary: Reverse geocode
description: >
Find the nearest address(es) to a coordinate pair. Results are ordered
by distance. Costs 1 unit.
tags: [Address]
parameters:
- name: lat
in: query
required: true
description: "Latitude (AU: −44 to −9, NZ: −47 to −34)"
schema:
type: number
format: double
- name: lng
in: query
required: true
description: "Longitude (AU: 112–155, NZ: 166–178)"
schema:
type: number
format: double
- name: radius
in: query
required: false
description: Search radius in metres (1–5000, default 100)
schema:
type: integer
minimum: 1
maximum: 5000
default: 100
- name: limit
in: query
required: false
description: Max results (1–10, default 1)
schema:
type: integer
minimum: 1
maximum: 10
default: 1
- $ref: "#/components/parameters/Country"
responses:
"200":
description: Array of nearby addresses ordered by distance
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/ReverseResult"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/autocomplete-suburb:
get:
operationId: autocompleteSuburb
summary: Suburb autocomplete
description: >
Search for suburbs and localities across Australia and New Zealand.
Returns a map of locality IDs to highlighted strings. Costs 0 units.
tags: [Address]
parameters:
- name: query
in: query
required: true
description: Search term, min 2 characters
schema:
type: string
minLength: 2
- $ref: "#/components/parameters/Country"
responses:
"200":
description: Map of locality IDs to highlighted HTML strings
content:
application/json:
schema:
type: object
additionalProperties:
type: string
example:
NSW3805: "<strong>Par</strong>ramatta NSW 2150"
NSW3806: "<strong>Par</strong>kes NSW 2870"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/autocomplete-suburb-details:
get:
operationId: autocompleteSuburbDetails
summary: Suburb details
description: >
Get full details for a locality ID returned by /autocomplete-suburb.
Costs 1 unit. For NZ results, state/stateFull are null; use region
instead. NZ localities return postcode: null.
tags: [Address]
parameters:
- name: id
in: query
required: true
description: Locality ID from /autocomplete-suburb
schema:
type: string
- $ref: "#/components/parameters/Country"
responses:
"200":
description: Full suburb/locality record
content:
application/json:
schema:
$ref: "#/components/schemas/SuburbDetails"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"422":
$ref: "#/components/responses/ValidationError"
/postcode:
get:
operationId: postcodeLookup
summary: Postcode lookup
description: >
Look up all suburbs and localities that belong to a postcode. Returns
up to 50 results ordered alphabetically. Costs 1 unit.
tags: [Address]
parameters:
- name: postcode
in: query
required: true
description: 4-digit postcode
schema:
type: string
pattern: '^\d{4}$'
- $ref: "#/components/parameters/Country"
responses:
"200":
description: Array of localities for the postcode
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/PostcodeResult"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/business-activity:
get:
operationId: businessActivity
summary: Business activity search
description: >
Search over 9,000 Australian business activities and industry
classifications (ANZSIC codes) with fuzzy matching, misspelling
correction, and relevance scoring. Costs 0 units.
tags: [Business]
parameters:
- name: search
in: query
required: true
description: Search query, min 3 characters
schema:
type: string
minLength: 3
- name: limit
in: query
required: false
description: Max results (1–100, default 25)
schema:
type: integer
minimum: 1
maximum: 100
default: 25
responses:
"200":
description: Matching business activities
content:
application/json:
schema:
$ref: "#/components/schemas/BusinessActivityResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/abn:
get:
operationId: abnLookup
summary: ABN lookup
description: >
Validate an Australian Business Number and retrieve registered business
details from the ABR. Costs 1 unit.
tags: [Business]
parameters:
- name: abn
in: query
required: true
description: 11-digit ABN — spaces accepted
schema:
type: string
responses:
"200":
description: ABN details
content:
application/json:
schema:
$ref: "#/components/schemas/AbnResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"422":
$ref: "#/components/responses/ValidationError"
/acn:
get:
operationId: acnLookup
summary: ACN lookup
description: >
Validate an Australian Company Number and retrieve registered company
details from ASIC, including entity name, type, registration dates,
addresses, former names, and recent documents. Costs 1 unit.
tags: [Business]
parameters:
- name: acn
in: query
required: true
description: 9-digit ACN — spaces accepted
schema:
type: string
responses:
"200":
description: ACN details
content:
application/json:
schema:
$ref: "#/components/schemas/AcnResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"422":
$ref: "#/components/responses/ValidationError"
/company-name:
get:
operationId: companyNameCheck
summary: Company name availability
description: >
Check whether a proposed company name is available for registration
with ASIC. Costs 1 unit.
tags: [Business]
parameters:
- name: name
in: query
required: true
description: Proposed company name (max 200 characters)
schema:
type: string
maxLength: 200
responses:
"200":
description: Name availability result
content:
application/json:
schema:
$ref: "#/components/schemas/NameAvailability"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/business-name:
get:
operationId: businessNameCheck
summary: Business name availability
description: >
Check whether a proposed business (trading) name is available for
registration with ASIC. Costs 1 unit.
tags: [Business]
parameters:
- name: name
in: query
required: true
description: Proposed business name (max 200 characters)
schema:
type: string
maxLength: 200
responses:
"200":
description: Name availability result
content:
application/json:
schema:
$ref: "#/components/schemas/NameAvailability"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/sanctions-screening:
get:
operationId: sanctionsScreening
summary: Sanctions screening
description: >
Screen an individual or entity name against 11 sanctions and debarment
lists including DFAT, UN, OFAC SDN, EU, UK OFSI, Canada, New Zealand,
France, Hong Kong, World Bank, and IDB. Costs 3 units.
tags: [Identity]
parameters:
- name: name
in: query
required: true
description: Full name to screen (3–200 characters)
schema:
type: string
minLength: 3
maxLength: 200
- name: birth_year
in: query
required: false
description: Year of birth (1900–2008) — boosts confidence if matched
schema:
type: integer
minimum: 1900
maximum: 2008
- name: country
in: query
required: false
description: ISO 3166-1 alpha-2 country code — boosts confidence if matched
schema:
type: string
pattern: '^[A-Z]{2}$'
- name: city
in: query
required: false
description: City of birth (max 200 characters) — fuzzy-compared for confidence boost
schema:
type: string
maxLength: 200
responses:
"200":
description: Sanctions screening results
content:
application/json:
schema:
$ref: "#/components/schemas/SanctionsResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/director-id:
get:
operationId: directorIdValidation
summary: Director ID validation
description: >
Validate the format and checksum of an Australian Director
Identification Number using the official ABRS Damm algorithm.
Structural check only — no live ABRS registry lookup. Costs 1 unit.
tags: [Identity]
parameters:
- name: director_id
in: query
required: true
description: 15-digit Director ID starting with 036 — spaces accepted
schema:
type: string
responses:
"200":
description: Valid Director ID
content:
application/json:
schema:
$ref: "#/components/schemas/DirectorIdResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/tfn:
get:
operationId: tfnValidation
summary: TFN validation
description: >
Validate the format and checksum of an Australian Tax File Number.
Structural check only — no live ATO registry lookup. Costs 1 unit.
tags: [Identity]
parameters:
- name: tfn
in: query
required: true
description: 8 or 9-digit TFN — spaces and hyphens accepted
schema:
type: string
responses:
"200":
description: Valid TFN
content:
application/json:
schema:
$ref: "#/components/schemas/TfnResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/email:
get:
operationId: emailValidation
summary: Email validation
description: >
Validate an email address — checks RFC format, DNS/MX records, SMTP
deliverability, disposable/free/role detection, and quality score.
Costs 1 unit.
tags: [Communication]
parameters:
- name: email
in: query
required: true
description: Email address to validate (max 254 characters)
schema:
type: string
format: email
maxLength: 254
responses:
"200":
description: Email validation result
content:
application/json:
schema:
$ref: "#/components/schemas/EmailResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/phone:
get:
operationId: phoneValidation
summary: Phone validation
description: >
Validate and normalise a phone number. Detects country, returns E.164 /
national / international formats, line type, carrier, and location.
Defaults to AU parsing. Costs 1 unit.
tags: [Communication]
parameters:
- name: phone
in: query
required: true
description: Phone number to validate — include country code or use the country hint
schema:
type: string
- name: country
in: query
required: false
description: ISO 3166-1 alpha-2 country code hint for local numbers (default AU)
schema:
type: string
default: AU
responses:
"200":
description: Phone validation result
content:
application/json:
schema:
$ref: "#/components/schemas/PhoneResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/bulk:
post:
operationId: createBulkJob
summary: Create bulk job
description: >
Submit a batch of records for asynchronous processing. Supports ABN,
ACN, TFN, Director ID, Email, Phone, Reverse Geocode, Address
Validation, and Sanctions Screening. Each row consumes the same units
as a single API call. Business & Enterprise plans only.
tags: [Batch]
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/BulkCreateRequest"
multipart/form-data:
schema:
type: object
required: [endpoint, file]
properties:
endpoint:
type: string
enum:
- address-validation
- reverse
- abn
- acn
- sanctions-screening
- tfn
- director-id
- email
- phone
file:
type: string
format: binary
description: CSV file with headers matching the required fields
responses:
"201":
description: Bulk job created
content:
application/json:
schema:
$ref: "#/components/schemas/BulkJob"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
$ref: "#/components/responses/ValidationError"
/bulk/{id}:
get:
operationId: getBulkJob
summary: Get bulk job status
description: Check the status of a bulk processing job.
tags: [Batch]
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
"200":
description: Bulk job status
content:
application/json:
schema:
$ref: "#/components/schemas/BulkJob"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
/bulk/{id}/download:
get:
operationId: downloadBulkResults
summary: Download bulk results
description: Download the completed bulk job results as CSV.
tags: [Batch]
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
"200":
description: CSV file download
content:
text/csv:
schema:
type: string
format: binary
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: >
Pass a public (ck_pub_...) or private (ck_prv_...) token. Public tokens
are domain-restricted for browser use. Private tokens are for
server-side use only.
parameters:
Country:
name: country
in: query
required: false
description: "Country dataset: au (default) or nz"
schema:
type: string
enum: [au, nz]
default: au
responses:
Unauthorized:
description: Missing or invalid token
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
example:
error: "Missing or invalid token"
NotFound:
description: Record not found
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
example:
error: "Address not found"
ValidationError:
description: Validation error (bad params)
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
example:
error: "query must be at least 3 characters"
RateLimited:
description: Rate limit exceeded
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
example:
error: "Rate limit exceeded"
schemas:
Error:
type: object
description: >-
Errors may contain a single error string, or a message and field-level
errors for request validation. Both forms are returned by production.
properties:
error:
type: string
message:
type: string
errors:
type: object
additionalProperties:
type: array
items:
type: string
Account:
type: object
properties:
plan:
type: string
enum: [free, starter, business, enterprise]
plan_name:
type: string
status:
type: string
enum: [free, active, cancelling, cancelled, past_due, incomplete]
cancels_at:
type: string
format: date
nullable: true
description: ISO 8601 date when subscription ends (only when status is cancelling)
units_used:
type: integer
units_limit:
type: integer
units_remaining:
type: integer
period_start:
type: string
format: date
period_end:
type: string
format: date
usage:
type: object
additionalProperties:
type: integer
description: Per-endpoint call counts for the current period
AddressDetails:
type: object
properties:
unit:
type: string
nullable: true
description: Flat/unit number and type
level:
type: string
nullable: true
description: Floor/level descriptor
unitLevel:
type: string
nullable: true
description: Combined unit and level
streetNumber:
type: string
description: House/lot number
streetName:
type: string
description: Street name only
streetType:
type: string
description: Street type code (ST, RD, AVE…)
street:
type: string
description: Number + full street name combined
city:
type: string
description: Locality/suburb name
postcode:
type: string
description: 4-digit postcode
state:
type: string
nullable: true
description: State abbreviation (NSW, VIC…) — AU only
stateFull:
type: string
nullable: true
description: Full state name — AU only
region:
type: string
nullable: true
description: Region/city (e.g. Auckland) — NZ only
country:
type: string
description: Country code (AU or NZ)
countryFull:
type: string
description: Full country name
latitude:
type: number
format: double
nullable: true
longitude:
type: number
format: double
nullable: true
meshBlockCode:
type: string
nullable: true
description: ABS Mesh Block identifier — AU only
buildingName:
type: string
nullable: true
description: Named building or complex — AU only
ReverseResult:
type: object
properties:
addressId:
type: string
addressFull:
type: string
unit:
type: string
nullable: true
streetNumber:
type: string
street:
type: string
city:
type: string
postcode:
type: string
state:
type: string
nullable: true
latitude:
type: number
format: double
longitude:
type: number
format: double
distanceMetres:
type: number
format: double
SuburbDetails:
type: object
properties:
city:
type: string
postcode:
type: string
nullable: true
description: 4-digit postcode (null for NZ)
state:
type: string
nullable: true
description: State abbreviation — AU only
stateFull:
type: string
nullable: true
description: Full state name — AU only
region:
type: string
nullable: true
description: Region/city — NZ only
country:
type: string
countryFull:
type: string
PostcodeResult:
type: object
properties:
localityId:
type: string
city:
type: string
postcode:
type: string
state:
type: string
nullable: true
stateFull:
type: string
nullable: true
country:
type: string
countryFull:
type: string
BusinessActivityResponse:
type: object
properties:
status:
type: string
count:
type: integer
activities:
type: array
items:
$ref: "#/components/schemas/BusinessActivity"
BusinessActivity:
type: object
properties:
code:
type: string
description: Unique activity identifier
industryCode:
type: string
description: ANZSIC industry classification code
fullName:
type: string
description: Business activity description
AbnResponse:
type: object
properties:
abn:
type: string
abnFormatted:
type: string
acn:
type: string
nullable: true
acnFormatted:
type: string
nullable: true
entityName:
type: string
entityType:
type: string
abnDetails:
type: object
properties:
active:
type: boolean
activeFrom:
type: string
format: date
gst: