Discussions

Ask a Question
ANSWERED

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
ANSWERED

Employee previous wages

Hello, For the endpoint `GET https://api.7shifts.com/v1/user/[userid]/wages`, we can pull the current and upcoming wages, but this endpoint doesn't appear to pull prior wages. How can we pull wages for a date before the current date? Thanks
ANSWERED

EMPLOYEE PHOTOS

HELLO.I WOULD LIKE TO ASK YOU HOW I CAN ADD EMPLOYEE PHOTOS TO 7SHIFTS.

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
ANSWERED

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.
ANSWERED

How do I get a role_id when querying for shifts (v2 API)?

When I query for shifts, I get valid data, such as the "user_id" and a "start" and "end" time. I can see "department_id" but "role_id" is always "0"! What am I doing wrong? In my case, department will be either "restaurant" or "bar", but I want the role for each shift, which would be something like "cook", "hostess", "dishwasher", etc.. Note that when I query for users and wages, I can see roles just fine.
ANSWERED

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
ANSWERED

GET https://api.7shifts.com/v2/company/{company_id}/users stopped working

Hi - I've been using that endpoint for some time, but I started getting this error a couple days ago: { "title": "Internal Server Error", "type": "https://httpstatus.es/500", "status": 500, "detail": "Body does not match schema for content-type \"application/json\" for Response [get /api/v2/company/{company_id}/users 200]\nLength of 'https://815eb0704ee5fefc0823-732830497efdb0e881ba2bd815804c2e.ssl.cf1.rackcdn.com/0b70b95deb2dfeeb11aa462c44169894/bec63434938611c798b0b445f80a2782_63394.jpg' must be shorter or equal to 100 (data.50.photo)." } That's the error I got from the "Try It" box just now on https://developers.7shifts.com/reference/listuserslist Did something change on that endpoint? Thanks, Bao
ANSWERED

Custom sales projections API

Hi, We are trying to send custom DAILY projections to 7shift using the custom sales projections api documented here - https://developers.7shifts.com/v1.0/reference/custom-sales-projections It doesn't appear to be working however - it gives a success but doesnt make a change in 7shifts. It appears department id might need to be sent along with the request but this isnt in the documentation and we dont know which department we would send this against. Thanks Sam
ANSWERED

Employee Documents and Certifications

Hello, We're looking to gain access to employee documents sections for both uploading and downloading. We have several use cases where an employee can complete a certificate outside of 7Shifts and we would be like to upload to their employee profile. On the verse side, if an on-boarding is completed in 7shifts, we need to be able to download and store with our payroll company. I don't see this endpoint available? Something that you would be willing to add? Thank you, Eric Osborn HeadPinz Entertainment