-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompany-api.yaml
More file actions
1234 lines (1215 loc) · 37.3 KB
/
Copy pathcompany-api.yaml
File metadata and controls
1234 lines (1215 loc) · 37.3 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.1.0
info:
title: Company API
description: |
The Company Information API provides comprehensive company information by querying nationally recognized business
registers across our primary service regions.
### How It Works
When you perform a [search](/docs/api/company/company-search/) through our API, the system responds with a list of companies that
match the provided query parameters.
The results include each company\'s legal name and its nationally recognized organization number together with a
`lookup_id` that can be used to get more detailed information by calling the [Get
Company](/docs/api/company/get-company-company-canonical-or-lookup-id-get/) endpoint.
### Referencing a company across Two\'s APIs
When looking up a company with the [Get Company](/docs/api/company/get-company-company-canonical-or-lookup-id-get/) endpoint, the `canonical_id`
field of the returned company objects represents the "canonical company ID", which can be used across Two\'s portfolio
of APIs when a company needs to be referenced.
An example of this is the [**create
order**](/docs/api/checkout/create-order-handler-post/) endpoint, requiring a reference
to the buyer company.
### Importance in the Checkout API
As part of our [**checkout-api**](/docs/api/checkout/) (order creation service), the [**billing
address**](/docs/api/checkout/create-order-handler-post/#request-billing_address)
is a required field in our schema.
For merchants who may not initially have the company name, organization number, or billing address for their business
buyers, starting with the Search API provides an efficient way for your users to directly identify their business.
## Environments
### Testing
[https://api.sandbox.two.inc/companies/v2](https://api.sandbox.two.inc/companies/v2/health)
Note: Read about our [sandbox environment specific behaviour](/docs/guides/sandbox-behaviour-page/).
### Production
[https://api.two.inc/companies/v2](https://api.two.inc/companies/v2/health)
version: 0.9.0
servers:
- url: https://api.sandbox.two.inc/companies/v2
description: Testing
- url: https://api.two.inc/companies/v2
description: Production
paths:
/company:
get:
tags:
- Company
summary: Company Search
description: |-
Search for companies by name or official regsitry IDs (e.g. organization numbers). This can for instance be
integrated as an auto-complete search in your checkout solution. This endpoints helps users quickly find their
company with a `lookup_id`, that can be used in [Get Company](/docs/api/company/get-company-company-canonical-or-lookup-id-get/) endpoint to
get the company's canonical ID.
This service enhances user experience by reducing manual input and ensuring that the information provided
is accurate and consistent with our API requirements.
Note that this endpoint is optimized for providing quick search results, so the information returned per company is
kept to a minimum.
Additional information can be retrieved by calling the [Get Company](/docs/api/company/get-company-company-canonical-or-lookup-id-get/)
endpoint with the `lookup_id` obtained from the search.
operationId: company_search
parameters:
- name: q
in: query
required: false
schema:
anyOf:
- type: string
minLength: 1
maxLength: 100
- type: "null"
description: Company name or organization number query
examples:
- MONOZUKI
- "817352812"
title: Q
description: Company name or organization number query
- name: country
in: query
required: true
schema:
type: string
minLength: 2
maxLength: 2
title: Country code
description: Country code as alpha-2 ISO 3166
examples:
- "NO"
description: Country code as alpha-2 ISO 3166
- name: company_type
in: query
required: false
schema:
anyOf:
- $ref: "#/components/schemas/CompanyType"
- type: "null"
description: Company type to search for
examples:
- GOVERNMENT
title: Company Type
description: Company type to search for
- name: company_type__ne
in: query
required: false
schema:
anyOf:
- $ref: "#/components/schemas/CompanyType"
- type: "null"
description: Company type to exclude from search
examples:
- GOVERNMENT
title: Company Type Ne
description: Company type to exclude from search
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
description: Maximum number of results to return
examples:
- 15
default: 15
title: Limit
description: Maximum number of results to return
- name: include_sole_traders
in: query
required: false
schema:
type: boolean
description: Opt in to include sole traders in the search results.
This is only relevant in Sweden where sole traders are currently
not included in the search results by default.
default: false
title: Include Sole Traders
description: Opt in to include sole traders in the search results.
This is only relevant in Sweden where sole traders are currently
not included in the search results by default.
- name: state
in: query
required: false
schema:
anyOf:
- type: string
- type: "null"
description: US state code for filtering companies by state (e.g.,
'FL', 'CA', 'NY'). Only available for US searches.
examples:
- FL
- CA
- NY
title: State
description: US state code for filtering companies by state (e.g.,
'FL', 'CA', 'NY'). Only available for US searches.
- name: post_code
in: query
required: false
schema:
anyOf:
- type: string
- type: "null"
description: Postal/ZIP code for filtering companies by location
(e.g., '33101', '10115').
examples:
- "33101"
- "10115"
- SW1A 1AA
title: Post Code
description:
Postal/ZIP code for filtering companies by location (e.g.,
'33101', '10115').
- name: website
in: query
required: false
schema:
anyOf:
- type: string
- type: "null"
description: Website URL for filtering companies by their website
(e.g., 'amazon.com', 'microsoft.com'). Available for supported
countries.
examples:
- amazon.com
- microsoft.com
- google.com
title: Website
description: Website URL for filtering companies by their website
(e.g., 'amazon.com', 'microsoft.com'). Available for supported
countries.
- name: organization_number
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: "null"
description: Organization number for filtering companies by their
organization number (e.g., '123456789').
examples:
- "123456789"
- "987654321"
- EIN:12-3456789
- DUN:123456789
title: Organization Number
description: Organization number for filtering companies by their
organization number (e.g., '123456789').
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/CompanySearchResponse"
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Bad Request
"422":
description: Validation Error
content:
application/json:
schema:
$ref: "#/components/schemas/HTTPValidationError"
/company/{canonical_or_lookup_id}:
get:
tags:
- Company
summary: Get Company
description: |-
Get full details on a company, given a company's `lookup_id` or `canonical_id`.
The result will include company's `canonical_id`, which is essential for various operations, such as:
* [**Order Creation**](/docs/api/checkout/) (Core Flow): Simplify the process by
automatically filling in required details.
* [**Trade Account Onboarding**](/docs/api/trade-account-v3/): Streamline the onboarding
process with accurate company data. *Note that the onboarding service is optional and not required for order
creation.*
The result includes additional information that cannot be obtained from the [Company
Search](/docs/api/company/company-search/) alone.
operationId: get_company_company__canonical_or_lookup_id__get
security:
- api-key: []
parameters:
- name: canonical_or_lookup_id
in: path
required: true
schema:
type: string
title: Canonical Or Lookup Id
- name: no_address
in: query
required: false
schema:
type: boolean
default: false
title: No Address
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/CompanyDetailsResponse"
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Bad Request
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Not Found
"422":
description: Validation Error
content:
application/json:
schema:
$ref: "#/components/schemas/HTTPValidationError"
/company/{canonical_id}/branches:
get:
tags:
- Company
summary: Get Company Branches
description: |-
** This endpoint is only supported in Norway (`NO`) for now. **
Get all branches of a company, given a company's `canonical_id`,
which you can get from [**Get Company**](/docs/api/company/get-company-company-canonical-or-lookup-id-get/) .
operationId: get_company_branches_company__canonical_id__branches_get
parameters:
- name: canonical_id
in: path
required: true
schema:
type: string
title: Canonical Id
- name: q
in: query
required: false
schema:
type: string
default: ""
title: Q
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 15
title: Limit
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/BranchSearchResponse"
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Bad Request
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Not Found
"422":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Unprocessable Entity
/admin/companies:
get:
tags:
- Admin
summary: Search Companies Admin
description: |-
**Admin only**: Search companies in Bifrost database only.
Requires X-Api-Key header with trusted service credentials.
Only queries the company table - no fallback to external providers.
Returns empty list if no companies found.
operationId: search_companies_admin_admin_companies_get
security:
- api-key: []
parameters:
- name: q
in: query
required: false
schema:
anyOf:
- type: string
minLength: 1
maxLength: 100
- type: "null"
description: Company name or organization number query
examples:
- MONOZUKI
- "817352812"
title: Q
description: Company name or organization number query
- name: country
in: query
required: true
schema:
type: string
minLength: 2
maxLength: 2
title: Country code
description: Country code as alpha-2 ISO 3166
examples:
- "NO"
description: Country code as alpha-2 ISO 3166
- name: company_type
in: query
required: false
schema:
anyOf:
- $ref: "#/components/schemas/CompanyType"
- type: "null"
description: Company type to search for
examples:
- GOVERNMENT
title: Company Type
description: Company type to search for
- name: company_type__ne
in: query
required: false
schema:
anyOf:
- $ref: "#/components/schemas/CompanyType"
- type: "null"
description: Company type to exclude from search
examples:
- GOVERNMENT
title: Company Type Ne
description: Company type to exclude from search
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
description: Maximum number of results to return
examples:
- 15
default: 15
title: Limit
description: Maximum number of results to return
- name: include_sole_traders
in: query
required: false
schema:
type: boolean
description: Opt in to include sole traders in the search results.
This is only relevant in Sweden where sole traders are currently
not included in the search results by default.
default: false
title: Include Sole Traders
description: Opt in to include sole traders in the search results.
This is only relevant in Sweden where sole traders are currently
not included in the search results by default.
- name: state
in: query
required: false
schema:
anyOf:
- type: string
- type: "null"
description: US state code for filtering companies by state (e.g.,
'FL', 'CA', 'NY'). Only available for US searches.
examples:
- FL
- CA
- NY
title: State
description: US state code for filtering companies by state (e.g.,
'FL', 'CA', 'NY'). Only available for US searches.
- name: post_code
in: query
required: false
schema:
anyOf:
- type: string
- type: "null"
description: Postal/ZIP code for filtering companies by location
(e.g., '33101', '10115').
examples:
- "33101"
- "10115"
- SW1A 1AA
title: Post Code
description:
Postal/ZIP code for filtering companies by location (e.g.,
'33101', '10115').
- name: website
in: query
required: false
schema:
anyOf:
- type: string
- type: "null"
description: Website URL for filtering companies by their website
(e.g., 'amazon.com', 'microsoft.com'). Available for supported
countries.
examples:
- amazon.com
- microsoft.com
- google.com
title: Website
description: Website URL for filtering companies by their website
(e.g., 'amazon.com', 'microsoft.com'). Available for supported
countries.
- name: organization_number
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: "null"
description: Organization number for filtering companies by their
organization number (e.g., '123456789').
examples:
- "123456789"
- "987654321"
- EIN:12-3456789
- DUN:123456789
title: Organization Number
description: Organization number for filtering companies by their
organization number (e.g., '123456789').
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/AdminCompanySearchResponse"
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Forbidden
"422":
description: Validation Error
content:
application/json:
schema:
$ref: "#/components/schemas/HTTPValidationError"
/admin/company:
post:
tags:
- Admin
summary: Create Company Admin
description: |-
**Admin only**: Create a new company in the Bifrost database.
Requires X-Api-Key header with trusted service credentials.
Optional X-Admin-User-Id header to identify the admin user creating the company.
operationId: create_company_admin_admin_company_post
security:
- api-key: []
parameters:
- name: X-Admin-User-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: "null"
description: Admin user ID creating the company
title: X-Admin-User-Id
description: Admin user ID creating the company
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CompanyCreateRequest"
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/CompanyCreateResponse"
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Forbidden
"409":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Conflict
"500":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Internal Server Error
"422":
description: Validation Error
content:
application/json:
schema:
$ref: "#/components/schemas/HTTPValidationError"
/admin/company/{canonical_id}:
patch:
tags:
- Admin
summary: Update Company Admin
description: |-
**Admin only**: Update company details.
Requires X-Api-Key header with trusted service credentials.
Optional X-Admin-User-Id header to identify the admin user making the update.
Allows editing: name, company_type, status, national_identifier, identifiers, addresses.
operationId: update_company_admin_admin_company__canonical_id__patch
security:
- api-key: []
parameters:
- name: canonical_id
in: path
required: true
schema:
type: string
title: Canonical Id
- name: X-Admin-User-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: "null"
description: Admin user ID making the update
title: X-Admin-User-Id
description: Admin user ID making the update
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CompanyUpdateRequest"
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/CompanyUpdateResponse"
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Forbidden
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
description: Not Found
"422":
description: Validation Error
content:
application/json:
schema:
$ref: "#/components/schemas/HTTPValidationError"
components:
schemas:
Address:
properties:
type:
anyOf:
- $ref: "#/components/schemas/address_type"
- type: "null"
description: Type of the address.
default: BUSINESS_ADDRESS
examples:
- BUSINESS_ADDRESS
branch_name:
anyOf:
- type: string
minLength: 1
- type: "null"
title: Branch Name
description: Branch name, if applicable.
examples:
- MONOZUKI AS - Branch
national_id:
anyOf:
- type: string
minLength: 1
- type: "null"
title: National Id
description: The identifier that the company is known by in the
official registries of its home country.
examples:
- "817352812"
branch_id:
anyOf:
- type: string
minLength: 1
- type: "null"
title: Branch Id
examples:
- "12345678900012"
street_address:
anyOf:
- type: string
minLength: 1
- type: "null"
title: Street Address
description: Street address.
examples:
- Lombard St 10
postal_code:
anyOf:
- type: string
minLength: 1
- type: "null"
title: Postal Code
description: Postal code.
examples:
- "90210"
city:
anyOf:
- type: string
minLength: 1
- type: "null"
title: City
description: City.
examples:
- Beverly Hills
region:
anyOf:
- type: string
minLength: 1
- type: "null"
title: Region
description: State/Region/Province.
examples:
- CA
country:
anyOf:
- type: string
maxLength: 2
minLength: 2
title: Country code
description: Country code as alpha-2 ISO 3166
- type: "null"
title: Country
examples:
- US
type: object
title: Address
AdminCompanySearchResponse:
properties:
items:
items:
$ref: "#/components/schemas/AdminSearchCompanyInstance"
type: array
title: Items
description: List of companies from Bifrost database matching
the search criteria
type: object
required:
- items
title: AdminCompanySearchResponse
AdminSearchCompanyInstance:
properties:
name:
type: string
minLength: 1
title: Name
examples:
- MONOZUKI AS
country:
anyOf:
- type: string
maxLength: 2
minLength: 2
title: Country code
description: Country code as alpha-2 ISO 3166
- type: "null"
title: Country
examples:
- US
national_identifier:
anyOf:
- $ref: "#/components/schemas/CompanyIdentifier"
- type: "null"
description: The identifier that the company is known by in the
official registries of its home country, if any.
company_type:
$ref: "#/components/schemas/CompanyType"
default: UNDEFINED
examples:
- GOVERNMENT
status:
anyOf:
- type: string
- type: "null"
title: Status
description: The trade status of the company.
examples:
- ACTIVE
lookup_id:
type: string
minLength: 1
title: Lookup Id
description: "Lookup ID for the company, it can be used later
on to get the canonical ID of the company and company details.
*NOTE*: This id is not durable, may change during a company's
lifetime, and should be regarded as a temporary reference
only."
examples:
- NO817352812
additional_information:
anyOf:
- type: string
minLength: 1
- type: "null"
title: Additional Information
description:
Arbitrary human-readable information, such as a head-office
address or a common trading name, that enables a user to differentiate
between two companies with the same name.
highlight:
type: string
minLength: 1
title: Highlight
examples:
- <mark><b>MONO</b></mark>ZUKI AS
canonical_id:
type: string
minLength: 1
title: Canonical Id
description: Canonical ID for the company. This is the permanent,
globally unique identifier.
examples:
- dHdvOkdCOjAxNjI0Mjk3
type: object
required:
- name
- lookup_id
- highlight
- canonical_id
title: AdminSearchCompanyInstance
Branch:
properties:
name:
type: string
minLength: 1
title: Name
examples:
- MONOZUKI AS
country:
anyOf:
- type: string
maxLength: 2
minLength: 2
title: Country code
description: Country code as alpha-2 ISO 3166
- type: "null"
title: Country
examples:
- US
national_identifier:
anyOf:
- $ref: "#/components/schemas/CompanyIdentifier"
- type: "null"
description: The identifier that the company is known by in the
official registries of its home country, if any.
type: object
required:
- name
title: Branch
BranchSearchResponse:
properties:
items:
items:
$ref: "#/components/schemas/Branch"
type: array
title: Items
description: List of branches matching the search criterion.
type: object
required:
- items
title: BranchSearchResponse
CompanyCreateRequest:
properties:
name:
type: string
minLength: 1
title: Name
country:
type: string
maxLength: 2
minLength: 2
title: Country code
description: Country code as alpha-2 ISO 3166
company_type:
$ref: "#/components/schemas/CompanyType"
default: UNDEFINED
status:
anyOf:
- type: string
- type: "null"
title: Status
national_identifier:
anyOf:
- $ref: "#/components/schemas/CompanyIdentifier"
- type: "null"
identifiers:
items:
$ref: "#/components/schemas/CompanyIdentifier"
type: array
title: Identifiers
addresses:
items:
$ref: "#/components/schemas/Address"
type: array
title: Addresses
type: object
required:
- name
- country
title: CompanyCreateRequest
description: Request to create a new company (admin only).
CompanyCreateResponse:
properties:
canonical_id:
type: string
minLength: 1
title: Canonical Id
name:
type: string
minLength: 1
title: Name
created_at:
type: string
title: Created At
created_by:
anyOf:
- type: string
- type: "null"
title: Created By
type: object
required:
- canonical_id
- name
- created_at
title: CompanyCreateResponse
description: Response after creating a company.
CompanyDetailsResponse:
type: object
CompanyIdentifier:
properties:
type:
$ref: "#/components/schemas/CompanyIdentifierType"
examples:
- ORGANIZATION_NUMBER
id:
type: string
minLength: 1
title: Id
examples:
- "817352812"
type: object
required:
- type
- id
title: CompanyIdentifier
CompanyIdentifierType:
type: string
enum:
- ENIGMA_CONNECT_ID
- AT_FN
- BE_CBE
- CH_UID
- CZ_ICO
- DE_HRB
- DK_CVR
- EE_RGK
- ES_CIF
- FI_YTJ
- FR_SIREN
- FR_SIRET
- GB_CRN
- GR_GEMI
- IE_CRO
- IT_REA
- LT_IK
- LV_UR
- NL_KVK
- NO_BRREG
- PL_KRS
- RO_CUI