[#1157] API Call for availability failing.

Migrated from Redmine #1157 | Author: Guilherme Bueno
Status: New | Priority: High, I’m very impatient | Created: 2024-02-06


On my app’s availability endpoint I’m making a call to:
https://user-api-v2.simplybook.plus/admin/timeline/slots?date_from=2024-01-29&date_to=2024-01-30&provider_id=2&service_id=48&with_available_slots=1

Unfortunately the response I’m getting is simply a “false”. I went through the documentation and I seem to be doing everything correctly, I have the correct headers for the request prior to sending it but I’m not getting the results I’m supposed to. Also, this only happens to 2 specific products, the other ones seem to be fine.

Redmine Admin wrote:

Hi, a few questions:
what is your company login?
Is this provider linked to this service or all providers can do all services?

Guilherme Bueno wrote:

It’s now currently returning today’s date with empty slots when we currently have available slots for that service

Guilherme Bueno wrote:

Redmine Admin wrote:

Hi, a few questions:
what is your company login?
Is this provider linked to this service or all providers can do all services?

It’s linked to a specific service provider
My company login is santemedic1

Guilherme Bueno wrote:

Hi, any news on this?

Guilherme Bueno wrote:

Any updates? I really would like to get this solved today if possible

Nicholas Alias wrote:

Please update your request
date_to - should be in the future
please double check connected provider id

example:
https://user-api-v2.simplybook.plus/admin/timeline/slots?date_from=2024-01-29&date_to=2024-02-30&provider_id=8&service_id=48&with_available_slots=1

Guilherme Bueno wrote:

even with this:
https://user-api-v2.simplybook.plus/admin/timeline/slots?date_from=2024-02-06&date_to=2024-02-07&provider_id=6&service_id=4&with_available_slots=1
It still returns no slots for today, even though we have availability for it. It returns Feb 28th

Guilherme Bueno wrote:

Thank you for pointing out the provider id. That was the issue, i was looping through a couple providers but the correct one was not on the list! It’s solved now