BokaMera.API.Host

<back to all web services

HomepageWidgetSettingsQuery

The following routes are available for this service:
GET/homepage/widget/settingsGet homepage widget settingsGet homepage widget settings on the company of the currently logged in user, only administrators are allowed to update homepage menu.
HomepageWidgetSettingsQuery Parameters:
NameParameterData TypeRequiredDescription
CompanyIdqueryGuid?NoThe company id, if empty will use the company id for the user you are logged in with.
SitePathquerystringNoThe homepage sitepath.
IncludeServiceLayoutOptionsqueryboolNoIf you want to include what service layout options to select from
IncludeTimeLayoutOptionsqueryboolNoIf you want to include what time layout options to select from
IncludeBookingLayoutOptionsqueryboolNoIf you want to include what booking layout options to select from
IncludeBookingMethodOptionsqueryboolNoIf you want to include what booking method options to select from
HomepageWidgetSettingsQueryResponse Parameters:
NameParameterData TypeRequiredDescription
CompanyIdformGuidNoThe company id.
ServiceLayoutIdformintNoThe service layouts id.
TimeLayoutIdformintNoThe time layouts id.
BookingLayoutIdformintNoThe booking layouts id.
PrimaryColorformstringNoThe primary color of the booking widget.
ShowServiceImageformboolNoIf you should show the service image in the booking widget.
ShowRebateCodeFieldformboolNoIf you should show the rebate code field in the booking widget.
ShowNextAvailableTimeformboolNoIf you should show the next available time in the booking widget.
EnableCreateAccountformboolNoIf you should show the create account option.
EnableLoginformboolNoIf you should show the login to account option.
EnableFacebookLoginformboolNoIf you should show the facebook login to account option.
EnableDirectBookingformboolNoIf you should show the direct booking option. This enables customer to book with entering contact information.
DarkThemeformboolNoIf the site should have dark theme or not.
ShowEndTimeformboolNoIf you should show the end time in the booking widget.
BookedTimeSlotTextformstringNoWhat text to show on booked time slots. Default text is Booked
ServiceLayoutOptionsformList<HomepageWidgetServiceLayoutsResponse>No
TimeLayoutOptionsformList<HomepageWidgetTimeLayoutsResponse>No
BookingLayoutOptionsformList<HomepageWidgetBookingLayoutsResponse>No
BookingMethodOptionsformList<HomepageWidgetBookingMethodsResponse>No
HomepageWidgetServiceLayoutsResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe layout id.
NameformstringNoThe layout name.
DescriptionformstringNoThe layout description.
CodeformstringNoThe layout code.
HomepageWidgetTimeLayoutsResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe layout id.
NameformstringNoThe layout name.
DescriptionformstringNoThe layout description.
CodeformstringNoThe layout code.
HomepageWidgetBookingLayoutsResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe layout id.
NameformstringNoThe layout name.
DescriptionformstringNoThe layout description.
CodeformstringNoThe layout code.
HomepageWidgetBookingMethodsResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe layout id.
NameformstringNoThe layout name.
DescriptionformstringNoThe layout description.
CodeformstringNoThe layout code.

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /homepage/widget/settings HTTP/1.1 
Host: testapi.bokamera.se 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ServiceLayoutId":0,"TimeLayoutId":0,"BookingLayoutId":0,"PrimaryColor":"String","ShowServiceImage":false,"ShowRebateCodeField":false,"ShowNextAvailableTime":false,"EnableCreateAccount":false,"EnableLogin":false,"EnableFacebookLogin":false,"EnableDirectBooking":false,"DarkTheme":false,"ShowEndTime":false,"BookedTimeSlotText":"String","ServiceLayoutOptions":[{"Id":0,"Name":"String","Description":"String","Code":"String"}],"TimeLayoutOptions":[{"Id":0,"Name":"String","Description":"String","Code":"String"}],"BookingLayoutOptions":[{"Id":0,"Name":"String","Description":"String","Code":"String"}],"BookingMethodOptions":[{"Id":0,"Name":"String","Description":"String","Code":"String"}]}