[#714] Why would available slot count = null?

Migrated from Redmine #714 | Author: Grant Spilsbury
Status: Closed | Priority: Normal | Created: 2021-06-11


Hi,

I am making a call to admin/timeline/slots with:
companyId: “trainingsite”,
apiToken: “6c65e4a4a018844826a2482ac5b8c8eccfe7ad1a419985d6a350f24f8a3b0020”

and params of
{
date_from: ‘2021-06-29’,
date_to: ‘2021-06-29’,
service_id: ‘5’,
with_available_slots: 1,
provider_id: 3
}

I get a response back but it has a lot of available_count:null and total_count:null

[{“id”:“2021-06-29”,“date”:“2021-06-29”,“slots”:[{“id”:“09:00:00”,“time”:“09:00:00”,“available_count”:null,“total_count”:null},{“id”:“10:00:00”,“time”:“10:00:00”,“available_count”:null,“total_count”:null},{“id”:“11:00:00”,“time”:“11:00:00”,“available_count”:null,“total_count”:null},{“id”:“12:00:00”,“time”:“12:00:00”,“available_count”:null,“total_count”:null},{“id”:“13:00:00”,“time”:“13:00:00”,“available_count”:null,“total_count”:null},{“id”:“14:00:00”,“time”:“14:00:00”,“available_count”:null,“total_count”:null},{“id”:“15:00:00”,“time”:“15:00:00”,“available_count”:null,“total_count”:null},{“id”:“16:00:00”,“time”:“16:00:00”,“available_count”:null,“total_count”:null}]}]

Why would these values be null?

Val Komarov wrote:

Is slots_count plugin enabled?

Grant Spilsbury wrote:

Val Komarov wrote:

Is slots_count plugin enabled?

How do I enable slots_count plugin?

Val Komarov wrote:

Via admin interface, in plugins list (your_admin_page_address/v2/management/#plugins/slots_count/)

Grant Spilsbury wrote:

Val Komarov wrote:

Via admin interface, in plugins list (your_admin_page_address/v2/management/#plugins/slots_count/)

Thanks. Fixed.