[#1151] How to use getStartTimeMatrix

Migrated from Redmine #1151 | Author: Aria W
Status: New | Priority: High, I’m very impatient | Created: 2024-01-30


Hi, I would like to ask how to pass the location id when using getStartTimeMatrix api, it was unclear in the documentation. I do not understand the meaning of " If locations plugin activated for company you should pass a list as $unitID parameter ", could you please provide some instructions on that?

I tried to use {“jsonrpc”:“2.0”,“method”:“getStartTimeMatrix”,“params”:[“2024-01-31”,“2024-01-31”, “2”, { “unit_id”: 3, “location_id”: [“2”]},null, [1] ],“id”:1} and {“jsonrpc”:“2.0”,“method”:“getStartTimeMatrix”,“params”:[“2024-01-31”,“2024-01-31”, “2”, { “unit_id”: 3, “location_id”: 2},null, [1] ],“id”:1}, but they did not work, both returned me with false time slots, because the unit 3 was not even assigned to location 2.

Hope you can help me with this.
Thank you so much.

Redmine Admin wrote:

hi, you need to get location units first by calling getLocationsList

Aria W wrote:

Redmine Admin wrote:

hi, you need to get location units first by calling getLocationsList

Thank you for the reply. I have another question, so as written in the documentation, getStartTimeMatrix should also be available with service url “https://user-api.simplybook.me/” , but when I tried to call it, I got “access denied”, I checked the token, it was correct. So now I can only access this method with admin token, do you also have some insights?

Thank you in advance

Redmine Admin wrote:

it is available with admin token only