@teamleader/focus-api-specification 1.228.0 → 1.230.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.228.0
6
+ version: 1.230.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -17238,11 +17238,29 @@ paths:
17238
17238
  application/json:
17239
17239
  example:
17240
17240
  id: 018d5965-19fb-701a-af11-e80451931551
17241
+ refusal_reason_code: DUPLICATE_INVOICE
17241
17242
  schema:
17242
17243
  type: object
17243
17244
  properties:
17244
17245
  id:
17245
17246
  type: string
17247
+ refusal_reason_code:
17248
+ type: string
17249
+ description: The reason the document is refused. Required under the French e-invoicing reform when refusing an expense received as an electronic invoice; not needed for expenses uploaded manually or via OCR.
17250
+ enum:
17251
+ - INCORRECT_VAT_RATE
17252
+ - INCORRECT_TOTAL_AMOUNT
17253
+ - CALCULATION_ERROR
17254
+ - MISSING_LEGAL_INFORMATION
17255
+ - DUPLICATE_INVOICE
17256
+ - WRONG_RECIPIENT
17257
+ - UNKNOWN_TRANSACTION
17258
+ - UNKNOWN_ISSUER
17259
+ - CONTRACT_ENDED
17260
+ - DOUBLE_INVOICING
17261
+ - ORDER_NUMBER_ERROR
17262
+ - WRONG_ELECTRONIC_BILLING_ADDRESS
17263
+ - MISSING_CONTRACTUAL_REFERENCE
17246
17264
  required:
17247
17265
  - id
17248
17266
  responses:
@@ -17944,11 +17962,29 @@ paths:
17944
17962
  application/json:
17945
17963
  example:
17946
17964
  id: 018d5965-19fb-701a-af11-e80451931551
17965
+ refusal_reason_code: DUPLICATE_INVOICE
17947
17966
  schema:
17948
17967
  type: object
17949
17968
  properties:
17950
17969
  id:
17951
17970
  type: string
17971
+ refusal_reason_code:
17972
+ type: string
17973
+ description: The reason the document is refused. Required under the French e-invoicing reform when refusing an expense received as an electronic invoice; not needed for expenses uploaded manually or via OCR.
17974
+ enum:
17975
+ - INCORRECT_VAT_RATE
17976
+ - INCORRECT_TOTAL_AMOUNT
17977
+ - CALCULATION_ERROR
17978
+ - MISSING_LEGAL_INFORMATION
17979
+ - DUPLICATE_INVOICE
17980
+ - WRONG_RECIPIENT
17981
+ - UNKNOWN_TRANSACTION
17982
+ - UNKNOWN_ISSUER
17983
+ - CONTRACT_ENDED
17984
+ - DOUBLE_INVOICING
17985
+ - ORDER_NUMBER_ERROR
17986
+ - WRONG_ELECTRONIC_BILLING_ADDRESS
17987
+ - MISSING_CONTRACTUAL_REFERENCE
17952
17988
  required:
17953
17989
  - id
17954
17990
  responses:
@@ -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.228.0
6
+ version: 1.230.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -8231,11 +8231,29 @@ paths:
8231
8231
  application/json:
8232
8232
  example:
8233
8233
  id: 018d5965-19fb-701a-af11-e80451931551
8234
+ refusal_reason_code: DUPLICATE_INVOICE
8234
8235
  schema:
8235
8236
  type: object
8236
8237
  properties:
8237
8238
  id:
8238
8239
  type: string
8240
+ refusal_reason_code:
8241
+ type: string
8242
+ description: The reason the document is refused. Required under the French e-invoicing reform when refusing an expense received as an electronic invoice; not needed for expenses uploaded manually or via OCR.
8243
+ enum:
8244
+ - INCORRECT_VAT_RATE
8245
+ - INCORRECT_TOTAL_AMOUNT
8246
+ - CALCULATION_ERROR
8247
+ - MISSING_LEGAL_INFORMATION
8248
+ - DUPLICATE_INVOICE
8249
+ - WRONG_RECIPIENT
8250
+ - UNKNOWN_TRANSACTION
8251
+ - UNKNOWN_ISSUER
8252
+ - CONTRACT_ENDED
8253
+ - DOUBLE_INVOICING
8254
+ - ORDER_NUMBER_ERROR
8255
+ - WRONG_ELECTRONIC_BILLING_ADDRESS
8256
+ - MISSING_CONTRACTUAL_REFERENCE
8239
8257
  required:
8240
8258
  - id
8241
8259
  responses:
@@ -8826,11 +8844,29 @@ paths:
8826
8844
  application/json:
8827
8845
  example:
8828
8846
  id: 018d5965-19fb-701a-af11-e80451931551
8847
+ refusal_reason_code: DUPLICATE_INVOICE
8829
8848
  schema:
8830
8849
  type: object
8831
8850
  properties:
8832
8851
  id:
8833
8852
  type: string
8853
+ refusal_reason_code:
8854
+ type: string
8855
+ description: The reason the document is refused. Required under the French e-invoicing reform when refusing an expense received as an electronic invoice; not needed for expenses uploaded manually or via OCR.
8856
+ enum:
8857
+ - INCORRECT_VAT_RATE
8858
+ - INCORRECT_TOTAL_AMOUNT
8859
+ - CALCULATION_ERROR
8860
+ - MISSING_LEGAL_INFORMATION
8861
+ - DUPLICATE_INVOICE
8862
+ - WRONG_RECIPIENT
8863
+ - UNKNOWN_TRANSACTION
8864
+ - UNKNOWN_ISSUER
8865
+ - CONTRACT_ENDED
8866
+ - DOUBLE_INVOICING
8867
+ - ORDER_NUMBER_ERROR
8868
+ - WRONG_ELECTRONIC_BILLING_ADDRESS
8869
+ - MISSING_CONTRACTUAL_REFERENCE
8834
8870
  required:
8835
8871
  - id
8836
8872
  responses:
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ The `incomingInvoices.refuse` and `incomingCreditNotes.refuse` endpoints now accept an optional `refusal_reason_code`. France requires a reason when refusing an electronic invoice, so the code is passed on to the sender over the exchange network; existing callers can keep refusing without one.
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.228.0",
4
+ "version": "1.230.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"