Skip to content

Commit 95e7401

Browse files
authored
Merge pull request #235 from doug-lovett/registry-search-spec-update
Registry-search bulk search spec update.
2 parents c6b74b1 + e4cc58d commit 95e7401

File tree

2 files changed

+147
-3
lines changed

2 files changed

+147
-3
lines changed

web/site/content/en-CA/products/rs/overview.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ All data with times are in UTC, both submitted and retrieved via the API. These
6767
<td>0.0.0</td>
6868
<td>Pre-Release</td>
6969
</tr>
70+
<tr>
71+
<td>2025-06-17</td>
72+
<td>2.1.0</td>
73+
<td>Added bulk search endpoint /registry-search/api/v2/search/businesses/bulk. Released to SANDBOX 2025-06-17; released to PROD 2025-06-24.</td>
74+
</tr>
7075
</table>
7176

7277
---

web/site/public/rs/regsearch-spec.yaml

Lines changed: 142 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ paths:
483483
- name
484484
business:
485485
$ref: '#/components/schemas/Business_Business'
486-
487486
entityAct:
488487
type: string
489488
entityDescription:
@@ -1057,6 +1056,102 @@ paths:
10571056
description: The account that the user is operating on behalf of.
10581057
required: true
10591058
parameters: []
1059+
/v2/search/businesses/bulk:
1060+
parameters:
1061+
- schema:
1062+
type: string
1063+
in: header
1064+
name: Account-Id
1065+
description: The account that the user is operating on behalf of.
1066+
required: true
1067+
post:
1068+
summary: Bulk Search Businesses
1069+
tags:
1070+
- search
1071+
operationId: post-v2-search-businesses-bulk
1072+
description: '<p>Return the bulk business search results that match the given payload specifications (query/filter parameters).<ul><li>The maximum combined length of the ''names'' and ''identifiers'' arrays is 1000.</li><li>The minimum combined length of the ''names'' and ''identifiers'' arrays is 1 (i.e. if ''names'' is provided with at least 1 value then ''identifiers'' does not need to be provided in the payload).</li><li>The initial maximum value for ''rows'' is 10,000.</li><li>If ''state'' is not provided then the response will include businesses in all states.</li></ul></p>'
1073+
requestBody:
1074+
content:
1075+
application/json:
1076+
schema:
1077+
$ref: '#/components/schemas/Search_Query_Bulk'
1078+
examples:
1079+
all-filters-example:
1080+
summary: Submit a bulk search request with all filters.
1081+
value:
1082+
names:
1083+
- FULL BUSINESS NAME INC.
1084+
- A DIFFERENT NAME CORP.
1085+
identifiers:
1086+
- BC1234567
1087+
- FM7654321
1088+
rows: 1000
1089+
state: ACTIVE
1090+
names-filter-example:
1091+
summary: Submit a bulk search request querying only on business names.
1092+
value:
1093+
names:
1094+
- FULL BUSINESS NAME INC.
1095+
- A DIFFERENT NAME CORP.
1096+
identifiers-filter-example:
1097+
summary: Submit a bulk search request querying only on business identifiers.
1098+
value:
1099+
identifiers:
1100+
- BC1234567
1101+
- FM7654321
1102+
responses:
1103+
'200':
1104+
description: OK
1105+
headers: {}
1106+
content:
1107+
application/json:
1108+
schema:
1109+
type: object
1110+
properties:
1111+
results:
1112+
type: array
1113+
items:
1114+
$ref: '#/components/schemas/Facet_result'
1115+
description: The list of results that match any of the items inside the request names or identifiers arrays.
1116+
totalResults:
1117+
type: integer
1118+
description: 'The number of results the request found. If this is larger than the length of results then you may need to increase the request rows value, provide a request state, or ensure there are no partial names or identifiers submitted in the request.'
1119+
required:
1120+
- results
1121+
- totalResults
1122+
examples:
1123+
example-1:
1124+
summary: Bulk business search response example.
1125+
value:
1126+
results:
1127+
- bn: 123456789BC0001
1128+
goodStanding: false
1129+
identifier: BC0000001
1130+
legalType: BC
1131+
name: FULL BUSINESS NAME INC.
1132+
score: 10.525328
1133+
status: ACTIVE
1134+
- bn: 123456788BC0001
1135+
goodStanding: false
1136+
identifier: BC0000002
1137+
legalType: BEN
1138+
name: A DIFFERENT NAME CORP.
1139+
score: 10.525328
1140+
status: ACTIVE
1141+
- bn: 123456787BC0001
1142+
goodStanding: true
1143+
identifier: BC1234567
1144+
legalType: BC
1145+
name: FOUND BY IDENTIFIER INC.
1146+
score: 10.525328
1147+
status: ACTIVE
1148+
- bn: 123456787BC0001
1149+
identifier: FM7654321
1150+
legalType: FM
1151+
name: FOUND BY IDENTIFIER FIRM
1152+
score: 10.525328
1153+
status: ACTIVE
1154+
totalResults: 4
10601155
/v2/search/parties:
10611156
post:
10621157
summary: Search parties
@@ -1312,6 +1407,7 @@ components:
13121407
- CUL
13131408
- EPR
13141409
- FI
1410+
- FM
13151411
- FOR
13161412
- GP
13171413
- LIC
@@ -1559,7 +1655,6 @@ components:
15591655
nullable: true
15601656
required:
15611657
- type
1562-
15631658
Business_Address:
15641659
type: object
15651660
title: Address Schema
@@ -1765,7 +1860,51 @@ components:
17651860
- Incorporator
17661861
- Proprietor
17671862
- Partner
1768-
1863+
Search_Query_Bulk:
1864+
type: object
1865+
x-examples:
1866+
example-all:
1867+
names:
1868+
- FULL BUSINESS NAME INC.
1869+
- A DIFFERENT NAME CORP.
1870+
identifiers:
1871+
- BC1234567
1872+
- FM7654321
1873+
rows: 1000
1874+
state: ACTIVE
1875+
example-minimal:
1876+
names:
1877+
- FULL BUSINESS NAME INC.
1878+
description: Contains bulk business search request query/filter parameters.
1879+
properties:
1880+
names:
1881+
type: array
1882+
items:
1883+
type: string
1884+
description: The full business name to query/filter on.
1885+
example: FULL BUSINESS NAME INC.
1886+
identifiers:
1887+
type: array
1888+
items:
1889+
type: string
1890+
description: The fully formatted business identifier to query/filter on.
1891+
example: BC1234567
1892+
rows:
1893+
type: integer
1894+
description: 'Optional, the maximum number of results to return.'
1895+
example: 2000
1896+
minimum: 1
1897+
state:
1898+
type: string
1899+
description: 'Optional, the state of the business to query/filter on.'
1900+
enum:
1901+
- ACTIVE
1902+
- HISTORICAL
1903+
anyOf:
1904+
- required:
1905+
- names
1906+
- required:
1907+
- identifiers
17691908
securitySchemes:
17701909
api_key:
17711910
type: apiKey

0 commit comments

Comments
 (0)