Api Changes|Lön|9 March 2022|Uppdaterad: 4 May 2023
Multiple registrations in Salary API
Salary API is now supporting multiple registrations per day
Salary API attendance/absence -transactions can now handle multiple registrations per day In order to enable full support for several Absence and Attendance registrations on the same day a single registration can no longer be identified by EmployeeId, Date, and CauseCode. Instead both Attendance and Absence registrations will use a dedicated Id-field as an identifier.
Technical Details All GET requests must accept the new Id-field in the response payload.
The GET requests for a single registration must supply only a single Id path parameter. Supplying EmployeeId, Date, and/or CauseCode will now return a list of matching registrations.
The PUT requests must supply a single Id path parameter. Supplying EmployeeId, Date, and/or CauseCode will cause an error.
The POST requests should not supply the Id field in the JSON payload. The Id will be auto generated by the application and returned in the response.
The new Id field is a string. Newly created ids will be lower case UUIDs stripped of any braces but with dashes, for example a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11. However requests may return id strings in other formats.