WellnessLiving API (v1)
  1. Schedule
WellnessLiving API (v1)
  • WellnessLiving API
  • Auth
    • Authentication
  • Appointment
    • /v1/appointment/book/asset/list
    • /v1/appointment/book/asset/category
    • /v1/appointment/book/service/list
    • /v1/appointment/book/staff/list
  • Business
    • /v1/business
    • /v1/business/skin
  • Classes
    • /v1/classes/list
    • /v1/classes/view/element
  • Collector
    • /v1/collector/debt/list
    • /v1/collector/debt/pay
    • /v1/collector/debt/transaction
  • Drive
    • /v1/drive/product/image/upload
  • Event
    • /v1/event/book/list
    • /v1/event/list
    • /v1/event/book/view/element
  • Location
    • /v1/location/list
    • /v1/location/view
  • Login
    • /v1/login/search/settings
    • /v1/login/search/staff-app/list
    • /v1/login/search/settings
  • Member
    • /v1/member/info
  • Profile
    • /v1/profile/purchase/list
    • /v1/profile/contract
    • /v1/profile/purchase/list/element
  • Promotion
    • /v1/promotion/list
    • /v1/promotion
  • Purchase
    • /v1/purchase/receipt
  • Report
    • /v1/report/data
    • /v1/report/query
  • Schedule
    • /v1/schedule/class/list
      GET
    • /v1/schedule/page/list
      GET
    • /v1/schedule/tab
      GET
    • /v1/schedule/class/view
      GET
    • /v1/schedule/page/element
      GET
  • Shop
    • /v1/shop/category
  • Staff
    • /v1/staff/list
    • /v1/staff/view
  • User
    • /v1/user
  • Visit
    • /v1/visit/status
  1. Schedule

/v1/schedule/class/list

Testing
GET
https://uat-api.wellnessliving.io/v1/schedule/class/list
This endpoint makes an HTTP GET request to retrieve the schedule of classes for a specific region, business, and user on a given date range.

Request#

Parameters:
id_region (integer): The ID of the region for which the schedule is being requested.
k_business (integer): The ID of the business for which the schedule is being requested.
uid (integer): The user ID for whom the schedule is being requested.
dt_date (string): The start date of the schedule in the format 'YYYY-MM-DD'.
dt_end (string): The end date of the schedule in the format 'YYYY-MM-DD'.

Response#

Status: 200
Content-Type: application/json
The response includes the schedule for each date within the specified date range, along with details of each class session, including date, time, duration, location, staff, and virtual options.
The response to the request is in JSON format with the following structure:
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "a_calendar": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {}
      }
    },
    "a_session": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "dt_date": { "type": "string", "format": "date-time" },
          "dt_time": { "type": "string", "format": "time" },
          "dtl_date": { "type": "string", "format": "date-time" },
          "i_day": { "type": "integer" },
          "i_duration": { "type": "integer" },
          "is_cancel": { "type": "string" },
          "is_event": { "type": "string" },
          "k_class": { "type": "string" },
          "k_class_period": { "type": "string" },
          "k_location": { "type": "string" },
          "s_title": { "type": "string" },
          "text_timezone": { "type": "string" },
          "url_book": { "type": "string", "format": "uri" },
          "a_image": {
            "type": "array",
            "items": {}
          },
          "a_search_tag": {
            "type": "array",
            "items": {}
          },
          "html_description": { "type": "string" },
          "i_book": { "type": "integer" },
          "i_capacity": { "type": "integer" },
          "i_wait": { "type": "integer" },
          "is_wait_list_enabled": { "type": "boolean" },
          "a_staff": {
            "type": "array",
            "items": { "type": "string" }
          },
          "a_virtual_location": {
            "type": "array",
            "items": {}
          },
          "hide_application": { "type": "boolean" },
          "is_virtual": { "type": "boolean" },
          "a_class_tab": {
            "type": "array",
            "items": { "type": "null" }
          }
        },
        "required": ["dt_date", "dt_time", "dtl_date", "i_day", "i_duration", "s_title", "text_timezone", "url_book", "i_capacity"]
      }
    },
    "is_timezone_different": { "type": "boolean" },
    "is_virtual_service": { "type": "boolean" },
    "status": { "type": "string" },
    "s_version": { "type": "string" }
  },
  "required": ["a_calendar", "a_session", "status", "s_version"]
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
id_region
string 
required
Example:
2
k_business
string 
required
Example:
49197
uid
string 
required
Example:
2720946
dt_date
string 
required
Example:
2024-10-24
dt_end
string 
required
Example:
2024-10-25

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://uat-api.wellnessliving.io/v1/schedule/class/list?id_region=2&k_business=49197&uid=2720946&dt_date=2024-10-24&dt_end=2024-10-25' \
--header 'Content-Type: text/plain' \
--data-raw ''

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Previous
/v1/report/query
Next
/v1/schedule/page/list