WellnessLiving API (v1)
  1. Report
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
      GET
    • /v1/report/query
      POST
  • Schedule
    • /v1/schedule/class/list
    • /v1/schedule/page/list
    • /v1/schedule/tab
    • /v1/schedule/class/view
    • /v1/schedule/page/element
  • Shop
    • /v1/shop/category
  • Staff
    • /v1/staff/list
    • /v1/staff/view
  • User
    • /v1/user
  • Visit
    • /v1/visit/status
  1. Report

/v1/report/data

Testing
GET
https://uat-api.wellnessliving.io/v1/report/data
The endpoint retrieves report data based on the provided region ID, business ID, and report ID.

Request#

Parameters:
id_region (integer): The ID of the region for which classes are being retrieved.
k_business (integer): The ID of the business for which classes are being retrieved.
id_report (integer): The ID of the associated Report.

Response#

Status: 200
Content-Type: application/json
The response is in JSON format and includes the following schema:
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "a_data": {
      "type": "object",
      "properties": {
        "a_column_hide": {
          "type": "array",
          "items": { "type": "string" }
        },
        "a_row": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "a_data_api": {
                "type": "object",
                "properties": {
                  "s_firstname": { "type": "string" },
                  "s_lastname": { "type": "string" },
                  "s_mail": { "type": "string" },
                  "s_name": { "type": "string" },
                  "a_member_group": {
                    "type": "array",
                    "items": { "type": "string" }
                  },
                  "url_photo": { "type": "string", "format": "uri" }
                },
                "required": ["s_firstname", "s_lastname", "s_name"]
              },
              "dt_since_local": {
                "type": "object",
                "properties": {
                  "dt_date": { "type": "string", "format": "date-time" },
                  "_s_class": { "type": "string" }
                },
                "required": ["dt_date"]
              },
              "s_note": { "type": "string" },
              "uid": { "type": "integer" },
              "member": { "type": "string" }
            },
            "required": ["a_data_api", "dt_since_local", "uid"]
          }
        },
        "is_more": { "type": "boolean" }
      },
      "required": ["a_row", "is_more"]
    },
    "status": { "type": "string" },
    "k_log": { "type": "string" },
    "s_version": { "type": "string" },
    "__a_message": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "required": ["a_data", "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
id_report
string 
required
Example:
33

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/report/data?id_region=2&k_business=49197&id_report=33' \
--header 'Content-Type: text/plain' \
--data-raw ''

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Previous
/v1/purchase/receipt
Next
/v1/report/query