BokaMera.API.Host

<back to all web services

DeleteFavorite

Requires Authentication
The following routes are available for this service:
DELETE/users/favoriteRemove an company as favorite to the logged in userRemove an company as favorite to the logged in user.
DeleteFavorite Parameters:
NameParameterData TypeRequiredDescription
CompanyIdpathGuidYesId of the company
UserFavorites Parameters:
NameParameterData TypeRequiredDescription
CompanyIdformGuidNo
CompanyformCompanyQueryResponseYes
CompanyQueryResponse Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
NameformstringYes
OrganisationNumberformstringYesThe organisation number will only be visible if you are the owner of the company.
TypeIdformintNoWhat type of company. If it's used for personal use or as a company.
DetailsformstringYes
CategoryIdformintNo
CategoryformstringYes
LogoTypeformUriYes
CoverImageformUriYes
Street1formstringYes
Street2formstringYes
ZipCodeformstringYes
CityformstringYes
CountryIdformstringYes
LongitudeformstringYes
LatitudeformstringYes
Distanceformdouble?No
PhoneformstringYes
EmailformstringYes
HomepageformstringYes
SitePathformstringYes
ActiveformboolNo
CodeLockSystemformCodeLockSystemType?No
IsFreeAccountformboolNo
UpdatedformdatetimeNoWill show when the company was updated, note it will only be shown if your logged in as admin for the company.
CreatedformdatetimeNoWill show when the company was created, note it will only be shown if your logged in as admin for the company.
StatusIdformintNo
IsFavoriteformbooleanNoIf the company is marked as favourite for the logged in user
BookingAgreementsformstringYes
BookingSettingsformCompanyBookingSettingsNo
SystemSettingsformCompanySystemSettingsNo
WidgetSettingsformCompanyWidgetSettingsNo
HomepageSettingsformHomepageSettingsResponseYes
RatingSummaryformCompanyRatingSummaryNo
ReviewsformList<RatingReviewResponse>Yes
CustomerCustomFieldsformList<CustomFieldConfigData>Yes
ResponseStatusformResponseStatusYes
CodeLockSystemType Enum:
Sample
RcoM5
AxemaVaka
VanderbiltOmnis
ParakeyParakey
AmidoDax
TelkeyTelkey
TechSolutionsSiedle
Accessy
Zesec
Enabla
CompanyBookingSettings Parameters:
NameParameterData TypeRequiredDescription
EnableMobileAppformboolNo
BookingReceiptMessageformstringYes
ShowFreeTimesLeftformboolNo
EnableShowBookedTimesformboolNo
BookingAgreementformstringYes
WeekNumberSettingformintNoThe settings for how to display week number. 1 = ShowWeekNumberFromDate, 2 = ShowWeekNumberToDate, 3 = ShowWeekNumberFromToDate, 4 = DontShowWeekNumber
ShowBookedTimesformboolNo
PaymentProviderIdformintNoThe payment provider id. To get the full payment provider for the company call GET /payment/settings
BookOnlyOnExistingCustomersformbooleanNoIf it's only allowed for existing customers to book
PaymentEnabledformbooleanNoIf payment is enabled
BookingPinCodeRestrictionformstringYes
CustomerInvoiceAdressRequiredformboolNo
CompanySystemSettings Parameters:
NameParameterData TypeRequiredDescription
ActiveformboolNoIf the booking is active or not
InactiveMessageformstringYesIf the booking is not active, what message to show to the customers
SearchableformboolNoIf the company should be visible in search results on homepage
GATrackingIdformstringYesIf you have a Google Analytics account and want to track your customers behaviors.
GoogleAdsConversionIdformstringYesIf you have a Google Ads Conversion Id account and want to track your customers behaviors.
LinkedinTagIdformstringYesIf you have a LinkedIn account and want to track your customers behaviors.
GoogleAdsConversionLabelformstringYesIf you have a Google Ads Conversion Label and want to track your customers behaviors.
GTMTrackingIdformstringYesIf you have a Google Tag Manager account and want to track your customers behaviors.
FacebookPixelIdformstringYesIf you have a Facebook account and want to track your customers behaviors.
MultiLanguageformboolNoIf you want your customers to be able to change language on your homepage
ShowOnMarketplaceformboolNoIf the company should be visible on the marketplace
EnableAPITranslationformboolNoIf you want your own written text on your homepage to be translated using Google Translate when a user changes language
DefaultLanguageformstringYesWhat is the standard language your homepage information is written in. Select from the different countries, i.e. SE,NO,EN
SendCustomerInformationToExternalProvidersformboolNoIf you want to allow to send customer information in the tracking events to the external providers. Note you as a company are responsible for informing your customers and handling the data in terms of GDPR.
SMSMessageDailySendLimitformintNoThe maximum number of SMS messages that can be sent per day.
EmailMessageDailySendLimitformintNoThe maximum number of email messages that can be sent per day.
CompanyWidgetSettings Parameters:
NameParameterData TypeRequiredDescription
ServiceLayoutIdformintNoThe service layouts id.
TimeLayoutIdformintNoThe time layouts id.
BookingLayoutIdformintNoThe booking layouts id.
PrimaryColorformstringYesThe 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.
ShowEndTimeformboolNoIf you should show the end time in the booking widget.
BookedTimeSlotTextformstringYesWhat text to show on booked time slots. Default text is Booked
DarkThemeformboolNoIf the widget should be displayed in dark theme
ShowSubscribeToNewsletterformboolNoIf you should show the subscribe to newsletter checkbox in the booking widget.
HomepageSettingsResponse Parameters:
NameParameterData TypeRequiredDescription
HomepageHeadingformstringYesThe text for homepage heading
WelcomePageHeadingformstringYesThe text for homepage startpage heading
WelcomePageBodyformstringYesThe text for homepage startpage body
AboutUsPageHeadingformstringYesThe text for homepage about us page heading
AboutUsPageBodyformstringYesThe text for homepage about us page body
ImageUrlformUriYesThe startpage image url
CoverImageformUriYesThe cover image url
ShowRatingformboolNoShow rating on the page
HomePageTemplateIdformintNoThe template for the homepage
HeroSectionStyleIdformintNoThe hero section style for the homepage
EnableHomepageformboolNoEnable the BokaMera Homepage
CompanyRatingSummary Parameters:
NameParameterData TypeRequiredDescription
AverageScoreformdoubleNoThe average rating score
RatingScore1CountformintNoThe number of ratings of score 1
RatingScore2CountformintNoThe number of ratings of score 2
RatingScore3CountformintNoThe number of ratings of score 3
RaingScore4CountformintNoThe number of ratings of score 4
RatingScore5CountformintNoThe number of ratings of score 5
CountformintNoThe number of ratings
RatingReviewResponse Parameters:
NameParameterData TypeRequiredDescription
TitleformstringYesThe title for the review
DescriptionformstringYesThe description for the review
RatingScoreformintNoThe rating score
AuthorformstringYesThe review author
CreatedformDateTimeNoThe created date
ReviewAnswerformstringYesThe review answer from the company
CustomFieldConfigData Parameters:
NameParameterData TypeRequiredDescription
IdformintNoCustom field id
NameformstringYesConfiguration name. Example: 'Number of persons'.
DescriptionformstringYesCustom field description. Example: 'For how many persons is this booking?'
Widthformint?NoField width. Example: 20 for 20px
DataTypeformstringYesData field of custom field. Valid values are: TextBox, ... Example: 'TextBox'
DefaultValueformstringYesDefault value of the field. Example: '3'
IsMandatoryformboolNoDetermines if the field is required to have a value or not
MandatoryErrorMessageformstringYesError message shown to the user if the field data is required but not entered
MaxLengthformintNoMax lenght of the field
MultipleLineTextformboolNoIf the field should have multiple lines
RegExformstringYesRegular expression used for validation of the field
RegExErrorMessageformstringYesError message shown if the regular expression validation failed
ValuesformList<CustomFieldValueResponse>YesThe values to select from if Datatype is DropDown for this custom field
CustomFieldValueResponse Parameters:
NameParameterData TypeRequiredDescription
ValueformstringYes

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

HTTP + XML

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

DELETE /users/favorite HTTP/1.1 
Host: testapi.bokamera.se 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UserFavorites xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
  <Company>
    <Active>false</Active>
    <BookingAgreements>String</BookingAgreements>
    <BookingSettings>
      <BookOnlyOnExistingCustomers>false</BookOnlyOnExistingCustomers>
      <BookingAgreement>String</BookingAgreement>
      <BookingPinCodeRestriction>String</BookingPinCodeRestriction>
      <BookingReceiptMessage>String</BookingReceiptMessage>
      <CustomerInvoiceAdressRequired>false</CustomerInvoiceAdressRequired>
      <EnableMobileApp>false</EnableMobileApp>
      <EnableShowBookedTimes>false</EnableShowBookedTimes>
      <PaymentEnabled>false</PaymentEnabled>
      <PaymentProviderId>0</PaymentProviderId>
      <ShowBookedTimes>false</ShowBookedTimes>
      <ShowFreeTimesLeft>false</ShowFreeTimesLeft>
      <WeekNumberSetting>0</WeekNumberSetting>
    </BookingSettings>
    <Category>String</Category>
    <CategoryId>0</CategoryId>
    <City>String</City>
    <CodeLockSystem>Sample</CodeLockSystem>
    <CountryId>String</CountryId>
    <CoverImage i:nil="true" />
    <Created>0001-01-01T00:00:00</Created>
    <CustomerCustomFields>
      <CustomFieldConfigData>
        <DataType>String</DataType>
        <DefaultValue>String</DefaultValue>
        <Description>String</Description>
        <Id>0</Id>
        <IsMandatory>false</IsMandatory>
        <MandatoryErrorMessage>String</MandatoryErrorMessage>
        <MaxLength>0</MaxLength>
        <MultipleLineText>false</MultipleLineText>
        <Name>String</Name>
        <RegEx>String</RegEx>
        <RegExErrorMessage>String</RegExErrorMessage>
        <Values>
          <CustomFieldValueResponse>
            <Value>String</Value>
          </CustomFieldValueResponse>
        </Values>
        <Width>0</Width>
      </CustomFieldConfigData>
    </CustomerCustomFields>
    <Details>String</Details>
    <Distance>0</Distance>
    <Email>String</Email>
    <Homepage>String</Homepage>
    <HomepageSettings>
      <AboutUsPageBody>String</AboutUsPageBody>
      <AboutUsPageHeading>String</AboutUsPageHeading>
      <CoverImage i:nil="true" />
      <EnableHomepage>false</EnableHomepage>
      <HeroSectionStyleId>0</HeroSectionStyleId>
      <HomePageTemplateId>0</HomePageTemplateId>
      <HomepageHeading>String</HomepageHeading>
      <ImageUrl i:nil="true" />
      <ShowRating>false</ShowRating>
      <WelcomePageBody>String</WelcomePageBody>
      <WelcomePageHeading>String</WelcomePageHeading>
    </HomepageSettings>
    <Id>00000000-0000-0000-0000-000000000000</Id>
    <IsFavorite>false</IsFavorite>
    <IsFreeAccount>false</IsFreeAccount>
    <Latitude>String</Latitude>
    <LogoType i:nil="true" />
    <Longitude>String</Longitude>
    <Name>String</Name>
    <OrganisationNumber>String</OrganisationNumber>
    <Phone>String</Phone>
    <RatingSummary>
      <AverageScore>0</AverageScore>
      <Count>0</Count>
      <RaingScore4Count>0</RaingScore4Count>
      <RatingScore1Count>0</RatingScore1Count>
      <RatingScore2Count>0</RatingScore2Count>
      <RatingScore3Count>0</RatingScore3Count>
      <RatingScore5Count>0</RatingScore5Count>
    </RatingSummary>
    <ResponseStatus xmlns:d3p1="http://schemas.servicestack.net/types">
      <d3p1:ErrorCode>String</d3p1:ErrorCode>
      <d3p1:Message>String</d3p1:Message>
      <d3p1:StackTrace>String</d3p1:StackTrace>
      <d3p1:Errors>
        <d3p1:ResponseError>
          <d3p1:ErrorCode>String</d3p1:ErrorCode>
          <d3p1:FieldName>String</d3p1:FieldName>
          <d3p1:Message>String</d3p1:Message>
          <d3p1:Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d3p1:Meta>
        </d3p1:ResponseError>
      </d3p1:Errors>
      <d3p1:Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d3p1:Meta>
    </ResponseStatus>
    <Reviews>
      <RatingReviewResponse>
        <Author>String</Author>
        <Created>0001-01-01T00:00:00</Created>
        <Description>String</Description>
        <RatingScore>0</RatingScore>
        <ReviewAnswer>String</ReviewAnswer>
        <Title>String</Title>
      </RatingReviewResponse>
    </Reviews>
    <SitePath>String</SitePath>
    <StatusId>0</StatusId>
    <Street1>String</Street1>
    <Street2>String</Street2>
    <SystemSettings>
      <Active>false</Active>
      <DefaultLanguage>String</DefaultLanguage>
      <EmailMessageDailySendLimit>0</EmailMessageDailySendLimit>
      <EnableAPITranslation>false</EnableAPITranslation>
      <FacebookPixelId>String</FacebookPixelId>
      <GATrackingId>String</GATrackingId>
      <GTMTrackingId>String</GTMTrackingId>
      <GoogleAdsConversionId>String</GoogleAdsConversionId>
      <GoogleAdsConversionLabel>String</GoogleAdsConversionLabel>
      <InactiveMessage>String</InactiveMessage>
      <LinkedinTagId>String</LinkedinTagId>
      <MultiLanguage>false</MultiLanguage>
      <SMSMessageDailySendLimit>0</SMSMessageDailySendLimit>
      <Searchable>false</Searchable>
      <SendCustomerInformationToExternalProviders>false</SendCustomerInformationToExternalProviders>
      <ShowOnMarketplace>false</ShowOnMarketplace>
    </SystemSettings>
    <TypeId>0</TypeId>
    <Updated>0001-01-01T00:00:00</Updated>
    <WidgetSettings>
      <BookedTimeSlotText>String</BookedTimeSlotText>
      <BookingLayoutId>0</BookingLayoutId>
      <DarkTheme>false</DarkTheme>
      <PrimaryColor>String</PrimaryColor>
      <ServiceLayoutId>0</ServiceLayoutId>
      <ShowEndTime>false</ShowEndTime>
      <ShowNextAvailableTime>false</ShowNextAvailableTime>
      <ShowRebateCodeField>false</ShowRebateCodeField>
      <ShowServiceImage>false</ShowServiceImage>
      <ShowSubscribeToNewsletter>false</ShowSubscribeToNewsletter>
      <TimeLayoutId>0</TimeLayoutId>
    </WidgetSettings>
    <ZipCode>String</ZipCode>
  </Company>
  <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
</UserFavorites>