Skip to content

Commit ec7a9f3

Browse files
Merge pull request #571 from XeroAPI/minor-changes-v2.39.1
add support for idempotency-key
2 parents 9db27c8 + f750320 commit ec7a9f3

11 files changed

+327
-23
lines changed

xero-app-store.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "2.39.0"
3+
version: "2.39.1"
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/"
@@ -98,6 +98,7 @@ paths:
9898
operationId: postUsageRecords
9999
summary: "Send metered usage belonging to this subscription and subscription item"
100100
parameters:
101+
- $ref: '#/components/parameters/idempotencyKey'
101102
- $ref: "#/components/parameters/subscriptionId"
102103
- $ref: "#/components/parameters/subscriptionItemId"
103104
responses:
@@ -143,6 +144,7 @@ paths:
143144
operationId: putUsageRecords
144145
summary: "Update and existing metered usage belonging to this subscription and subscription item"
145146
parameters:
147+
- $ref: '#/components/parameters/idempotencyKey'
146148
- $ref: "#/components/parameters/subscriptionId"
147149
- $ref: "#/components/parameters/subscriptionItemId"
148150
- $ref: "#/components/parameters/usageRecordId"
@@ -278,6 +280,14 @@ components:
278280
schema:
279281
type: string
280282
format: uuid
283+
idempotencyKey:
284+
in: header
285+
name: Idempotency-Key
286+
x-snake: idempotency_key
287+
description: This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
288+
example: "KEY_VALUE"
289+
schema:
290+
type: string
281291
schemas:
282292
Subscription:
283293
type: object

xero-finance.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "2.39.0"
3+
version: "2.39.1"
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/"

xero-identity.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "2.39.0"
3+
version: "2.39.1"
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

+37-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: '2.39.0'
3+
version: '2.39.1'
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/"
@@ -112,6 +112,8 @@ paths:
112112
tags:
113113
- PayrollAu
114114
summary: Creates a payroll employee
115+
parameters:
116+
- $ref: '#/components/parameters/idempotencyKey'
115117
operationId: createEmployee
116118
x-hasPayrollAuProblem: true
117119
x-example:
@@ -503,7 +505,8 @@ paths:
503505
python: home_address
504506
ruby: home_address
505507
object: employee
506-
parameters:
508+
parameters:
509+
- $ref: '#/components/parameters/idempotencyKey'
507510
- name: EmployeeID
508511
x-snake: employee_id
509512
in: path
@@ -714,6 +717,8 @@ paths:
714717
tags:
715718
- PayrollAu
716719
summary: Creates a leave application
720+
parameters:
721+
- $ref: '#/components/parameters/idempotencyKey'
717722
operationId: createLeaveApplication
718723
x-hasPayrollAuProblem: true
719724
x-example:
@@ -1136,7 +1141,8 @@ paths:
11361141
python: end_date
11371142
ruby: end_date
11381143
object: leaveApplication
1139-
parameters:
1144+
parameters:
1145+
- $ref: '#/components/parameters/idempotencyKey'
11401146
- name: LeaveApplicationID
11411147
x-snake: leave_application_id
11421148
in: path
@@ -1221,6 +1227,7 @@ paths:
12211227
summary: Approve a requested leave application by a unique leave application id
12221228
operationId: approveLeaveApplication
12231229
parameters:
1230+
- $ref: '#/components/parameters/idempotencyKey'
12241231
- name: LeaveApplicationID
12251232
x-snake: leave_application_id
12261233
in: path
@@ -1280,6 +1287,7 @@ paths:
12801287
summary: Reject a leave application by a unique leave application id
12811288
operationId: rejectLeaveApplication
12821289
parameters:
1290+
- $ref: '#/components/parameters/idempotencyKey'
12831291
- name: LeaveApplicationID
12841292
x-snake: leave_application_id
12851293
in: path
@@ -1525,6 +1533,8 @@ paths:
15251533
tags:
15261534
- PayrollAu
15271535
summary: Creates a pay item
1536+
parameters:
1537+
- $ref: '#/components/parameters/idempotencyKey'
15281538
operationId: createPayItem
15291539
x-example:
15301540
- earningsRate:
@@ -1934,6 +1944,8 @@ paths:
19341944
tags:
19351945
- PayrollAu
19361946
summary: Creates a Payroll Calendar
1947+
parameters:
1948+
- $ref: '#/components/parameters/idempotencyKey'
19371949
operationId: createPayrollCalendar
19381950
x-hasPayrollAuProblem: true
19391951
x-example:
@@ -2198,6 +2210,8 @@ paths:
21982210
tags:
21992211
- PayrollAu
22002212
summary: Creates a pay run
2213+
parameters:
2214+
- $ref: '#/components/parameters/idempotencyKey'
22012215
operationId: createPayRun
22022216
x-hasPayrollAuProblem: true
22032217
x-example:
@@ -2358,7 +2372,8 @@ paths:
23582372
keySnake: payroll_calendar_id
23592373
object: payRun
23602374
is_last: true
2361-
parameters:
2375+
parameters:
2376+
- $ref: '#/components/parameters/idempotencyKey'
23622377
- name: PayRunID
23632378
x-snake: pay_run_id
23642379
in: path
@@ -2599,7 +2614,8 @@ paths:
25992614
csharp: PayslipLine
26002615
object: payslipLine
26012616
description: Update lines on a single payslips
2602-
parameters:
2617+
parameters:
2618+
- $ref: '#/components/parameters/idempotencyKey'
26032619
- name: PayslipID
26042620
x-snake: payslip_id
26052621
in: path
@@ -2812,6 +2828,8 @@ paths:
28122828
tags:
28132829
- PayrollAu
28142830
summary: Creates a superfund
2831+
parameters:
2832+
- $ref: '#/components/parameters/idempotencyKey'
28152833
operationId: createSuperfund
28162834
x-example:
28172835
- superfund:
@@ -2966,7 +2984,8 @@ paths:
29662984
default: 40022701955002
29672985
object: superfund
29682986
is_last: true
2969-
parameters:
2987+
parameters:
2988+
- $ref: '#/components/parameters/idempotencyKey'
29702989
- name: SuperFundID
29712990
x-snake: super_fund_id
29722991
in: path
@@ -3173,6 +3192,8 @@ paths:
31733192
tags:
31743193
- PayrollAu
31753194
summary: Creates a timesheet
3195+
parameters:
3196+
- $ref: '#/components/parameters/idempotencyKey'
31763197
operationId: createTimesheet
31773198
x-hasPayrollAuProblem: true
31783199
x-example:
@@ -3463,7 +3484,8 @@ paths:
34633484
java: com.xero.models.payrollau.TimesheetStatus.DRAFT
34643485
csharp: TimesheetStatus.DRAFT
34653486
object: timesheet
3466-
parameters:
3487+
parameters:
3488+
- $ref: '#/components/parameters/idempotencyKey'
34673489
- name: TimesheetID
34683490
x-snake: timesheet_id
34693491
in: path
@@ -3578,6 +3600,14 @@ components:
35783600
schema:
35793601
type: string
35803602
required: true
3603+
idempotencyKey:
3604+
in: header
3605+
name: Idempotency-Key
3606+
x-snake: idempotency_key
3607+
description: This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
3608+
example: "KEY_VALUE"
3609+
schema:
3610+
type: string
35813611
schemas:
35823612
Employees:
35833613
type: object

0 commit comments

Comments
 (0)