Questions about the API in general
- Can’t you create payroll entries (form entries) for multiple departments at the same time?
- Do we need a refresh token for each department?
- What happens when you are typing to add two entries for the same paytype?
- For example two lines with the same paytype (with id: pt1) for the same user (id: u1). With two different rates? (5 hours to 120 kr. and 2 hours to 60kr.)
- When fetching the paytypes, is there any way to detect if it’s a supplement or just an hour salary?
-
Hi Magnus,
I assume 'department' corresponds to what we call 'employer', i.e. a distinct DataLøn subscription.- No, they must be posted separately, since the employerId is part of the route.
- Yes, each refresh token is only valid for a single employer. When an employer provides you with a refresh token fetched on our integration site, that token should only give you access to post data on behalf of that specific employer.
- If the rates are the same for both paytypes, you can post as many instances of the same paytype as you like - they will just be summed when they are imported into a given payroll in DataLøn. However, if the rates are different, they cannot be imported into DataLøn. You can still post it to the API, but the user will get a validation error when importing, and will have to correct the data manually.
- There is currently no good way of detecting the properties of a given paytype using our API. You will have to handle it on your end somehow, such that you use the appropriate paytypes for your data. You can consult https://dataloen.bluegarden.dk/loendele to learn about the different paytypes.
Log ind for at efterlade en kommentar.
Kommentarer
1 kommentar