|
1 | 1 | openapi: 3.0.0
|
2 | 2 | info:
|
3 |
| - version: '2.39.0' |
| 3 | + version: '2.39.1' |
4 | 4 | title: 'Xero Payroll AU API'
|
5 | 5 | description: 'This is the Xero Payroll API for orgs in Australia region.'
|
6 | 6 | termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
|
@@ -112,6 +112,8 @@ paths:
|
112 | 112 | tags:
|
113 | 113 | - PayrollAu
|
114 | 114 | summary: Creates a payroll employee
|
| 115 | + parameters: |
| 116 | + - $ref: '#/components/parameters/idempotencyKey' |
115 | 117 | operationId: createEmployee
|
116 | 118 | x-hasPayrollAuProblem: true
|
117 | 119 | x-example:
|
@@ -503,7 +505,8 @@ paths:
|
503 | 505 | python: home_address
|
504 | 506 | ruby: home_address
|
505 | 507 | object: employee
|
506 |
| - parameters: |
| 508 | + parameters: |
| 509 | + - $ref: '#/components/parameters/idempotencyKey' |
507 | 510 | - name: EmployeeID
|
508 | 511 | x-snake: employee_id
|
509 | 512 | in: path
|
@@ -714,6 +717,8 @@ paths:
|
714 | 717 | tags:
|
715 | 718 | - PayrollAu
|
716 | 719 | summary: Creates a leave application
|
| 720 | + parameters: |
| 721 | + - $ref: '#/components/parameters/idempotencyKey' |
717 | 722 | operationId: createLeaveApplication
|
718 | 723 | x-hasPayrollAuProblem: true
|
719 | 724 | x-example:
|
@@ -1136,7 +1141,8 @@ paths:
|
1136 | 1141 | python: end_date
|
1137 | 1142 | ruby: end_date
|
1138 | 1143 | object: leaveApplication
|
1139 |
| - parameters: |
| 1144 | + parameters: |
| 1145 | + - $ref: '#/components/parameters/idempotencyKey' |
1140 | 1146 | - name: LeaveApplicationID
|
1141 | 1147 | x-snake: leave_application_id
|
1142 | 1148 | in: path
|
@@ -1221,6 +1227,7 @@ paths:
|
1221 | 1227 | summary: Approve a requested leave application by a unique leave application id
|
1222 | 1228 | operationId: approveLeaveApplication
|
1223 | 1229 | parameters:
|
| 1230 | + - $ref: '#/components/parameters/idempotencyKey' |
1224 | 1231 | - name: LeaveApplicationID
|
1225 | 1232 | x-snake: leave_application_id
|
1226 | 1233 | in: path
|
@@ -1280,6 +1287,7 @@ paths:
|
1280 | 1287 | summary: Reject a leave application by a unique leave application id
|
1281 | 1288 | operationId: rejectLeaveApplication
|
1282 | 1289 | parameters:
|
| 1290 | + - $ref: '#/components/parameters/idempotencyKey' |
1283 | 1291 | - name: LeaveApplicationID
|
1284 | 1292 | x-snake: leave_application_id
|
1285 | 1293 | in: path
|
@@ -1525,6 +1533,8 @@ paths:
|
1525 | 1533 | tags:
|
1526 | 1534 | - PayrollAu
|
1527 | 1535 | summary: Creates a pay item
|
| 1536 | + parameters: |
| 1537 | + - $ref: '#/components/parameters/idempotencyKey' |
1528 | 1538 | operationId: createPayItem
|
1529 | 1539 | x-example:
|
1530 | 1540 | - earningsRate:
|
@@ -1934,6 +1944,8 @@ paths:
|
1934 | 1944 | tags:
|
1935 | 1945 | - PayrollAu
|
1936 | 1946 | summary: Creates a Payroll Calendar
|
| 1947 | + parameters: |
| 1948 | + - $ref: '#/components/parameters/idempotencyKey' |
1937 | 1949 | operationId: createPayrollCalendar
|
1938 | 1950 | x-hasPayrollAuProblem: true
|
1939 | 1951 | x-example:
|
@@ -2198,6 +2210,8 @@ paths:
|
2198 | 2210 | tags:
|
2199 | 2211 | - PayrollAu
|
2200 | 2212 | summary: Creates a pay run
|
| 2213 | + parameters: |
| 2214 | + - $ref: '#/components/parameters/idempotencyKey' |
2201 | 2215 | operationId: createPayRun
|
2202 | 2216 | x-hasPayrollAuProblem: true
|
2203 | 2217 | x-example:
|
@@ -2358,7 +2372,8 @@ paths:
|
2358 | 2372 | keySnake: payroll_calendar_id
|
2359 | 2373 | object: payRun
|
2360 | 2374 | is_last: true
|
2361 |
| - parameters: |
| 2375 | + parameters: |
| 2376 | + - $ref: '#/components/parameters/idempotencyKey' |
2362 | 2377 | - name: PayRunID
|
2363 | 2378 | x-snake: pay_run_id
|
2364 | 2379 | in: path
|
@@ -2599,7 +2614,8 @@ paths:
|
2599 | 2614 | csharp: PayslipLine
|
2600 | 2615 | object: payslipLine
|
2601 | 2616 | description: Update lines on a single payslips
|
2602 |
| - parameters: |
| 2617 | + parameters: |
| 2618 | + - $ref: '#/components/parameters/idempotencyKey' |
2603 | 2619 | - name: PayslipID
|
2604 | 2620 | x-snake: payslip_id
|
2605 | 2621 | in: path
|
@@ -2812,6 +2828,8 @@ paths:
|
2812 | 2828 | tags:
|
2813 | 2829 | - PayrollAu
|
2814 | 2830 | summary: Creates a superfund
|
| 2831 | + parameters: |
| 2832 | + - $ref: '#/components/parameters/idempotencyKey' |
2815 | 2833 | operationId: createSuperfund
|
2816 | 2834 | x-example:
|
2817 | 2835 | - superfund:
|
@@ -2966,7 +2984,8 @@ paths:
|
2966 | 2984 | default: 40022701955002
|
2967 | 2985 | object: superfund
|
2968 | 2986 | is_last: true
|
2969 |
| - parameters: |
| 2987 | + parameters: |
| 2988 | + - $ref: '#/components/parameters/idempotencyKey' |
2970 | 2989 | - name: SuperFundID
|
2971 | 2990 | x-snake: super_fund_id
|
2972 | 2991 | in: path
|
@@ -3173,6 +3192,8 @@ paths:
|
3173 | 3192 | tags:
|
3174 | 3193 | - PayrollAu
|
3175 | 3194 | summary: Creates a timesheet
|
| 3195 | + parameters: |
| 3196 | + - $ref: '#/components/parameters/idempotencyKey' |
3176 | 3197 | operationId: createTimesheet
|
3177 | 3198 | x-hasPayrollAuProblem: true
|
3178 | 3199 | x-example:
|
@@ -3463,7 +3484,8 @@ paths:
|
3463 | 3484 | java: com.xero.models.payrollau.TimesheetStatus.DRAFT
|
3464 | 3485 | csharp: TimesheetStatus.DRAFT
|
3465 | 3486 | object: timesheet
|
3466 |
| - parameters: |
| 3487 | + parameters: |
| 3488 | + - $ref: '#/components/parameters/idempotencyKey' |
3467 | 3489 | - name: TimesheetID
|
3468 | 3490 | x-snake: timesheet_id
|
3469 | 3491 | in: path
|
@@ -3578,6 +3600,14 @@ components:
|
3578 | 3600 | schema:
|
3579 | 3601 | type: string
|
3580 | 3602 | 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 |
3581 | 3611 | schemas:
|
3582 | 3612 | Employees:
|
3583 | 3613 | type: object
|
|
0 commit comments