Discussions

Ask a Question
Back to All

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!

Admin

Hello,

The the hourly_wage field should return a value if a user has a wage or has role based wages assigned to them. If the user has weekly salary wages the value for hourly_wage should be 0.00. The endpoint is not supposed to support weekly wages. Can you provide a sample request and response to confirm what you are seeing.

Hi Ricardo,

Sorry i do see that hourly_wage is 0 when the user is set to weekly, now that i've run a few more tests.

How is it best to get the weekly wage in this case?
Do we need to fetch the user and read the "hourly_wage" column along with "wage_type" column any time the hourly wage on a shift is 0?

It would be great if both the shifts and users endpoints could behave the same with the hourly_wage and wage_type fields, as they currently behave differently (users endpoints returns hourly_wage=0 when weekly wage is set, users endpoint returns the houly_wage=weekly wage).

Also thinking by fetching the weekly wage from the list users endpoint, we are missing context about what the wage was at the point of that shift (when retrieving historic shifts), and therefore the cost of the shift may vary over time.

ο»Ώ