@compleadai/skills 0.0.0-stage → 0.1.0-preview.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.
@@ -0,0 +1,289 @@
1
+ # KnowYourBusiness operations
2
+
3
+ Generated from `openapi/v3/KnowYourBusiness.json` by `skills/build.mjs`; do not edit. Models: [KnowYourBusiness.models.md](KnowYourBusiness.models.md).
4
+
5
+ Each operation is `<Api>.<Operation>`: the SDK class and method in every language. How each SDK spells class,
6
+ method and parameter names is in `../sdks/<language>.md`. Parameters are listed in the SDK order (required
7
+ first); a JSON body is one parameter holding the model. "Permission" is the API user permission the operation
8
+ needs on the product in "Module"; Scan is the only level that spends credits.
9
+
10
+ ## Kyb
11
+
12
+ ### Kyb.ListCountries
13
+
14
+ `GET /api/v3/Kyb/Country` | Permission: Read | Module: Know Your Business | Returns: ApiResponseOfListOfKybCountryResponse
15
+
16
+ Lists the country codes accepted by the countryCode parameter on Company, Scan and Batch/File. No credit deduction.
17
+
18
+ ### Kyb.FindCompanies
19
+
20
+ `GET /api/v3/Kyb/Company` | Permission: Scan | Module: Know Your Business | Returns: ApiResponseOfKybSearchResponse
21
+
22
+ Search for companies with fuzzy matching. Matches both company names and the names of linked people (directors/officers/shareholders); a person-name match returns every company that person is linked to, with MatchedPersonName populated. No credit deduction, except with countryCode TR and a 10 digit tax identification number as searchTerm: a company that is not stored yet is fetched from the Turkish trade registry first, which is billed. Minimum 3 characters for search term. Limit capped at 50.
23
+
24
+ | Parameter | In | Type | Required | Notes |
25
+ |---|---|---|---|---|
26
+ | `searchTerm` | query | string | yes | Company name, person name (director/officer/shareholder) or search term (minimum 3 characters) |
27
+ | `start` | query | integer | | Starting index for pagination (default: 0) Default 0. |
28
+ | `limit` | query | integer | | Maximum number of results (default: 20, max: 50) Default 20. |
29
+ | `matchRate` | query | integer | | Minimum fuzzy match rate percentage (default: 80) Default 80. |
30
+ | `status` | query | string | | Company status filter |
31
+ | `startDate` | query | date-time | | Start date for filtering |
32
+ | `endDate` | query | date-time | | End date for filtering |
33
+ | `countryCode` | query | string | | Optional ISO 3166-1 alpha-2 country code the search runs against, for example TR or GB. Call GET /api/v3/Kyb/Country for the supported list. Omit to search every country |
34
+ | `listTypeId` | query | string | | Deprecated. Send countryCode instead; it sets this value automatically |
35
+ | `assignedTeamId` | query | integer | | Optional team ID to assign. Team IDs can be retrieved from GET /api/v3/General/Team endpoint |
36
+
37
+ ### Kyb.GetScan
38
+
39
+ `GET /api/v3/Kyb/Scan/{referenceNumber}` | Permission: Scan | Module: Know Your Business | Returns: ApiResponseOfKybCompanyDetailResponseDTO
40
+
41
+ Get company detail by reference number or scan ID. Returns detailed company information including officers, registries, and registrations.
42
+
43
+ | Parameter | In | Type | Required | Notes |
44
+ |---|---|---|---|---|
45
+ | `referenceNumber` | path | string | yes | Reference number or scan ID (e.g., K000001) |
46
+
47
+ ### Kyb.CreateScan
48
+
49
+ `POST /api/v3/Kyb/Scan` | Permission: Scan | Module: Know Your Business | Returns: ApiResponseOfKybCompanyDetailResponseDTO
50
+
51
+ Perform a new KYB company check. Creates a new control record and returns detailed company information. Deducts credits. Send countryCode TR with a 10 digit tax identification number as companyNumber to query the Turkish trade registry live, the registry data then arrives in the TurkeyRegistry block. Any other countryCode, or omitting it, keeps the existing registry database lookup and leaves TurkeyRegistry null.
52
+
53
+ | Parameter | In | Type | Required | Notes |
54
+ |---|---|---|---|---|
55
+ | `kybScanRequest` | body | KybScanRequest | yes | See KybScanRequest. |
56
+
57
+ ### Kyb.ListScanHistory
58
+
59
+ `GET /api/v3/Kyb/Scan/{referenceNumber}/History` | Permission: Scan | Module: Know Your Business | Returns: ApiResponseOfListOfKybScanHistoryItemDTO
60
+
61
+ Lists the scan history of a checked company, newest first: every scan that fetched data (Type Scan) and the ongoing monitoring runs (Type Monitoring). Pass the reference number or scan ID of any check of the company. No credit deduction.
62
+
63
+ | Parameter | In | Type | Required | Notes |
64
+ |---|---|---|---|---|
65
+ | `referenceNumber` | path | string | yes | Reference number or scan ID (e.g., K000001) |
66
+
67
+ ### Kyb.GetScanHistoryItem
68
+
69
+ `GET /api/v3/Kyb/Scan/History/{historyId}` | Permission: Scan | Module: Know Your Business | Returns: ApiResponseOfKybScanHistoryDetailDTO
70
+
71
+ Returns one scan history item with the company data stored on that day: shareholders, officers, representatives, address, capital and status. Use an Id of Type Scan from Scan/{referenceNumber}/History. No credit deduction.
72
+
73
+ | Parameter | In | Type | Required | Notes |
74
+ |---|---|---|---|---|
75
+ | `historyId` | path | integer | yes | Id of a Scan type row returned by Scan/{referenceNumber}/History |
76
+
77
+ ### Kyb.UploadBatchFile
78
+
79
+ `POST /api/v3/Kyb/Batch/File` | Permission: Scan | Module: Know Your Business | Returns: ApiResponseOfKybBatchUploadResponse
80
+
81
+ Uploads an Excel or CSV file (max 2MB) containing company numbers for batch KYB checking. Each row is queued as a separate company check and is billed like a single check. Send defaultCountryCode TR to run the rows against the Turkish trade registry, in which case the company numbers must be 10 digit tax identification numbers. Returns the batch ID; follow progress with GET /api/v3/Kyb/Batch/{id}.
82
+
83
+ | Parameter | In | Type | Required | Notes |
84
+ |---|---|---|---|---|
85
+ | `file` | form | file | yes | |
86
+ | `defaultCountryCode` | query | string | | Optional ISO 3166-1 alpha-2 country code applied to rows that do not carry one. Send TR for the Turkish trade registry. Call GET /api/v3/Kyb/Country for the supported list |
87
+ | `assignedTeamId` | query | integer | | Optional team ID to assign every scan in this batch. Team IDs can be retrieved from GET /api/v3/General/Team |
88
+
89
+ ### Kyb.GetBatch
90
+
91
+ `GET /api/v3/Kyb/Batch/{id}` | Permission: Read | Module: Know Your Business | Returns: ApiResponseOfKybBatchStatusResponse
92
+
93
+ Returns the progress of a KYB batch upload. Poll this endpoint until Status reaches Completed, Completed with errors or Failed.
94
+
95
+ | Parameter | In | Type | Required | Notes |
96
+ |---|---|---|---|---|
97
+ | `id` | path | integer | yes | Batch ID returned by POST /api/v3/Kyb/Batch/File |
98
+
99
+ ### Kyb.ListBatchRows
100
+
101
+ `GET /api/v3/Kyb/Batch/{id}/Rows` | Permission: Read | Module: Know Your Business | Returns: ApiResponseOfKybBatchRowsResponse
102
+
103
+ Returns the individual rows of a KYB batch with their scan references, so each result can be retrieved with GET /api/v3/Kyb/Scan/{referenceNumber}.
104
+
105
+ | Parameter | In | Type | Required | Notes |
106
+ |---|---|---|---|---|
107
+ | `id` | path | integer | yes | Batch ID returned by POST /api/v3/Kyb/Batch/File |
108
+ | `start` | query | integer | | Pagination start offset (default: 0) Default 0. |
109
+ | `limit` | query | integer | | Maximum number of rows (default: 100, max: 500) Default 100. |
110
+
111
+ ### Kyb.GetCase
112
+
113
+ `GET /api/v3/Kyb/{scanId}/Case` | Permission: Read | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
114
+
115
+ Returns the current case management state of a KYB case: match status, risk level, assigned user or team, and tags. Changes made in the application are visible here. No credit deduction. **matchStatus values** (same as Name Screening) \| Value \| Match status \| \|---\|---\| \| `0` \| Unknown \| \| `1` \| No Match \| \| `2` \| Potential Match \| \| `3` \| False Positive \| \| `4` \| True Positive \| \| `5` \| True Positive Approve \| \| `6` \| True Positive Reject \| **riskLevel values** (same as Name Screening) \| Value \| Risk level \| \|---\|---\| \| `0` \| Unknown \| \| `1` \| Low \| \| `2` \| Medium \| \| `3` \| High \| \| `4` \| Neutral \| \| `5` \| Increased \| \| `6` \| Unacceptable \|
116
+
117
+ | Parameter | In | Type | Required | Notes |
118
+ |---|---|---|---|---|
119
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) as returned by POST /api/v3/Kyb/Scan |
120
+
121
+ ### Kyb.OpenCase
122
+
123
+ `POST /api/v3/Kyb/{scanId}/Case` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
124
+
125
+ Opens a closed KYB case again and clears its close date, close reason and closing user. The change is shown in the application's KYB case screens and case history, the same as a change made there. If webhooks are enabled, triggers the 'kyb_case_opened' webhook event. Returns the updated case.
126
+
127
+ | Parameter | In | Type | Required | Notes |
128
+ |---|---|---|---|---|
129
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
130
+ | `kybOpenCaseApiRequest` | body | KybOpenCaseApiRequest | yes | See KybOpenCaseApiRequest. |
131
+
132
+ ### Kyb.UpdateMatchStatus
133
+
134
+ `PUT /api/v3/Kyb/{scanId}/Case/MatchStatus` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
135
+
136
+ Updates the match status of a KYB case. The change is shown in the application's KYB case screens and case history, the same as a change made there. If webhooks are enabled, triggers the 'kyb_match_status_updated' webhook event. Returns the updated case. **matchStatus values** (same as Name Screening) \| Value \| Match status \| \|---\|---\| \| `0` \| Unknown \| \| `1` \| No Match \| \| `2` \| Potential Match \| \| `3` \| False Positive \| \| `4` \| True Positive \| \| `5` \| True Positive Approve \| \| `6` \| True Positive Reject \|
137
+
138
+ | Parameter | In | Type | Required | Notes |
139
+ |---|---|---|---|---|
140
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
141
+ | `kybCaseMatchStatusRequest` | body | KybCaseMatchStatusRequest | yes | See KybCaseMatchStatusRequest. |
142
+
143
+ ### Kyb.UpdateRiskLevel
144
+
145
+ `PUT /api/v3/Kyb/{scanId}/Case/RiskLevel` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
146
+
147
+ Updates the risk level of a KYB case. The change is shown in the application's KYB case screens and case history, the same as a change made there. If webhooks are enabled, triggers the 'kyb_risk_level_updated' webhook event. Returns the updated case. **riskLevel values** (same as Name Screening) \| Value \| Risk level \| \|---\|---\| \| `0` \| Unknown \| \| `1` \| Low \| \| `2` \| Medium \| \| `3` \| High \| \| `4` \| Neutral \| \| `5` \| Increased \| \| `6` \| Unacceptable \|
148
+
149
+ | Parameter | In | Type | Required | Notes |
150
+ |---|---|---|---|---|
151
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
152
+ | `kybCaseRiskLevelRequest` | body | KybCaseRiskLevelRequest | yes | See KybCaseRiskLevelRequest. |
153
+
154
+ ### Kyb.AssignUser
155
+
156
+ `PUT /api/v3/Kyb/{scanId}/Assignee/User` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
157
+
158
+ Assigns a user to a KYB case. Replaces any previous user or team assignment. The userId can be a GUID or integer ID; both can be retrieved from GET /api/v3/User. The change is shown in the application's KYB case screens and case history, the same as a change made there. Notifies the assigned user and, if webhooks are enabled, triggers the 'kyb_case_assigned' webhook event. Returns the updated case.
159
+
160
+ | Parameter | In | Type | Required | Notes |
161
+ |---|---|---|---|---|
162
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
163
+ | `kybAssigneeUserRequest` | body | KybAssigneeUserRequest | yes | See KybAssigneeUserRequest. |
164
+
165
+ ### Kyb.AssignTeam
166
+
167
+ `PUT /api/v3/Kyb/{scanId}/Assignee/Team` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
168
+
169
+ Assigns a team to a KYB case. Replaces any previous user or team assignment. Team IDs can be retrieved from GET /api/v3/General/Team. The change is shown in the application's KYB case screens and case history, the same as a change made there. Notifies the team members and, if webhooks are enabled, triggers the 'kyb_case_assigned' webhook event. Returns the updated case.
170
+
171
+ | Parameter | In | Type | Required | Notes |
172
+ |---|---|---|---|---|
173
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
174
+ | `kybAssigneeTeamRequest` | body | KybAssigneeTeamRequest | yes | See KybAssigneeTeamRequest. |
175
+
176
+ ### Kyb.AddTag
177
+
178
+ `POST /api/v3/Kyb/{scanId}/Tag` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
179
+
180
+ Adds a tag, with an optional value, to a KYB case. Tag GUIDs can be retrieved from GET /api/v3/General/Tags. Adding a tag that is already on the case keeps it once; sending a value stores it as the tag's current value. The change is shown in the application's KYB case screens and case history, the same as a change made there. If webhooks are enabled, triggers the 'kyb_case_tag_set' webhook event. Returns the updated case with all of its tags.
181
+
182
+ | Parameter | In | Type | Required | Notes |
183
+ |---|---|---|---|---|
184
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
185
+ | `kybCaseTagRequest` | body | KybCaseTagRequest | yes | See KybCaseTagRequest. |
186
+
187
+ ### Kyb.RemoveTag
188
+
189
+ `DELETE /api/v3/Kyb/{scanId}/Tag/{tagGuid}` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
190
+
191
+ Removes a tag from a KYB case. The change is shown in the application's KYB case screens and case history, the same as a change made there. If webhooks are enabled, triggers the 'kyb_case_tag_set' webhook event. Returns the updated case with its remaining tags.
192
+
193
+ | Parameter | In | Type | Required | Notes |
194
+ |---|---|---|---|---|
195
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
196
+ | `tagGuid` | path | uuid | yes | Tag GUID. Can be retrieved from GET /api/v3/General/Tags endpoint |
197
+
198
+ ### Kyb.CloseCase
199
+
200
+ `POST /api/v3/Kyb/{scanId}/Case/Closure` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybCaseResponse
201
+
202
+ Closes a KYB case. Send a closeReasonId (from GET /api/v3/General/ActivityReason), a reason note, or both; at least one is required. Optionally sets the match status in the same call. The closed case leaves the Alert and Case Management and My Assigned Cases queues and stays in Reports > KYB History. The change is shown in the application's KYB case screens and case history, the same as a change made there. If webhooks are enabled, triggers the 'kyb_case_closed' webhook event. Returns the updated case. **matchStatus values** (same as Name Screening) \| Value \| Match status \| \|---\|---\| \| `0` \| Unknown \| \| `1` \| No Match \| \| `2` \| Potential Match \| \| `3` \| False Positive \| \| `4` \| True Positive \| \| `5` \| True Positive Approve \| \| `6` \| True Positive Reject \|
203
+
204
+ | Parameter | In | Type | Required | Notes |
205
+ |---|---|---|---|---|
206
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
207
+ | `kybCloseCaseApiRequest` | body | KybCloseCaseApiRequest | yes | See KybCloseCaseApiRequest. |
208
+
209
+ ### Kyb.GetReputation
210
+
211
+ `GET /api/v3/Kyb/{scanId}/Reputation` | Permission: Read | Module: Know Your Business | Returns: ApiResponseOfKybReputationResponse
212
+
213
+ Returns the latest reputation scan of a KYB case: status, level (High, Elevated, Watch, Normal, No data, Incomplete), signals, sources, monthly complaint totals and regulator notices. Complaint text, complainant names and Google ratings are never returned or stored. No credit deduction.
214
+
215
+ | Parameter | In | Type | Required | Notes |
216
+ |---|---|---|---|---|
217
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
218
+
219
+ ### Kyb.StartReputation
220
+
221
+ `POST /api/v3/Kyb/{scanId}/Reputation` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybReputationStartResponse
222
+
223
+ Starts a reputation and complaint scan for a KYB case in the background and returns 202 at once. Poll GET /api/v3/Kyb/{scanId}/Reputation for the result. Only sources complead enabled and your organisation did not turn off in KYB Settings are queried. If webhooks are enabled, the 'kyb_reputation_updated' event is sent when the level changes. No credit deduction.
224
+
225
+ | Parameter | In | Type | Required | Notes |
226
+ |---|---|---|---|---|
227
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
228
+
229
+ ### Kyb.GetMerchantAnalysis
230
+
231
+ `GET /api/v3/Kyb/{scanId}/MerchantAnalysis` | Permission: Read | Module: Know Your Business | Returns: ApiResponseOfKybMerchantAnalysisResponse
232
+
233
+ Returns the merchant analysis of a KYB case: status and error describe the latest attempt, and when that attempt is running or failed the result fields come from the last analysis that finished Done (isPreviousResult is true). Includes the merchant risk level and score, MCC suggestions, findings with the rule version that matched, payment methods, purpose consistency and pages read. No credit deduction.
234
+
235
+ | Parameter | In | Type | Required | Notes |
236
+ |---|---|---|---|---|
237
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
238
+
239
+ ### Kyb.StartMerchantAnalysis
240
+
241
+ `POST /api/v3/Kyb/{scanId}/MerchantAnalysis` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybMerchantAnalysisResponse
242
+
243
+ Starts the merchant analysis of the KYB case website in the background: pages read, detected activity, three MCC suggestions from the ISO 18245 list, prohibited and high-risk findings, payment methods, purpose consistency and merchant risk. Only one analysis runs per case at a time. Poll GET /api/v3/Kyb/{scanId}/MerchantAnalysis until Status is Done or Failed. If webhooks are enabled, the 'kyb_merchant_analysis_completed' event is sent when it finishes.
244
+
245
+ | Parameter | In | Type | Required | Notes |
246
+ |---|---|---|---|---|
247
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
248
+ | `kybMerchantAnalysisRequest` | body | KybMerchantAnalysisRequest | yes | See KybMerchantAnalysisRequest. |
249
+
250
+ ### Kyb.GetOngoingMonitoring
251
+
252
+ `GET /api/v3/Kyb/{scanId}/OngoingMonitoring` | Permission: Read | Module: Know Your Business | Returns: ApiResponseOfKybOngoingMonitoringResponse
253
+
254
+ Returns the KYB ongoing monitoring state of a case: whether monitoring is on, its period, the next and last check dates and whether there are changes waiting for review. No credit deduction.
255
+
256
+ | Parameter | In | Type | Required | Notes |
257
+ |---|---|---|---|---|
258
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
259
+
260
+ ### Kyb.EnableOngoingMonitoring
261
+
262
+ `POST /api/v3/Kyb/{scanId}/OngoingMonitoring` | Permission: Manage | Module: Know Your Business and KYB Ongoing Monitoring | Returns: ApiResponseOfKybOngoingMonitoringResponse
263
+
264
+ Turns on KYB ongoing monitoring for a case, or changes its period when it is already on. The registry record of the company is checked again at every period; changes in the company name, status, address, registry records, officers and shareholders are recorded and trigger the 'kyb_ongoing_monitoring_updated' webhook. Supported periods: Daily, Weekly, Monthly, Quarterly, HalfYearly, Annually. Requires the KYB Ongoing Monitoring product and a free monitoring slot.
265
+
266
+ | Parameter | In | Type | Required | Notes |
267
+ |---|---|---|---|---|
268
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
269
+ | `kybOngoingMonitoringPeriodRequest` | body | KybOngoingMonitoringPeriodRequest | yes | See KybOngoingMonitoringPeriodRequest. |
270
+
271
+ ### Kyb.DisableOngoingMonitoring
272
+
273
+ `DELETE /api/v3/Kyb/{scanId}/OngoingMonitoring` | Permission: Manage | Module: Know Your Business | Returns: ApiResponseOfKybOngoingMonitoringResponse
274
+
275
+ Turns off KYB ongoing monitoring for a case. The monitoring history is kept and monitoring can be turned on again later.
276
+
277
+ | Parameter | In | Type | Required | Notes |
278
+ |---|---|---|---|---|
279
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |
280
+
281
+ ### Kyb.ListOngoingMonitoringHistory
282
+
283
+ `GET /api/v3/Kyb/{scanId}/OngoingMonitoring/History` | Permission: Read | Module: Know Your Business | Returns: ApiResponseOfKybOngoingMonitoringHistoryResponse
284
+
285
+ Returns the changes KYB ongoing monitoring found for a case, newest first. Each entry lists the changed fields with their old and new values. No credit deduction.
286
+
287
+ | Parameter | In | Type | Required | Notes |
288
+ |---|---|---|---|---|
289
+ | `scanId` | path | string | yes | KYB scan ID (e.g., K000123) |