Add earnings rates endpoint to Payroll-Api-AU#752
Add earnings rates endpoint to Payroll-Api-AU#752sue-obeirne-xero wants to merge 10 commits intoXeroAPI:masterfrom
Conversation
|
PETOSS-823 |
|
Thanks for raising an issue, a ticket has been created to track your request |
| url: https://github.com/XeroAPI/Xero-OpenAPI/blob/master/LICENSE | ||
| servers: | ||
| - description: Xero Payroll AU API | ||
| - description: Xero Payroll AU API (v1) |
There was a problem hiding this comment.
Maybe we need a new seperate server for our new endpoitns?
| - in: query | ||
| name: page | ||
| description: Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. When page value is not a number or a negative number, by default, the first set of records is returned | ||
| example: https://api.xero.com/payroll.xro/2.0/earningsRates?page=2 to get the second set of the records. |
| tags: | ||
| - PayrollAu | ||
| operationId: getEarningsRates | ||
| x-hasPayrollUkProblem: true |
There was a problem hiding this comment.
Its a vendor extension used for generation of the SDKs from the spec...specifically java sdk in this case 😀 Theres a list in xero-internal I'll send to you
| tags: | ||
| - PayrollAu | ||
| operationId: createEarningsRate | ||
| x-hasPayrollUkProblem: true |
| operationId: getEarningsRate | ||
| servers: | ||
| - url: https://api.xero.com/payroll.xro/2.0 | ||
| x-hasPayrollUkProblem: true |
| Pagination: | ||
| properties: | ||
| page: | ||
| type: integer | ||
| example: 1 | ||
| pageSize: | ||
| type: integer | ||
| example: 10 | ||
| pageCount: | ||
| type: integer | ||
| example: 1 | ||
| itemCount: | ||
| type: integer | ||
| example: 2 | ||
| Problem: | ||
| description: The object returned for a bad request | ||
| type: object | ||
| properties: | ||
| type: | ||
| description: The type of error format | ||
| type: string | ||
| example: application/problem+json | ||
| title: | ||
| description: The type of the error | ||
| type: string | ||
| example: BadRequest | ||
| status: | ||
| description: The error status code | ||
| type: string | ||
| example: 400 | ||
| detail: | ||
| description: A description of the error | ||
| type: string | ||
| example: Validation error occurred. | ||
| instance: | ||
| type: string | ||
| invalidFields: | ||
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/InvalidField' | ||
| InvalidField: | ||
| type: object | ||
| properties: | ||
| name: | ||
| description: The name of the field that caused the error | ||
| type: string | ||
| example: isExemptFromSuper | ||
| reason: | ||
| description: The reason the error occurred | ||
| type: string | ||
| example: The property isExemptFromSuper is required. |
There was a problem hiding this comment.
yep they are part of the open api schema for the v2 endpoints
| description: For allowances using RatePerUnit only, whether it contributes towards the overtime rate. | ||
| type: boolean | ||
| example: false | ||
| EarningsRateObject: |
There was a problem hiding this comment.
EarningsRateObject needs to be cleaned up thank you!
| operationId: getEarningsRates | ||
| x-hasPayrollUkProblem: true | ||
| servers: | ||
| - url: https://api.xero.com/payroll.xro/2.0 |
There was a problem hiding this comment.
@rickyh5000 have left the server uri as is and only added the V2 server uri for the V2 endpoints... however if you think it would be easier to understand we can always put both server uris into the dropdown?
There was a problem hiding this comment.
I just think it might be a bit misleading but not sure how easy it is to put the V2 server uri into the dropdown
… for pagination query param, remove unnecessary object
| type: boolean | ||
| example: false | ||
| AccrueLeave: | ||
| description: Indicates that this earnings rate should affect accruing of leave. Only applicable if RateType is MULTIPLEOFORDINARYEARNINGSRATE |
There was a problem hiding this comment.
| description: Indicates that this earnings rate should affect accruing of leave. Only applicable if RateType is MULTIPLEOFORDINARYEARNINGSRATE | |
| description: Indicates that this earnings rate should affect accruing of leave. |
Not sure if we need that extra part here, this feels like more just a generic description and the Required if RateType is MultipleOfOrdinaryEarningsRate is more for the POST only





Description
Release Notes
Screenshots (if appropriate):
Types of Changes