BokaMera.API.Host

<back to all web services

CreateCompany

The following routes are available for this service:
POST/companies/Create new companyCreate your company information.
CreateCompany Parameters:
NameParameterData TypeRequiredDescription
NamebodystringYes
OrganisationNumberbodystringYes
TypeIdbodyintYesWhat type of company. If it's used for personal use or as a company. 1 = Company use, 2 = Personal use
CompanyOwnerIdbodyintYesWhat company owner. 1 = BokaMera (default)
OpeningHoursbodystringYes
DetailsbodystringYes
CategoryIdbodystringYes
LogoTypebodyuriYes
Street1bodystringYes
Street2bodystringYes
ZipCodebodystringYes
CitybodystringYes
CountryIdbodystringYes
LongitudebodystringYes
LatitudebodystringYes
PhonebodystringYes
EmailbodystringYes
FaxbodystringYes
HomepagebodystringYes
SitePathbodystringYes
CompanyUserbodyCreateCompanyCompanyUserYes
BillingInformationbodyCreateCompanyBillingInformationYes
LicenseTypeIdbodyintYesId of the license type. If none is set it's free license
DomainNamebodystringYes
CreateCompanyCompanyUser Parameters:
NameParameterData TypeRequiredDescription
FirstnameformstringYes
LastnameformstringYes
PhoneformstringYes
EmailformstringYes
WorkerIdformint?No
CreateCompanyBillingInformation Parameters:
NameParameterData TypeRequiredDescription
NameformstringYesThe name that should be printed on the billing information, normally this would be your company name.
AttentionformstringYesIf you want to add the attention to the billing address.
Street1formstringYesThe street for the billing adress. This is required when having postal invoice as billing method.
Street2formstringYesThe street for the billing adress.
ZipCodeformstringYesThe zip code (postal code) for the billing adress. This is required when having postal invoice as billing method.
CityformstringYesThe city for the billing adress. This is required when having postal invoice as billing method.
EmailformstringYesThe billing email. This is required when having email invoice as billing method.
PaymentTermsDaysformint?NoThe billing payment terms in days. This is default 15 days.
VatRegistrationNumberformstringYesThe company vat registration number.
BillingInfoBase Parameters:
NameParameterData TypeRequiredDescription
FirstNameformstringYes
LastNameformstringYes
PhoneNumberformstringYes
CountryIdformstringYes
BillingMethodIdformintNo
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 .other suffix or ?format=other

HTTP + OTHER

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

POST /companies/ HTTP/1.1 
Host: testapi.bokamera.se 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Name":"String","OrganisationNumber":"String","TypeId":0,"CompanyOwnerId":0,"OpeningHours":"String","Details":"String","CategoryId":0,"Street1":"String","Street2":"String","ZipCode":"String","City":"String","CountryId":"String","Longitude":"String","Latitude":"String","Phone":"String","Email":"String","Fax":"String","Homepage":"String","SitePath":"String","CompanyUser":{"Firstname":"String","Lastname":"String","Phone":"String","Email":"String","WorkerId":0},"BillingInformation":{"Name":"String","Attention":"String","Street1":"String","Street2":"String","ZipCode":"String","City":"String","Email":"String","PaymentTermsDays":0,"VatRegistrationNumber":"String","FirstName":"String","LastName":"String","PhoneNumber":"String","CountryId":"String","BillingMethodId":0},"LicenseTypeId":0,"DomainName":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Name":"String","OrganisationNumber":"String","TypeId":0,"Details":"String","CategoryId":0,"Category":"String","Street1":"String","Street2":"String","ZipCode":"String","City":"String","CountryId":"String","Longitude":"String","Latitude":"String","Distance":0,"Phone":"String","Email":"String","Homepage":"String","SitePath":"String","Active":false,"CodeLockSystem":"Sample","IsFreeAccount":false,"Updated":"0001-01-01T00:00:00","Created":"0001-01-01T00:00:00","StatusId":0,"IsFavorite":false,"BookingAgreements":"String","BookingSettings":{"EnableMobileApp":false,"BookingReceiptMessage":"String","ShowFreeTimesLeft":false,"EnableShowBookedTimes":false,"BookingAgreement":"String","WeekNumberSetting":0,"ShowBookedTimes":false,"PaymentProviderId":0,"BookOnlyOnExistingCustomers":false,"PaymentEnabled":false,"BookingPinCodeRestriction":"String","CustomerInvoiceAdressRequired":false},"SystemSettings":{"Active":false,"InactiveMessage":"String","Searchable":false,"GATrackingId":"String","GoogleAdsConversionId":"String","LinkedinTagId":"String","GoogleAdsConversionLabel":"String","GTMTrackingId":"String","FacebookPixelId":"String","MultiLanguage":false,"ShowOnMarketplace":false,"EnableAPITranslation":false,"DefaultLanguage":"String","SendCustomerInformationToExternalProviders":false,"SMSMessageDailySendLimit":0,"EmailMessageDailySendLimit":0},"WidgetSettings":{"ServiceLayoutId":0,"TimeLayoutId":0,"BookingLayoutId":0,"PrimaryColor":"String","ShowServiceImage":false,"ShowRebateCodeField":false,"ShowNextAvailableTime":false,"ShowEndTime":false,"BookedTimeSlotText":"String","DarkTheme":false,"ShowSubscribeToNewsletter":false},"HomepageSettings":{"HomepageHeading":"String","WelcomePageHeading":"String","WelcomePageBody":"String","AboutUsPageHeading":"String","AboutUsPageBody":"String","ShowRating":false,"HomePageTemplateId":0,"HeroSectionStyleId":0,"EnableHomepage":false},"RatingSummary":{"AverageScore":0,"RatingScore1Count":0,"RatingScore2Count":0,"RatingScore3Count":0,"RaingScore4Count":0,"RatingScore5Count":0,"Count":0},"Reviews":[{"Title":"String","Description":"String","RatingScore":0,"Author":"String","ReviewAnswer":"String"}],"CustomerCustomFields":[{"Id":0,"Name":"String","Description":"String","Width":0,"DataType":"String","DefaultValue":"String","IsMandatory":false,"MandatoryErrorMessage":"String","MaxLength":0,"MultipleLineText":false,"RegEx":"String","RegExErrorMessage":"String","Values":[{"Value":"String"}]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}