Migrated from Redmine #685 | Author: Hai To
Status: New | Priority: Immediate, there is BUG! | Created: 2021-04-19
Dear support team,
we are extracting working hours and bookings from the API to include the information to our DWH, but lately noticed, that we do not get all locations that are setup in the web-tool. Additionally we get “old” locations that have been deleted in the web-tool from the API. Can you please help us, I’m not sure whether this is a bug or whether we’ve to setup something specifically to get the expected results.
We have company_login: “sunshinesmilede” and for example get following location from the API
{‘id’: ‘42’, ‘title’: ‘paris-16’, ‘description’: ‘’, ‘address1’: ‘19 avenue de la Grande Armée’, ‘address2’: ‘’, ‘city’: ‘Paris’, ‘zip’: ‘75116’, ‘country_id’: ‘FR’, ‘lat’: ‘50.45465900000000000000’, ‘lng’: ‘30.52380000000000000000’, ‘phone’: ‘’, ‘position’: ‘76’, ‘is_default’: ‘0’, ‘file_id’: None, ‘seo_url’: None, ‘is_visible’: ‘1’, ‘name’: ‘paris-16’, ‘picture’: None, ‘picture_sub_path’: None, ‘picture_path’: None, ‘units’: [‘82’], ‘events’: [‘1’, ‘10’, ‘2’], ‘categories’: [‘1’], ‘units_position’: {‘82’: ‘1’}}
although this location does not exist in the Service Providers anymore https://sunshinesmilede.secure.booking.plusdental.io/v2/management/#providers/search/paris
In contrast there are locations like “Paris-14eme” and “Paris-18eme” that are not returned by the API for example.