@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,785 @@
1
+ # CustomerRiskAssessment models
2
+
3
+ Generated from `openapi/v3/CustomerRiskAssessment.json` by `skills/build.mjs`; do not edit. Fields are shown with their JSON
4
+ names; each SDK spells them per language (`../sdks/<language>.md`). Enums travel as numbers; the name column is
5
+ the enum member in the SDKs.
6
+
7
+ ## ActivityLogDTO
8
+
9
+ | Field | Type | Required | Notes |
10
+ |---|---|---|---|
11
+ | `id` | integer | | |
12
+ | `actionTypeId` | integer | | |
13
+ | `actionType` | string | | |
14
+ | `userId` | integer | | |
15
+ | `userName` | string | | |
16
+ | `organizationId` | integer | | |
17
+ | `memoNoteId` | integer | | |
18
+ | `isImportant` | boolean | | |
19
+ | `description` | string | | |
20
+ | `memoNote` | string | | |
21
+ | `isMemo` | boolean | | |
22
+ | `isFieldChange` | boolean | | |
23
+ | `isAiGenerated` | boolean | | |
24
+ | `createdDate` | date-time | | |
25
+ | `createdTime` | date-time | | |
26
+ | `date` | string | | |
27
+ | `time` | string | | |
28
+ | `ago` | string | | |
29
+ | `reason` | string | | |
30
+ | `specialId` | string | | |
31
+ | `isCaseClosure` | boolean | | |
32
+
33
+ ## ApiResponseOfBatchUploadResponse
34
+
35
+ | Field | Type | Required | Notes |
36
+ |---|---|---|---|
37
+ | `httpStatusCode` | integer | | |
38
+ | `isSuccess` | boolean | | |
39
+ | `errorCode` | string | | |
40
+ | `errorMessage` | string | | |
41
+ | `extraInfo` | string | | |
42
+ | `result` | BatchUploadResponse | | |
43
+
44
+ ## ApiResponseOfCustomerBatchResultResponse
45
+
46
+ | Field | Type | Required | Notes |
47
+ |---|---|---|---|
48
+ | `httpStatusCode` | integer | | |
49
+ | `isSuccess` | boolean | | |
50
+ | `errorCode` | string | | |
51
+ | `errorMessage` | string | | |
52
+ | `extraInfo` | string | | |
53
+ | `result` | CustomerBatchResultResponse | | |
54
+
55
+ ## ApiResponseOfCustomerResponse
56
+
57
+ | Field | Type | Required | Notes |
58
+ |---|---|---|---|
59
+ | `httpStatusCode` | integer | | |
60
+ | `isSuccess` | boolean | | |
61
+ | `errorCode` | string | | |
62
+ | `errorMessage` | string | | |
63
+ | `extraInfo` | string | | |
64
+ | `result` | CustomerResponse | | |
65
+
66
+ ## ApiResponseOfCustomerRiskResponse
67
+
68
+ | Field | Type | Required | Notes |
69
+ |---|---|---|---|
70
+ | `httpStatusCode` | integer | | |
71
+ | `isSuccess` | boolean | | |
72
+ | `errorCode` | string | | |
73
+ | `errorMessage` | string | | |
74
+ | `extraInfo` | string | | |
75
+ | `result` | CustomerRiskResponse | | |
76
+
77
+ ## ApiResponseOfCustomerScoreBreakdownResponse
78
+
79
+ | Field | Type | Required | Notes |
80
+ |---|---|---|---|
81
+ | `httpStatusCode` | integer | | |
82
+ | `isSuccess` | boolean | | |
83
+ | `errorCode` | string | | |
84
+ | `errorMessage` | string | | |
85
+ | `extraInfo` | string | | |
86
+ | `result` | CustomerScoreBreakdownResponse | | |
87
+
88
+ ## ApiResponseOfCustomerScreeningResponseArray
89
+
90
+ | Field | Type | Required | Notes |
91
+ |---|---|---|---|
92
+ | `httpStatusCode` | integer | | |
93
+ | `isSuccess` | boolean | | |
94
+ | `errorCode` | string | | |
95
+ | `errorMessage` | string | | |
96
+ | `extraInfo` | string | | |
97
+ | `result` | array of CustomerScreeningResponse | | |
98
+
99
+ ## ApiResponseOfCustomerStatusResponse
100
+
101
+ | Field | Type | Required | Notes |
102
+ |---|---|---|---|
103
+ | `httpStatusCode` | integer | | |
104
+ | `isSuccess` | boolean | | |
105
+ | `errorCode` | string | | |
106
+ | `errorMessage` | string | | |
107
+ | `extraInfo` | string | | |
108
+ | `result` | CustomerStatusResponse | | |
109
+
110
+ ## ApiResponseOfCustomerTagResponse
111
+
112
+ | Field | Type | Required | Notes |
113
+ |---|---|---|---|
114
+ | `httpStatusCode` | integer | | |
115
+ | `isSuccess` | boolean | | |
116
+ | `errorCode` | string | | |
117
+ | `errorMessage` | string | | |
118
+ | `extraInfo` | string | | |
119
+ | `result` | CustomerTagResponse | | |
120
+
121
+ ## ApiResponseOfGetCustomerScoreHistoryResponseModel
122
+
123
+ | Field | Type | Required | Notes |
124
+ |---|---|---|---|
125
+ | `httpStatusCode` | integer | | |
126
+ | `isSuccess` | boolean | | |
127
+ | `errorCode` | string | | |
128
+ | `errorMessage` | string | | |
129
+ | `extraInfo` | string | | |
130
+ | `result` | GetCustomerScoreHistoryResponseModel | | |
131
+
132
+ ## ApiResponseOfKycFormInvitationResponse
133
+
134
+ | Field | Type | Required | Notes |
135
+ |---|---|---|---|
136
+ | `httpStatusCode` | integer | | |
137
+ | `isSuccess` | boolean | | |
138
+ | `errorCode` | string | | |
139
+ | `errorMessage` | string | | |
140
+ | `extraInfo` | string | | |
141
+ | `result` | KycFormInvitationResponse | | |
142
+
143
+ ## ApiResponseOfKycFormInvitationStatusResponse
144
+
145
+ | Field | Type | Required | Notes |
146
+ |---|---|---|---|
147
+ | `httpStatusCode` | integer | | |
148
+ | `isSuccess` | boolean | | |
149
+ | `errorCode` | string | | |
150
+ | `errorMessage` | string | | |
151
+ | `extraInfo` | string | | |
152
+ | `result` | KycFormInvitationStatusResponse | | |
153
+
154
+ ## ApiResponseOfListOfCustomerScoreChangeTypeDto
155
+
156
+ | Field | Type | Required | Notes |
157
+ |---|---|---|---|
158
+ | `httpStatusCode` | integer | | |
159
+ | `isSuccess` | boolean | | |
160
+ | `errorCode` | string | | |
161
+ | `errorMessage` | string | | |
162
+ | `extraInfo` | string | | |
163
+ | `result` | array of CustomerScoreChangeTypeDto | | |
164
+
165
+ ## ApiResponseOfListOfKycFormInvitationStatusResponse
166
+
167
+ | Field | Type | Required | Notes |
168
+ |---|---|---|---|
169
+ | `httpStatusCode` | integer | | |
170
+ | `isSuccess` | boolean | | |
171
+ | `errorCode` | string | | |
172
+ | `errorMessage` | string | | |
173
+ | `extraInfo` | string | | |
174
+ | `result` | array of KycFormInvitationStatusResponse | | |
175
+
176
+ ## ApiResponseOfObject
177
+
178
+ | Field | Type | Required | Notes |
179
+ |---|---|---|---|
180
+ | `httpStatusCode` | integer | | |
181
+ | `isSuccess` | boolean | | |
182
+ | `errorCode` | string | | |
183
+ | `errorMessage` | string | | |
184
+ | `extraInfo` | string | | |
185
+ | `result` | object | | |
186
+
187
+ ## ApiResponseOfPartialHistoryDTO
188
+
189
+ | Field | Type | Required | Notes |
190
+ |---|---|---|---|
191
+ | `httpStatusCode` | integer | | |
192
+ | `isSuccess` | boolean | | |
193
+ | `errorCode` | string | | |
194
+ | `errorMessage` | string | | |
195
+ | `extraInfo` | string | | |
196
+ | `result` | PartialHistoryDTO | | |
197
+
198
+ ## ApiResponseOfRiskThreshold
199
+
200
+ | Field | Type | Required | Notes |
201
+ |---|---|---|---|
202
+ | `httpStatusCode` | integer | | |
203
+ | `isSuccess` | boolean | | |
204
+ | `errorCode` | string | | |
205
+ | `errorMessage` | string | | |
206
+ | `extraInfo` | string | | |
207
+ | `result` | RiskThreshold | | |
208
+
209
+ ## ApiResponseOfboolean
210
+
211
+ | Field | Type | Required | Notes |
212
+ |---|---|---|---|
213
+ | `httpStatusCode` | integer | | |
214
+ | `isSuccess` | boolean | | |
215
+ | `errorCode` | string | | |
216
+ | `errorMessage` | string | | |
217
+ | `extraInfo` | string | | |
218
+ | `result` | boolean | | |
219
+
220
+ ## ApiResponseOfstring
221
+
222
+ | Field | Type | Required | Notes |
223
+ |---|---|---|---|
224
+ | `httpStatusCode` | integer | | |
225
+ | `isSuccess` | boolean | | |
226
+ | `errorCode` | string | | |
227
+ | `errorMessage` | string | | |
228
+ | `extraInfo` | string | | |
229
+ | `result` | string | | |
230
+
231
+ ## BatchUploadResponse
232
+
233
+ | Field | Type | Required | Notes |
234
+ |---|---|---|---|
235
+ | `batchId` | string | | Batch identifier. Pass to the GET Batch/{batchId} endpoint to poll status and results. |
236
+ | `validCount` | integer | | Number of rows that passed validation and were queued for processing. |
237
+ | `errorCount` | integer | | Number of rows that failed validation and were not queued. |
238
+ | `message` | string | | Informational message about the batch state. |
239
+
240
+ ## BlacklistWhitelistRequest
241
+
242
+ | Field | Type | Required | Notes |
243
+ |---|---|---|---|
244
+ | `reason` | string | | Reason for adding/removing customer from blacklist or whitelist |
245
+ | `expirationDate` | date-time | | Optional expiration date of blacklist/whitelist. The system will automatically remove this customer from blacklist/whitelist after this date expires |
246
+
247
+ ## CaseMemoNoteRequest
248
+
249
+ | Field | Type | Required | Notes |
250
+ |---|---|---|---|
251
+ | `note` | string | | Memo note content to update |
252
+
253
+ ## CustomerAddressItem
254
+
255
+ | Field | Type | Required | Notes |
256
+ |---|---|---|---|
257
+ | `addressType` | string | yes | Required. Address type: ev (home), is (work), diger (other) Max length 16. |
258
+ | `countryIsoCode` | string | yes | Required. Country Alpha-2 ISO Code (e.g. TR, AZ, US) Max length 8. |
259
+ | `provinceCode` | string | | Optional. Turkish province (il) plate code 1-81 (e.g. 34 for Istanbul). Only allowed when CountryIsoCode is TR Max length 8. |
260
+ | `districtCode` | string | | Optional. Mernis district (ilce) code of the given province (e.g. 1663 for Sisli). Requires ProvinceCode Max length 8. |
261
+ | `postCode` | string | | Optional. Postal code Max length 16. |
262
+ | `addressLine` | string | yes | Required. Address line (street, building, door number) Max length 256. |
263
+ | `isPrimary` | boolean | | Optional. Marks the primary address of the customer |
264
+
265
+ ## CustomerAssigneeTeamRequest
266
+
267
+ | Field | Type | Required | Notes |
268
+ |---|---|---|---|
269
+ | `teamId` | integer | yes | Team ID |
270
+
271
+ ## CustomerAssigneeUserRequest
272
+
273
+ | Field | Type | Required | Notes |
274
+ |---|---|---|---|
275
+ | `userId` | integer | yes | User ID, from GET /api/v3/User (Id field) |
276
+
277
+ ## CustomerBatchResultItem
278
+
279
+ | Field | Type | Required | Notes |
280
+ |---|---|---|---|
281
+ | `customerNumber` | string | | |
282
+ | `customerName` | string | | |
283
+ | `riskLevelId` | integer | | |
284
+ | `riskScore` | number | | |
285
+
286
+ ## CustomerBatchResultResponse
287
+
288
+ | Field | Type | Required | Notes |
289
+ |---|---|---|---|
290
+ | `batchId` | string | | |
291
+ | `status` | string | | |
292
+ | `totalCount` | integer | | |
293
+ | `processedCount` | integer | | |
294
+ | `message` | string | | |
295
+ | `items` | array of CustomerBatchResultItem | | |
296
+
297
+ ## CustomerCaseStatusRequest
298
+
299
+ | Field | Type | Required | Notes |
300
+ |---|---|---|---|
301
+ | `status` | CustomerStatusEnum | yes | |
302
+
303
+ ## CustomerContactItem
304
+
305
+ | Field | Type | Required | Notes |
306
+ |---|---|---|---|
307
+ | `contactType` | string | yes | Required. Contact type: is (work), ev (home), cep (mobile), faks (fax), eposta (email), diger (other) Max length 16. |
308
+ | `contactValue` | string | yes | Required. Phone number, fax number or e-mail address Max length 256. |
309
+
310
+ ## CustomerIdentityDocumentItem
311
+
312
+ | Field | Type | Required | Notes |
313
+ |---|---|---|---|
314
+ | `documentType` | string | yes | Required. MASAK document type code: KT-01 Nufus Cuzdani, KT-02 T.C. Kimlik Karti, KT-03 Surucu Belgesi, KT-04 Pasaport, KT-05 Ikamet Izin Belgesi, KT-06 Diger Kimlik Belgeleri Max length 16. |
315
+ | `seriesNumber` | string | | Optional. Document serial number Max length 32. |
316
+ | `documentNumber` | string | yes | Required. Document number Max length 64. |
317
+ | `validUntil` | date-time | | Optional. Expiry date of the document |
318
+
319
+ ## CustomerOfficerRequest
320
+
321
+ | Field | Type | Required | Notes |
322
+ |---|---|---|---|
323
+ | `officerName` | string | yes | Required. Full name of the company officer Max length 256. |
324
+ | `identityNo` | string | | Optional. National identity number of the officer (TCKN or YKN). Used to match the officer with an existing person record so that no duplicate person is created. Send the full number; the masked value returned by GET (containing *) is rejected. When both IdentityNo and PassportNo are empty, the officer is matched by name with the existing officer of the customer Max length 256. |
325
+ | `passportNo` | string | | Optional. Passport number of the officer. Used when a national identity number is not available Max length 256. |
326
+ | `nationalityIsoCode` | string | | Optional. Country of the officer. Send the Alpha-2 ISO code (e.g. TR,AZ,US); a country name is also accepted and is normalised to the ISO code before it is stored Max length 128. |
327
+ | `birthPlace` | string | | Optional. Birth place of the officer Max length 256. |
328
+ | `birthDate` | date-time | | Optional. Birth date of the officer (date only; a value with Z or an offset is read as the organization's date of that instant) |
329
+ | `address` | string | | Optional. Address of the officer Max length 256. |
330
+ | `phone` | string | | Optional. Phone of the officer Max length 64. |
331
+ | `email` | string | | Optional. Email of the officer Max length 256. |
332
+ | `title` | string | | Optional. Title or role of the officer Max length 256. |
333
+ | `startDate` | date-time | | Optional. Start date of the officer relation (date only; a value with Z or an offset is read as the organization's date of that instant) |
334
+ | `endDate` | date-time | | Optional. End date of the officer relation. When given, the relation is stored as inactive (date only; a value with Z or an offset is read as the organization's date of that instant) |
335
+ | `isActive` | boolean | | Optional. Whether the officer relation is currently active. Defaults to true |
336
+
337
+ ## CustomerOfficerResponse
338
+
339
+ | Field | Type | Required | Notes |
340
+ |---|---|---|---|
341
+ | `officerName` | string | | Full name of the company officer |
342
+ | `identityNo` | string | | Masked national identity or passport number of the officer |
343
+ | `nationalityIsoCode` | string | | Country Alpha-2 ISO Code of the officer |
344
+ | `birthPlace` | string | | Birth place of the officer |
345
+ | `birthDate` | date-time | | Birth date of the officer |
346
+ | `address` | string | | Address of the officer |
347
+ | `phone` | string | | Phone of the officer |
348
+ | `email` | string | | Email of the officer |
349
+ | `title` | string | | Title or role of the officer |
350
+ | `startDate` | date-time | | Start date of the officer relation |
351
+ | `endDate` | date-time | | End date of the officer relation |
352
+ | `isActive` | boolean | | Whether the officer relation is currently active |
353
+ | `isAlsoOwner` | boolean | | Whether this person is also recorded as an owner of the customer |
354
+ | `isManualBeneficialOwner` | boolean | | Whether this officer was marked as a beneficial owner manually |
355
+ | `hasScreeningMatch` | boolean | | Whether the latest sanctions screening of this officer produced a match |
356
+
357
+ ## CustomerOwnerRequest
358
+
359
+ | Field | Type | Required | Notes |
360
+ |---|---|---|---|
361
+ | `ownerName` | string | yes | Required. Owner name or company title Max length 256. |
362
+ | `ownerTypeId` | CustomerTypeEnum | yes | |
363
+ | `customerNumber` | string | | Optional. Your own customer number of this owner. When it matches an existing customer, the ownership chain continues through that customer's own owners Max length 256. |
364
+ | `identityNo` | string | | Optional. Identity number or tax number of the owner. Used to match the owner with an existing person record so that no duplicate person is created. Send the full number; the masked value returned by GET (containing *) is rejected. When it is left empty, the owner is matched by name with the existing owner under the same parent Max length 256. |
365
+ | `directSharePercentage` | number | | Optional. Direct share percentage of this owner in the company it belongs to. Between 0 and 100 |
366
+ | `parentOwnerName` | string | | Optional. Leave empty for a direct owner of the customer. For a sub owner, the OwnerName of the Organization (2) entry in the same Owners list that this owner holds a share in Max length 256. |
367
+ | `parentOwnerIdentityNo` | string | | Optional. Identity or tax number of the parent Organization entry in the same Owners list. Takes precedence over ParentOwnerName when both are sent Max length 256. |
368
+ | `nationalityIsoCode` | string | | Optional. Country of the owner. Send the Alpha-2 ISO code (e.g. TR,AZ,US); a country name is also accepted and is normalised to the ISO code before it is stored Max length 128. |
369
+ | `title` | string | | Optional. Title or role of the owner Max length 256. |
370
+ | `birthPlace` | string | | Optional. Birth place of an Individual (1) owner. Ignored for Organization (2) owners Max length 256. |
371
+ | `birthDate` | date-time | | Optional. Birth date of an Individual (1) owner. Ignored for Organization (2) owners. Used for owner age rules (date only; a value with Z or an offset is read as the organization's date of that instant) |
372
+ | `description` | string | | Optional. Free text description for this ownership relation Max length 1024. |
373
+ | `startDate` | date-time | | Optional. Start date of the ownership relation (date only; a value with Z or an offset is read as the organization's date of that instant) |
374
+ | `endDate` | date-time | | Optional. End date of the ownership relation. When given, the relation is stored as inactive and excluded from the current ownership calculation (date only; a value with Z or an offset is read as the organization's date of that instant) |
375
+ | `isActive` | boolean | | Optional. Whether the ownership relation is currently active. Defaults to true |
376
+
377
+ ## CustomerOwnerResponse
378
+
379
+ | Field | Type | Required | Notes |
380
+ |---|---|---|---|
381
+ | `ownerName` | string | | Owner name or company title |
382
+ | `ownerTypeId` | integer | | Type of owner: Individual (1) or Organization (2) |
383
+ | `customerNumber` | string | | Customer number of this owner when the owner is also a customer |
384
+ | `identityNo` | string | | Masked identity number or tax number of the owner |
385
+ | `directSharePercentage` | number | | Direct share percentage of this owner in the company it belongs to |
386
+ | `parentOwnerName` | string | | Name of the company this owner holds a share in. Empty for a direct owner of the customer |
387
+ | `indirectSharePercentage` | number | | Indirect share percentage on the main customer, calculated by multiplying the percentages along the ownership chain |
388
+ | `nationalityIsoCode` | string | | Country Alpha-2 ISO Code of the owner |
389
+ | `title` | string | | Title or role of the owner |
390
+ | `birthPlace` | string | | Birth place of the owner |
391
+ | `birthDate` | date-time | | Birth date of the owner |
392
+ | `description` | string | | Free text description for this ownership relation |
393
+ | `startDate` | date-time | | Start date of the ownership relation |
394
+ | `endDate` | date-time | | End date of the ownership relation |
395
+ | `isActive` | boolean | | Whether the ownership relation is currently active |
396
+ | `isBeneficialOwner` | boolean | | Whether this owner is a beneficial owner, either at or above the configured threshold or marked manually |
397
+ | `isManualBeneficialOwner` | boolean | | Whether this owner was marked as a beneficial owner manually, independent of the share percentage |
398
+ | `hasScreeningMatch` | boolean | | Whether the latest sanctions screening of this owner produced a match |
399
+
400
+ ## CustomerOwnershipSummaryResponse
401
+
402
+ | Field | Type | Required | Notes |
403
+ |---|---|---|---|
404
+ | `ownerCount` | integer | | Number of direct owners recorded on the customer |
405
+ | `uboCount` | integer | | Number of natural persons at or above the beneficial ownership threshold |
406
+ | `ownershipDepth` | integer | | Deepest level of the ownership chain |
407
+ | `isDeterminable` | boolean | | Whether the beneficial ownership structure could be fully attributed to natural persons |
408
+ | `unattributedSharePercentage` | number | | Share that could not be attributed to a natural person |
409
+ | `totalDirectSharePercentage` | number | | Sum of the direct shares recorded on the customer |
410
+ | `isOverAllocated` | boolean | | True when the recorded direct shares add up to more than 100 percent, which means the ownership data is inconsistent and must be corrected |
411
+ | `maxEntityIndirectSharePercentage` | number | | Largest share that a legal entity holds in the customer, directly or through the ownership chain |
412
+ | `youngestOwnerAge` | integer | | Age of the youngest natural person owner in the ownership chain. Empty when no owner has a birth date |
413
+ | `oldestOwnerAge` | integer | | Age of the oldest natural person owner in the ownership chain. Empty when no owner has a birth date |
414
+ | `sharedPartyCustomerCount` | integer | | Number of other customers that share at least one owner or officer with this customer |
415
+
416
+ ## CustomerRequest
417
+
418
+ | Field | Type | Required | Notes |
419
+ |---|---|---|---|
420
+ | `customerNumber` | string | yes | Required. This number is a reference to your own customer number. It must be unique within your organization Max length 256. |
421
+ | `newCustomerNumber` | string | | Optional. Can only be used for changing a customer number when updating a customer Max length 256. |
422
+ | `customerName` | string | yes | Required. Customer name or company name Max length 256. |
423
+ | `customerTypeId` | CustomerTypeEnum | yes | |
424
+ | `nationalityIsoCode` | string | | Optional. Country Alpha-2 ISO Code (e.g. TR,AZ,US) |
425
+ | `isInternal` | boolean | | Optional. External/Internal. Defaults to true (internal) on create; when omitted on update the stored value is kept |
426
+ | `isRiskScoringEnabled` | boolean | | Optional. Whether the customer is risk scored. Customers with risk scoring enabled (true) use 1 CRA credit each, even when deactivated. When false, the customer is kept as a record only: its details can be updated and it can be screened, but it gets no risk score and cannot be assigned, listed, tagged, cased or have its status changed, and it uses no credit. Defaults to true on create; when omitted on update the stored value is kept. When the organization has no CRA credits left, a new customer is saved as false and a change to true is not applied. |
427
+ | `customerBirthDate` | date-time | | Optional. Customer birth date (date only; a value with Z or an offset is read as the organization's date of that instant) |
428
+ | `customerOnboardingDate` | date-time | | Optional. Customer onboarding date (date only; a value with Z or an offset is read as the organization's date of that instant) |
429
+ | `customerStatus` | CustomerStatusEnum | | |
430
+ | `assignedTeamId` | integer | | Optional. The team ID that the customer case will be assigned to. Can be obtained from GET /api/v2/General/Team endpoint (Id field) |
431
+ | `annualTurnover` | number | | Optional. Annual turnover / income of the customer |
432
+ | `phone` | string | | Optional. Phone of the customer |
433
+ | `email` | string | | Optional. Email of the customer |
434
+ | `registerNumber` | string | | Optional. Register number of the customer |
435
+ | `establishmentYear` | string | | Optional. Establishment Year of the customer |
436
+ | `identityNo` | string | | Optional. Identity Number of the customer |
437
+ | `mccCode` | object | | Optional. Merchant Category Code (MCC) of the customer. Must be defined for your organization. Accepts a number or a string with leading zeros, e.g. "0742" |
438
+ | `optionalParameters` | array of OptionalParameter | | Optional. Dynamic fields for the customer. Field keys can be obtained from GET /api/v2/General/DynamicField endpoint (Key field) |
439
+ | `birthPlace` | string | | Optional. Birth place of the customer Max length 256. |
440
+ | `gender` | string | | Optional. Gender (MASAK code): E (male), K (female), B (unknown) Max length 8. |
441
+ | `motherName` | string | | Optional. Mother name of the customer Max length 128. |
442
+ | `fatherName` | string | | Optional. Father name of the customer Max length 128. |
443
+ | `occupationCode` | string | | Optional. MASAK occupation code (M-01 ... M-85, M-999 for other). See the occupation code list in the API guide Max length 16. |
444
+ | `occupationOther` | string | | Optional. Free text occupation. Only allowed when OccupationCode is M-999 (other) Max length 128. |
445
+ | `address` | string | | Optional. Free text address of the customer. For MASAK reporting prefer the structured Addresses list Max length 256. |
446
+ | `street` | string | | Optional. Free text street of the customer Max length 256. |
447
+ | `city` | string | | Optional. Free text city of the customer Max length 256. |
448
+ | `country` | string | | Optional. Free text country of the customer Max length 256. |
449
+ | `addressCountry` | string | | Optional. Free text address country of the customer Max length 256. |
450
+ | `companyType` | string | | Optional. Free text company type of the customer (e.g. Joint Stock Company, Limited Company). Not related to CustomerTypeId Max length 256. |
451
+ | `entityType` | string | | Optional. Free text entity type of the customer (e.g. Bank, Fintech, NGO). Not related to CustomerTypeId Max length 256. |
452
+ | `countriesOfControl` | string | | Optional. Countries of control of the customer, free text (e.g. a comma separated list) Max length 256. |
453
+ | `countriesOfOperation` | string | | Optional. Countries of operation of the customer, free text (e.g. a comma separated list) Max length 256. |
454
+ | `countryOfRegistrationName` | string | | Optional. Country of registration name of the customer Max length 256. |
455
+ | `lastKYCRefreshDate` | date-time | | Optional. Last KYC refresh date of the customer (date only; a value with Z or an offset is read as the organization's date of that instant) |
456
+ | `nextKYCRefreshDate` | date-time | | Optional. Next KYC refresh date of the customer (date only; a value with Z or an offset is read as the organization's date of that instant). When it was never sent it is computed from the review period of the customer's risk level; a sent date is kept when the risk level changes |
457
+ | `identityDocuments` | array of CustomerIdentityDocumentItem | | Optional. Identity documents of the customer. When omitted the existing documents are left untouched; when given (also as an empty list), the list replaces the existing documents |
458
+ | `contacts` | array of CustomerContactItem | | Optional. Contact information of the customer. When omitted the existing contacts are left untouched; when given (also as an empty list), the list replaces the existing contacts |
459
+ | `addresses` | array of CustomerAddressItem | | Optional. Structured addresses of the customer. When omitted the existing addresses are left untouched; when given (also as an empty list), the list replaces the existing addresses |
460
+ | `owners` | array of CustomerOwnerRequest | | Optional. Ownership structure of the customer, sub owners included (see ParentOwnerName). Only applies to customers whose type is not Individual. When omitted the existing ownership records are left untouched; when given, the list is treated as the full current structure and active records that are not in it are deactivated, not deleted. The whole list is validated first; when any entry is invalid nothing is written |
461
+ | `officers` | array of CustomerOfficerRequest | | Optional. Company officers of the customer. Only applies to customers whose type is not Individual. When omitted the existing officer records are left untouched; when given, the active officers are replaced with this list |
462
+ | `tags` | array of TagRequest | | Optional. Tags of the customer. Tag GUIDs can be obtained from GET /api/v2/General/Tags endpoint (Guid field). On create the tags are assigned. On update, when omitted the existing tags are left untouched; when given (also as an empty list), the customer's tags become exactly this list |
463
+ | `autoScreen` | boolean | | Optional. If true, a sanction screening is run for the created customer. Requires the Name Screening product and consumes 1 Name Screening credit Default false. |
464
+ | `searchProfileKey` | string | | Optional. Search profile guid used for the automatic screening. Overrides organization wide settings. Can be obtained from GET /api/v2/General/Scan/SearchProfiles endpoint |
465
+ | `minMatchRate` | integer | | Optional. Minimum fuzzy match rate for the automatic screening. If not given or -1, organization wide setting will be used |
466
+
467
+ ## CustomerResponse
468
+
469
+ | Field | Type | Required | Notes |
470
+ |---|---|---|---|
471
+ | `customerId` | integer | | complead's own ID of the customer. Your own identifier is CustomerNumber. |
472
+ | `customerNumber` | string | | This number is a reference to your own customer number that you provided when creating the customer |
473
+ | `customerName` | string | | Customer name or company name |
474
+ | `customerBirthDate` | date-time | | Customer birth date |
475
+ | `customerOnboardingDate` | date-time | | Customer onboarding date |
476
+ | `customerTypeId` | CustomerTypeEnum | | |
477
+ | `customerStatus` | CustomerStatusEnum | | |
478
+ | `riskScore` | integer | | Customer risk score as integer (rounded from RiskScoreAsDouble) |
479
+ | `riskScoreAsDouble` | number | | Customer risk score as decimal. This score determines the risk level (VeryLow, Low, Medium, High, Critical) based on thresholds from GET /api/v2/General/Customer/RiskThreshold |
480
+ | `riskLevelId` | CustomerRiskLevelEnum | | |
481
+ | `isBlackList` | boolean | | Indicates if the customer is currently on blacklist |
482
+ | `blackListExpiredDate` | date-time | | Expiration date of blacklist. After this date expires, the customer will be automatically removed from blacklist |
483
+ | `isWhiteList` | boolean | | Indicates if the customer is currently on whitelist |
484
+ | `whiteListExpiredDate` | date-time | | Expiration date of whitelist. After this date expires, the customer will be automatically removed from whitelist |
485
+ | `optionalParameters` | array of OptionalParameter | | Dynamic fields of the customer with their values. Field keys can be obtained from GET /api/v2/General/DynamicField endpoint |
486
+ | `isInternal` | boolean | | Optional. External/Internal |
487
+ | `isRiskScoringEnabled` | boolean | | Whether the customer is risk scored (true, uses 1 CRA credit) or kept as a record only (false) |
488
+ | `annualTurnover` | number | | Optional. Annual turnover / income of the customer |
489
+ | `phone` | string | | Optional. Phone of the customer |
490
+ | `email` | string | | Optional. Email of the customer |
491
+ | `registerNumber` | string | | Optional. Register number of the customer |
492
+ | `establishmentYear` | string | | Optional. Establishment Year of the customer |
493
+ | `identityNo` | string | | Optional. Identity Number of the customer |
494
+ | `mccCode` | integer | | Optional. Merchant Category Code (MCC) of the customer |
495
+ | `nationalityIsoCode` | string | | Optional. Country Alpha-2 ISO Code (e.g. TR,AZ,US) |
496
+ | `assignedTeamId` | integer | | Optional. The team ID that the customer case is assigned to |
497
+ | `birthPlace` | string | | Optional. Birth place of the customer |
498
+ | `gender` | string | | Optional. Gender (MASAK code): E (male), K (female), B (unknown) |
499
+ | `motherName` | string | | Optional. Mother name of the customer |
500
+ | `fatherName` | string | | Optional. Father name of the customer |
501
+ | `occupationCode` | string | | Optional. MASAK occupation code |
502
+ | `occupationOther` | string | | Optional. Free text occupation, used with OccupationCode M-999 (other) |
503
+ | `address` | string | | Optional. Free text address of the customer |
504
+ | `street` | string | | Optional. Free text street of the customer |
505
+ | `city` | string | | Optional. Free text city of the customer |
506
+ | `country` | string | | Optional. Free text country of the customer |
507
+ | `addressCountry` | string | | Optional. Free text address country of the customer |
508
+ | `companyType` | string | | Optional. Free text company type of the customer |
509
+ | `entityType` | string | | Optional. Free text entity type of the customer |
510
+ | `countriesOfControl` | string | | Optional. Countries of control of the customer |
511
+ | `countriesOfOperation` | string | | Optional. Countries of operation of the customer |
512
+ | `countryOfRegistrationName` | string | | Optional. Country of registration name of the customer |
513
+ | `lastKYCRefreshDate` | date-time | | Optional. Last KYC refresh date of the customer |
514
+ | `nextKYCRefreshDate` | date-time | | Optional. Next KYC refresh date of the customer |
515
+ | `identityDocuments` | array of CustomerIdentityDocumentItem | | Identity documents of the customer |
516
+ | `contacts` | array of CustomerContactItem | | Contact information of the customer |
517
+ | `addresses` | array of CustomerAddressItem | | Structured addresses of the customer |
518
+ | `tags` | array of CustomerTagItem | | Tags assigned to the customer |
519
+ | `owners` | array of CustomerOwnerResponse | | Optional. Ownership structure of the customer. Empty for customers whose type is Individual |
520
+ | `officers` | array of CustomerOfficerResponse | | Optional. Company officers of the customer. Empty for customers whose type is Individual |
521
+ | `ownershipSummary` | CustomerOwnershipSummaryResponse | | |
522
+ | `screeningScanId` | integer | | Scan id of the automatic screening, if it was run |
523
+ | `screeningMatchCount` | integer | | Number of matches found by the automatic screening, if it was run |
524
+ | `screeningMaxScore` | integer | | Highest match rate found by the automatic screening, if it was run |
525
+ | `screeningSkippedReason` | string | | Reason the automatic screening did not run (missing product, insufficient credit or an error), if applicable |
526
+
527
+ ## CustomerRiskLevelEnum
528
+
529
+ Risk level of the customer
530
+
531
+ | Value | Name |
532
+ |---|---|
533
+ | 0 | Unknown |
534
+ | 1 | VeryLow |
535
+ | 2 | Low |
536
+ | 3 | Medium |
537
+ | 4 | High |
538
+ | 5 | Critical |
539
+
540
+ ## CustomerRiskRequest
541
+
542
+ | Field | Type | Required | Notes |
543
+ |---|---|---|---|
544
+ | `score` | number | yes | Risk score amount to add or deduct |
545
+ | `description` | string | | Description or reason for adding/deducting risk score |
546
+
547
+ ## CustomerRiskResponse
548
+
549
+ | Field | Type | Required | Notes |
550
+ |---|---|---|---|
551
+ | `customerNumber` | string | | Customer number |
552
+ | `riskScore` | number | | Updated total risk score of the customer after adding or deducting risk |
553
+
554
+ ## CustomerScoreBreakdownItem
555
+
556
+ | Field | Type | Required | Notes |
557
+ |---|---|---|---|
558
+ | `sourceType` | CustomerScoreSourceTypeEnum | | |
559
+ | `itemName` | string | | Name of the contributing factor (e.g. a dynamic field name, a score card category/option, 'Scan Risk Score', 'Blacklist Risk Score', 'Add/Deduct Score' or 'Risk Adjustment') |
560
+ | `score` | number | | Score this factor contributes to the total risk score |
561
+ | `triggerValue` | string | | The customer value that triggered this score: the dynamic field's value (e.g. the occupation) for formula scores, or the selected option for score card items. Empty for scan/blacklist/manual/residual items. |
562
+ | `reason` | string | | Human-readable reason/detail for this score: the matched name for scan matches, the blacklist reason, the operator's note for manual adjustments, or the formula/field description for formula scores. May be empty. |
563
+ | `formulaNames` | array of string | | Names of the formula(s) that produced this score. Populated only for formula (dynamic-field-driven) scores; empty otherwise. |
564
+
565
+ ## CustomerScoreBreakdownResponse
566
+
567
+ | Field | Type | Required | Notes |
568
+ |---|---|---|---|
569
+ | `customerNumber` | string | | Customer number |
570
+ | `totalRiskScore` | number | | Total risk score of the customer. Equals the sum of the breakdown item scores. |
571
+ | `riskLevelId` | CustomerRiskLevelEnum | | |
572
+ | `breakdown` | array of CustomerScoreBreakdownItem | | Individual factors that contribute to the total risk score, ordered by score descending |
573
+
574
+ ## CustomerScoreChangeTypeDto
575
+
576
+ | Field | Type | Required | Notes |
577
+ |---|---|---|---|
578
+ | `id` | integer | | |
579
+ | `name` | string | | |
580
+
581
+ ## CustomerScoreSourceTypeEnum
582
+
583
+ | Value | Name |
584
+ |---|---|
585
+ | 0 | Unknown |
586
+ | 1 | Formula |
587
+ | 2 | ScoreCard |
588
+ | 3 | Scan |
589
+ | 4 | Blacklist |
590
+ | 5 | ManualAdjustment |
591
+ | 6 | RiskAdjustment |
592
+ | 7 | Rule |
593
+ | 8 | TransactionRule |
594
+
595
+ ## CustomerScreeningResponse
596
+
597
+ | Field | Type | Required | Notes |
598
+ |---|---|---|---|
599
+ | `createdDate` | date-time | | Date when the screening (scan) was performed. Server time without the X-Time-Zone header; with it, in the requested zone with an explicit offset |
600
+ | `scanId` | integer | | Scan ID. This can be used to retrieve scan details from scan endpoints |
601
+ | `addedRiskScore` | number | | Risk score that was added to the customer as a result of this screening |
602
+
603
+ ## CustomerStatusEnum
604
+
605
+ | Value | Name |
606
+ |---|---|
607
+ | 1 | New |
608
+ | 2 | Reviewed |
609
+ | 3 | Monitoring |
610
+ | 4 | Suspended |
611
+ | 5 | Terminated |
612
+ | 6 | TerminatedAndReported |
613
+
614
+ ## CustomerStatusResponse
615
+
616
+ | Field | Type | Required | Notes |
617
+ |---|---|---|---|
618
+ | `customerNumber` | string | | Customer number |
619
+ | `status` | CustomerStatusEnum | | |
620
+
621
+ ## CustomerTagDto
622
+
623
+ | Field | Type | Required | Notes |
624
+ |---|---|---|---|
625
+ | `guid` | uuid | yes | |
626
+ | `value` | string | yes | |
627
+
628
+ ## CustomerTagItem
629
+
630
+ | Field | Type | Required | Notes |
631
+ |---|---|---|---|
632
+ | `tagGuid` | uuid | | Tag GUID. Can be obtained from GET /api/v2/General/Tags endpoint |
633
+ | `value` | string | | Tag value |
634
+
635
+ ## CustomerTagResponse
636
+
637
+ | Field | Type | Required | Notes |
638
+ |---|---|---|---|
639
+ | `customerNumber` | string | | Customer number |
640
+ | `tags` | array of CustomerTagDto | | Array of tags assigned to the customer. Tag GUIDs can be used in other operations |
641
+
642
+ ## CustomerTypeEnum
643
+
644
+ Customer Type
645
+
646
+ | Value | Name |
647
+ |---|---|
648
+ | 1 | Individual |
649
+ | 2 | Entity |
650
+ | 3 | Private |
651
+ | 4 | Unknown |
652
+
653
+ ## FileAttachmentDTO
654
+
655
+ | Field | Type | Required | Notes |
656
+ |---|---|---|---|
657
+ | `createdDate` | date-time | | |
658
+ | `dataId` | integer | | |
659
+ | `organizationId` | integer | | |
660
+ | `fileName` | string | | |
661
+ | `filePath` | string | | |
662
+ | `fileBucketPath` | string | | |
663
+ | `fileExtension` | string | | |
664
+ | `fileBase64` | string | | |
665
+ | `createdUserName` | string | | |
666
+ | `guid` | string | | |
667
+ | `isExecute` | boolean | | |
668
+ | `minMatchRate` | integer | | |
669
+ | `maxMatchRate` | integer | | |
670
+ | `entityType` | integer | | |
671
+ | `localEntityType` | integer | | |
672
+ | `whiteEntityType` | integer | | |
673
+ | `searchType` | integer | | |
674
+ | `defaultFuzzy` | string | | |
675
+ | `ogPeriod` | integer | | |
676
+ | `searchProfileId` | integer | | |
677
+ | `apiUserName` | string | | |
678
+ | `transactionId` | integer | | |
679
+ | `customerTagIds` | array of integer | | |
680
+ | `autoScreen` | boolean | | |
681
+ | `screeningMinMatchRate` | integer | | |
682
+ | `id` | integer | | |
683
+ | `isDeleted` | boolean | | |
684
+ | `modifiedDate` | date-time | | |
685
+ | `createdUserId` | integer | | |
686
+ | `modifiedUserId` | integer | | |
687
+ | `ipAddress` | string | | |
688
+
689
+ ## GetCustomerScoreHistoryResponseModel
690
+
691
+ | Field | Type | Required | Notes |
692
+ |---|---|---|---|
693
+ | `customerID` | integer | | |
694
+ | `customerNumber` | string | | |
695
+ | `riskScoreHistory` | array of RiskScoreHistoryResponseModel | | |
696
+
697
+ ## KycFormInvitationRequest
698
+
699
+ | Field | Type | Required | Notes |
700
+ |---|---|---|---|
701
+ | `templateId` | integer | yes | Id of an active KYC form of the organization. |
702
+ | `recipientName` | string | | Name shown in the invitation. Optional. |
703
+ | `email` | string | | Email address the form link is sent to. Email or Phone is required. |
704
+ | `phone` | string | | Mobile phone number in international format (e.g. +905321234567) the form link is sent to by SMS. Email or Phone is required. |
705
+
706
+ ## KycFormInvitationResponse
707
+
708
+ | Field | Type | Required | Notes |
709
+ |---|---|---|---|
710
+ | `invitationId` | integer | | |
711
+ | `customerNumber` | string | | |
712
+ | `emailQueued` | boolean | | |
713
+ | `smsSent` | boolean | | |
714
+ | `smsError` | string | | |
715
+
716
+ ## KycFormInvitationStatusResponse
717
+
718
+ | Field | Type | Required | Notes |
719
+ |---|---|---|---|
720
+ | `invitationId` | integer | | |
721
+ | `customerNumber` | string | | |
722
+ | `templateId` | integer | | |
723
+ | `formName` | string | | |
724
+ | `status` | string | | Sent, Opened, Submitted, Approved, Rejected, Sent Back, Cancelled or Expired. |
725
+ | `createdDate` | date-time | | |
726
+ | `emailSentAt` | date-time | | |
727
+ | `smsSentAt` | date-time | | |
728
+ | `cancelledAt` | date-time | | |
729
+ | `submissionId` | integer | | |
730
+ | `submissionReference` | string | | |
731
+ | `submittedAt` | date-time | | |
732
+ | `reviewedAt` | date-time | | |
733
+
734
+ ## OptionalParameter
735
+
736
+ This is used for dynamic fields
737
+
738
+ | Field | Type | Required | Notes |
739
+ |---|---|---|---|
740
+ | `key` | string | | Dynamic field key |
741
+ | `value` | string | | The value for the dynamic field. If the field's type is an option, send the option Key listed by GET /api/v2/General/DynamicField (the option GUID is accepted too); separate multiple options with commas. A value that matches no option is not saved and is reported in ExtraInfo |
742
+
743
+ ## PartialHistoryDTO
744
+
745
+ | Field | Type | Required | Notes |
746
+ |---|---|---|---|
747
+ | `type` | integer | | |
748
+ | `accountId` | integer | | |
749
+ | `customerId` | integer | | |
750
+ | `transactionId` | integer | | |
751
+ | `historyTransactionId` | string | | |
752
+ | `activityLogs` | array of array of ActivityLogDTO | | |
753
+ | `attachments` | array of FileAttachmentDTO | | |
754
+ | `hasMore` | boolean | | |
755
+ | `nextSkip` | integer | | |
756
+
757
+ ## RiskScoreHistoryResponseModel
758
+
759
+ | Field | Type | Required | Notes |
760
+ |---|---|---|---|
761
+ | `date` | string | | |
762
+ | `riskScore` | integer | | |
763
+ | `description` | string | | |
764
+ | `riskScoreAsDouble` | number | | |
765
+ | `changeType` | integer | | |
766
+ | `changeTypeName` | string | | |
767
+ | `changedFieldId` | integer | | |
768
+ | `changedFieldName` | string | | |
769
+ | `scoreDelta` | number | | |
770
+
771
+ ## RiskThreshold
772
+
773
+ | Field | Type | Required | Notes |
774
+ |---|---|---|---|
775
+ | `veryLow` | number | | Range 0..99999.999. |
776
+ | `low` | number | | Range 0..99999.999. |
777
+ | `medium` | number | | Range 0..99999.999. |
778
+ | `high` | number | | Range 0..99999.999. |
779
+ | `critical` | number | | Range 0..99999.999. |
780
+
781
+ ## TagRequest
782
+
783
+ | Field | Type | Required | Notes |
784
+ |---|---|---|---|
785
+ | `tagGuid` | uuid | yes | Can be retrieved from /api/v2/General/Tags |