@teamleader/focus-api-specification 1.99.0 → 1.101.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.
|
|
6
|
+
version: 1.101.0
|
|
7
7
|
servers:
|
|
8
8
|
- url: https://api.focus.teamleader.eu
|
|
9
9
|
variables: {}
|
|
@@ -7588,6 +7588,8 @@ paths:
|
|
|
7588
7588
|
requestBody:
|
|
7589
7589
|
content:
|
|
7590
7590
|
application/json:
|
|
7591
|
+
schema:
|
|
7592
|
+
$ref: '#/components/schemas/expenses.listrequest'
|
|
7591
7593
|
example:
|
|
7592
7594
|
filter:
|
|
7593
7595
|
term: search terms
|
|
@@ -7602,80 +7604,29 @@ paths:
|
|
|
7602
7604
|
bookkeeping_statuses:
|
|
7603
7605
|
- sent
|
|
7604
7606
|
- not_sent
|
|
7607
|
+
payment_statuses:
|
|
7608
|
+
- paid
|
|
7609
|
+
- unpaid
|
|
7610
|
+
department_ids:
|
|
7611
|
+
- 018fcef1-4f96-7349-9f57-1c7857023c42
|
|
7612
|
+
supplier:
|
|
7613
|
+
type: company
|
|
7614
|
+
id: f29abf48-337d-44b4-aad4-585f5277a456
|
|
7605
7615
|
document_date:
|
|
7606
7616
|
operator: is_empty
|
|
7607
7617
|
value: YYYY-MM-DD
|
|
7608
7618
|
start: YYYY-MM-DD
|
|
7609
7619
|
end: YYYY-MM-DD
|
|
7620
|
+
paid_at:
|
|
7621
|
+
operator: between
|
|
7622
|
+
start: YYYY-MM-DD
|
|
7623
|
+
end: YYYY-MM-DD
|
|
7610
7624
|
page:
|
|
7611
7625
|
size: 20
|
|
7612
7626
|
number: 1
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
filter:
|
|
7617
|
-
type: object
|
|
7618
|
-
properties:
|
|
7619
|
-
term:
|
|
7620
|
-
type: string
|
|
7621
|
-
description: Filters by document number and supplier name, case-insensitive
|
|
7622
|
-
source_types:
|
|
7623
|
-
type: array
|
|
7624
|
-
description: Filters by one or more source types
|
|
7625
|
-
items:
|
|
7626
|
-
type: string
|
|
7627
|
-
enum:
|
|
7628
|
-
- incomingInvoice
|
|
7629
|
-
- incomingCreditNote
|
|
7630
|
-
- receipt
|
|
7631
|
-
review_statuses:
|
|
7632
|
-
type: array
|
|
7633
|
-
description: Filters by one or more review statuses
|
|
7634
|
-
items:
|
|
7635
|
-
type: string
|
|
7636
|
-
enum:
|
|
7637
|
-
- pending
|
|
7638
|
-
- approved
|
|
7639
|
-
- refused
|
|
7640
|
-
bookkeeping_statuses:
|
|
7641
|
-
type: array
|
|
7642
|
-
description: Filters by one or more bookkeeping statuses
|
|
7643
|
-
items:
|
|
7644
|
-
type: string
|
|
7645
|
-
enum:
|
|
7646
|
-
- sent
|
|
7647
|
-
- not_sent
|
|
7648
|
-
document_date:
|
|
7649
|
-
type: object
|
|
7650
|
-
properties:
|
|
7651
|
-
operator:
|
|
7652
|
-
type: string
|
|
7653
|
-
enum:
|
|
7654
|
-
- is_empty
|
|
7655
|
-
- between
|
|
7656
|
-
- equals
|
|
7657
|
-
- before
|
|
7658
|
-
- after
|
|
7659
|
-
value:
|
|
7660
|
-
type: string
|
|
7661
|
-
description: Required if operator is `equals`, `before`, or `after`
|
|
7662
|
-
start:
|
|
7663
|
-
type: string
|
|
7664
|
-
description: Required if operator is `between`
|
|
7665
|
-
end:
|
|
7666
|
-
type: string
|
|
7667
|
-
description: Required if operator is `between`
|
|
7668
|
-
required:
|
|
7669
|
-
- operator
|
|
7670
|
-
page:
|
|
7671
|
-
type: object
|
|
7672
|
-
properties:
|
|
7673
|
-
size:
|
|
7674
|
-
type: number
|
|
7675
|
-
default: 20
|
|
7676
|
-
number:
|
|
7677
|
-
type: number
|
|
7678
|
-
default: 1
|
|
7627
|
+
sort:
|
|
7628
|
+
- field: document_date
|
|
7629
|
+
order: desc
|
|
7679
7630
|
responses:
|
|
7680
7631
|
'200':
|
|
7681
7632
|
description: OK
|
|
@@ -7683,113 +7634,7 @@ paths:
|
|
|
7683
7634
|
content:
|
|
7684
7635
|
application/json:
|
|
7685
7636
|
schema:
|
|
7686
|
-
|
|
7687
|
-
properties:
|
|
7688
|
-
data:
|
|
7689
|
-
type: array
|
|
7690
|
-
items:
|
|
7691
|
-
type: object
|
|
7692
|
-
properties:
|
|
7693
|
-
source:
|
|
7694
|
-
type: object
|
|
7695
|
-
properties:
|
|
7696
|
-
type:
|
|
7697
|
-
type: string
|
|
7698
|
-
enum:
|
|
7699
|
-
- incomingInvoice
|
|
7700
|
-
- incomingCreditNote
|
|
7701
|
-
- receipt
|
|
7702
|
-
id:
|
|
7703
|
-
type: string
|
|
7704
|
-
origin:
|
|
7705
|
-
type: object
|
|
7706
|
-
properties:
|
|
7707
|
-
type:
|
|
7708
|
-
type: string
|
|
7709
|
-
enum:
|
|
7710
|
-
- user
|
|
7711
|
-
- peppolIncomingDocument
|
|
7712
|
-
id:
|
|
7713
|
-
type: string
|
|
7714
|
-
title:
|
|
7715
|
-
type: string
|
|
7716
|
-
supplier:
|
|
7717
|
-
type: object
|
|
7718
|
-
properties:
|
|
7719
|
-
type:
|
|
7720
|
-
type: string
|
|
7721
|
-
enum:
|
|
7722
|
-
- company
|
|
7723
|
-
- contact
|
|
7724
|
-
id:
|
|
7725
|
-
type: string
|
|
7726
|
-
nullable: true
|
|
7727
|
-
document_number:
|
|
7728
|
-
type: string
|
|
7729
|
-
nullable: true
|
|
7730
|
-
document_date:
|
|
7731
|
-
type: string
|
|
7732
|
-
nullable: true
|
|
7733
|
-
due_date:
|
|
7734
|
-
type: string
|
|
7735
|
-
nullable: true
|
|
7736
|
-
currency:
|
|
7737
|
-
type: object
|
|
7738
|
-
properties:
|
|
7739
|
-
code:
|
|
7740
|
-
$ref: '#/components/schemas/CurrencyCode'
|
|
7741
|
-
total:
|
|
7742
|
-
type: object
|
|
7743
|
-
properties:
|
|
7744
|
-
tax_exclusive:
|
|
7745
|
-
type: object
|
|
7746
|
-
properties:
|
|
7747
|
-
amount:
|
|
7748
|
-
type: number
|
|
7749
|
-
nullable: true
|
|
7750
|
-
tax_inclusive:
|
|
7751
|
-
type: object
|
|
7752
|
-
properties:
|
|
7753
|
-
amount:
|
|
7754
|
-
type: number
|
|
7755
|
-
nullable: true
|
|
7756
|
-
company_entity:
|
|
7757
|
-
type: object
|
|
7758
|
-
properties:
|
|
7759
|
-
type:
|
|
7760
|
-
type: string
|
|
7761
|
-
id:
|
|
7762
|
-
type: string
|
|
7763
|
-
nullable: true
|
|
7764
|
-
file:
|
|
7765
|
-
type: object
|
|
7766
|
-
properties:
|
|
7767
|
-
type:
|
|
7768
|
-
type: string
|
|
7769
|
-
id:
|
|
7770
|
-
type: string
|
|
7771
|
-
nullable: true
|
|
7772
|
-
payment_reference:
|
|
7773
|
-
type: string
|
|
7774
|
-
nullable: true
|
|
7775
|
-
review_status:
|
|
7776
|
-
type: string
|
|
7777
|
-
enum:
|
|
7778
|
-
- pending
|
|
7779
|
-
- approved
|
|
7780
|
-
- refused
|
|
7781
|
-
bookkeeping_status:
|
|
7782
|
-
type: string
|
|
7783
|
-
enum:
|
|
7784
|
-
- not_sent
|
|
7785
|
-
- sent
|
|
7786
|
-
iban_number:
|
|
7787
|
-
type: string
|
|
7788
|
-
nullable: true
|
|
7789
|
-
meta:
|
|
7790
|
-
allOf:
|
|
7791
|
-
- $ref: '#/components/schemas/Meta'
|
|
7792
|
-
- description: Only included with request parameter `includes=pagination`
|
|
7637
|
+
$ref: '#/components/schemas/expenses.listresponse'
|
|
7793
7638
|
example:
|
|
7794
7639
|
data:
|
|
7795
7640
|
- source:
|
|
@@ -20133,10 +19978,12 @@ components:
|
|
|
20133
19978
|
items:
|
|
20134
19979
|
type: string
|
|
20135
19980
|
status:
|
|
20136
|
-
type:
|
|
20137
|
-
|
|
20138
|
-
|
|
20139
|
-
|
|
19981
|
+
type: array
|
|
19982
|
+
items:
|
|
19983
|
+
type: string
|
|
19984
|
+
enum:
|
|
19985
|
+
- open
|
|
19986
|
+
- pending_deletion
|
|
20140
19987
|
page:
|
|
20141
19988
|
$ref: '#/components/schemas/Page'
|
|
20142
19989
|
dealPipelines.listresponse:
|
|
@@ -24394,6 +24241,242 @@ components:
|
|
|
24394
24241
|
- archived
|
|
24395
24242
|
example: active
|
|
24396
24243
|
description: ''
|
|
24244
|
+
expenses.listrequest:
|
|
24245
|
+
type: object
|
|
24246
|
+
properties:
|
|
24247
|
+
filter:
|
|
24248
|
+
type: object
|
|
24249
|
+
properties:
|
|
24250
|
+
term:
|
|
24251
|
+
type: string
|
|
24252
|
+
description: Filters by document number and supplier name, case-insensitive
|
|
24253
|
+
source_types:
|
|
24254
|
+
type: array
|
|
24255
|
+
description: Filters by one or more source types
|
|
24256
|
+
items:
|
|
24257
|
+
type: string
|
|
24258
|
+
enum:
|
|
24259
|
+
- incomingInvoice
|
|
24260
|
+
- incomingCreditNote
|
|
24261
|
+
- receipt
|
|
24262
|
+
review_statuses:
|
|
24263
|
+
type: array
|
|
24264
|
+
description: Filters by one or more review statuses
|
|
24265
|
+
items:
|
|
24266
|
+
type: string
|
|
24267
|
+
enum:
|
|
24268
|
+
- pending
|
|
24269
|
+
- approved
|
|
24270
|
+
- refused
|
|
24271
|
+
bookkeeping_statuses:
|
|
24272
|
+
type: array
|
|
24273
|
+
description: Filters by one or more bookkeeping statuses
|
|
24274
|
+
items:
|
|
24275
|
+
type: string
|
|
24276
|
+
enum:
|
|
24277
|
+
- sent
|
|
24278
|
+
- not_sent
|
|
24279
|
+
payment_statuses:
|
|
24280
|
+
type: array
|
|
24281
|
+
description: Filters by one or more payment statuses
|
|
24282
|
+
items:
|
|
24283
|
+
type: string
|
|
24284
|
+
enum:
|
|
24285
|
+
- paid
|
|
24286
|
+
- unpaid
|
|
24287
|
+
department_ids:
|
|
24288
|
+
type: array
|
|
24289
|
+
description: Filters by one or more department IDs
|
|
24290
|
+
items:
|
|
24291
|
+
type: string
|
|
24292
|
+
supplier:
|
|
24293
|
+
type: object
|
|
24294
|
+
description: Filters by a specific supplier
|
|
24295
|
+
properties:
|
|
24296
|
+
type:
|
|
24297
|
+
type: string
|
|
24298
|
+
enum:
|
|
24299
|
+
- company
|
|
24300
|
+
- contact
|
|
24301
|
+
id:
|
|
24302
|
+
type: string
|
|
24303
|
+
required:
|
|
24304
|
+
- type
|
|
24305
|
+
- id
|
|
24306
|
+
document_date:
|
|
24307
|
+
type: object
|
|
24308
|
+
properties:
|
|
24309
|
+
operator:
|
|
24310
|
+
type: string
|
|
24311
|
+
enum:
|
|
24312
|
+
- is_empty
|
|
24313
|
+
- between
|
|
24314
|
+
- equals
|
|
24315
|
+
- before
|
|
24316
|
+
- after
|
|
24317
|
+
value:
|
|
24318
|
+
type: string
|
|
24319
|
+
description: Required if operator is `equals`, `before`, or `after`
|
|
24320
|
+
start:
|
|
24321
|
+
type: string
|
|
24322
|
+
description: Required if operator is `between`
|
|
24323
|
+
end:
|
|
24324
|
+
type: string
|
|
24325
|
+
description: Required if operator is `between`
|
|
24326
|
+
required:
|
|
24327
|
+
- operator
|
|
24328
|
+
paid_at:
|
|
24329
|
+
type: object
|
|
24330
|
+
description: Filters by payment date
|
|
24331
|
+
properties:
|
|
24332
|
+
operator:
|
|
24333
|
+
type: string
|
|
24334
|
+
enum:
|
|
24335
|
+
- is_empty
|
|
24336
|
+
- between
|
|
24337
|
+
- equals
|
|
24338
|
+
- before
|
|
24339
|
+
- after
|
|
24340
|
+
value:
|
|
24341
|
+
type: string
|
|
24342
|
+
description: Required if operator is `equals`, `before`, or `after`
|
|
24343
|
+
start:
|
|
24344
|
+
type: string
|
|
24345
|
+
description: Required if operator is `between`
|
|
24346
|
+
end:
|
|
24347
|
+
type: string
|
|
24348
|
+
description: Required if operator is `between`
|
|
24349
|
+
required:
|
|
24350
|
+
- operator
|
|
24351
|
+
page:
|
|
24352
|
+
type: object
|
|
24353
|
+
properties:
|
|
24354
|
+
size:
|
|
24355
|
+
type: number
|
|
24356
|
+
default: 20
|
|
24357
|
+
number:
|
|
24358
|
+
type: number
|
|
24359
|
+
default: 1
|
|
24360
|
+
sort:
|
|
24361
|
+
type: array
|
|
24362
|
+
items:
|
|
24363
|
+
allOf:
|
|
24364
|
+
- $ref: '#/components/schemas/Sort'
|
|
24365
|
+
- type: object
|
|
24366
|
+
properties:
|
|
24367
|
+
field:
|
|
24368
|
+
enum:
|
|
24369
|
+
- document_date
|
|
24370
|
+
- due_date
|
|
24371
|
+
- supplier_name
|
|
24372
|
+
expenses.listresponse:
|
|
24373
|
+
type: object
|
|
24374
|
+
properties:
|
|
24375
|
+
data:
|
|
24376
|
+
type: array
|
|
24377
|
+
items:
|
|
24378
|
+
type: object
|
|
24379
|
+
properties:
|
|
24380
|
+
source:
|
|
24381
|
+
type: object
|
|
24382
|
+
properties:
|
|
24383
|
+
type:
|
|
24384
|
+
type: string
|
|
24385
|
+
enum:
|
|
24386
|
+
- incomingInvoice
|
|
24387
|
+
- incomingCreditNote
|
|
24388
|
+
- receipt
|
|
24389
|
+
id:
|
|
24390
|
+
type: string
|
|
24391
|
+
origin:
|
|
24392
|
+
type: object
|
|
24393
|
+
properties:
|
|
24394
|
+
type:
|
|
24395
|
+
type: string
|
|
24396
|
+
enum:
|
|
24397
|
+
- user
|
|
24398
|
+
- peppolIncomingDocument
|
|
24399
|
+
id:
|
|
24400
|
+
type: string
|
|
24401
|
+
title:
|
|
24402
|
+
type: string
|
|
24403
|
+
supplier:
|
|
24404
|
+
type: object
|
|
24405
|
+
properties:
|
|
24406
|
+
type:
|
|
24407
|
+
type: string
|
|
24408
|
+
enum:
|
|
24409
|
+
- company
|
|
24410
|
+
- contact
|
|
24411
|
+
id:
|
|
24412
|
+
type: string
|
|
24413
|
+
nullable: true
|
|
24414
|
+
document_number:
|
|
24415
|
+
type: string
|
|
24416
|
+
nullable: true
|
|
24417
|
+
document_date:
|
|
24418
|
+
type: string
|
|
24419
|
+
nullable: true
|
|
24420
|
+
due_date:
|
|
24421
|
+
type: string
|
|
24422
|
+
nullable: true
|
|
24423
|
+
currency:
|
|
24424
|
+
type: object
|
|
24425
|
+
properties:
|
|
24426
|
+
code:
|
|
24427
|
+
$ref: '#/components/schemas/CurrencyCode'
|
|
24428
|
+
total:
|
|
24429
|
+
type: object
|
|
24430
|
+
properties:
|
|
24431
|
+
tax_exclusive:
|
|
24432
|
+
type: object
|
|
24433
|
+
properties:
|
|
24434
|
+
amount:
|
|
24435
|
+
type: number
|
|
24436
|
+
nullable: true
|
|
24437
|
+
tax_inclusive:
|
|
24438
|
+
type: object
|
|
24439
|
+
properties:
|
|
24440
|
+
amount:
|
|
24441
|
+
type: number
|
|
24442
|
+
nullable: true
|
|
24443
|
+
company_entity:
|
|
24444
|
+
type: object
|
|
24445
|
+
properties:
|
|
24446
|
+
type:
|
|
24447
|
+
type: string
|
|
24448
|
+
id:
|
|
24449
|
+
type: string
|
|
24450
|
+
nullable: true
|
|
24451
|
+
file:
|
|
24452
|
+
type: object
|
|
24453
|
+
properties:
|
|
24454
|
+
type:
|
|
24455
|
+
type: string
|
|
24456
|
+
id:
|
|
24457
|
+
type: string
|
|
24458
|
+
nullable: true
|
|
24459
|
+
payment_reference:
|
|
24460
|
+
type: string
|
|
24461
|
+
nullable: true
|
|
24462
|
+
review_status:
|
|
24463
|
+
type: string
|
|
24464
|
+
enum:
|
|
24465
|
+
- pending
|
|
24466
|
+
- approved
|
|
24467
|
+
- refused
|
|
24468
|
+
bookkeeping_status:
|
|
24469
|
+
type: string
|
|
24470
|
+
enum:
|
|
24471
|
+
- not_sent
|
|
24472
|
+
- sent
|
|
24473
|
+
iban_number:
|
|
24474
|
+
type: string
|
|
24475
|
+
nullable: true
|
|
24476
|
+
meta:
|
|
24477
|
+
allOf:
|
|
24478
|
+
- $ref: '#/components/schemas/Meta'
|
|
24479
|
+
- description: Only included with request parameter `includes=pagination`
|
|
24397
24480
|
productCategories.listrequest:
|
|
24398
24481
|
title: productCategories.listrequest
|
|
24399
24482
|
type: object
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: addition
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
We added new filters to the `expenses.list` endpoint:
|
|
6
|
+
- `department_ids`: Filter expenses by one or more department IDs
|
|
7
|
+
- `supplier`: Filter expenses by a specific supplier (company or contact)
|
|
8
|
+
- `paid_at`: Filter expenses by payment date using date range operators
|
|
9
|
+
- `payment_statuses`: Filter expenses by payment status (paid or unpaid)
|
|
10
|
+
|
|
11
|
+
We also added the `sort` parameter to allow sorting by `document_date`, `due_date`, or `supplier_name`.
|
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.
|
|
4
|
+
"version": "1.101.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"
|