[#724] If I set providers hidden for website, does that mean provider is not active?

Migrated from Redmine #724 | Author: Kishor Maharjan
Status: Closed | Priority: High, I’m very impatient | Created: 2021-07-02


Hi there,

In a service provider, you can show/hide providers if you want to display on website or not. But when I choose hide, in API response I can still see that provider is_active is true. Can you please look into this one?

Thanks,
Kishor

Redmine Admin wrote:

this is correct, provider is active. There is another flag for hidden providers

Kishor Maharjan wrote:

Hi Redmin

This is quite critical for me. Can you please name which flag to hide providers. Same goes with services as well. From API docs, I cannot see any other flag to hide providers/services.

Name Type Description
id int Provider id. Auto-generated value.
name string Provider name
qty int Provider capacity
email string Provider email
description string Provider description
phone string Provider phone
picture string Picture file name
picture_preview string Path to preview picture
color string Provider color
is_active bool If provider is active

My assumption is if you do not want to show providers/services in a website, then in Simplybook admin you turn off Display service on the booking page? Even if I have turned off Display service on the booking page, is_active is still true.

Redmine Admin wrote:

there is flag is_hidden for that. Which API method you use?

Kishor Maharjan wrote:

I’m using these endpoints to retrieve data.

GET https://user-api-v2.simplybook.me/admin/services/
GET https://user-api-v2.simplybook.me/admin/categories
GET https://user-api-v2.simplybook.me/admin/providers/

Dmytro Bondarev wrote:

Hi! We will add these fields approximately Monday next week.

Kishor Maharjan wrote:

Hi Dmitry,

I’m just following up if you had a chance to look at this?

There is flag for is_active. Could you also please explain what is that flag for?

Thank you

Regards,
Kishor

Dmytro Bondarev wrote:

Hi! You can use is_visible flag already.
The is_active can be false in case services/provider/etc was used somewhere but was deleted by user.

Kishor Maharjan wrote:

Thank you so much Dmitry. This is resolved now.