@teamleader/focus-api-specification 1.183.0 → 1.184.0

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.
@@ -3,7 +3,7 @@ info:
3
3
  title: Teamleader API
4
4
  description: This is the documentation of the Teamleader Focus API. If you have any feedback, or are you missing functionality to support your use case? Let us know via [api@teamleader.eu](mailto:api@teamleader.eu).
5
5
  contact: {}
6
- version: 1.183.0
6
+ version: 1.184.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -3579,7 +3579,7 @@ paths:
3579
3579
  includes:
3580
3580
  type: string
3581
3581
  description: Comma-separated list of optional includes
3582
- example: custom_fields,price_list
3582
+ example: custom_fields
3583
3583
  - example:
3584
3584
  filter:
3585
3585
  email:
@@ -3600,7 +3600,7 @@ paths:
3600
3600
  number: 1
3601
3601
  sort:
3602
3602
  - field: added_at
3603
- includes: custom_fields,price_list
3603
+ includes: custom_fields
3604
3604
  example:
3605
3605
  filter:
3606
3606
  email:
@@ -3622,7 +3622,7 @@ paths:
3622
3622
  number: 1
3623
3623
  sort:
3624
3624
  - field: added_at
3625
- includes: custom_fields,price_list
3625
+ includes: custom_fields
3626
3626
  required: false
3627
3627
  responses:
3628
3628
  '200':
@@ -3808,6 +3808,7 @@ paths:
3808
3808
  description: Only included with request parameter `includes=custom_fields`
3809
3809
  price_list:
3810
3810
  type: object
3811
+ nullable: true
3811
3812
  properties:
3812
3813
  type:
3813
3814
  type: string
@@ -3815,7 +3816,7 @@ paths:
3815
3816
  id:
3816
3817
  type: string
3817
3818
  example: 27261187-19c9-081f-b833-021fa5873129
3818
- description: Only included with request parameter `includes=price_list`
3819
+ description: Only included when the account has access to price lists. `null` when no price list is set on the contact.
3819
3820
  description: ''
3820
3821
  - example:
3821
3822
  data:
@@ -4420,6 +4421,9 @@ paths:
4420
4421
  marketing_mails_consent:
4421
4422
  type: boolean
4422
4423
  example: false
4424
+ price_list_id:
4425
+ type: string
4426
+ example: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
4423
4427
  - example:
4424
4428
  first_name: John
4425
4429
  last_name: Smith
@@ -4454,6 +4458,7 @@ paths:
4454
4458
  - id: bf6765de-56eb-40ec-ad14-9096c5dc5fe1
4455
4459
  value: '092980616'
4456
4460
  marketing_mails_consent: false
4461
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
4457
4462
  example:
4458
4463
  first_name: John
4459
4464
  last_name: Smith
@@ -4488,6 +4493,7 @@ paths:
4488
4493
  - id: bf6765de-56eb-40ec-ad14-9096c5dc5fe1
4489
4494
  value: '092980616'
4490
4495
  marketing_mails_consent: false
4496
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
4491
4497
  required: true
4492
4498
  responses:
4493
4499
  '201':
@@ -4643,6 +4649,11 @@ paths:
4643
4649
  marketing_mails_consent:
4644
4650
  type: boolean
4645
4651
  example: false
4652
+ price_list_id:
4653
+ type: string
4654
+ description: Pass `null` to remove the price list from the contact
4655
+ nullable: true
4656
+ example: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
4646
4657
  - example:
4647
4658
  id: 76c9d03c-ec5c-4b21-9fc6-7ffee488b12d
4648
4659
  first_name: John
@@ -4678,6 +4689,7 @@ paths:
4678
4689
  - id: bf6765de-56eb-40ec-ad14-9096c5dc5fe1
4679
4690
  value: '092980616'
4680
4691
  marketing_mails_consent: false
4692
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
4681
4693
  example:
4682
4694
  id: 76c9d03c-ec5c-4b21-9fc6-7ffee488b12d
4683
4695
  first_name: John
@@ -4713,6 +4725,7 @@ paths:
4713
4725
  - id: bf6765de-56eb-40ec-ad14-9096c5dc5fe1
4714
4726
  value: '092980616'
4715
4727
  marketing_mails_consent: false
4728
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
4716
4729
  required: true
4717
4730
  responses:
4718
4731
  '204':
@@ -5110,7 +5123,7 @@ paths:
5110
5123
  includes:
5111
5124
  type: string
5112
5125
  description: Comma-separated list of optional includes
5113
- example: custom_fields,price_list
5126
+ example: custom_fields
5114
5127
  - example:
5115
5128
  filter:
5116
5129
  email:
@@ -5132,7 +5145,7 @@ paths:
5132
5145
  number: 1
5133
5146
  sort:
5134
5147
  - field: name
5135
- includes: custom_fields,price_list
5148
+ includes: custom_fields
5136
5149
  example:
5137
5150
  filter:
5138
5151
  email:
@@ -5155,7 +5168,7 @@ paths:
5155
5168
  number: 1
5156
5169
  sort:
5157
5170
  - field: name
5158
- includes: custom_fields,price_list
5171
+ includes: custom_fields
5159
5172
  required: false
5160
5173
  responses:
5161
5174
  '200':
@@ -5296,6 +5309,7 @@ paths:
5296
5309
  description: Only included with request parameter `includes=custom_fields`
5297
5310
  price_list:
5298
5311
  type: object
5312
+ nullable: true
5299
5313
  properties:
5300
5314
  type:
5301
5315
  type: string
@@ -5303,7 +5317,7 @@ paths:
5303
5317
  id:
5304
5318
  type: string
5305
5319
  example: 27261187-19c9-081f-b833-021fa5873129
5306
- description: Only included with request parameter `includes=price_list`
5320
+ description: Only included when the account has access to price lists. `null` when no price list is set on the company.
5307
5321
  description: ''
5308
5322
  - example:
5309
5323
  data:
@@ -5847,6 +5861,9 @@ paths:
5847
5861
  type: string
5848
5862
  - example: EUR
5849
5863
  type: string
5864
+ price_list_id:
5865
+ type: string
5866
+ example: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
5850
5867
  - example:
5851
5868
  name: Pied Piper
5852
5869
  business_type_id: fd48d4a3-b9dc-4eac-8071-5889c9f21e5d
@@ -5881,6 +5898,7 @@ paths:
5881
5898
  value: '092980616'
5882
5899
  marketing_mails_consent: false
5883
5900
  preferred_currency: EUR
5901
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
5884
5902
  example:
5885
5903
  name: Pied Piper
5886
5904
  business_type_id: fd48d4a3-b9dc-4eac-8071-5889c9f21e5d
@@ -5915,6 +5933,7 @@ paths:
5915
5933
  value: '092980616'
5916
5934
  marketing_mails_consent: false
5917
5935
  preferred_currency: EUR
5936
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
5918
5937
  required: true
5919
5938
  responses:
5920
5939
  '201':
@@ -6063,6 +6082,9 @@ paths:
6063
6082
  - example: EUR
6064
6083
  nullable: true
6065
6084
  type: string
6085
+ price_list_id:
6086
+ type: string
6087
+ example: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
6066
6088
  - example:
6067
6089
  id: 4784189d-610b-4488-b3a5-5f324f752417
6068
6090
  name: Pied Piper
@@ -6098,6 +6120,7 @@ paths:
6098
6120
  value: '092980616'
6099
6121
  marketing_mails_consent: false
6100
6122
  preferred_currency: EUR
6123
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
6101
6124
  example:
6102
6125
  id: 4784189d-610b-4488-b3a5-5f324f752417
6103
6126
  name: Pied Piper
@@ -6133,6 +6156,7 @@ paths:
6133
6156
  value: '092980616'
6134
6157
  marketing_mails_consent: false
6135
6158
  preferred_currency: EUR
6159
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
6136
6160
  required: true
6137
6161
  responses:
6138
6162
  '204':
@@ -16117,6 +16141,9 @@ paths:
16117
16141
  items:
16118
16142
  type: object
16119
16143
  properties:
16144
+ id:
16145
+ type: string
16146
+ example: f8f95182-3947-0a4a-b426-3adaa66fc32a
16120
16147
  name:
16121
16148
  type: string
16122
16149
  example: My holiday discount
@@ -16127,13 +16154,15 @@ paths:
16127
16154
  description: ''
16128
16155
  - example:
16129
16156
  data:
16130
- - name: My holiday discount
16157
+ - id: f8f95182-3947-0a4a-b426-3adaa66fc32a
16158
+ name: My holiday discount
16131
16159
  department:
16132
16160
  type: department
16133
16161
  id: 6a6343fc-fdd8-4bc0-aa69-3a004c710e87
16134
16162
  example:
16135
16163
  data:
16136
- - name: My holiday discount
16164
+ - id: f8f95182-3947-0a4a-b426-3adaa66fc32a
16165
+ name: My holiday discount
16137
16166
  department:
16138
16167
  type: department
16139
16168
  id: 6a6343fc-fdd8-4bc0-aa69-3a004c710e87
@@ -3,7 +3,7 @@ info:
3
3
  title: Teamleader API
4
4
  description: This is the documentation of the Teamleader Focus API. If you have any feedback, or are you missing functionality to support your use case? Let us know via [api@teamleader.eu](mailto:api@teamleader.eu).
5
5
  contact: {}
6
- version: 1.183.0
6
+ version: 1.184.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -1904,7 +1904,7 @@ paths:
1904
1904
  number: 1
1905
1905
  sort:
1906
1906
  - field: added_at
1907
- includes: custom_fields,price_list
1907
+ includes: custom_fields
1908
1908
  example:
1909
1909
  filter:
1910
1910
  email:
@@ -1926,7 +1926,7 @@ paths:
1926
1926
  number: 1
1927
1927
  sort:
1928
1928
  - field: added_at
1929
- includes: custom_fields,price_list
1929
+ includes: custom_fields
1930
1930
  required: false
1931
1931
  responses:
1932
1932
  '200':
@@ -2225,6 +2225,7 @@ paths:
2225
2225
  - id: bf6765de-56eb-40ec-ad14-9096c5dc5fe1
2226
2226
  value: '092980616'
2227
2227
  marketing_mails_consent: false
2228
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
2228
2229
  example:
2229
2230
  first_name: John
2230
2231
  last_name: Smith
@@ -2259,6 +2260,7 @@ paths:
2259
2260
  - id: bf6765de-56eb-40ec-ad14-9096c5dc5fe1
2260
2261
  value: '092980616'
2261
2262
  marketing_mails_consent: false
2263
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
2262
2264
  required: true
2263
2265
  responses:
2264
2266
  '201':
@@ -2328,6 +2330,7 @@ paths:
2328
2330
  - id: bf6765de-56eb-40ec-ad14-9096c5dc5fe1
2329
2331
  value: '092980616'
2330
2332
  marketing_mails_consent: false
2333
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
2331
2334
  example:
2332
2335
  id: 76c9d03c-ec5c-4b21-9fc6-7ffee488b12d
2333
2336
  first_name: John
@@ -2363,6 +2366,7 @@ paths:
2363
2366
  - id: bf6765de-56eb-40ec-ad14-9096c5dc5fe1
2364
2367
  value: '092980616'
2365
2368
  marketing_mails_consent: false
2369
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
2366
2370
  required: true
2367
2371
  responses:
2368
2372
  '204':
@@ -2616,7 +2620,7 @@ paths:
2616
2620
  number: 1
2617
2621
  sort:
2618
2622
  - field: name
2619
- includes: custom_fields,price_list
2623
+ includes: custom_fields
2620
2624
  example:
2621
2625
  filter:
2622
2626
  email:
@@ -2639,7 +2643,7 @@ paths:
2639
2643
  number: 1
2640
2644
  sort:
2641
2645
  - field: name
2642
- includes: custom_fields,price_list
2646
+ includes: custom_fields
2643
2647
  required: false
2644
2648
  responses:
2645
2649
  '200':
@@ -2958,6 +2962,7 @@ paths:
2958
2962
  value: '092980616'
2959
2963
  marketing_mails_consent: false
2960
2964
  preferred_currency: EUR
2965
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
2961
2966
  example:
2962
2967
  name: Pied Piper
2963
2968
  business_type_id: fd48d4a3-b9dc-4eac-8071-5889c9f21e5d
@@ -2992,6 +2997,7 @@ paths:
2992
2997
  value: '092980616'
2993
2998
  marketing_mails_consent: false
2994
2999
  preferred_currency: EUR
3000
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
2995
3001
  required: true
2996
3002
  responses:
2997
3003
  '201':
@@ -3061,6 +3067,7 @@ paths:
3061
3067
  value: '092980616'
3062
3068
  marketing_mails_consent: false
3063
3069
  preferred_currency: EUR
3070
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
3064
3071
  example:
3065
3072
  id: 4784189d-610b-4488-b3a5-5f324f752417
3066
3073
  name: Pied Piper
@@ -3096,6 +3103,7 @@ paths:
3096
3103
  value: '092980616'
3097
3104
  marketing_mails_consent: false
3098
3105
  preferred_currency: EUR
3106
+ price_list_id: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
3099
3107
  required: true
3100
3108
  responses:
3101
3109
  '204':
@@ -7625,13 +7633,15 @@ paths:
7625
7633
  - $ref: '#/components/schemas/commercialDiscounts.list.response'
7626
7634
  - example:
7627
7635
  data:
7628
- - name: My holiday discount
7636
+ - id: f8f95182-3947-0a4a-b426-3adaa66fc32a
7637
+ name: My holiday discount
7629
7638
  department:
7630
7639
  type: department
7631
7640
  id: 6a6343fc-fdd8-4bc0-aa69-3a004c710e87
7632
7641
  example:
7633
7642
  data:
7634
- - name: My holiday discount
7643
+ - id: f8f95182-3947-0a4a-b426-3adaa66fc32a
7644
+ name: My holiday discount
7635
7645
  department:
7636
7646
  type: department
7637
7647
  id: 6a6343fc-fdd8-4bc0-aa69-3a004c710e87
@@ -18702,7 +18712,7 @@ components:
18702
18712
  includes:
18703
18713
  type: string
18704
18714
  description: Comma-separated list of optional includes
18705
- example: custom_fields,price_list
18715
+ example: custom_fields
18706
18716
  Gender:
18707
18717
  title: Gender
18708
18718
  type: string
@@ -18880,6 +18890,7 @@ components:
18880
18890
  description: Only included with request parameter `includes=custom_fields`
18881
18891
  price_list:
18882
18892
  type: object
18893
+ nullable: true
18883
18894
  properties:
18884
18895
  type:
18885
18896
  type: string
@@ -18887,7 +18898,7 @@ components:
18887
18898
  id:
18888
18899
  type: string
18889
18900
  example: 27261187-19c9-081f-b833-021fa5873129
18890
- description: Only included with request parameter `includes=price_list`
18901
+ description: Only included when the account has access to price lists. `null` when no price list is set on the contact.
18891
18902
  description: ''
18892
18903
  contacts.info.request:
18893
18904
  title: contacts.info.request
@@ -19226,6 +19237,9 @@ components:
19226
19237
  marketing_mails_consent:
19227
19238
  type: boolean
19228
19239
  example: false
19240
+ price_list_id:
19241
+ type: string
19242
+ example: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
19229
19243
  contacts.add.response:
19230
19244
  title: contacts.add.response
19231
19245
  type: object
@@ -19338,6 +19352,11 @@ components:
19338
19352
  marketing_mails_consent:
19339
19353
  type: boolean
19340
19354
  example: false
19355
+ price_list_id:
19356
+ type: string
19357
+ description: Pass `null` to remove the price list from the contact
19358
+ nullable: true
19359
+ example: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
19341
19360
  contacts.delete.request:
19342
19361
  title: contacts.delete.request
19343
19362
  required:
@@ -19512,7 +19531,7 @@ components:
19512
19531
  includes:
19513
19532
  type: string
19514
19533
  description: Comma-separated list of optional includes
19515
- example: custom_fields,price_list
19534
+ example: custom_fields
19516
19535
  CompanyTelephone:
19517
19536
  title: CompanyTelephone
19518
19537
  required:
@@ -19633,6 +19652,7 @@ components:
19633
19652
  description: Only included with request parameter `includes=custom_fields`
19634
19653
  price_list:
19635
19654
  type: object
19655
+ nullable: true
19636
19656
  properties:
19637
19657
  type:
19638
19658
  type: string
@@ -19640,7 +19660,7 @@ components:
19640
19660
  id:
19641
19661
  type: string
19642
19662
  example: 27261187-19c9-081f-b833-021fa5873129
19643
- description: Only included with request parameter `includes=price_list`
19663
+ description: Only included when the account has access to price lists. `null` when no price list is set on the company.
19644
19664
  description: ''
19645
19665
  companies.info.request:
19646
19666
  title: companies.info.request
@@ -19888,6 +19908,9 @@ components:
19888
19908
  - $ref: '#/components/schemas/CurrencyCode'
19889
19909
  - example: EUR
19890
19910
  type: string
19911
+ price_list_id:
19912
+ type: string
19913
+ example: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
19891
19914
  companies.add.response:
19892
19915
  title: companies.add.response
19893
19916
  type: object
@@ -19993,6 +20016,9 @@ components:
19993
20016
  - example: EUR
19994
20017
  nullable: true
19995
20018
  type: string
20019
+ price_list_id:
20020
+ type: string
20021
+ example: 5a37d173-78d3-05f3-b018-d51fadc1c5d2
19996
20022
  companies.uploadLogo.request:
19997
20023
  title: companies.uploadLogo.request
19998
20024
  required:
@@ -25089,6 +25115,9 @@ components:
25089
25115
  items:
25090
25116
  type: object
25091
25117
  properties:
25118
+ id:
25119
+ type: string
25120
+ example: f8f95182-3947-0a4a-b426-3adaa66fc32a
25092
25121
  name:
25093
25122
  type: string
25094
25123
  example: My holiday discount
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added the `id` field to the `commercialDiscounts.list` endpoint response.
@@ -0,0 +1,7 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We documented `price_list_id` on `contacts.add`, `contacts.update`, `companies.add` and `companies.update`. Pass it to link a customer to a price list. On `contacts.update` you can pass `null` to remove the price list from the contact.
6
+
7
+ We also corrected the documentation of `price_list` on `contacts.list` and `companies.list`: it is returned whenever your account has access to price lists, and is not requested through the `includes` parameter.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@teamleader/focus-api-specification",
3
3
  "description": "Teamleader Focus API Specification",
4
- "version": "1.183.0",
4
+ "version": "1.184.0",
5
5
  "author": "Teamleader <development@teamleader.eu> (https://www.teamleader.eu)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/teamleadercrm/focus-api-specification/issues"