@@ -12983,6 +12983,7 @@ paths:
12983
12983
parameters:
12984
12984
- $ref: '#/components/parameters/X-API-TOKEN'
12985
12985
- $ref: '#/components/parameters/X-Requested-With'
12986
+ - $ref: '#/components/parameters/index'
12986
12987
- $ref: '#/components/parameters/client_include'
12987
12988
requestBody:
12988
12989
description: Client object that needs to be added to the company
@@ -13038,6 +13039,7 @@ paths:
13038
13039
parameters:
13039
13040
- $ref: '#/components/parameters/X-API-TOKEN'
13040
13041
- $ref: '#/components/parameters/X-Requested-With'
13042
+ - $ref: '#/components/parameters/index'
13041
13043
- $ref: '#/components/parameters/client_include'
13042
13044
- name: id
13043
13045
in: path
@@ -13075,7 +13077,12 @@ paths:
13075
13077
tags:
13076
13078
- clients
13077
13079
summary: 'Update client'
13078
- description: 'Handles the updating of a client by id'
13080
+ description: |
13081
+ Handles the updating of a client by id
13082
+
13083
+ > 🚨 Important
13084
+ When creating (or updating) a client you must include the child contacts with all mutating requests. Client contacts cannot be modified in isolation.
13085
+
13079
13086
x-codeSamples:
13080
13087
- lang: php
13081
13088
label: php
@@ -13113,6 +13120,7 @@ paths:
13113
13120
parameters:
13114
13121
- $ref: '#/components/parameters/X-API-TOKEN'
13115
13122
- $ref: '#/components/parameters/X-Requested-With'
13123
+ - $ref: '#/components/parameters/index'
13116
13124
- $ref: '#/components/parameters/client_include'
13117
13125
- name: id
13118
13126
in: path
@@ -13157,7 +13165,14 @@ paths:
13157
13165
tags:
13158
13166
- clients
13159
13167
summary: 'Delete client'
13160
- description: 'Handles the deletion of a client by id'
13168
+ description: |
13169
+ Handles the deletion of a client by id
13170
+
13171
+ > ❗ Note
13172
+ Deleting a client does not purge the client from the system. The delete action will remove the clients data from all
13173
+ views in the application but keep it all on file. A Client can be laterrestored reversing this action. To permanently wipe a client and
13174
+ all of their records from the system, use the /purge route
13175
+
13161
13176
x-codeSamples:
13162
13177
- lang: php
13163
13178
label: php
@@ -13175,6 +13190,7 @@ paths:
13175
13190
parameters:
13176
13191
- $ref: '#/components/parameters/X-API-TOKEN'
13177
13192
- $ref: '#/components/parameters/X-Requested-With'
13193
+ - $ref: '#/components/parameters/index'
13178
13194
- $ref: '#/components/parameters/client_include'
13179
13195
- name: id
13180
13196
in: path
@@ -13214,7 +13230,8 @@ paths:
13214
13230
parameters:
13215
13231
- $ref: '#/components/parameters/X-API-TOKEN'
13216
13232
- $ref: '#/components/parameters/X-Requested-With'
13217
- - $ref: '#/components/parameters/include'
13233
+ - $ref: '#/components/parameters/index'
13234
+ - $ref: '#/components/parameters/client_include'
13218
13235
- name: id
13219
13236
in: path
13220
13237
description: 'The Client Hashed ID'
@@ -13257,6 +13274,7 @@ paths:
13257
13274
parameters:
13258
13275
- $ref: '#/components/parameters/X-API-TOKEN'
13259
13276
- $ref: '#/components/parameters/X-Requested-With'
13277
+ - $ref: '#/components/parameters/index'
13260
13278
- $ref: '#/components/parameters/client_include'
13261
13279
responses:
13262
13280
200:
@@ -13349,6 +13367,7 @@ paths:
13349
13367
- $ref: '#/components/parameters/X-API-TOKEN'
13350
13368
- $ref: '#/components/parameters/X-Requested-With'
13351
13369
- $ref: '#/components/parameters/index'
13370
+ - $ref: '#/components/parameters/client_include'
13352
13371
requestBody:
13353
13372
description: 'Bulk action array'
13354
13373
required: true
@@ -13406,6 +13425,7 @@ paths:
13406
13425
parameters:
13407
13426
- $ref: '#/components/parameters/X-API-TOKEN'
13408
13427
- $ref: '#/components/parameters/X-Requested-With'
13428
+ - $ref: '#/components/parameters/index'
13409
13429
- $ref: '#/components/parameters/client_include'
13410
13430
- name: id
13411
13431
in: path
@@ -13425,10 +13445,24 @@ paths:
13425
13445
_method:
13426
13446
type: string
13427
13447
example: POST
13428
- documents:
13448
+ documents[] :
13429
13449
type: array
13450
+ description: |
13451
+ Array of files to upload. The files should be sent with the key name 'documents[]'.
13452
+
13453
+ Supported file types:
13454
+ - PDF (.pdf)
13455
+ - Word (.doc, .docx)
13456
+ - Excel (.xls, .xlsx)
13457
+ - Images (.jpg, .jpeg, .png)
13458
+ - Text (.txt)
13459
+
13460
+ Maximum file size: 20MB per file
13430
13461
items:
13462
+ type: string
13431
13463
format: binary
13464
+ description: The file contents
13465
+ example: "@/path/to/document.pdf"
13432
13466
responses:
13433
13467
200:
13434
13468
description: 'Returns the client object'
@@ -13461,8 +13495,8 @@ paths:
13461
13495
description: |
13462
13496
Handles purging a client.
13463
13497
13464
- Please note this is a destructive action.
13465
-
13498
+ > ❗ Note
13499
+ This is a destructive action.
13466
13500
This action will remove all data associated with the client and cannot be undone.
13467
13501
x-codeSamples:
13468
13502
- lang: php
@@ -13483,7 +13517,6 @@ paths:
13483
13517
- $ref: '#/components/parameters/X-API-TOKEN'
13484
13518
- $ref: '#/components/parameters/X-Requested-With'
13485
13519
- $ref: '#/components/parameters/X-API-PASSWORD'
13486
- - $ref: '#/components/parameters/client_include'
13487
13520
- name: id
13488
13521
in: path
13489
13522
description: 'The Client Hashed ID'
@@ -13523,6 +13556,10 @@ paths:
13523
13556
The id parameter is the client that will be the primary client after the merge has completed.
13524
13557
13525
13558
The mergeable_client_hashed_id is the client that will be merged into the primary client, this clients records will be updated and associated with the primary client.
13559
+
13560
+ > 🚨 **Important**
13561
+ This action requires elevated permissions, please note the X-API-PASSWORD header requirements for this route.
13562
+
13526
13563
x-codeSamples:
13527
13564
- lang: php
13528
13565
label: php
@@ -13540,8 +13577,9 @@ paths:
13540
13577
parameters:
13541
13578
- $ref: '#/components/parameters/X-API-TOKEN'
13542
13579
- $ref: '#/components/parameters/X-Requested-With'
13543
- - $ref: '#/components/parameters/client_include'
13544
13580
- $ref: '#/components/parameters/X-API-PASSWORD'
13581
+ - $ref: '#/components/parameters/index'
13582
+ - $ref: '#/components/parameters/client_include'
13545
13583
- name: id
13546
13584
in: path
13547
13585
description: 'The Client Hashed ID'
@@ -13614,7 +13652,8 @@ paths:
13614
13652
parameters:
13615
13653
- $ref: '#/components/parameters/X-API-TOKEN'
13616
13654
- $ref: '#/components/parameters/X-Requested-With'
13617
- - $ref: '#/components/parameters/include'
13655
+ - $ref: '#/components/parameters/index'
13656
+ - $ref: '#/components/parameters/client_include'
13618
13657
requestBody:
13619
13658
description: 'Statement Options'
13620
13659
required: true
@@ -13677,7 +13716,8 @@ paths:
13677
13716
parameters:
13678
13717
- $ref: '#/components/parameters/X-API-TOKEN'
13679
13718
- $ref: '#/components/parameters/X-Requested-With'
13680
- - $ref: '#/components/parameters/include'
13719
+ - $ref: '#/components/parameters/index'
13720
+ - $ref: '#/components/parameters/client_include'
13681
13721
- name: bounce_id
13682
13722
in: path
13683
13723
description: 'The postmark Bounce ID reference'
@@ -13720,7 +13760,8 @@ paths:
13720
13760
parameters:
13721
13761
- $ref: '#/components/parameters/X-API-TOKEN'
13722
13762
- $ref: '#/components/parameters/X-Requested-With'
13723
- - $ref: '#/components/parameters/include'
13763
+ - $ref: '#/components/parameters/index'
13764
+ - $ref: '#/components/parameters/client_include'
13724
13765
- name: client
13725
13766
in: path
13726
13767
description: 'The Client Hashed ID reference'
0 commit comments