This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
identity.yml
671 lines (669 loc) · 22.4 KB
/
identity.yml
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
openapi: 3.0.1
info:
title: Identity
description: All included utility endpoints for Basiq partners
version: 3.0.0
termsOfService: 'https://docs.basiq.io/en/collections/440849-privacy-terms-and-common-questions'
license:
name: Basiq
url: https://basiq.io
servers:
- url: https://au-api.basiq.io
paths:
/users/{userId}/identities:
get:
tags:
- Identities
summary: Retrieve identities
description: Returns a list with a data property that contains an array of user
identities. Each entry in the array is a separate object. If no data is returned,
the resulting array will be empty.
operationId: getUserIdentities
parameters:
- name: userId
in: path
description: User identifier.
required: true
schema:
type: string
responses:
200:
description: Returns list of identities.
content:
application/json:
schema:
$ref: '#/components/schemas/IdentitiesGetResponseResource'
examples:
person:
summary: Person Identity Response
value:
type: "list"
count: 1
data:
- type: "identity"
id: "q5c62a43-9725-4w4e-bdte-99571aa8c5cb"
created: "2024-06-19T10:38:31.152930692Z"
updated: "2024-06-19T10:38:31.152930692Z"
source: "openbanking"
connectionID: "f8c13t7a-ta01-7ec5-b89b-7b96a0ac8305"
institutionID: "AU00401"
fullName: "John Doe"
firstName: "John"
lastName: "Doe"
middleName: "James"
title: "Mr."
DOB: "1985-05-25"
occupationCode: "12345"
occupationCodeVersion: "V1.2"
phoneNumbers:
- "+6411222333"
emailAddresses:
- "john.doe@example.com"
physicalAddresses:
- type: "home"
addressLine1: "OAK STREET NSW 2099"
postcode: "2099"
city: "Northern Beaches Council"
state: "New South Wales"
country: "Australia"
countryCode: "AU"
formattedAddress: "OAK STREET NSW 2099, NSW 2099, Australia"
organisation:
agentFirstName: ""
agentLastName: ""
agentRole: ""
businessName: ""
legalName: ""
shortName: ""
abn: ""
acn: ""
isACNCRegistered: false
industryCode: ""
industryCodeVersion: ""
organisationType: ""
registeredCountry: ""
links:
self: "https://au-api.basiq.io/users/ea0acf2b-b816-4255-9c9c-72207a0bf836/identities/q5c62a43-9725-4w4e-bdte-99571aa8c5cb"
job: "https://au-api.basiq.io/users/ea0acf2b-b816-4255-9c9c-72207a0bf836/connection/f8c13t7a-ta01-7ec5-b89b-7b96a0ac8305"
organisation:
summary: Organisation Identity Response
value:
type: "list"
count: 1
data:
- type: "identity"
id: "1de2bc64-a067-4r34-9he4-14986693fc03"
created: "2024-06-19T10:38:31.152930692Z"
updated: "2024-06-19T10:38:31.152930692Z"
source: "openbanking"
connectionID: "8d02bc04-a067-4d34-9fe4-14926683fa03"
institutionID: "AU00401"
fullName: ""
firstName: ""
lastName: ""
middleName: ""
title: ""
DOB: ""
occupationCode: ""
occupationCodeVersion: ""
phoneNumbers: []
emailAddresses: []
physicalAddresses: []
organisation:
agentFirstName: "Jane"
agentLastName: "Smith"
agentRole: "Nominated Representative"
businessName: "ABC Pty Ltd"
legalName: "ABC Pty Limited"
shortName: "ABC"
abn: "123456789"
acn: "987654321"
isACNCRegistered: true
industryCode: "67890"
industryCodeVersion: "V2.0"
organisationType: "COMPANY"
registeredCountry: "AUS"
links:
self: "https://au-api.basiq.io/users/ta0ycf2u-b516-4235-9f9c-71207a0vf836/identities/1de2bc64-a067-4r34-9he4-14986693fc03"
job: "https://au-api.basiq.io/users/ta0ycf2u-b516-4235-9f9c-71207a0vf836/connection/8d02bc04-a067-4d34-9fe4-14926683fa03"
400:
description: Returns error that server cannot or will not process the request
due to something that is perceived to be a client error.
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
examples:
Bad Request:
value:
type: list
correlationId: ac5ah5i
data:
- type: error
title: Parameter not valid.
code: parameter-not-valid
detail: ID value is not valid.
source:
parameter: id
Invalid Filters:
value:
type: list
correlationId: ac5ah55
data:
- type: error
code: parameter-not-valid
title: Parameter value is not valid
detail: The provided filter parameter is in invalid format or unsupported
source:
parameter: filter
403:
description: Error that access is forbidden and tied to the application
logic, such as insufficient rights to a resource.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenAccessError'
500:
description: Returns error response code indicates that the server encountered
an unexpected condition that prevented it from fulfilling the request.
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerError'
security:
- services_token: []
/users/{userId}/identities/{identityId}:
get:
tags:
- Identities
summary: Retrieve an identity
description: Returns a specific identity object.
operationId: getUserIdentity
parameters:
- name: userId
in: path
description: User identifier.
required: true
schema:
type: string
- name: identityId
in: path
description: Identity identifier.
required: true
schema:
type: string
responses:
200:
description: Returns identity.
content:
application/json:
schema:
$ref: '#/components/schemas/IdentityData'
400:
description: Returns error that server cannot or will not process the request
due to something that is perceived to be a client error.
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
403:
description: Error that access is forbidden and tied to the application
logic, such as insufficient rights to a resource.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenAccessError'
404:
description: Returns error indicating that server can't find requested resource.
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
500:
description: Returns error response code indicates that the server encountered
an unexpected condition that prevented it from fulfilling the request.
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerError'
security:
- services_token: []
components:
schemas:
BadRequestError:
required:
- correlationId
- data
- type
type: object
properties:
type:
type: string
description: Always "list".
example: list
correlationId:
type: string
description: Unique identifier for this particular occurrence of the problem.
example: ac5ah5i
data:
type: array
description: Error data.
items:
required:
- code
- type
type: object
properties:
type:
type: string
description: Type of the response, always "error"
example: error
title:
type: string
description: Title of the error
example: Parameter not valid.
code:
type: string
description: Application-specific error code, expressed as a string value.
example: parameter-not-valid
enum:
- parameter-not-supplied
- parameter-not-valid
- unsupported-accept
- invalid-content
- institution-not-supported
- invalid-credentials
detail:
type: string
description: >-
Human-readable explanation specific to this occurrence of the
problem.
example: ID value is not valid.
source:
$ref: '#/components/schemas/Source'
IdentitiesGetResponseResource:
title: IdentitiesGetResponseResource
required:
- count
- data
- type
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/IdentityData'
type:
type: string
description: Type, always "list".
example: list
count:
type: integer
description: Count of the identities in the response.
format: int64
example: 100
description: Object containing details for identities.
IdentityData:
required:
- created
- id
- links
- type
- updated
type: object
properties:
type:
type: string
description: Type, always "identity".
example: identity
id:
type: string
description: Identity identification.
example: "61723"
created:
type: string
description: Created date of the identity.
example: 2019-07-29T07:34:09Z
updated:
type: string
description: Created date of the identity.
example: 2019-07-29T07:34:09Z
connectionID:
type: string
description: ID of that connection.
example: 8d02bc04-a067-4d34-9fe4-14926683fa03
institutionID:
type: string
description: ID of that institution.
example: AU04301
source:
type: string
description: Data source.
example: web
fullName:
type: string
description: FullName of the identity owner.
example: "John Doe"
firstName:
type: string
description: FirstName of the identity owner.
example: "John"
lastName:
type: string
description: LastName of the identity owner.
example: "Doe"
middleName:
type: string
description: MiddleName of the identity owner.
example: "James"
title:
type: string
description: Title is the prefix to the name of the identity owner.
example: "Mr."
DOB:
type: string
description: Date of birth of the identity owner.
example: "1985-05-25"
occupationCode:
type: string
description: Code relating to the occupation held by the identity owner.
example: "12345"
occupationCodeVersion:
type: string
description: Occupation Code Version.
example: "v1"
phoneNumbers:
type: array
description: List of phone numbers of the identity owner.
items:
type: string
example: "+6411222333"
emailAddresses:
type: array
description: List of email addresses of the identity owner.
items:
type: string
example: "john.doe@example.com"
physicalAddresses:
type: array
description: List of physical addresses of the identity owner.
items:
$ref: '#/components/schemas/PhysicalAddressData'
organisation:
type: object
properties:
agentFirstName:
type: string
description: Agent first name.
example: "Jane"
agentLastName:
type: string
description: Agent last name.
example: "Smith"
agentRole:
type: string
description: Agent role.
example: "Manager"
businessName:
type: string
description: Business name.
example: "ABC Corp"
legalName:
type: string
description: Legal name.
example: "ABC Corporation"
shortName:
type: string
description: Short name.
example: "ABC"
abn:
type: string
description: Australian Business Number.
example: "123456789"
acn:
type: string
description: Australian Company Number.
example: "987654321"
isACNCRegistered:
type: boolean
description: Indicates whether is Australian Company Number registered.
example: true
industryCode:
type: string
description: Industry Code.
example: "67890"
industryCodeVersion:
type: string
description: Industry Code Version.
example: "v2"
organisationType:
type: string
description: Organisation Type.
example: "Corporation"
registeredCountry:
type: string
description: Registered Country.
example: "Australia"
description: Organisation data.
links:
$ref: '#/components/schemas/IdentityLinks'
PhysicalAddressData:
type: object
properties:
type:
type: string
description: Physical Address Type.
example: home
addressLine1:
type: string
description: AddressLine1.
example: 123 Main St
addressLine2:
type: string
description: AddressLine2.
example: Apt 101
addressLine3:
type: string
description: AddressLine3.
example: ""
postcode:
type: string
description: Postcode.
example: "3000"
city:
type: string
description: City.
example: "Melbourne"
state:
type: string
description: State.
example: "VIC"
country:
type: string
description: Country.
example: "Australia"
countryCode:
type: string
description: Country Code.
example: "AU"
formattedAddress:
type: string
description: Formatted Address.
example: "123 Main St, Apt 101, Melbourne, VIC, 3000, Australia"
IdentityLinks:
required:
- job
- self
type: object
properties:
self:
type: string
description: Self link to the requested identity
example: https://au-api.basiq.io/users/cd6fbd92/identities/ea3a81
job:
type: string
description: Link to the job associated with this identity
example: https://au-api.basiq.io/users/ea3a81/connections/s55bf3
ForbiddenAccessError:
required:
- correlationId
- data
- type
type: object
properties:
type:
type: string
description: Always "list".
example: list
correlationId:
type: string
description: Unique identifier for this particular occurrence of the problem.
example: ac5ah5i
data:
type: array
description: Error data.
items:
required:
- code
- source
- type
type: object
properties:
type:
type: string
description: Type of the response, always "error"
example: error
title:
type: string
description: Title of the error
example: Forbidden Access
code:
type: string
description: Application-specific error code, expressed as a string value.
example: forbidden-access
enum:
- forbidden-access
- no-production-access
- access-denied
detail:
type: string
description: >-
Human-readable explanation specific to this occurrence of the
problem.
example: Access to this resource is forbidden.
source:
$ref: '#/components/schemas/Source'
InternalServerError:
required:
- correlationId
- data
- type
type: object
properties:
type:
type: string
description: Always "list".
example: list
correlationId:
type: string
description: Unique identifier for this particular occurrence of the problem.
example: ac5ah5i
data:
type: array
description: Error data.
items:
required:
- code
- type
type: object
properties:
code:
type: string
description: Application-specific error code, expressed as a string value.
example: internal-server-error
enum:
- internal-server-error
detail:
type: string
description: >-
Human-readable explanation specific to this occurrence of the
problem.
example: Internal Server error. Contact support.
title:
type: string
description: Title of the error
example: Internal Server error.
type:
type: string
description: Type of the response, always "error"
example: error
NotFoundError:
required:
- correlationId
- data
- type
type: object
properties:
type:
type: string
description: Always "list".
example: list
correlationId:
type: string
description: Unique identifier for this particular occurrence of the problem.
example: ac5ah5i
data:
type: array
description: Error data.
items:
required:
- code
- type
type: object
properties:
code:
type: string
description: Application-specific error code, expressed as a string value.
example: resource-not-found
enum:
- resource-not-found
detail:
type: string
description: >-
Human-readable explanation specific to this occurrence of the
problem.
example: Resource not found.
title:
type: string
description: Title of the error
example: Requested resource is not found.
type:
type: string
description: Type of the response, always "error"
example: error
Source:
title: Source
type: object
properties:
parameter:
type: string
description: String indicating which URI query parameter caused the error.
example: id
description: An object containing references to the source of the error.
securitySchemes:
services_token:
type: http
scheme: bearer
bearerFormat: JWT
security:
- services_token: []
x-readme:
explorer-enabled: true
proxy-enabled: true
samples-enabled: true
samples-languages:
- curl
- node
- ruby
- javascript
- python