API-dokumentaatio

Methods

    Vastaanottolomakkeet

  • Get additional fields list

    Return intake forms fields. (intake forms custom feature)
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass filter (see http example) with following parameters:
    service_id - return fields for this service
    Endpoint:
    /admin/additional-fields
    Method:
    GET
    Pyynnön parametrit:
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/additional-fields?filter[service_id]=1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Tunnistus

  • Authentication

    Authentication process. Return auth token info (TokenEntity)
    Accepts AdminLoginEntity data as body of request.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Endpoint:
    /admin/auth
    Method:
    POST
    Pyynnön parametrit:
    AdminLoginEntity body - authentication data
    Return:
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/auth
    Content-Type: application/json
    
    {
      "company": "<insert your company login>",
      "login": "<insert your user login>",
      "password": "<insert your user password>"
    }
  • Second factory authentication

    Second factory authentication process. Return auth token info (TokenEntity). Required in case 2FA authentication is enabled.
    Pass session from authentication step. In case you use SMS as 2fa provider you need to call /admin/auth/sms to receive SMS with code.
    Accepts AdminLogin2FAEntity data as body of request.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Throws AccessDenied error in case user does not have access to perform this action.
    Endpoint:
    /admin/auth/2fa
    Method:
    POST
    Pyynnön parametrit:
    AdminLogin2FAEntity body - second factory authentication data
    Return:
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/auth/2fa
    Content-Type: application/json
    
    {
      "company": "<insert your company login>",
      "session_id": "<insert session_id value from auth request>",
      "code": "<insert 2FA code>",
      "type": "<insert 2FA type (ga/sms)>"
    }
  • Get SMS code

    Send SMS to user phone number. Returns empty response.
    Throws BadRequest error in case invalid data was provided.
    Throws AccessDenied error in case user does not have access to perform this action.
    Endpoint:
    /admin/auth/sms
    Method:
    GET
    Pyynnön parametrit:
    string company - company login
    string session_id - company login
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/auth/sms?company=<insert your company login>&session_id=<insert session_id value from auth request>
    Content-Type: application/json
  • Renew token with refresh token

    Renew token with refresh token with refresh token, that was received on authentication step. Return TokenEntity.
    Accepts RefreshTokenEntity data as body of request.
    Throws BadRequest error in case invalid data was provided.
    Throws AccessDenied error in case user does not have access to perform this action.
    Endpoint:
    /admin/auth/refresh-token
    Method:
    POST
    Pyynnön parametrit:
    RefreshTokenEntity body - refresh token data
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/auth/refresh-token
    Content-Type: application/json
    
    {
      "company": "<insert your company login>",
      "refresh_token": "<insert refresh_token from auth step>"
    }
  • Logout and revoke token

    Revoke token that was received on authentication.
    Accepts AdminLogoutEntity data as body of request.
    Throws BadRequest error in case invalid data was provided.
    Throws AccessDenied error in case user does not have access to perform this action.
    Endpoint:
    /admin/auth/logout
    Method:
    POST
    Pyynnön parametrit:
    AdminLogoutEntity body - logout data
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/auth/logout
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "auth_token": "<insert your token from auth step>"
    }
  • Varaukset

  • Make new booking

    Make new booking and return booking result (BookingResultEntity).
    Accepts AdminBookingBuildEntity data as body of request.
    Throws AccessDenied error in case user does not have access to booking.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Endpoint:
    /admin/bookings
    Method:
    POST
    Pyynnön parametrit:
    AdminBookingBuildEntity body - booking data
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/bookings
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "count": 1,
      "start_datetime": "2020-12-02 09:30:00",
      "location_id": 2,
      "category_id": 2,
      "provider_id": 4,
      "service_id": 3,
      "client_id": 10,
      "additional_fields": [
        {
          "field": "e5a1d0e5312b9515874406a89c986765",
          "value": "test"
        },
        {
          "field": "3adae019f9183fcfb7b02fcef54b094d",
          "value": "Option 1"
        },
        {
          "field": "9c3ce1fc22bd50cbb21bdfcfd2f850bf",
          "value": "988"
        },
        {
          "field": "1a2e4bdc78b9fd4593d8924b25f38244",
          "value": "Select 2"
        }
      ]
    }
  • Edit booking

    Modify booking and return booking result (BookingResultEntity).
    Accepts AdminBookingBuildEntity data as body of request.
    Throws AccessDenied error in case user does not have access to booking.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Throws NotFound error in case booking is not found.
    Endpoint:
    /admin/bookings/{id}
    Method:
    PUT
    Pyynnön parametrit:
    int id - booking id
    AdminBookingBuildEntity body - booking data
    Throws:
    AccessDenied
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/bookings/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "count": 1,
      "start_datetime": "2020-12-02 09:30:00",
      "location_id": 2,
      "category_id": 2,
      "provider_id": 4,
      "service_id": 3,
      "client_id": 10,
      "additional_fields": [
        {
          "field": "e5a1d0e5312b9515874406a89c986765",
          "value": "test"
        },
        {
          "field": "3adae019f9183fcfb7b02fcef54b094d",
          "value": "Option 1"
        },
        {
          "field": "9c3ce1fc22bd50cbb21bdfcfd2f850bf",
          "value": "988"
        },
        {
          "field": "1a2e4bdc78b9fd4593d8924b25f38244",
          "value": "Select 2"
        },
        {
          "field": "b90b2d238ffc2a7a782c6a81a8e60bb1",
          "value": "test"
        }
      ]
    }
  • Get booking details

    Return booking item entity by booking id. (AdminBookingDetailsEntity)
    Throws AccessDenied error in case user does not have access to booking.
    Throws NotFound error in case booking is not found.
    Endpoint:
    /admin/bookings/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - booking id
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/bookings/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Cancel booking

    Cancel booking by booking id and return booking that was canceled (AdminBookingDetailsEntity).
    Throws AccessDenied error in case user does not have access to booking.
    Throws NotFound error in case booking is not found.
    Endpoint:
    /admin/bookings/{id}
    Method:
    DELETE
    Pyynnön parametrit:
    int id - booking id
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    DELETE https://user-api-v2.simplybook.me/admin/bookings/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Approve booking with approve booking custom feature

    Approve booking by booking id and return booking details (AdminBookingDetailsEntity).
    Throws AccessDenied error in case user does not have access to booking.
    Throws BadRequest error in case booking can not be approved.
    Throws NotFound error in case booking is not found.
    Endpoint:
    /admin/bookings/{id}/approve
    Method:
    PUT
    Pyynnön parametrit:
    int id - booking id
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/bookings/1/approve
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Apply status with status custom feature

    Apply booking status booking by booking id and return booking details (AdminBookingDetailsEntity).
    Throws AccessDenied error in case user does not have access to booking.
    Throws NotFound error in case booking is not found.
    Endpoint:
    /admin/bookings/{id}/status
    Method:
    PUT
    Pyynnön parametrit:
    int id - booking id
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/bookings/1/status
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "status_id": 1
    }
  • Set comment for booking

    Set booking comment by booking id and return booking details (AdminBookingDetailsEntity).
    Throws AccessDenied error in case user does not have access to booking.
    Throws NotFound error in case booking is not found.
    Endpoint:
    /admin/bookings/{id}/comment
    Method:
    PUT
    Pyynnön parametrit:
    int id - booking id
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/bookings/1/comment
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "comment": "This is booking comment."
    }
  • Get online meeting link for provider

    Endpoint:
    /admin/bookings/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - booking id
    Return:
    string
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/bookings/1/online-meeting-link
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get schedule

    Return array of day schedule info objects for selected service, provider and dates
    Endpoint:
    /admin/schedule
    Method:
    GET
    Pyynnön parametrit:
    int service_id - selected service id
    int provider_id - selected provider id
    string date_from - date from
    string date_to - date to
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/schedule?date_from=2020-08-25&date_to=2020-08-27&provider_id=2&service_id=1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get slots

    Return array of available slots to book as admin.
    It just returns schedule of day divided by slots.
    Endpoint:
    /admin/schedule/slots
    Method:
    GET
    Pyynnön parametrit:
    int service_id - selected service id
    int provider_id - selected provider id
    string date - selected date
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/schedule/slots?date=2020-08-28&provider_id=1&service_id=5
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get available slots

    Return array of available slots to book.
    Endpoint:
    /admin/schedule/available-slots
    Method:
    GET
    Pyynnön parametrit:
    int service_id - selected service id
    int provider_id - selected provider id
    string date - selected date
    int count - group booking count
    array|int[] products - array of selected addons
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/schedule/available-slots?date=2020-08-27&provider_id=1&service_id=5
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get first available slot

    Return first available slot for selected service/provider/date
    It can return slot for different date in case all slots are busy for selected date.
    Endpoint:
    /admin/schedule/first-available-slot
    Method:
    GET
    Pyynnön parametrit:
    int service_id - selected service id
    int provider_id - selected provider id
    string date - selected date
    int count - group booking count
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/schedule/first-available-slot?date=2020-08-30&provider_id=1&service_id=5
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get slots timeline

    Return data for slots timeline per date.
    Endpoint:
    /admin/timeline/slots
    Method:
    GET
    Pyynnön parametrit:
    int service_id - selected service id
    int provider_id - selected provider id
    string date_from - date from
    string date_to - date to
    int count - bookings count
    bool with_available_slots - to calculate available slots count (Display Remaining Spaces custom feature required)
    int booking_id - timeline for edit booking
    int[]|array product_ids - array of selected service addons ids
    bool skip_min_max_restriction - to skip min and max restriction
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/timeline/slots?date_from=2020-09-25&date_to=2020-09-25&provider_id=1&service_id=1&with_available_slots=1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get bookings list

    Return bookings list.
    Please note that result is wrapped into paginated result.
    Throws AccessDenied error in case user does not have access to bookings report.
    In GET parameters you can pass page, on_page and filter with following parameters:
    upcoming_only - return upcomming bookings only
    status - booking status (can be confirmed/confirmed_pending/pending/canceled)
    services - array of service ids to filter by services
    providers - array of provider ids to filter by providers
    client_id - client id. to filter by client id
    date - filter by date
    search - search string (by code, client data)
    additional_fields - search by additional fields (&filter[additional_fields][field] = value)
    Endpoint:
    /admin/bookings
    Method:
    GET
    Pyynnön parametrit:
    int page - page in list
    int on_page - items per page
    object filter - filter object
    Return:
    array|AdminReportBookingEntity[]
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/bookings?filter[upcoming_only]=1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get calendar data

    Return calendar data with bookings, notes and break times.
    Throws AccessDenied error in case user does not have access to bookings report.
    In GET parameters you can pass mode (day, week, provider or service) and filter with following parameters:
    upcoming_only - return upcomming bookings only
    status - booking status (can be confirmed/confirmed_pending/pending/canceled)
    services - array of service ids to filter by services
    providers - array of provider ids to filter by providers
    client_id - client id. to filter by client id
    date_from - filter by date from
    date_to - filter by date to
    search - search string (by code, client data)
    additional_fields - search by additional fields (&filter[additional_fields][field] = value)
    Endpoint:
    /admin/calendar
    Method:
    GET
    Pyynnön parametrit:
    int page - page in list
    int on_page - items per page
    object filter - filter object
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/calendar?mode=provider&filter[status]=confirmed_pending&filter[date_from]=2020-08-26&filter[date_to]=2020-08-26
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Generate new detailed report task

    In POST parameters you can pass filter (see http example) with following parameters:
    code Booking code
    created_date_from Created date to
    created_date_to Created date from
    date_from Date to
    date_to Date from
    event_id Service
    unit_group_id Service provider
    client_id Client
    booking_type cancelled or non_cancelled
    Endpoint:
    /admin/detailed-report
    Method:
    POST
    Pyynnön parametrit:
    object filter - filter object
    object export_columns - export_columns object
    string order_direction
    string order_field
    Return:
    array
    Throws:
    AccessDenied
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/detailed-report
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "filter": {
        "created_date_from": "2021-01-01",
        "created_date_to": "2021-03-31",
        "date_from": "2021-01-02",
        "date_to": "2021-03-29",
        "event_id": "2",
        "unit_group_id": "7",
        "client_id": "12",
        "booking_type": "non_cancelled"
      },
      "export_columns": [
      ],
      "order_direction": "asc",
      "order_field": "record_date"
    }
    
  • Get report by id

    Return report info by id.
    Throws AccessDenied error in case user does not have access to report.
    Throws NotFound error in case report is not found.
    Endpoint:
    /admin/detailed-report/{id}
    Method:
    GET
    Pyynnön parametrit:
    string id - report id
    Return:
    array
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/detailed-report/193
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Set medical test status for booking

    Endpoint:
    /admin/medical-test/status/{id}
    Method:
    PUT
    Pyynnön parametrit:
    int id - booking id
    string status - status
    Throws:
    AccessDenied
    NotFound
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/medical-test/status/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "status": "negative"
    }
  • Asiakkaat

  • Get clients list

    Return clients list.
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass page, on_page and filter with following parameters:
    search - search string
    Endpoint:
    /admin/clients
    Method:
    GET
    Pyynnön parametrit:
    int page - page in list
    int on_page - items per page
    object filter - filter object
    Return:
    array|ClientEntity[]
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/clients?page=1&on_page=10&filter[search]=al
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get client

    Return client item item by id.
    Throws AccessDenied error in case user does not have access to perform this action.
    Throws NotFound error in case client is not found.
    Endpoint:
    /admin/clients/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - client id
    Return:
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/clients/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Create client

    Create new client and return it.
    Throws AccessDenied error in case user does not have access to perform this action.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Throws NotFound error in case client is not found.
    Endpoint:
    /admin/clients
    Method:
    POST
    Pyynnön parametrit:
    ClientEntity body - client data
    Return:
    Throws:
    AccessDenied
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/clients
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "name": "Mike",
      "email": "mikeemail@gmail.com",
      "phone": "+123456789987"
    }
  • Edit client

    Modify client by id and return it.
    Throws AccessDenied error in case user does not have access to perform this action.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Throws NotFound error in case client is not found.
    Endpoint:
    /admin/clients/{id}
    Method:
    PUT
    Pyynnön parametrit:
    ClientEntity body - client data
    int id - client id
    Return:
    Throws:
    AccessDenied
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/clients/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "name": "Mike",
      "email": "mikeemail@gmail.com",
      "phone": "+123456789987"
    }
  • Delete client

    Delete client by id. Return empty response
    Throws AccessDenied error in case user does not have access to perform this action.
    Throws NotFound error in case booking is not found.
    Endpoint:
    /admin/clients/{id}
    Method:
    DELETE
    Pyynnön parametrit:
    int id - client id
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    DELETE https://user-api-v2.simplybook.me/admin/clients/1000
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get client memberships list

    Return client membership list.
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass page, on_page and filter with following parameters:
    client_id - client id
    service_id - service id
    service_start_date - booking start date (to filter actual memberships only)
    count - group bookings count
    active_only - active memberships only
    search - search string
    Endpoint:
    /admin/clients/memberships
    Method:
    GET
    Pyynnön parametrit:
    int page - page in list
    int on_page - items per page
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/clients/memberships?page=1&on_page=10&filter[client_id]=78&filter[service_id]=8&filter[service_start_date]=2020-08-20
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get client fields list

    Returns client fields list, including name, email, phone and address fields.
    Endpoint:
    /admin/clients/fields
    Method:
    GET
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/clients/fields
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get client fields values

    Returns client fields values list, including name, email, phone and address fields.
    Throws AccessDenied error in case user does not have access to perform this action.
    Throws NotFound error in case client is not found.
    Endpoint:
    /admin/clients/field-values/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - client id
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/clients/field-values/2
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Edit client with fields

    Modify client data from fields list.
    Returns client fields list, including name, email and phone field.
    Throws AccessDenied error in case user does not have access to perform this action.
    Throws NotFound error in case client is not found.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Endpoint:
    /admin/clients/field-values/{id}
    Method:
    PUT
    Pyynnön parametrit:
    int id - client id
    Client_DetailsEntity body - client data
    Throws:
    AccessDenied
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/clients/field-values/7
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "id": 7,
      "fields":
      [
        {
          "id": "name",
          "value": "test"
        },
        {
          "id": "email",
          "value": "test@gmail.com"
        },
        {
          "id": "phone",
          "value": "38099999999999"
        },
        {
          "id": "de3b235b9e42131c9a86b5449acca9dd",
          "value": 12
        }
      ]
    }
  • Make client with fields

    Makes new client from fields list.
    Returns client fields list, including name, email and phone field.
    Throws AccessDenied error in case user does not have access to perform this action.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Endpoint:
    /admin/clients/field-values
    Method:
    POST
    Pyynnön parametrit:
    Client_DetailsEntity body - client data
    Throws:
    BadRequest
    AccessDenied
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/clients/field-values
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "id": null,
      "fields":
      [
        {
          "id": "name",
          "value": "test"
        },
        {
          "id": "email",
          "value": "test@gmail.com"
        },
        {
          "id": "phone",
          "value": "38099999999999"
        },
        {
          "id": "de3b235b9e42131c9a86b5449acca9dd",
          "value": 12
        }
      ]
    }
  • Memberships

  • Make membership instance

    Endpoint:
    /admin/memberships/make-membership-instance
    Method:
    POST
    Pyynnön parametrit:
    MakeMembershipInstanceRequestEntity membership - instance data
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/memberships/make-membership-instance
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "membership_id": "1",
      "period_start": "2021-08-26",
      "is_invoice_needed": 1,
      "payment_processor": "cash",
      "auto_confirm_prolonging": 1,
      "repeat_count": 5,
      "clients": [
        "42"
      ]
    }
  • Cancel membership

    Endpoint:
    /admin/memberships/cancel-client-membership/{id}
    Method:
    DELETE
    Pyynnön parametrit:
    int id - client membership id
    Throws:
    AccessDenied
    NotFound
  • Muistiinpanot ja estoaika

  • Get notes list

    Return notes list.
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass page, on_page and filter with following parameters:
    providers - filter by providers. array of providers ids
    services - filter by services. array of services ids
    types - filter by note types. array of types ids
    search - search string
    date_from - date from
    date_to - date to
    Endpoint:
    /admin/calendar-notes
    Method:
    GET
    Pyynnön parametrit:
    int page - page in list
    int on_page - items per page
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/calendar-notes?page=1&filter[services][]=1&filter[services][]=2&filter[date_from]=2020-08-01&filter[date_to]=2020-08-10
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get note details

    Return note details by id
    Throws AccessDenied error in case user does not have access to the calendar note.
    Throws NotFound error in case the calendar note is not found.
    Endpoint:
    /admin/calendar-notes/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - calendar note id
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/calendar-notes/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Create new note

    Create new note and return it.
    Throws AccessDenied error in case user does not have access to the calendar note.
    Throws NotFound error in case the calendar note is not found.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Endpoint:
    /admin/calendar-notes
    Method:
    POST
    Pyynnön parametrit:
    CalendarNoteEntity body - calendar note
    Throws:
    AccessDenied
    NotFound
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/calendar-notes
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "provider_id": 1,
      "service_id": null,
      "start_date_time": "2020-09-06 15:00:00",
      "end_date_time": "2020-09-06 15:30:00",
      "note_type_id": "1",
      "note": "note body",
      "mode": "provider",
      "time_blocked": true
    }
    
  • Modify note

    Edit note and return it.
    Throws AccessDenied error in case user does not have access to the calendar note.
    Throws NotFound error in case the calendar note is not found.
    Throws BadRequest error in case invalid data was provided with detailed errors per field.
    Endpoint:
    /admin/calendar-notes/{id}
    Method:
    POST
    Pyynnön parametrit:
    int id - calendar note id
    CalendarNoteEntity body - calendar note
    Throws:
    AccessDenied
    NotFound
    BadRequest
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/calendar-notes/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "provider_id": 2,
      "service_id": null,
      "start_date_time": "2020-09-06 15:00:00",
      "end_date_time": "2020-09-06 15:30:00",
      "note_type_id": "1",
      "note": "note body",
      "mode": "provider",
      "time_blocked": true
    }
    
  • Delete calendar note

    Delete calendar note by id. Return empty response
    Throws AccessDenied error in case user does not have access to booking.
    Throws NotFound error in case booking is not found.
    Endpoint:
    /admin/calendar-notes/{id}
    Method:
    DELETE
    Pyynnön parametrit:
    int id - calendar note id
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    DELETE https://user-api-v2.simplybook.me/admin/calendar-notes/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get note types list

    Return array of not types
    Endpoint:
    /admin/calendar-notes/types
    Method:
    GET
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/calendar-notes/types
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get default note type

    Return default note type object
    Endpoint:
    /admin/calendar-notes/types/default
    Method:
    GET
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/calendar-notes/types/default
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Maksut

  • Get orders/invoices list

    Return orders and invoices list.
    Note that not all data can be presented in list result. To get full info you need to get separate item.
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass page, on_page and filter with following parameters:
    client_id - client id
    datetime_from - order/invoice date and time from
    datetime_to - order/invoice date and time to
    status - order/invoice status
    booking_code - filter by booking code
    Endpoint:
    /admin/invoices
    Method:
    GET
    Pyynnön parametrit:
    int page - page in list
    int on_page - items per page
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/invoices?filter[booking_code]=0z2ohjmy
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get order/invoice item

    Return order/invoice item by id
    Endpoint:
    /admin/invoices/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - invoice/order id
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/invoices/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Accept payment

    Manual accept payment. The order will be marked as payed with provided payment processor.
    You can pass payment_processor as GET parameter and in body of request.
    Throws AccessDenied error in case user does not have access to order.
    Throws BadRequest error in case invalid data was provided with detailed errors.
    Throws NotFound error in case order/invoice is not found.
    Endpoint:
    /admin/invoices/{id}/accept-payment
    Method:
    PUT
    Pyynnön parametrit:
    int id - order id
    string payment_processor - payment processor
    Throws:
    AccessDenied
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/invoices/1/accept-payment
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "payment_processor": "manual"
    }
  • Accept payment with saved payment method

    Accept payment with client saved payment method.
    The order will be marked as payed only after confirmation from payment system.
    You have to pass payment_method_id as GET parameter and in body of request.
    Throws AccessDenied error in case user does not have access to order.
    Throws BadRequest error in case invalid data was provided with detailed errors.
    Throws NotFound error in case order/invoice is not found.
    Endpoint:
    /admin/invoices/{id}/rebill
    Method:
    PUT
    Pyynnön parametrit:
    int id - order id
    int payment_method_id - payment method id
    Throws:
    AccessDenied
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/invoices/1/rebill
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "payment_method_id": 1
    }
  • Apply promo code

    Apply promo code. Coupons & Gift Cards custom feature.
    You can apply promo code only to pending and new orders.
    You can pass code as GET parameter and in body of request.
    Throws AccessDenied error in case user does not have access to order.
    Throws BadRequest error in case invalid data was provided with detailed errors.
    Throws NotFound error in case order/invoice is not found.
    Endpoint:
    /admin/invoices/{id}/apply-promo-code
    Method:
    PUT
    Pyynnön parametrit:
    int id - order id
    string code - promo code
    Throws:
    AccessDenied
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/invoices/1/apply-promo-code
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "code": "tapyjuju"
    }
  • Remove applied promo code

    Remove applied promo code. Coupons & Gift Cards custom feature.
    You can remove promo code only from pending and new orders.
    You can pass code as GET parameter and in body of request.
    Throws AccessDenied error in case user does not have access to order.
    Throws BadRequest error in case invalid data was provided with detailed errors.
    Throws NotFound error in case order/invoice is not found.
    Endpoint:
    /admin/invoices/{id}/promo-code/{instanceId}
    Method:
    PUT
    Pyynnön parametrit:
    int id - order id
    int instanceId - promo code instance id
    Throws:
    AccessDenied
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    DELETE https://user-api-v2.simplybook.me/admin/invoices/1/promo-code/3
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Apply tip

    Apply tip. Tips custom feature.
    You can apply tip only to pending and new orders.
    You can pass percent or amount as GET parameter and in body of request.
    Throws AccessDenied error in case user does not have access to order.
    Throws BadRequest error in case invalid data was provided with detailed errors.
    Throws NotFound error in case order/invoice is not found.
    Endpoint:
    /admin/invoices/{id}/tip
    Method:
    PUT
    Pyynnön parametrit:
    int id - order id
    int percent - tip percent
    float amount - tip amount
    Throws:
    AccessDenied
    BadRequest
    NotFound
  • Remove applied tip

    Remove applied tip. Tips custom feature.
    You can remove tip only from pending and new orders.
    Throws AccessDenied error in case user does not have access to order.
    Throws BadRequest error in case invalid data was provided with detailed errors.
    Throws NotFound error in case order/invoice is not found.
    Endpoint:
    /admin/invoices/{id}/tip
    Method:
    DELETE
    Throws:
    AccessDenied
    BadRequest
    NotFound
  • Make payment with terminal

    Endpoint:
    /admin/invoices/{id}/make-terminal-payment
    Method:
    POST
    Pyynnön parametrit:
    int id - order id
    string paymentSystem - payment system
    string|null readerId - reader id
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/invoices/571/make-terminal-payment
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "paymentSystem": "stripe"
    }
    
    ###
    
    GET https://user-api-v2.simplybook.me/admin/invoices/terminal/reader/list
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    ###
    
    POST https://user-api-v2.simplybook.me/admin/invoices/terminal/stripe-connection-token
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    ###
    
    GET https://user-api-v2.simplybook.me/admin/invoices/terminal/stripe-config-location
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get terminal readers cross payment systems

    Endpoint:
    /admin/invoices/terminal/reader/list
    Method:
    GET
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/invoices/571/make-terminal-payment
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "paymentSystem": "stripe"
    }
    
    ###
    
    GET https://user-api-v2.simplybook.me/admin/invoices/terminal/reader/list
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    ###
    
    POST https://user-api-v2.simplybook.me/admin/invoices/terminal/stripe-connection-token
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    ###
    
    GET https://user-api-v2.simplybook.me/admin/invoices/terminal/stripe-config-location
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Create stripe connection token

    Endpoint:
    /admin/invoices/terminal/stripe-connection-token
    Method:
    POST
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/invoices/571/make-terminal-payment
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "paymentSystem": "stripe"
    }
    
    ###
    
    GET https://user-api-v2.simplybook.me/admin/invoices/terminal/reader/list
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    ###
    
    POST https://user-api-v2.simplybook.me/admin/invoices/terminal/stripe-connection-token
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    ###
    
    GET https://user-api-v2.simplybook.me/admin/invoices/terminal/stripe-config-location
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get stripe terminal location from config

    Endpoint:
    /admin/invoices/terminal/stripe-config-location
    Method:
    GET
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/invoices/571/make-terminal-payment
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "paymentSystem": "stripe"
    }
    
    ###
    
    GET https://user-api-v2.simplybook.me/admin/invoices/terminal/reader/list
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    ###
    
    POST https://user-api-v2.simplybook.me/admin/invoices/terminal/stripe-connection-token
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    ###
    
    GET https://user-api-v2.simplybook.me/admin/invoices/terminal/stripe-config-location
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get client saved payment methods list

    Returns array of client saved payment methods
    The id is client id and it is required.
    Endpoint:
    /admin/payment-methods/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - client id
    Return:
    array|PaymentMethodEntity[]
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/payment-methods/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Tuotteet/palveluiden lisäosat

  • Get products/attributes list

    Return products/attributes list. (products/service addons custom features)
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass filter (see http example) with following parameters:
    service_id - return products/attributes for selected service
    search - search string
    type - product type. can be 'product' or 'attribute'
    visible_only - visible products only
    Endpoint:
    /admin/products
    Method:
    GET
    Pyynnön parametrit:
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/products?filter[search]=cofee&filter[service_id]=1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get product/attribute item

    Return product/attribute item by id.
    Endpoint:
    /admin/products/{id}
    Method:
    GET
    Return:
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/products/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Kupongit &amp; lahjakortit

  • Get promotions list

    Return promotions list. (Coupons & Gift cards custom feature)
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass filter (see http example) with following parameters:
    service_id - filter by service
    visible_only - visible only promotions
    promotion_type - gift_card/discount
    Endpoint:
    /admin/promotions
    Method:
    GET
    Pyynnön parametrit:
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/promotions?filter[service_id]=1&filter[promotion_type]=gift_card
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get gift cards list

    Return promotion instances list. (Coupons & Gift cards custom feature)
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass filter (see http example) with following parameters:
    purchased_by_client_id - filter by client who purchased gift card
    used_by_client_id - filter by client who used gift card
    service_id - filter by service
    user_id - user, who issued gift card
    duration - duration
    duration_type - duration type
    price_from - gift card price from
    price_to - gift card price to
    status - filter by status (outdated, used, disabled, valid)
    expired_date_from - expired date from
    expired_date_to - expired date to
    start_date_from - start date from
    start_date_to - start date to
    discount_from - discount from
    discount_to - discount to
    used_amount_from - used amount from
    used_amount_to - used amount to
    code - filter by code
    Endpoint:
    /admin/promotions/gift-cards
    Method:
    GET
    Pyynnön parametrit:
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/promotions/gift-cards?filter[start_date_from]=2021-08-30&filter[status]=active&filter[service_id]=1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get coupons list

    Return promotion instances list. (Coupons & Gift cards custom feature)
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass filter (see http example) with following parameters:
    used_by_client_id - filter by client who used coupon
    service_id - filter by service
    user_id - user, who issued coupon
    duration - duration
    duration_type - duration type
    status - filter by status (outdated, used, disabled, valid)
    expired_date_from - expired date from
    expired_date_to - expired date to
    start_date_from - start date from
    start_date_to - start date to
    discount_from - discount from
    discount_to - discount to
    code - filter by code
    Endpoint:
    /admin/promotions/coupons
    Method:
    GET
    Pyynnön parametrit:
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/promotions/coupons?filter[start_date_from]=2021-08-30&filter[status]=active
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Issue gift card

    Endpoint:
    /admin/promotions/issue-gift-cards
    Method:
    POST
    Pyynnön parametrit:
    AdminPromotionIssueGiftCardEntity body - issue gift card request
    Return:
    Esimerkki HTTP-pyynnöstä:
    ### issue non-personalized gift cards
    POST https://user-api-v2.simplybook.me/admin/promotions/issue-gift-card
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "promotion_id": 1,
      "start_date": "2021-08-30",
      "personalized": false,
      "count": 10
    }
    
    ### issue personalized gift cards
    POST https://user-api-v2.simplybook.me/admin/promotions/issue-gift-card
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "promotion_id": 1,
      "start_date": "2021-08-30",
      "personalized": true,
      "clients": [1],
      "send_email": true,
      "email_body": "Your gift card code: [code]",
      "email_subject": "Your gift card!"
    }
  • Palveluntarjoajat

  • Get providers list

    Return providers list.
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass filter (see http example) with following parameters:
    search - search string
    service_id - filter providers by service (only providers that can provide this service)
    Endpoint:
    /admin/providers
    Method:
    GET
    Pyynnön parametrit:
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/providers
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get provider

    Return provider item by id.
    Throws AccessDenied error in case user does not have access to provider.
    Throws NotFound error in case provider is not found.
    Endpoint:
    /admin/providers/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - provider id
    Return:
    Throws:
    BadRequest
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/providers/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Create a provider

    Creates a new provider using the provided data.
    Accepts a ProviderWritableEntity object in the request body.
    Please note that this is simple create provider methods and does not support all available settings for provider.
    Throws BadRequest error if the provided data is invalid.
    Endpoint:
    /admin/providers
    Method:
    POST
    Pyynnön parametrit:
    ProviderWritableEntity body - Provider data to create a new provider.
    Return:
    ProviderEntity The created provider entity.
    Throws:
    BadRequest If the provided data is invalid.
    AccessDenied If the user does not have access to create a provider.
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/providers
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "name": "Provider Name",
      "qty": 1,
      "email": "provider@example.com",
      "description": "Provider description",
      "phone": "+1234567890",
      "is_visible": true,
      "color": "#445566"
    }
  • Update a provider

    Updates the details of an existing provider identified by its ID.
    Accepts a ProviderWritableEntity object in the request body.
    Please note that this is simple update provider methods and does not support all available settings for provider.
    Throws BadRequest error if the provided data is invalid.
    Endpoint:
    /admin/providers/{id}
    Method:
    PUT
    Pyynnön parametrit:
    int id - The ID of the provider to update.
    ProviderWritableEntity body - Provider data to update the provider.
    Return:
    ProviderEntity The updated provider entity.
    Throws:
    BadRequest If the provided data is invalid.
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/providers/28
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "name": "Updated Provider Name",
      "qty": 19,
      "email": "updated44112@example.com",
      "description": "Updated description",
      "phone": "+1234567890",
      "is_visible": true,
      "color": "#453345"
    }
    
  • Delete a provider

    Deletes an existing provider identified by its ID.
    Throws NotFound error if the provider does not exist.
    Endpoint:
    /admin/providers/{id}
    Method:
    DELETE
    Pyynnön parametrit:
    int id - The ID of the provider to delete.
    Return:
    void
    Throws:
    NotFound If the provider does not exist.
    AccessDenied If the user does not have access to delete the provider.
    Esimerkki HTTP-pyynnöstä:
    DELETE https://user-api-v2.simplybook.me/admin/providers/22
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
  • Get provider locations list

    Return list of locations. (locations custom feature)
    Please note that result is wrapped into paginated result.
    Endpoint:
    /admin/locations
    Method:
    GET
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/locations
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Palvelut

  • Get services list

    Return services list.
    Please note that result is wrapped into paginated result.
    In GET parameters you can pass filter (see http example) with following parameters:
    search - search string
    Endpoint:
    /admin/services
    Method:
    GET
    Pyynnön parametrit:
    object filter - filter object
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/services?filter[search]=massage
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get service

    Return service item by id.
    Throws AccessDenied error in case user does not have access to service.
    Throws NotFound error in case service is not found.
    Endpoint:
    /admin/services/{id}
    Method:
    GET
    Pyynnön parametrit:
    int id - service id
    Return:
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/services/1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Get products for service

    Return list of products with default qty for selected service
    In GET parameters you can pass filter (see http example) with following parameters:
    service_id - service id
    type - type. can be 'product'/'attribute'
    Endpoint:
    /admin/services/products
    Method:
    GET
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/services/products?filter[service_id]=1
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Create a new service.

    Creates a new service using the provided data.
    Accepts a ServiceWriteableEntity object in the request body.
    Please note that this is a simple create service method and does not support all available settings for a service.
    Throws BadRequest error if the provided data is invalid.
    Throws AccessDenied error if the user does not have access to create a service.
    Endpoint:
    /admin/services
    Method:
    POST
    Pyynnön parametrit:
    ServiceWriteableEntity body - Service data to create a new service.
    Return:
    ServiceEntity The created service entity.
    Throws:
    BadRequest If the provided data is invalid.
    AccessDenied If the user does not have access to create a service.
    Esimerkki HTTP-pyynnöstä:
    POST https://user-api-v2.simplybook.me/admin/services
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "name": "Service Name",
      "description": "Service Description",
      "price": 100.0,
      "deposit_price": 50.0,
      "tax_id": null,
      "duration": 30,
      "is_visible": true
    }
    
  • Update an existing service.

    Updates the details of an existing service identified by its ID.
    Accepts a ServiceWriteableEntity object in the request body.
    Please note that this is a simple update service method and does not support all available settings for a service.
    Throws BadRequest error if the provided data is invalid.
    Throws NotFound error if the service does not exist.
    Throws AccessDenied error if the user does not have access to update the service.
    Endpoint:
    /admin/services/{id}
    Method:
    PUT
    Pyynnön parametrit:
    int id - The ID of the service to update.
    ServiceWriteableEntity body - Service data to update the service.
    Return:
    ServiceEntity The updated service entity.
    Throws:
    BadRequest If the provided data is invalid.
    NotFound If the service does not exist.
    AccessDenied If the user does not have access to update the service.
    Esimerkki HTTP-pyynnöstä:
    PUT https://user-api-v2.simplybook.me/admin/services/14
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
    {
      "name": "Updated Service Name",
      "description": "Updated Description",
      "price": 120.0,
      "deposit_price": 60.0,
      "tax_id": null,
      "duration": 90,
      "is_visible": false
    }
    
  • Delete a service.

    Deletes a service by its ID.
    Throws NotFound error in case the service is not found.
    Throws AccessDenied error in case user does not have access to delete the service.
    Endpoint:
    /admin/services/:id
    Method:
    DELETE
    Pyynnön parametrit:
    int id - Service ID to delete.
    Return:
    array Success response with a success flag.
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    DELETE https://user-api-v2.simplybook.me/admin/services/13
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
  • Get service categories list

    Return list of categories. (categories custom feature)
    Please note that result is wrapped into paginated result.
    Endpoint:
    /admin/categories
    Method:
    GET
    Return:
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/categories
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Statistics

  • Get statistics

    Returns:
    - Most popular provider and its number of bookings (last 30 days).
    - Most popular service and its number of bookings (last 30 days).
    - Number of bookings today.
    - Number of bookings this week (Monday-Sunday).
    Endpoint:
    /admin/statistics
    Method:
    GET
    Return:
    StatisticEntity Statistics data
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/statistic
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Tila

  • Get statuses list

    Return user statuses list (status custom feature)
    Endpoint:
    /admin/statuses
    Method:
    GET
    Return:
    array|StatusEntity[]
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/statuses
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Subscription

  • Get current subscription information for the logged-in user.

    Returns the current subscription details for the authenticated user.
    Throws AccessDenied error if the user does not have access to this information.
    Endpoint:
    /admin/tariff/current
    Method:
    GET
    Return:
    CompanyTariffEntity Current tariff details.
    Throws:
    AccessDenied
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/tariff/current
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
    
  • Liput

  • Get ticket info by code

    Return ticket info by code.
    Throws AccessDenied error in case user does not have access to ticket.
    Throws NotFound error in case ticket is not found.
    Endpoint:
    /admin/tickets/{code}
    Method:
    GET
    Pyynnön parametrit:
    string code - ticket code
    Throws:
    AccessDenied
    NotFound
    Esimerkki HTTP-pyynnöstä:
    GET https://user-api-v2.simplybook.me/admin/tickets/0z2ph7e716b88
    Content-Type: application/json
    X-Company-Login: <insert your company login>
    X-Token: <insert your token from auth step>
  • Check in ticket

    Check in ticket by code and return the ticket info.
    Please note that the reason of unavailable check in will be in ticket object.
    Throws AccessDenied error in case user does not have access to ticket.
    Throws NotFound error in case ticket is not found.
    Endpoint:
    /admin/tickets/{code}/check-in
    Method:
    PUT
    Pyynnön parametrit:
    string code - ticket code
    Throws:
    AccessDenied
    NotFound

    Types

  • AdminLoginEntity

    Entity that contains admin login information (input only)
    Name Type Description
    company string Company name
    login string User login
    password string User password
  • AdminLogin2FAEntity

    Entity that contains admin login information for 2 FA (input only)
    Name Type Description
    company string Company name
  • AdminLogoutEntity

    Entity that contains logout info
    Name Type Description
    auth_token string Auth token
  • TokenEntity

    Entity that contains token information
    Name Type Description
    token string Auth token
    company string Company login
    login string User login
    refresh_token string|null Refresh token (use it to get new access token when old expired)
    domain string|null Company domain
    require2fa bool Required two factor authorisation (token and refresh will be empty)
    allowed2fa_providers array|string[] Allowed providers (sms/ga)
    auth_session_id string Authentication session id (pass it with 2FA request)
  • RefreshTokenEntity

    Entity that contains refresh token information
    Name Type Description
    company string Company login
    refresh_token string Refresh token
    device_token string|null Device token
  • AdminBookingBuildEntity

    Entity that contains information to make booking from admin side
    Name Type Description
    start_datetime string Booking start datetime
    end_datetime string Booking end datetime
    location_id int Location id
    category_id int Category id
    service_id int Service id
    provider_id int Provider id
    client_id int Client id
    service ServiceEntity Service
    provider ProviderEntity Provider
    location LocationEntity Location
    category CategoryEntity Category
    count int Group booking count. You can use either count or recurringSettings
    recurring_settings Booking_RecurringSettingsEntity Recurring settings. You can use either count or recurringSettings
    additional_fields array|Booking_AdditionalFieldValueEntity[] Array of additional fields values. Booking_AdditionalFieldValueEntity[]
    products array|ProductQtyEntity[] Array of products (addons). ProductQtyEntity[]
    client_membership_id int Client membership instance id.
    client ClientEntity Client data
    batch_id int Multiple/group booking batch
    skip_membership bool Do not use membership for this booking
    user_status_id int Users status id
    accept_payment bool Set true to make payment order for booking
    payment_processor string|null Payment accepted by payment processor
  • BookingResultEntity

    Entity that contains booking result information.
    Readonly entity
    Name Type Description
    bookings array|BookingEntity[] Array of bookings, that were booked.
    batch BookingBatchEntity|null Booking batch
  • BookingEntity

    Entity that contains booking information
    Name Type Description
    id int Booking id. Auto-generated value.
    code string Booking code. Auto-generated value.
    is_confirmed bool Booking is confirmed
    start_datetime string Booking start datetime
    end_datetime string Booking end datetime
    location_id int Location id
    category_id int Category id
    service_id int Service id
    provider_id int Provider id
    client_id int Client id
    duration int Duration in minutes
    service ServiceEntity Service
    provider ProviderEntity Provider
    location LocationEntity Location
    category CategoryEntity Category
  • BookingBatchEntity

    Entity that contains booking batch information
    Name Type Description
    id int Batch id. Auto-generated value.
    type string Batch type. Can be 'recurring', 'multiple', 'group'.
    is_closed bool Flag that indicates that user has finished booking.
  • Booking_RecurringSettingsEntity

    Entity that contains booking recurring information.
    Name Type Description
    days int Repeat days. Use each $days day for 'fixed' type and mask of week days for 'weekly' type.
    repeat_count int Repeat count
    type string Type of repeat. Can be 'fixed', 'weekly'
    'weekly' means repeat every week day, that set in $days mask.
    'fixed' means repeat every $days day.
    mode string Mode when it is impossible to book appointment on some date. Can be: 'skip', 'book_available', 'book_and_move'.
    'skip' - Skip all bookings
    'book_available' - book only on available dates
    'book_and_move' - move to next date in case some date is not available
    price_per_session bool Price per session flag
    If true, the price is per session, otherwise it is per whole pack
  • Booking_AdditionalFieldValueEntity

    Entity that contains additional field value
    Name Type Description
    id int Additional field id
    field string Additional field name.
    value mixed Additional field value
    file_hash string Cloud field file hash
  • ProductQtyEntity

    Entity that contains product qty information
    Name Type Description
    product_id int Product id
    qty int Product qty
  • AdminBookingDetailsEntity

    Detailed booking info. allowed only for admin API.
    Name Type Description
    id int Booking id. Auto-generated value.
    code string Booking code. Auto-generated value.
    is_confirmed bool Booking is confirmed
    start_datetime string Booking start datetime
    end_datetime string Booking end datetime
    location_id int|null Provider location id
    category_id int|null Service category id
    service_id int Service id
    provider_id int Provider id
    client_id int Client id
    duration int Duration in minutes
    service ServiceEntity Booking service details entity
    provider ProviderEntity Booking provider details entity
    location LocationEntity|null Provider location entity
    category CategoryEntity|null Service category entity
    client ClientEntity Client details entity
    status string Booking status - confirmed/pending/canceled (depending on approve booking status and accept payment)
    membership_id int|null Client membership id
    invoice_id int|null Invoice id
    invoice_status string|null Booking payment status ('deleted', 'new', 'pending', 'cancelled', 'cancelled_by_timeout', 'error', 'paid')
    invoice_payment_received bool|null Payment was received
    invoice_number string|null Invoice number
    invoice_datetime string|null Invoice datetime
    invoice_payment_processor string|null Payment processor key
    ticket_code string|null Booking ticket code
    ticket_validation_datetime string|null Booking ticket validation date and time
    ticket_is_used bool|null Ticket was already validated
    testing_status string|null Medical testing status (positive/negative/inconclusive/pending or null)
    user_status_id int|null Status custom feature id
    can_be_edited bool Can this booking be edited by user
    can_be_canceled bool Can this booking be canceled by user
    log array|Booking_LogEntity[] Booking edit log
    additional_fields array|Booking_AdditionalFieldValueEntity[] Booking intake form details
    products array|Booking_DetailedProductQtyEntity[] Booking detailed products list
    attributes array|Booking_DetailedProductQtyEntity[] Booking detailed attributes list
    invoice AdminInvoiceEntity|null Invoice entity
    membership ClientMembershipPaymentEntity|null Client membership object
    user_status StatusEntity|null User status entity
    comment string Booking comment
    resources array|ResourceEntity[] Booking resources list
  • AdminReportBookingEntity

    Admin booking list info entity
    Class AdminReportBookingEntity
    Name Type Description
    id int Booking id. Auto-generated value.
    code string Booking code. Auto-generated value.
    is_confirmed bool Booking is confirmed
    start_datetime string Booking start datetime
    end_datetime string Booking end datetime
    location_id int|null Provider location id
    category_id int|null Service category id
    service_id int Service id
    provider_id int Provider id
    client_id int Client id
    duration int Duration in minutes
    service ServiceEntity Booking service details entity
    provider ProviderEntity Booking provider details entity
    location LocationEntity|null Provider location entity
    category CategoryEntity|null Service category entity
    client ClientEntity Client details entity
    status string Booking status - confirmed/pending/canceled (depending on approve booking status and accept payment)
    membership_id int|null Client membership id
    invoice_id int|null Invoice id
    invoice_status string|null Booking payment status ('deleted', 'new', 'pending', 'cancelled', 'cancelled_by_timeout', 'error', 'paid')
    invoice_payment_received bool|null Payment was received
    invoice_number string|null Invoice number
    invoice_datetime string|null Invoice datetime
    invoice_payment_processor string|null Payment processor key
    ticket_code string|null Booking ticket code
    ticket_validation_datetime string|null Booking ticket validation date and time
    ticket_is_used bool|null Ticket was already validated
    testing_status string|null Medical testing status (positive/negative/inconclusive/pending or null)
    user_status_id int|null Status custom feature id
    can_be_edited bool Can this booking be edited by user
    can_be_canceled bool Can this booking be canceled by user
  • Booking_DetailedProductQtyEntity

    Booking product details info. Read only object
    Name Type Description
    product_id int Product id
    qty int Product qty
    product ProductEntity Product entity
  • Booking_LogEntity

    Entity that contains booking log information. Readonly object
    Name Type Description
    id int Id
    datetime string Log datetime
    type string Event type
    user_login string|null User login
    user_name string|null User name
  • WorkDayEntity

    Entity that contains work day information
    Name Type Description
    date string Work day date
    time_from string Work day time from
    time_to string Work day time to
    is_day_off bool Is day off
  • TimeSlotEntity

    Entity that contains time slot information
    Name Type Description
    date string Time slot date
    time string Time slot time
  • Timeline_SlotsDateEntity

    Entity for daily timeline
    Name Type Description
    date string Date
    slots Timeline_SlotEntity[] Slots
  • Timeline_SlotEntity

    Entity for daily timeline slot
    Name Type Description
    time string Time
    available_count int Available slots count
    total_count int Total slots count
  • LocationEntity

    Entity that contains location information
    Name Type Description
    id int Location id. Auto-generated value.
    name string Location name
    description string|null Location description
    picture string Picture file name
    picture_preview string Path to preview picture
    providers array|int[] Location providers (list of ids)
    address1 string|null Location address 1
    address2 string|null Location address 2
    phone string|null Phone number
    city string|null Location city
    zip string|null Location zip code
    country_id string|null Location country id
    is_visible bool If location is visible on public side
    lat float Location latitude
    lng float Location longitude
  • CategoryEntity

    Entity that contains event category information
    Name Type Description
    id int Category id. Auto-generated value.
    name string Category name
    services array|int[] Category services (list of ids)
    is_visible bool If category is visible on public side
  • ProviderEntity

    Entity that contains provider information
    Name Type Description
    id int Provider id. Auto-generated value.
    name string Provider name
    qty int Provider capacity
    email string Provider email
    description string Provider description
    phone string Provider phone
    picture string Picture file name
    picture_preview string Path to preview picture
    color string Provider color
    is_active bool If provider is active
    is_visible bool If provider is visible on public site
    services array|int[] Array of ids of services where this provider connected.
  • ProviderWritableEntity

    Entity that contains provider information (input only)
    Name Type Description
    id int Provider id
    name string Provider name
    qty int Provider quantity
    email string Provider email
    description string Provider description
    phone string Provider phone
    is_visible bool Provider visibility
    color string Provider color
  • ServiceEntity

    Entity that contains service information
    Name Type Description
    id int Service id. Auto-generated value.
    name string Service name
    description string Promotion description
    price float Service price
    currency string Service price currency
    deposit_price float Deposit price
    tax_id int Tax id
    tax TaxEntity Tax information
    duration int Duration in minutes
    buffer_time_after int Buffer time after in minutes
    recurring_settings Booking_RecurringSettingsEntity|null Service recurring settings (in case it is recurring service)
    memberships array|int[] Array of ids of memberships where this service presents.
    providers array|int[] Array of ids of providers where this service connected.
    picture string Picture file name
    picture_preview string Path to preview picture
    is_active bool If service is active
    is_visible bool If service is visible on public side
    limit_booking int Limit bookings value.
    Will be null in case "Limit bookings" is turned off.
    Will take common value from config in case this value is empty or 0 for event.
    min_group_booking int Min group booking value.
    Will be null in case "Group booking" is turned off.
  • Service_ProductEntity

    Product information for service (with default qty info)
    Name Type Description
    product ProductEntity Product
    qty int Qty
  • StatusEntity

    User status entity
    Name Type Description
    id int Status id. Auto-generated value.
    name string Status name.
    description string Status description.
    color string Status color
    is_default bool Is status default
  • ResourceEntity

    Resource info
    Name Type Description
    id int Resource id
    name string Resource name
  • ClientEntity

    Entity that contains client information
    Name Type Description
    id int Client id. Auto-generated value.
    name string Client name
    email string Client email
    phone string Client phone
  • Client_FieldDetailsEntity

    Client field details info
    Name Type Description
    id string Field id
    title string Field title
    default_value mixed Default field value
    values array|Client_FieldSelectOptionEntity[] Array of available values for select field
    value mixed Field value
    is_visible bool Field is visible on public site
    is_optional bool Field is optional
    is_built_in bool Field is built-in
    type string Field type
  • Client_DetailsEntity

    Client data each field value is in separate [[Client_FieldValueEntity]] object.
    Name Type Description
    id int Id of client
    fields array|Client_FieldValueEntity[] Array of fields with values
  • Client_FieldSelectOptionEntity

    Option data for select client field
    Name Type Description
    value string Option value
    is_default bool Is default value
    position int Position
  • Client_FieldValueEntity

    Client field value object
    Name Type Description
    id string Field id
    field Client_FieldDetailsEntity Field object. Read only (you do not need to pass it on save)
    value mixed Field value
  • UserEntity

    Entity that contains user information.
    This entity will be returned only by admin API
    Name Type Description
    id int User id. Auto-generated value.
    login string User login
    firstname string User first name
    lastname string User last name
    email string User email
    phone string User phone
    company CompanyEntity User company
  • CompanyEntity

    Entity that contains company information.
    This entity will be returned only by admin API
    Name Type Description
    login string Company login
    name string Company name
    dashboard_url string Dashboard company url
    public_url string Public company url
  • AdditionalFieldEntity

    Intake forms field information
    Name Type Description
    id int Field id
    name string Unique field name
    field_name string Field label
    field_type string Field type
    field_options array Field options
    default_value mixed Default field value
    optional bool Is optional field
    is_visible bool Is visible on public site
    show_for_all_services bool Show field for all services
  • ProductEntity

    Entity that contains product information
    Name Type Description
    id int Product id. Auto-generated value.
    name string Product name
    barcode string Product barcode
    description string Product description
    type string Product type. It can be 'product' or 'attribute'
    price float Product price
    currency string Product currency
    tax_id int Tax id
    tax TaxEntity Tax information
    duration int Product duration
  • AdminInvoiceEntity

    Extended invoice entity with client information and
    other information that available only for admin
    Name Type Description
    id int Invoice id. Auto-generated value.
    number string Invoice number. Auto-generated value.
    datetime string Invoice datetime. Readonly
    due_datetime string Invoice due date. By default current datetime + payment timeout
    payment_datetime string|null Payment payment date
    refund_datetime string|null Refund payment date
    amount float Invoice amount. Readonly
    recurring_amount float Invoice recurring amount. Readonly
    deposit float Invoice deposit. Readonly
    rest_amount float Invoice rest amount. Readonly
    taxes array|TaxEntity">Invoice_TaxEntity[] Array of invoice taxes
    discount float Invoice discount amount. Readonly
    currency string Invoice currency code. ISO 4217
    client_id int Client id
    description string Invoice description
    payment_received bool Payment was received by company
    payment_processor string Payment processor key
    lines array Array of lines. The line can be one of the following types:
    Invoice_BookingLineEntity, Invoice_ProductLineEntity, Invoice_MembershipLineEntity, Invoice_PackageLineEntity, Invoice_PromotionLineEntity, Invoice_DepositLineEntity
    promotion_instances array|PromotionInstanceEntity[] Array of PromotionInstanceEntity. Promotion instances used in invoice
    package_instances array|PackageInstanceEntity[] Array of PackageInstanceEntity. Package instances used in invoice
    status string Current invoice status
    support_recurring_payment bool True in case this invoice can be payed with recurring payment method
    require_recurring_payment bool True in case this invoice can be payed only with recurring payment method
    recurring_profile_id int Recurring profile id, linked to this invoice
    client AdminClientEntity Client
    created_by_user_id int User ID that created invoice
    created_by_user UserEntity User object that created invoice
    approved_by_user_id int User ID that receive payment (for manual and delay payments)
    approved_by_user UserEntity User object that receive payment (for manual and delay payments)
    refunded_by_user_id int User ID that refunded payment
    refunded_by_user UserEntity User object that refunded payment
  • Invoice_BookingLineEntity

    Entity that contains invoice line information with bookings
    Name Type Description
    id int Invoice line id. Auto-generated value.
    invoice_id int Invoice id
    name string Invoice line name
    type string Invoice line type. Can be booking, product, membership, custom
    discount_ratio float Invoice line discount ratio
    discount_amount float Invoice line discount fixed amount
    discount float Invoice line discount
    price float Invoice line price
    final_price float Invoice line final price (including tax and discount)
    qty float Invoice line qty
    package_qty float Invoice line qty, that was purchased by using package
    tax TaxEntity Tax entity related to this invoice line
    Note: Use tax_rate in calculations as rate in this object can be different.
    tax_ratio float Invoice line tax ratio
    tax_amount float Invoice line tax amount
    amount float Invoice line amount
    deposit float Invoice line deposit
    rest_amount float Invoice line rest amount
    booking_ids array Booking ids, that were purchased. It can have multiple ids in case
    recurring booking and group booking. In case recurring booking qty will be equal 1,
    because client pays for session.
    In case group booking qty will be equal count of group booking.
    bookings array|BookingEntity[] Bookings, that were purchased
  • Invoice_ProductLineEntity

    Entity that contains invoice line information with product
    Name Type Description
    id int Invoice line id. Auto-generated value.
    invoice_id int Invoice id
    name string Invoice line name
    type string Invoice line type. Can be booking, product, membership, custom
    discount_ratio float Invoice line discount ratio
    discount_amount float Invoice line discount fixed amount
    discount float Invoice line discount
    price float Invoice line price
    final_price float Invoice line final price (including tax and discount)
    qty float Invoice line qty
    package_qty float Invoice line qty, that was purchased by using package
    tax TaxEntity Tax entity related to this invoice line
    Note: Use tax_rate in calculations as rate in this object can be different.
    tax_ratio float Invoice line tax ratio
    tax_amount float Invoice line tax amount
    amount float Invoice line amount
    deposit float Invoice line deposit
    rest_amount float Invoice line rest amount
    product_id int Product id, that was purchased
    booking_id int Related booking id
    product ProductEntity Product, that was purchased
  • Invoice_MembershipLineEntity

    Entity that contains invoice line information with membership
    Name Type Description
    id int Invoice line id. Auto-generated value.
    invoice_id int Invoice id
    name string Invoice line name
    type string Invoice line type. Can be booking, product, membership, custom
    discount_ratio float Invoice line discount ratio
    discount_amount float Invoice line discount fixed amount
    discount float Invoice line discount
    price float Invoice line price
    final_price float Invoice line final price (including tax and discount)
    qty float Invoice line qty
    package_qty float Invoice line qty, that was purchased by using package
    tax TaxEntity Tax entity related to this invoice line
    Note: Use tax_rate in calculations as rate in this object can be different.
    tax_ratio float Invoice line tax ratio
    tax_amount float Invoice line tax amount
    amount float Invoice line amount
    deposit float Invoice line deposit
    rest_amount float Invoice line rest amount
    membership_id int Membership entity object id
    membership MembershipEntity Membership data
    period_start string Optional period start of membership
    membership_payment_id int Membership payment id, that was initialized by client
  • Invoice_PackageLineEntity

    Entity that contains invoice line information with package
    Name Type Description
    id int Invoice line id. Auto-generated value.
    invoice_id int Invoice id
    name string Invoice line name
    type string Invoice line type. Can be booking, product, membership, custom
    discount_ratio float Invoice line discount ratio
    discount_amount float Invoice line discount fixed amount
    discount float Invoice line discount
    price float Invoice line price
    final_price float Invoice line final price (including tax and discount)
    qty float Invoice line qty
    package_qty float Invoice line qty, that was purchased by using package
    tax TaxEntity Tax entity related to this invoice line
    Note: Use tax_rate in calculations as rate in this object can be different.
    tax_ratio float Invoice line tax ratio
    tax_amount float Invoice line tax amount
    amount float Invoice line amount
    deposit float Invoice line deposit
    rest_amount float Invoice line rest amount
    package_id int Package entity object id
    package PackageEntity Package data
    period_start string Optional period start of membership
    package_instance_id int Membership payment id, that was initialized by client
  • Invoice_PromotionLineEntity

    Entity that contains invoice line information with gift card
    Name Type Description
    id int Invoice line id. Auto-generated value.
    invoice_id int Invoice id
    name string Invoice line name
    type string Invoice line type. Can be booking, product, membership, custom
    discount_ratio float Invoice line discount ratio
    discount_amount float Invoice line discount fixed amount
    discount float Invoice line discount
    price float Invoice line price
    final_price float Invoice line final price (including tax and discount)
    qty float Invoice line qty
    package_qty float Invoice line qty, that was purchased by using package
    tax TaxEntity Tax entity related to this invoice line
    Note: Use tax_rate in calculations as rate in this object can be different.
    tax_ratio float Invoice line tax ratio
    tax_amount float Invoice line tax amount
    amount float Invoice line amount
    deposit float Invoice line deposit
    rest_amount float Invoice line rest amount
    promotion_id int Gift card id
    promotion_instance_id int Gift card instance id
    promotion PromotionEntity Gift card
  • Invoice_DepositLineEntity

    Entity that contains invoice line information with bookings
    Name Type Description
    id int Invoice line id. Auto-generated value.
    invoice_id int Invoice id
    name string Invoice line name
    type string Invoice line type. Can be booking, product, membership, custom
    discount_ratio float Invoice line discount ratio
    discount_amount float Invoice line discount fixed amount
    discount float Invoice line discount
    price float Invoice line price
    final_price float Invoice line final price (including tax and discount)
    qty float Invoice line qty
    package_qty float Invoice line qty, that was purchased by using package
    tax TaxEntity Tax entity related to this invoice line
    Note: Use tax_rate in calculations as rate in this object can be different.
    tax_ratio float Invoice line tax ratio
    tax_amount float Invoice line tax amount
    amount float Invoice line amount
    deposit float Invoice line deposit
    rest_amount float Invoice line rest amount
    booking_ids array Booking ids, that were purchased. It can have multiple ids in case
    recurring booking and group booking. In case recurring booking qty will be equal 1,
    because client pays for session.
    In case group booking qty will be equal count of group booking.
    bookings array|BookingEntity[] Bookings, that were purchased
  • Invoice_TaxEntity

    Entity that contains invoice tax amount information
    Name Type Description
    id int Tax id. Auto-generated value.
    name string Tax name
    ratio float Tax ratio
    is_default bool Is default tax
    amount float Tax amount
  • ClientMembershipPaymentEntity

    Entity that contains client membership payment information. When this membership starts, ends, rest of bookings, etc.
    Name Type Description
    id int Membership payment id. Auto-generated value.
    client_id int Client id
    period_start string Membership start date
    period_end string Membership end date
    created string Membership payment created date
    membership_id int Membership id
    membership MembershipEntity Membership object
    rest int Membership rest
    simultaneous_rest int Membership simultaneous rest
    count int Used bookings from membership
    can_be_used bool Membership start date
    is_expired bool Is membership expired
    invoice_id int Invoice id, where this membership was purchased
    invoice_number string Invoice number, where this membership was purchased
    invoice_datetime string Invoice datetime, where this membership was purchased
    recurring_profile_id int Recurring profile id for invoice with this membership
    recurring_profile_status string Recurring profile status for invoice with this membership
    status string Current client membership status
    bookings array|BookingEntity[]|null Membership bookings array
  • PromotionInstanceEntity

    Entity that contains promotion instance information
    Name Type Description
    id int Promotion instance id. Auto-generated value.
    promotion PromotionEntity Promotion information
    start_date string Promotion instance start date
    expired_date string Promotion instance expire date
    is_used bool Returns true if this promotion was used already
    can_be_used bool Returns true if this promotion was used already
    can_be_used_count int Returns how many times left. In case this value is -1 then can be used unlimited times.
    code string Promotion instance code
    client_id int Client id
  • PackageInstanceEntity

    Entity that contains package instance information
    Name Type Description
    id int Package instance id. Auto-generated value.
    client_id int Client id
    created string Package instance created date
    period_start string Package start date
    period_end string Package end date
    status string Package status
    can_be_used bool If package can be used
    is_used bool If package was totally used
    package_id int Package id
    package PackageEntity Package object
    services array|Package_PackageServiceEntity[] Warning!
    This is used services for invoice package instances or
    rest of services in the package instance for package instance details
    products array|Package_PackageProductEntity[] Warning!
    This is used products for invoice package instances or
    rest of products in the package instance for package instance details
    paid_attributes array|Package_PackageProductEntity[] Warning!
    This is used attributes for invoice package instances or
    rest of attributes in the package instance for package instance details
    count_used_package_instance int How many times packages used
  • PackageEntity

    Entity that contains package information
    Name Type Description
    id int Package id. Auto-generated value.
    name string Package name
    description string Package description
    position int Package position
    file_id int Image file id
    picture string Picture file name
    picture_path string Picture path
    picture_preview string Path to preview picture
    picture_large string Path to large picture
    price float Package price
    currency string Package price currency
    tax_id int Tax id
    tax TaxEntity Tax information
    duration int Package duration
    duration_type string Package duration type
    sales_limit int Package sales limit
    sold int Sold packages count
    can_be_purchased bool If client can purchase this package
    is_active bool Is package active
    is_visible bool Is package visible on public site
    services array|Package_PackageServiceEntity[] Array of connected services (Package_PackageServiceEntity[])
    products array|Package_PackageProductEntity[] Array of connected products (Package_PackageProductEntity[])
    paid_attributes array|Package_PackageProductEntity[] Array of connected paid attributes (Package_PackageProductEntity[])
    has_instances bool If package has generated instances already
    is_use_package_limit bool Is use package limit
    package_limit int Package limit
  • Package_PackageServiceEntity

    Package service qty into
    Name Type Description
    id int Package service entity id. Auto-generated value.
    service_id int Service id
    qty int Qty in package
    name string Service name
    is_visible bool Is visible
  • Package_PackageProductEntity

    Package product qty into
    Name Type Description
    id int Package service entity id. Auto-generated value.
    product_id int Product id
    qty int Qty in package
    name string Name of product
    is_visible bool Is visible
  • PromotionEntity

    Entity that contains promotion information
    Name Type Description
    id int Promotion id. Auto-generated value.
    name string Promotion name
    description string Promotion description
    file_id int Image file id
    picture_preview string Path to preview picture
    picture_large string Path to large picture
    is_visible bool Is promotion visible on public site
    is_active bool Is promotion active
    position int Promotion position
    price float Promotion price to purchase (gift card)
    currency string Promotion price currency to purchase (gift card)
    tax TaxEntity Promotion tax
    promotion_type string Promotion type. Can be 'gift_card', 'discount'
    discount_type string Discount type. Can be 'fixed_amount', 'percentage'
    fixed_amount is discount for fixed amount.
    percentage is percentage discount.
    discount float Discount value (amount value or percentage value)
    duration_type string Duration type for gift cards ('year', 'month', 'week', 'day')
    duration int Duration length
    client_type string Client type can be 'new' or 'all'
    allow_usage_count int Limit of usage count
    is_unlimited bool Is unlimited
    affect_services bool Is it possible to apply this promotion to services?
    affect_products bool Is it possible to apply this promotion to products?
    affect_paid_attributes bool Is it possible to apply this promotion to paid attribute?
    affect_memberships bool Is it possible to apply this promotion to memberships?
    affect_packages bool Is it possible to apply this promotion to packages?
    service_restrictions array|int[] Array of services ids to which you can apply promotion
    booking_restrictions array|Promotion_BookingRestrictionEntity[] Array of Promotion_BookingRestrictionEntity
    product_restrictions array|int[] Array of product ids to which you can apply promotion
    paid_attribute_restrictions array|int[] Array of paid attributes ids to which you can apply promotion
    memberships_restrictions array|int[] Array of memberships ids to which you can apply promotion
    package_restrictions array|int[] Array of packages ids to which you can apply promotion
  • Promotion_BookingRestrictionEntity

    Booking promotion restrictions info
    Name Type Description
    id int Restriction id. Auto-generated value.
    start_date string Start date when promotion affects booking
    end_date string End date when promotion affects booking
    start_time string Start time when promotion affects booking
    end_time string End time when promotion affects booking
  • TaxEntity

    Entity that contains tax information
    Name Type Description
    id int Tax id. Auto-generated value.
    name string Tax name
    ratio float Tax ratio
    is_default bool Is default tax
  • MembershipEntity

    Entity that contains membership information
    Name Type Description
    id int Membership id. Auto-generated value.
    name string Membership name
    description string Membership description
    file_id int Image file id
    picture_preview string Path to preview picture
    picture_large string Path to large picture
    first_price float Price that client will when he first time buys membership
    recurring_price float Price that client will when he buy membership not first time
    currency string Membership price currency
    is_recurring bool Is membership supporting recurring payment
    tax_id int Tax id
    tax TaxEntity Tax information
    duration int Membership duration
    duration_type string Membership duration type
    limit int How many booking in this membership (0 - unlimited)
    simultaneous_limit int Maximum number of active future bookings per client
    is_unlimited bool Has unlimited bookings
    is_active bool Is membership active
    is_visible bool Is membership visible on public site
  • CalendarNoteEntity

    Calendar note info
    Name Type Description
    id int Calendar note id
    provider_id int Provider id (optional)
    service_id int Service id (optional)
    provider ProviderEntity Provider data (optional). Read only.
    service ServiceEntity Service data (optional). Read only.
    start_date_time string Note start date and time
    end_date_time string Note end date and time
    note_type_id int Note type id
    note_type CalendarNoteTypeEntity Note type object. Read only.
    note string Note body
    mode string Note mode (service/provider/all)
    time_blocked bool Time is blocked
  • CalendarNoteTypeEntity

    Calendar note type oject
    Name Type Description
    id int Note type id
    name string Note type name
    color string Note type color
    is_default bool Type is default
    position int Note type position
  • AdminTicketEntity

    Detailed ticket information object
    Name Type Description
    id int Ticket identifier
    created string When ticket was created
    is_used bool Is ticket already used
    used_datetime string Ticket checked in datetime
    code string ticket code
    booking_id int Booking id
    booking AdminBookingDetailsEntity Booking details
    client_id int Client id
    template_id int Ticket template id
    is_active bool Ticket is active
    check_in_allowed bool Check in is allowed
    processed bool Ticket has been processed within this request
    unavailable_check_in_reason string In case check in is unavailable the reason can be
    'ticket_error_too_early', 'ticket_error_too_late', 'ticket_error_validated', 'ticket_error_inactive'
    check_in_date_time_from string Allowed checkin datetime from
    check_in_date_time_to string Allowed checkin datetime to
  • Calendar_DataEntity

    Calendar info object
    Name Type Description
    from string Work day from time
    to string Work day to time
    columns array|Calendar_ColumnEntity[] Columns array
  • Calendar_ColumnEntity

    Calendar column data
    Name Type Description
    id int Column object id
    name string Column name
    date string Column date
    type string Column type
    from string Column work time from
    to string Column work time to
    is_day_off bool Is day off for this day
    is_special_day bool Is special day
    breaktimes array|Calendar_TimePeriodEntity[] Breaktimes array
    blocked array|Calendar_TimePeriodEntity[] Blocked time array
    bookings array|Calendar_BookingEntity[] Calendar events array
    notes array|Calendar_NoteEntity[] Calendar notes array
  • Calendar_TimePeriodEntity

    Time period object
    Name Type Description
    from string Time from
    to string Time to
  • Calendar_BookingEntity

    Calendar booking info
    Name Type Description
    id int Booking object id
    service_name string Service name
    service_id int Service id
    provider_name string Provider name
    provider_color string Provider color
    provider_id int Provider id
    client_name string Client name
    client_email string Client email
    client_phone string Client phone
    client_id int Client id
    from string Booking datetime from
    to string Booking datetime to
    status string Booking status
    invoice_id int Invoice id
    invoice_status string Invoice status
    invoice_payment_received bool Payment was received
    user_status StatusEntity User status
    duration int Duration in minutes
  • Calendar_NoteEntity

    Note calendar info
    Name Type Description
    id int Note object id
    note string Note
    note_type CalendarNoteTypeEntity Note type
    time_blocked bool Time is blocked
    service_name string Service name
    service_id int Service id
    provider_name string Provider name
    provider_id int Provider id
    from string Note datetime from
    to string Note datetime to
  • AdminPromotionIssueGiftCardEntity

    Request to issue gift cards
    Name Type Description
    promotion_id int Gift card id
    start_date string Gift card start date
    personalized bool Gift card type personalized/non-personalized
    send_email bool|null Send email (for personalized cards only)
    send_sms bool|null Send sms (for personalized cards only)
    email_subject null|string Email subject (for personalized cards only)
    email_body null|string Email body (for personalized cards only)
    sms_body null|string SMS body (for personalized cards only)
    clients array|int[] Client ids (for personalized cards only)
    count null|int Count of non-personalized gift cards
  • CompanyTariffEntity

    Entity that contains company subscription information.
    This entity represents the subscription details of a company, including
    subscription name, start and expire dates, expiration status, and limits.
    Name Type Description
    subscription_name string Subscription name
    expire_date string Expire date
    start_date string Start date
    is_expired bool Is subscription expired
    expire_in int Expire in days
    subscription_link string Subscription link
  • CompanyTariff_LimitEntity

    Entity that contains company subscription limit information.
    This entity represents the limits associated with a company subscription, including
    the key, total limit, and remaining limit.
    Name Type Description
    key string Limit key
    Represents the unique identifier for the limit.
    total int Limit value
    Represents the total value of the limit.
    rest int Limit rest
    Represents the remaining value of the limit.
  • StatisticEntity

    Entity that contains statistics data
    Name Type Description
    most_popular_provider ProviderEntity|null Most popular provider name.
    most_popular_provider_bookings int Number of bookings for the most popular provider.
    most_popular_service ServiceEntity|null Most popular service name.
    most_popular_service_bookings int Number of bookings for the most popular service.
    bookings_today int Number of bookings today.
    bookings_this_week int Number of bookings this week.
    bookings int Number of bookings this month.

Miksi tuhannet asiakkaat valitsevat SimplyВook.me API:n?

Selkeä ja yksinkertainen käyttöliittymä. Oman varauspalvelun rakentaminen on helppoa

Voit helposti liittää kaikki tarvitsemasi toiminnot

Reaaliaikainen ajanvaraus - asiakkaasi voivat varata tapaamisia missä ja milloin haluavat, 24/7

Sovelluksemme tarjoaa sinulle runsaasti muita hyödyllisiä toimintoja. Klikkaa tästä saadaksesi lisätietoja toiminnoistamme.

API

Anna asiakkaidesi varata palveluita poistumatta sovelluksestasi!

Tee verkkosivustostasi tai sovelluksestasi merkityksellisempi, kiinnostavampi ja kannattavampi tarjoamalla toimintoja, joita asiakkaasi haluavat tehdä löydettyään paikalliset yritykset. API-rajapintamme avulla voit helposti sisällyttää "Varaa nyt" -painikkeen suoraan verkkosivullesi, jolloin asiakkaasi voivat suunnitella tapaamisia reaaliaikaisesti, päivällä tai yöllä.

API-rajapintamme antaa sinulle pääsyn kaikkiin varaustietoihin, joita tarvitset aikataulutusvalmiuksien luomiseen ja käyttöönottoon asiakaskunnallesi.

Yhdistämällä asiakkaan ja liiketoiminta-aikataulusi yhdistämme täysin uuden kaupankäyntikerroksen. Uskomme, että suora ajanvaraus sovelluksessasi tai verkkosivustollasi mahdollistaa sen, että voimme tarjota sinulle asiakastoimituksen, ei vain asiakaspotentiaalin.