Skip to content

Commit 52d792c

Browse files
Merge pull request #704 from XeroAPI/v7.0.0
OAS version update - 7.0.0
2 parents 7b219fe + cccfd45 commit 52d792c

11 files changed

+67
-44
lines changed

xero-app-store.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: Xero AppStore API
55
description: These endpoints are for Xero Partners to interact with the App Store Billing platform
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"

xero-finance.yaml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: Xero Finance API
55
description: The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
@@ -100,15 +100,12 @@ paths:
100100
totalAmount: 189
101101
dataSource:
102102
directBankFeed: 0
103-
indirectBankFeed: 0
104103
fileUpload: 300
105104
manual: -188
106105
directBankFeedPos: 0
107-
indirectBankFeedPos: 0
108106
fileUploadPos: 2223
109107
manualPos: 0
110108
directBankFeedNeg: 0
111-
indirectBankFeedNeg: 0
112109
fileUploadNeg: -1890
113110
manualNeg: -500
114111
otherPos: 0
@@ -1487,9 +1484,7 @@ components:
14871484
format: date-time
14881485
importSourceType:
14891486
type: string
1490-
description: Looking at the most recent bank statement, this field indicates
1491-
the source of the data (direct bank feed, indirect bank feed, file upload,
1492-
or manual keying).
1487+
description: Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying).
14931488
additionalProperties: false
14941489
DataSourceResponse:
14951490
type: object
@@ -1499,12 +1494,6 @@ components:
14991494
description: Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data.
15001495
format: double
15011496
x-is-money: true
1502-
indirectBankFeed:
1503-
type: number
1504-
deprecated: true
1505-
description: No longer in use.
1506-
format: double
1507-
x-is-money: true
15081497
fileUpload:
15091498
type: number
15101499
description: Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.
@@ -1520,12 +1509,6 @@ components:
15201509
description: Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
15211510
format: double
15221511
x-is-money: true
1523-
indirectBankFeedPos:
1524-
type: number
1525-
deprecated: true
1526-
description: No longer in use.
1527-
format: double
1528-
x-is-money: true
15291512
fileUploadPos:
15301513
type: number
15311514
description: Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
@@ -1541,12 +1524,6 @@ components:
15411524
description: Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
15421525
format: double
15431526
x-is-money: true
1544-
indirectBankFeedNeg:
1545-
type: number
1546-
deprecated: true
1547-
description: No longer in use.
1548-
format: double
1549-
x-is-money: true
15501527
fileUploadNeg:
15511528
type: number
15521529
description: Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.

xero-identity.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: Xero OAuth 2 Identity Service API
55
description: These endpoints are related to managing authentication tokens and identity for Xero API
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"

xero-payroll-au.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: 'Xero Payroll AU API'
55
description: 'This is the Xero Payroll API for orgs in Australia region.'
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"

xero-payroll-nz.yaml

Lines changed: 56 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: 'Xero Payroll NZ'
55
description: 'This is the Xero Payroll API for orgs in the NZ region.'
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
@@ -7147,12 +7147,23 @@ components:
71477147
type: number
71487148
format: double
71497149
x-is-money: true
7150+
numberOfUnitsTaken:
7151+
description: The number of units taken for the leave
7152+
type: number
7153+
format: double
7154+
typeOfUnits:
7155+
description: The type of units paid for the leave
7156+
type: string
7157+
typeOfUnitsTaken:
7158+
description: The type of units taken for the leave
7159+
type: string
71507160
periodStatus:
7151-
description: Period Status
7161+
description: Status of leave
71527162
type: string
71537163
enum:
7154-
- Approved
7155-
- Completed
7164+
- Approved
7165+
- Completed
7166+
- Estimated
71567167
EmployeeLeaveBalances:
71577168
type: object
71587169
properties:
@@ -7417,13 +7428,25 @@ components:
74177428
x-is-money: true
74187429
example: 10.0
74197430
sickLeaveHoursToAccrueAnnually:
7420-
description: Number of hours accrued annually for sick leave. Multiply the number of days they're entitled to by the hours worked per day
7431+
description: Deprecated use SickLeaveToAccrueAnnually
74217432
type: number
74227433
format: double
74237434
x-is-money: true
74247435
example: 100.5
74257436
sickLeaveMaximumHoursToAccrue:
7426-
description: Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day
7437+
description: Deprecated use SickLeaveMaximumToAccrue
7438+
type: number
7439+
format: double
7440+
x-is-money: true
7441+
example: 200.5
7442+
SickLeaveToAccrueAnnually:
7443+
description: Number of units accrued annually for sick leave. The type of units is determined by the property "TypeOfUnitsToAccrue" on the "Sick Leave" leave type
7444+
type: number
7445+
format: double
7446+
x-is-money: true
7447+
example: 100.5
7448+
SickLeaveMaximumToAccrue:
7449+
description: Maximum number of units accrued annually for sick leave. The type of units is determined by the property "TypeOfUnitsToAccrue" on the "Sick Leave" leave type
74277450
type: number
74287451
format: double
74297452
x-is-money: true
@@ -7439,7 +7462,13 @@ components:
74397462
type: string
74407463
example: OnAnniversaryDate
74417464
SickLeaveAnniversaryDate:
7442-
description: If Sick Leave Schedule of Accrual is "OnAnniversaryDate", this is the date when entitled to Sick Leave
7465+
description: If Sick Leave Schedule of Accrual is "OnAnniversaryDate", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date
7466+
type: string
7467+
format: date
7468+
example: 2020-01-19
7469+
x-is-date: true
7470+
AnnualLeaveAnniversaryDate:
7471+
description: The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date
74437472
type: string
74447473
format: date
74457474
example: 2020-01-19
@@ -7469,20 +7498,31 @@ components:
74697498
- PercentageOfGrossEarnings
74707499
- NoAccruals
74717500
hoursAccruedAnnually:
7472-
description: The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is "OnHourWorked"
7501+
description: Deprecated use UnitsAccruedAnnually
74737502
type: number
74747503
format: double
74757504
x-is-money: true
7505+
UnitsAccruedAnnually:
7506+
description: The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is "NoAccruals"
7507+
type: number
7508+
format: double
7509+
x-is-money: true
7510+
typeOfUnitsToAccrue:
7511+
description: The type of units accrued for the leave annually
7512+
type: string
74767513
maximumToAccrue:
7477-
description: The maximum number of hours that can be accrued for the leave
7514+
description: The maximum number of units that can be accrued for the leave
74787515
type: number
74797516
format: double
74807517
x-is-money: true
74817518
openingBalance:
7482-
description: The initial number of hours assigned when the leave was added to the employee
7519+
description: The initial number of units assigned when the leave was added to the employee
74837520
type: number
74847521
format: double
74857522
x-is-money: true
7523+
openingBalanceTypeOfUnits:
7524+
description: The type of units for the opening balance
7525+
type: string
74867526
rateAccruedHourly:
74877527
description: The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is "OnHourWorked"
74887528
type: number
@@ -7952,6 +7992,12 @@ components:
79527992
isActive:
79537993
description: Shows whether the leave type is active or not
79547994
type: boolean
7995+
typeOfUnits:
7996+
description: The type of units to be paid for the leave type
7997+
type: string
7998+
typeOfUnitsToAccrue:
7999+
description: The type of units to be accrued for the leave type
8000+
type: string
79558001
Reimbursements:
79568002
type: object
79578003
properties:

xero-payroll-uk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: 'Xero Payroll UK'
55
description: 'This is the Xero Payroll API for orgs in the UK region.'
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"

xero-projects.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: Xero Projects API
55
description: This is the Xero Projects API
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"

xero_accounting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.0
22
info:
33
title: Xero Accounting API
4-
version: "6.3.0"
4+
version: "7.0.0"
55
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
66
contact:
77
name: "Xero Platform Team"

xero_assets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: Xero Assets API
55
description: The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"

xero_bankfeeds.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: "7.0.0"
44
title: Xero Bank Feeds API
55
description: The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero.
66
If you're an existing financial services partner that wants access, contact your local Partner Manager.

0 commit comments

Comments
 (0)