Discussions

Ask a Question

API call to /absences missing data

Hey guys, it looks like the API call to /absences is not responding the full data (Get Absences in Range). For example, I try to get the absence on 24th August 2020 with the following GET request: https://app.papershift.com/public_api/v1/absences?api_token=<token>&page=1&range_end=2020-08-24&range_start=2020-08-24 I retrieve the absence I was looking for, but if I extend the time range and query all pages, I don't get the same absence, which is very weird. Here's the new URL: https://app.papershift.com/public_api/v1/absences?api_token=<token>&page=3&range_end=2020-08-24&range_start=2020-07-24 It looks like there are whole pages missing, because I only get max. 3 pages all the time. A few weeks back, everything was working fine. Any ideas? Have there been recent changes to the API? ~ Julian

WorkingSession get Time Tracking in Range duplicate

Hey guys, i try to get all time trackings of a specific person in a specific range. My curl-url looks like this: https://app.papershift.com/public_api/v1/working_sessions?api_token=api_token&range_end=2020-07-24&range_start=2020-07-10&user_id=user_id This request results almost always in duplicates. Has anyone ever got this issue before? Kind regards, Konstantin

Sandbox Mode

Hey, Is there a way to get the information about a configured sandbox mode for a given shift/time frame via api? thanks Josef

Inkonsistente Dokumentation

Hallo liebes Team! Ich schreibe eine Papershift Integration für ein Terminplanungssystem und stoße in der Dokumentation öfter auf widersprüchliche Aussagen. 1. Es ist nirgends angegeben, wie man bei Usern oder anderen Elementen explizit eine external_id festlegt, ein Update mit &#123; "api_key": "...", "user": &#123; "id": 1, "external_id": "abc" &#125; &#125; gibt zurück: "Did not find user with external ID 'abc' within authorized enterprise". (Der API-Key ist korrekt aktiviert und funktioniert auch sonst) Man sollte ja davon ausgehen können, dass die externe ID ersetzt/aktualisiert wird, wenn die normale ID angegeben ist. 2. Die Beispiele in der Dokumentation sind teilweise inkonsistent, so enthält das request für Update User folgendes: "data_profiles": &#123; "birthday": "1980-06-20", "desc": "Sample description" &#125; Das response enthält: "data_profiles": &#123; "birthday": &#123; "label": "Geburtstag", "value": "1980-06-20" &#125; &#125; Sollte intern dabei JSON merge/patch (rfc7396) verwendet werden, so wäre diese Notation falsch. (https://tools.ietf.org/html/rfc7396) Ansonsten ein großes Lob! Die Software funktioniert wirklich gut und ist übersichtlich. Eine kurze Antwort wäre hilfreich :) Vielen Dank! D. Marcinkowski

Laufender Saldo in API

Hello everybody! I am developing a small application that would get several information from Papershift. Now I need to get the current time saldo (Laufender Saldo) of each employee through the API. Is this value possible to get through the Time Tracking, Metrics or any other function in the API? A small example code would be very appreciated. Thanks a lot for your help and have a nice day!

Custom Shift fields

I have added custom fields in Location settings > Customize > shifts. We are planning on creating shifts by sending data to the API, but we are unsure if the API can put data into these custom fields. If you know the answer or could point me in the direction of the documentation for this, that would be great. Also if there is an alrenative solutioon let me know. Thanks Ollie

getting archived users

Hi, I have a problem when trying to get all users. **https://app.papershift.com/public_api/v1/users?** only seems to give me all the active and deactivated users. Is there a way to get **archived** users as well? I can see them in the Frontend...

Fehler beim Exporter

Sehr geehrte Damen und Herren, beim Exportieren der Monatsauswertung als Excel/CSV werden manchmal manche Saldo-Werte als "1,11022E-16" ausgegeben.: https://imgur.com/a/Oizbv Das erste Mal als das passiert ist, haben sich die Werte am nächsten Tag automatisch korrigiert. (wieder auf dem laufenden Saldo) Das passiert jetzt zum zweiten Mal und ich wollte fragen ob Sie wissen warum? Mit freundlichen Grüßen Georgi Damyanov

Actions und user_id bzw. user_external_id

Hallo, ich weiß, dass die Actions als "beta" markiert sind, allerdings liefern diese seit gestern beim Übertragen ein "422 Unprocessable Entity" zurück mit dem Inhalt "{"user_id":["muss ausgefüllt werden"]}". Das ist richtig, ich übergebe keine user_id jedoch die dann nötige user_external_id aus unserem ERP - die nach wie vor so im Papershift gepflegt ist. Ich helfe mir momentan mit einem Workaround, indem ich vorher die user_id anhand der external_id des Users abfrage und diese dann sende, aber ist halt eine API-Abfrage mehr.

Fetching Target Hours API

Hi, I am looking for Target hours API in papershift. I saw something in users api like: "status_working_hours_ag1": {"label": "1.7 Vertragsstunden", "value": "10" Where can I get the daily breakdown?