Skip to content

Latest commit

 

History

History
185 lines (154 loc) · 7.17 KB

File metadata and controls

185 lines (154 loc) · 7.17 KB
title Account
nav_order 15

Information and settings for your account.

Attributes

NameTypeDescription
idIntegerAutomatically set
created_atDatetimeAutomatically set
updated_atDatetimeAutomatically set
subdomainStringRequired
emailStringRequired
nameStringRequired
google_analyticsString
css_urlString
time_zoneStringRequired
verification_methodInteger
addressString
country_codeStringRequired. ISO 3166-1 alpha-2.
google_merchant_idString
google_merchant_keyString
logoFile
templateIntegerRequired
service_templateString
localeStringRequired. Supported locales: 'en', 'sv' and 'nb'. Default: 'en'.
currencyStringISO4217 currency code
email_notificationBoolean
mail_notification_recipientEmail
sms_notificationBoolean
phone_numberString
confirm_manuallyBoolean
settingsArray
public_accessBoolean
interval_roundingIntegerDefault setting for all services for rounding to next available time. '15' will round 10:07 to become 10:15 as next available slot time.
slot_generation_typeIntegerDefault: 2. 1=fixed. 2=next available.
future_bookable_periodStringNatural language date/time relative to current time.
first_bookable_periodStringNatural language date/time relative to current time.
payment_providerString
footerText
verification_methodsString
reminder_smsBoolean
closed_for_holidaysBoolean
new_user_textLiquid-TextAbove booking form.
new_booking_textLiquid-TextBooking confirmation page.
booking_formLiquid-TextCustom booking form.
person_formLiquid-TextFor custom data in administration system.
resource_formLiquid-TextFor custom data in administration system.
service_formLiquid-TextFor custom data in administration system.
event_formLiquid-TextFor custom data in administration system.
appointment_formLiquid-TextFor custom data in administration system.
category_formLiquid-TextFor custom data in administration system.
sms_verificationLiquid-Text
sms_confirmationLiquid-Text
sms_modificationLiquid-Text
sms_cancellationLiquid-Text
sms_reminderLiquid-Text
mail_verificationLiquid-Text
mail_confirmationLiquid-Text
mail_modificationLiquid-Text
mail_cancellationLiquid-Text
mail_verification_subjectString
mail_confirmation_subjectString
mail_modification_subjectString
mail_cancellation_subjectString
allow_cancellationBoolean
cancellation_periodStringNatural language date/time relative to start of booking.

Additional parameters

NameTypeDescription
remove_logoBoolean

Get account

GET /client will get the account.

Update account

PUT /client will update the account.

Holidays

Who doesn't like a holiday?

Listing

GET /client/holidays will get holidays for account country.

Response

[
  {
    "holiday": {
      "date": "2016-01-01",
      "name": "New Year's Day"
    }
  },
  {
    "holiday": {
      "date": "2016-05-01",
      "name": "International Workers' Day"
    }
  }
]

Query Parameters

NameTypeDescription
fromDate
toDate

Users

Users who can log in to the account.

Attributes for user role on the account

NameTypeDescription
idIntegerAutomatically set
created_atDatetimeAutomatically set
updated_atDatetimeAutomatically set
user_idIntegerAutomatically set
roleStringadmin, manager or staff
userObjectSee attributes for a user

Attributes for user

NameTypeDescription
idIntegerAutomatically set
created_atDatetimeAutomatically set
updated_atDatetimeAutomatically set
nameStringRequired
emailStringRequired
phone_numberStringAlso available as phonenumber (deprecated).

Listing

GET /client/users will list all users with access to the account.

Response

[
  {
    "client_user_link": {
      "id": 1337,
      "created_at": "2016-11-07T07:26:32+01:00",
      "updated_at": "2016-11-07T07:27:42+01:00",
      "role": "admin",
      "user_id": 1,
      "user": {
          "id": 1,
          "email": "maestro@example.org",
          "phone_number": "180",
          "name": "Espen Antonsen",
          "created_at": "2016-11-07T07:26:32+01:00",
          "updated_at": "2016-11-07T07:27:42+01:00"
      }
    }
  }
]

Get user

GET /client/users/{user_link_id} will get a user with id {user_link_id}.

Add new user

POST /client/users will create a new user. An email is sent to the user so the user can specify their password.