Skip to content

Commit 1b8663d

Browse files
feat: Ni category updates
feat: Ni category updates
2 parents 21c286e + 8241365 commit 1b8663d

File tree

1 file changed

+126
-23
lines changed

1 file changed

+126
-23
lines changed

xero-payroll-uk.yaml

Lines changed: 126 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ paths:
260260
"county":null,
261261
"countryName":null,
262262
"postCode": "MK9 1EB"
263-
}
263+
},
264264
"payrollCalendarID":null,
265265
"updatedDateUTC":"2020-03-25T03:12:10",
266266
"createdDateUTC":"2020-03-25T03:12:10",
@@ -352,6 +352,20 @@ paths:
352352
"payrollCalendarID": null,
353353
"updatedDateUTC": "2017-05-12T10:00:24",
354354
"createdDateUTC": "2017-05-12T10:00:24",
355+
"niCategories": [
356+
{
357+
"startDate": "2020-05-01T00:00:00",
358+
"niCategory": "A"
359+
},
360+
{
361+
"startDate": null,
362+
"niCategory": "F",
363+
"niCategoryID": 1,
364+
"dateFirstEmployedAsCivilian": null,
365+
"workplacePostcode": "SW1A 1AA"
366+
}
367+
],
368+
"employeeNumber": "2",
355369
"endDate": null
356370
}
357371
}'
@@ -570,7 +584,14 @@ paths:
570584
python: start_date
571585
ruby: start_date
572586
object: employment
573-
is_last: true
587+
is_last: true
588+
- niCategories:
589+
key: niCategories
590+
keyPascal: NICategories
591+
keySnake: ni_categories
592+
is_object: true
593+
object: employment
594+
default: A
574595
summary: Creates employment detail for a specific employee using a unique employee ID
575596
parameters:
576597
- $ref: '#/components/parameters/idempotencyKey'
@@ -600,7 +621,15 @@ paths:
600621
"employment": {
601622
"payrollCalendarID": "216d80e6-af55-47b1-b718-9457c3f5d2fe",
602623
"startDate": "2020-04-01T00:00:00",
603-
"niCategory": "A",
624+
"niCategories": [
625+
{
626+
"niCategory": "A",
627+
"startDate": "2020-05-01",
628+
"niCategoryID": 594,
629+
"dateFirstEmployedAsCivilian": null,
630+
"workplacePostcode": null
631+
}
632+
],
604633
"employeeNumber": "123ABC"
605634
}
606635
}'
@@ -619,8 +648,13 @@ paths:
619648
example: '{
620649
"PayrollCalendarID": "216d80e6-af55-47b1-b718-9457c3f5d2fe",
621650
"StartDate": "2020-04-01",
622-
"EmployeeNumber": "123ABC",
623-
"NICategory": "A"
651+
"NICategories": [
652+
{
653+
"NICategory": "A",
654+
"StartDate": "2020-05-01"
655+
}
656+
],
657+
"EmployeeNumber": "123ABC"
624658
}'
625659
/Employees/{EmployeeID}/Tax:
626660
parameters:
@@ -5997,6 +6031,14 @@ components:
59976031
type: string
59986032
format: date-time
59996033
x-is-datetime: true
6034+
niCategory:
6035+
$ref: '#/components/schemas/NICategoryLetter'
6036+
deprecated: true
6037+
niCategories:
6038+
description: The employee's NI categories
6039+
type: array
6040+
items:
6041+
$ref: '#/components/schemas/NICategory'
60006042
nationalInsuranceNumber:
60016043
description: National insurance number of the employee
60026044
type: string
@@ -6019,7 +6061,7 @@ components:
60196061
- PayrollCalendarID
60206062
- StartDate
60216063
- EmployeeNumber
6022-
- NICategory
6064+
- NICategories
60236065
properties:
60246066
payrollCalendarID:
60256067
description: Xero unique identifier for the payroll calendar of the employee
@@ -6035,23 +6077,14 @@ components:
60356077
type: string
60366078
example: 007
60376079
niCategory:
6038-
description: The NI Category of the employee
6039-
type: string
6040-
enum:
6041-
- A
6042-
- B
6043-
- C
6044-
- F
6045-
- H
6046-
- I
6047-
- J
6048-
- L
6049-
- M
6050-
- S
6051-
- V
6052-
- X
6053-
- Z
6054-
example: A
6080+
$ref: '#/components/schemas/NICategoryLetter'
6081+
deprecated: true
6082+
niCategories:
6083+
description: The employee's NI categories
6084+
type: array
6085+
items:
6086+
$ref: '#/components/schemas/NICategory'
6087+
60556088
EmployeeTaxObject:
60566089
type: object
60576090
properties:
@@ -7866,3 +7899,73 @@ components:
78667899
description: The Xero identifier for Timesheet tracking category.
78677900
type: string
78687901
format: uuid
7902+
NICategoryLetter:
7903+
description: The employee's NI Category letter.
7904+
type: string
7905+
example: I
7906+
enum:
7907+
- A
7908+
- B
7909+
- C
7910+
- D
7911+
- E
7912+
- F
7913+
- H
7914+
- I
7915+
- J
7916+
- K
7917+
- L
7918+
- M
7919+
- N
7920+
- S
7921+
- V
7922+
- X
7923+
- Z
7924+
NICategory:
7925+
type: object
7926+
required:
7927+
- niCategory
7928+
- workplacePostcode
7929+
properties:
7930+
startDate:
7931+
description: The start date of the NI category (YYYY-MM-DD)
7932+
type: string
7933+
format: date
7934+
example: 2024-12-02
7935+
x-is-date: true
7936+
niCategory:
7937+
$ref: '#/components/schemas/NICategoryLetter'
7938+
niCategoryID:
7939+
description: Xero unique identifier for the NI category
7940+
type: number
7941+
example: 15
7942+
dateFirstEmployedAsCivilian:
7943+
description: The date in which the employee was first employed as a civilian (YYYY-MM-DD)
7944+
type: string
7945+
format: date
7946+
example: 2024-12-02
7947+
x-is-date: true
7948+
workplacePostcode:
7949+
description: The workplace postcode
7950+
type: string
7951+
example: SW1A 1AA
7952+
oneOf:
7953+
- required:
7954+
- workplacePostcode
7955+
properties:
7956+
niCategory:
7957+
enum:
7958+
- F
7959+
- I
7960+
- L
7961+
- S
7962+
- N
7963+
- E
7964+
- D
7965+
- K
7966+
- required:
7967+
- dateFirstEmployedAsCivilian
7968+
properties:
7969+
niCategory:
7970+
enum:
7971+
- V

0 commit comments

Comments
 (0)