-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdossierdata.customer.openapi.yaml
More file actions
3406 lines (3374 loc) · 95.6 KB
/
Copy pathdossierdata.customer.openapi.yaml
File metadata and controls
3406 lines (3374 loc) · 95.6 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.0.0
info:
title: DossierData Customer API
version: ""
description: Welcome to the **DossierData Customer API**. This API provides access to a all data
of you as a customer from a tenant within DossierData.
paths:
/protected:
get:
responses:
200:
description: OK
headers: { }
content:
application/json:
schema:
type: object
properties:
status:
type: string
required:
- status
examples:
response:
value:
status: ok
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: Query Example
description: ""
tags:
- Authentication
parameters:
- $ref: '#/components/parameters/JsonHeader'
- name: token
in: query
description: ""
required: true
example: vr5HmMkzlxKE70W1y4MibiJUusZwZC25NOVBEx3BD1
schema:
type: string
/oauth/access_token#customer_password:
post:
responses:
200:
description: OK
headers: { }
content:
application/json:
schema:
type: object
properties:
access_token:
type: string
description: Your new oauth access token
token_type:
type: string
description: The token type
expires_in:
type: number
description: The number of seconds this token is valid for
refresh_token:
type: string
description: The refresh token that can be used to request a new access
token when the old one expires or is about to expire.
examples:
response:
value:
access_token: A7NoRur7CJVbhRPGKjA2l4uCenFRgpR4klOgtMu0
token_type: Bearer
expires_in: 86400
refresh_token: 7jQTFMTE9ZVpu5CvHdYPQgIBwdynu53qlagx7uLK
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: Access token
description: Requesting the oauth access token.
tags:
- Authorization
parameters:
- $ref: '#/components/parameters/JsonHeader'
requestBody:
content:
application/json:
schema:
type: object
properties:
client_id:
type: string
description: Your client id
client_secret:
type: string
description: Your client secret
grant_type:
type: string
description: The grant type
username:
type: string
description: The users username
password:
type: string
description: The users password
scope:
type: string
description: The requested scopes
required:
- client_id
- client_secret
- grant_type
- username
- password
- scope
example:
client_id: d5fb86ec-60a0-49fe-95710-3615d74843ac
client_secret: 4d768389b2e9e9d5584a165204d72235c3c75401
grant_type: customer_password
username: johndoe
password: secret
scope: customer_api:customer customer_api:tenant
/oauth/access_token#refresh_token:
post:
responses:
200:
description: OK
headers: { }
content:
application/json:
schema:
type: object
properties:
access_token:
type: string
description: Your new oauth access token
token_type:
type: string
description: The token type
expires_in:
type: number
description: The number of seconds this token is valid for
refresh_token:
type: string
description: The refresh token that can be used to request a new access
token when the old one expires or is about to expire.
examples:
response:
value:
access_token: A7NoRur7CJVbhRPGKjA2l4uCenFRgpR4klOgtMu0
token_type: Bearer
expires_in: 86400
refresh_token: 7jQTFMTE9ZVpu5CvHdYPQgIBwdynu53qlagx7uLK
400:
$ref: '#/components/responses/BadScopeRequest'
401:
$ref: '#/components/responses/ClientUnauthorized'
summary: Refresh Token
description: Refreshing an oauth access token by the refresh token.
tags:
- Authorization
parameters:
- $ref: '#/components/parameters/JsonHeader'
requestBody:
content:
application/json:
schema:
type: object
properties:
grant_type:
type: string
description: Specify the refresh grant type
refresh_token:
type: string
description: The refresh token provided to you when you first requested
the access token.
required:
- grant_type
- refresh_token
example:
grant_type: refresh_token
refresh_token: 7jQTFMTE9ZVpu5CvHdYPQgIBwdynu53qlagx7uLK
/customer:
get:
responses:
200:
$ref: '#/components/responses/Customer'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all resources
description: Get a the current customer.
tags:
- Customer
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:customer
/customer/partner:
get:
responses:
200:
$ref: '#/components/responses/Customer'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all resources
description: Get a the current customer.
tags:
- Customer
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:customer
/customer/children:
get:
responses:
200:
$ref: '#/components/responses/Customer'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all resources
description: Get a the current customer.
tags:
- Customer
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:customer
/customer/family:
get:
responses:
200:
$ref: '#/components/responses/Family'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all family members
description: Get a the current family.
tags:
- Customer
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:customer
/customer/messages:
get:
responses:
200:
$ref: '#/components/responses/MessagesResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all family members
description: Get a the current family.
tags:
- Customer
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:customer_messages
post:
responses:
200:
$ref: '#/components/responses/PostMessageResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all family members
description: Get a the current family.
tags:
- Customer
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:customer_messages
/customer/messages/:message_id/read:
post:
responses:
200:
$ref: '#/components/responses/PostMessageResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all family members
description: Get a the current family.
tags:
- Customer
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:customer_messages
/document:
get:
responses:
200:
$ref: '#/components/responses/DocumentsTreeResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all resources
description: Get a paginated list of all documents.
tags:
- Document
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:documents
/document/upload:
post:
responses:
200:
$ref: '#/components/responses/Created'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: Upload a document
description: Upload a document.
tags:
- Document
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:documents
requestBody:
$ref: "#/components/requestBodies/CreateDocument"
/document/:document_id:
get:
responses:
200:
$ref: '#/components/responses/DocumentResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: Download a resources
description: Download a document.
tags:
- Document
parameters:
- $ref: '#/components/parameters/JsonHeader'
- $ref: '#/components/parameters/DocumentId'
security:
- oauth2:
- customer_api:documents
/hdn/company:
get:
summary: Paginate companies
description: Retrieve a paginated list of HDN companies.
tags:
- Company
parameters:
- $ref: '#/components/parameters/JsonHeader'
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
responses:
200:
description: Paginated list of companies
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedCompanies'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
/hdn/company/{hdnCompanyId}:
get:
summary: Show a company by ID
description: Retrieve a specific company by its HDN Company ID (numeric or hashed).
tags:
- Company
parameters:
- $ref: '#/components/parameters/JsonHeader'
- name: hdnCompanyId
in: path
required: true
schema:
type: string
description: The HDN Company ID (supports both numeric and string IDs).
responses:
200:
description: A specific HDN company
content:
application/json:
schema:
$ref: '#/components/schemas/Company'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
404:
$ref: '#/components/responses/NotFound'
/hdn/company/by_hdn_code/{hdnCode}:
get:
summary: Show a company by HDN code
description: Retrieve a specific company by its HDN code (2-3 letters).
tags:
- Company
parameters:
- $ref: '#/components/parameters/JsonHeader'
- name: hdnCode
in: path
required: true
schema:
type: string
pattern: '[a-zA-Z]{2,3}'
description: The HDN code (2-3 letters).
responses:
200:
description: A specific company based on HDN code
content:
application/json:
schema:
$ref: '#/components/schemas/Company'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
404:
$ref: '#/components/responses/NotFound'
/hdn/company/{hdnCompanyId}/labels:
get:
summary: Paginate labels for a specific company by ID
description: Retrieve a paginated list of labels for a specific HDN company by ID.
tags:
- Company Labels
parameters:
- $ref: '#/components/parameters/JsonHeader'
- name: hdnCompanyId
in: path
required: true
schema:
type: string
description: The HDN Company ID (supports both numeric and string IDs).
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
responses:
200:
description: Paginated list of labels for a specific company
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedCompanyLabels'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
/hdn/company/by_hdn_code/{hdnCode}/labels:
get:
summary: Paginate labels for a specific company by HDN code
description: Retrieve a paginated list of labels for a specific HDN company by its HDN code.
tags:
- Company Labels
parameters:
- $ref: '#/components/parameters/JsonHeader'
- name: hdnCode
in: path
required: true
schema:
type: string
pattern: '[a-zA-Z]{2,3}'
description: The HDN code (2-3 letters).
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
responses:
200:
description: Paginated list of labels for a specific company based on HDN code
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedCompanyLabels'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
/hdn/company/labels/{hdnCompanyLabelId}:
get:
summary: Show a specific label by label ID
description: Retrieve a specific label by its HDN company label ID.
tags:
- Company Labels
parameters:
- $ref: '#/components/parameters/JsonHeader'
- name: hdnCompanyLabelId
in: path
required: true
schema:
type: string
description: The HDN Company Label ID (supports both numeric and string IDs).
responses:
200:
description: A specific company label
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyLabel'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
404:
$ref: '#/components/responses/NotFound'
/living:
get:
responses:
200:
$ref: '#/components/responses/LivingResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all family members
description: Get a the current family.
tags:
- Living
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:living
/mortgage:
get:
responses:
200:
$ref: '#/components/responses/Mortgage'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all family members
description: Get a the current family.
tags:
- Mortgage
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:mortgages
/mortgage/:mortgage_id/document:
get:
responses:
200:
$ref: '#/components/responses/DocumentResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all documents
description: Get all publicized the documents linked to this mortgage.
tags:
- Mortgage
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:mortgages
- customer_api:documents
/mortgage/:mortgage_id/progress:
get:
responses:
200:
$ref: '#/components/responses/MortgageProgressResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all progress items
description: Get all progress items linked to this mortgage.
tags:
- Mortgage
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:customer
- customer_api:mortgages
/damage:
get:
responses:
200:
$ref: '#/components/responses/Damage'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all family members
description: Get a the current family.
tags:
- Damage
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:damages
/damage/:damage_id/document:
get:
responses:
200:
$ref: '#/components/responses/DocumentResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all family members
description: Get a the current family.
tags:
- Damage
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:damages
- customer_api:documents
/policy:
get:
responses:
200:
$ref: '#/components/responses/PolicyResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all policies
description: Get a the current customers policies.
tags:
- Policy
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:policies
/policy/:policy_id/document:
get:
responses:
200:
$ref: '#/components/responses/DocumentResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all policy documents
description: Get a the current customers policy document.
tags:
- Policy
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:policies
- customer_api:documents
/tenant:
get:
responses:
200:
$ref: '#/components/responses/TenantInfoResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: Get tenant info
description: Get the current tenant info, e.g. name, logo's, slogans, etc.
tags:
- Tenant
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:tenant
/task:
get:
responses:
200:
$ref: '#/components/responses/TaskResponse'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
summary: List all tasks
description: Get the current customers tasks.
tags:
- Task
parameters:
- $ref: '#/components/parameters/JsonHeader'
security:
- oauth2:
- customer_api:tasks
tags:
- name: Authentication
description: >-
This section describes the authentication process.
### OAuth2
Authentication is done based on OAuth2. Tokens have an expiration time of ***24 hours*** and can be refreshed
***30 days*** after they were generated.
#### Client
To use the api you need to request an OAuth client with which you can request an access token.
In your request you need to supply the following:
* Company details
* A callback URL for OAuth
* A detailed description of what you plan to use the API for
Please send your OAuth Client request to `info@dossierdata.nl`.
#### Login
When you've received your client credentials, you can prompt your users for an access token access. They need to login
with their DossierData account and approve that your client can access their data. After this process you obtain an
access key.
### Authentication
Requesting any endpoint except the authentication will require you to send an access token, this can be done in
two-ways. Either by Header of in the Query of the request.
- name: Authorization
description: |-
This section lists basic information about the authorization process.
The two requests that you need for the authorization process are:
+ `/oauth/authorize`
+ `/oauth/access_token`
- name: Customer
description: Endpoint for Customer resource management
servers:
- url: https://{subdomain}.ddat.nl/api/customer
variables:
subdomain:
default: test
components:
requestBodies:
Customer:
content:
application/json:
schema:
$ref: '#/components/schemas/Customer'
CreateDocument:
content:
multipart/form-data:
schema:
type: object
required:
- name
- content
properties:
name:
type: string
description: Name of the document
content:
type: string
format: binary
description: The binary content of the file
examples:
CreateDocumentExample:
value:
name: 'New document name'
content: 'binary document content'
securitySchemes:
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://test.ddat.nl/api/v1/oauth/authorize
tokenUrl: https://test.ddat.nl/api/v1/oauth/access_token
scopes:
'customer_api:addresses': View addresses
'customer_api:customer': View customer info
'customer_api:customer_messages': View customer messages
'customer_api:damages': View damages
'customer_api:documents': View documents
'customer_api:income': View income
'customer_api:living': View current living condition
'customer_api:mortgages': View mortgages
'customer_api:notes': View notes
'customer_api:obligations': View obligations
'customer_api:policies': View policies
'customer_api:possessions': View posessions
'customer_api:retirement': View retirement
'customer_api:tasks': View tasks
'customer_api:tenant': View tenant info
'customer_api:update_customer': Update customer
schemas:
Created:
type: object
properties:
success:
type: boolean
description: Success true or false
id:
type: string
description: Id of stored data (can be empty on array inserts)
Deleted:
type: object
properties:
success:
type: boolean
description: Success true or false
id:
type: string
description: Id of deleted data (can be empty on array inserts)
Updated:
type: object
properties:
success:
type: boolean
description: Success true or false
id:
type: string
description: Id of updated data (can be empty on array inserts)
Meta:
type: object
properties:
pagination:
$ref: '#/components/schemas/Pagination'
Pagination:
type: object
properties:
total:
type: number
description: Total number of objects
count:
type: number
description: Object on this page
per_page:
type: number
description: Object per page
current:
type: number
description: Current page number
total_pages:
type: number
description: Total number of pages
links:
type: object
description: Array of meta links
properties:
self:
type: string
description: Link to the current page
first:
type: string
description: Link to the first page
prev:
type: string
description: Link to the previous page
next:
type: string
description: Link to the next page
last:
type: string
description: Link to the last page
Customer:
type: object
required:
- first_name
- last_name
- date_of_birth
properties:
id:
type: string
description: The id of the customer.
full_name:
type: string
description: Formatted full name of the customer, e.g. "Initials (First names) suffix Last name"
initials:
type: string
description: Initials of the customer.
first_name:
type: string
description: FirstName of the customer.
suffix:
type: string
description: Suffix of the customer.
last_name:
type: string
description: LastName of the customer.
date_of_birth:
type: string
description: Date of birth of the customer according to ISO8601.
age:
type: number
description: Age of the customer.
sex:
$ref: "#/components/schemas/GenderEnum"
marital_status:
$ref: "#/components/schemas/MaritalStatusEnum"
email_address:
type: string
description: Email address of the customer.
phone:
type: string
description: The customer's primary phone number.
mobile:
type: string
description: The customer's primary mobile number.
retirement_date:
type: string
description: Date of retrirement of the customer according to ISO8601.
username:
type: string
description: Username of the customer.
Family:
type: object
properties:
customer:
$ref: '#/components/responses/Customer'
partner:
$ref: '#/components/responses/Customer'
children:
type: array
items:
$ref: '#/components/responses/Customer'
Damage:
type: object
required:
- customer_id
properties:
customer_id:
type: number
description: ID of customer
damage_number:
type: string
description: Number of damage
licenseplate:
type: string
description: License plate of car of the insuree involved in damage
policy_id:
type: number
description: ID of policy
insurance_branche_code:
type: number
description: Branche code of insurance company
policy_contractNumber:
type: string
description: Contract number of policy
insurance_agency_id:
type: number
description: ID of insurance agency
settled:
type: boolean
description: Is the damage settled?
date:
type: string
description: Date when damage occured
blame:
type: boolean
description: Is the insuree to blame?
cause:
type: string
description: Cause of the damage
notes:
type: string
description: Notes belonging to damage
agency_id:
type: number
description: ID of agency
agency_contact_id:
type: number
description: ID of contact of agency
agency_contact:
type: string