Discussions
How to retrieve a photo using v2 API?
When I query users and look at the "photo" property, I see something like this:
f503fa8283021a3bc2c69b46f29d8a1a_61954.jpg
But I can't figure out how to turn that into a useable URL from which to fetch the photo.
For example, the following does NOT work:
https://api.7shifts.com/img/f503fa8283021a3bc2c69b46f29d8a1a_61954.jpg
Posted by Mikey Wetzel 8 months ago
EMPLOYEE PHOTOS
HELLO.I WOULD LIKE TO ASK YOU HOW I CAN ADD EMPLOYEE PHOTOS TO 7SHIFTS.
Posted by EVANGELIA FOTIOU 10 months ago
Weekly wage on List Shifts endpoint
Hi,
We are pulling shifts using the list shifts endpoint.
I noticed that weekly wages are returned under the hourly_wage field. I dont see a related field that can tell us whether that is a weekly salary or an hourly wage.
Is it possible to add that context, or to have the hourly wage calculated from weekly down to hourly?
Thanks!
Posted by Sam 12 months ago
Employee Bidding on shifts
I am an employee working for a company that uses 7shifts. When bidding on a shift that a co-worker has given up the shift typically goes to who bids on it first. Is there an API for employee use so I can automate bidding on shifts?
Posted by Matthew about 1 year ago
Providing Roles object in Users endpoint
Hello!
We're using 7Shifts to sync our staff lists across platforms (it makes more sense to make 7Shifts the point of origination, since managers interact with 7Shifts more than other platforms we use). Our company has multiple Companies, each company has multiple Locations, and users can be assigned to multiple Locations (including cross-company).
We've actually finished the synchronization integration we wanted to achieve, but our total user list exceeds 1,400 users. What's happening is we're querying the /users endpoint for each company, then having to individually query the /roles endpoint for each user. This methodology is as-per the guide provided on the API documentation.
Our script execution time for active users only is 74 seconds, for all users including inactive, it's 280 seconds. This isn't a problem for us, but I just wanted to provide a suggestion to provide the Roles object when access the /users endpoint (maybe make it a query parameter). We would be able to synchronize our user list with a total of a dozen API calls instead of over 1,000 of them and reduce load on your server.
Posted by Varant about 1 year ago
Get shifts between 2 dates
Hi,
I'm trying to get shifts between 2 dates, but im getting a 500 error:
e.g
/v1/shifts?start[gte]=2022-04-01&end[lte]=2022-04-02
I tried the following instead:
/v1/shifts?start[gte]=2022-04-01&start[lte]=2022-04-02
This comes back with data, but the less than or equals is working like less than - ie its returning shifts that start only on April 1, even though i requested shifts that are less than or equal to april 2
Posted by Sam about 1 year ago
Oauth Callback URL
Hi,
In the oauth authentication guide (https://developers.7shifts.com/docs/oauth-authentication), the documentation specifies that the callback url will be in the following format:
https://your-callback-url/{CLIENT_ID}#guid={GUID}&company_id={COMPANY_ID}
Does this imply the client id is appended to the url path after your callback url, or this is just an example callback url?
Thanks
Posted by Sam about 1 year ago
Integration Parameters
Hello there,
I have a question from your Create Receipts documentation(https://developers.7shifts.com/reference/create-receipt) it lists the only parameters that are able to be passed are total, open_date, location_id, external_id. Are these the only types that can be passed over from an external system?
For example we have ordernumber, orderid, orderitems, among others, and we have a client that reached out asking if an integration with 7shifts is possible.
Thanks,
Posted by Tom Varian over 1 year ago
Invalid Time zone
{"user_id":4234955,"role_id":1092174,"department_id":326030,"location_id":225051,"clocked_in":"2022-1-19 10:13:11","clocked_out":"2022-1-19 10:13:11"}
I have sent UTC as well as local time response is always the same.
{"status":"error","message":"Location timezone is invalid","type":"unknown"}
try this on you postman.
Posted by Ben Dowdy over 1 year ago
Location timezone is invalid
this is the message returned 'Location timezone is invalid' on clock in.
the location is set to america/toronto.
Posted by Ben Dowdy over 1 year ago