WellnessLiving API (UAT) - v1.2026-02
  1. report
WellnessLiving API (UAT) - v1.2026-02
  • WellnessLiving API - [Feb-2026]
  • Auth
    • Authentication
  • appointment
    • /v1/appointment/book/asset/category
    • /v1/appointment/book/asset/list
    • /v1/appointment/book/asset/service
    • /v1/appointment/book/finish
    • /v1/appointment/book/finish
    • /v1/appointment/book/payment/paymentPost
    • /v1/appointment/book/product
    • /v1/appointment/book/schedule/calendar
    • /v1/appointment/book/schedule/day-time
    • /v1/appointment/book/service/category
    • /v1/appointment/book/service/list
    • /v1/appointment/book/staff/list
  • book-process
    • /v1/book/process/info
    • /v1/book/process/payment
    • /v1/book/process/purchase
    • /v1/book/process/purchase/element/list
  • business-data
    • /v1/business
    • /v1/business/franchise/location
    • /v1/business/skin
  • catalog
    • /v1/catalog/list
    • /v1/catalog/staff/catalog/list
  • classes
    • /v1/classes/list
    • /v1/classes/promotion
    • /v1/classes/view/element
  • collector-debt
    • /v1/collector/debt/list
    • /v1/collector/debt/pay
    • /v1/collector/debt/transaction
  • drive
    • /v1/drive/product/image/upload
  • ecommerce
    • /v1/ecommerce/order/sync
  • event
    • /v1/event/book/list
    • /v1/event/book/view/element
    • /v1/event/list
  • lead
    • /v1/lead/info
    • /v1/lead/info
  • location
    • /v1/location/list
    • /v1/location/view
  • login
    • /v1/login/attendance/list
    • /v1/login/search/settings
    • /v1/login/search/settings
    • /v1/login/search/staff-app/list
  • member
    • /v1/member/info
  • profile
    • /v1/profile/contract
    • /v1/profile/create
    • /v1/profile/fields
    • /v1/profile/purchase/list
    • /v1/profile/purchase/list/element
  • promotion
    • /v1/promotion
    • /v1/promotion/list
  • purchase
    • /v1/purchase/receipt
  • report
    • /v1/report/data
      GET
    • /v1/report/query
      POST
  • report-dev
    • /v1/report/customization-form
    • /v1/report/filter-info
  • schedule
    • /v1/schedule/class/list
    • /v1/schedule/class/view
    • /v1/schedule/class/view
    • /v1/schedule/page/element
    • /v1/schedule/page/list
    • /v1/schedule/tab
  • shop
    • /v1/shop/category
  • staff
    • /v1/staff/list
    • /v1/staff/view
  • user
    • /v1/user
  • visit
    • /v1/visit/status
  1. report

/v1/report/query

POST
/v1/report/query

Overview#

This request calls the WellnessLiving reporting endpoint to execute a member/report query for business BID 49197 in region 2 in the UAT environment. It runs a server-side report definition (cid_report) with pagination, sort options, and a JSON-encoded filter, returning a dynamic column schema and result rows.
Method: POST
URL: https://uat-api.wellnessliving.io/v1/report/query?id_region=2&k_business=49197
Use case: Retrieve tabular report data (e.g., member details, addresses, demographics, and custom fields) for analytics, exports, or dashboards.

Required Headers#

Content-Type: application/json
Any required authentication (e.g., bearer token) must be provided by the collection or environment (not set directly in this request description).

Request Body#

Body is sent as raw JSON. The key fields are:
k_business (string | number)
Business key/BID to run the report for.
Must match the business in the URL query (49197 in this collection).
cid_report (number)
Internal report configuration ID (e.g. 689).
Determines which report template, columns, and logic are executed.
i_limit (number)
Maximum number of rows to return in this page.
Used for pagination (e.g. 50).
i_offset (number)
Zero-based offset of the first row to return.
Used with i_limit to page through larger result sets.
is_backend (0 | 1)
Indicates that the request is coming from the back office / internal system.
Typically 1 in this collection context.
is_refresh (0 | 1)
Controls whether to force a refresh of cached report data.
0 → use existing/cached data where possible.
1 → force recalculation/refresh.
s_sort (string)
Sort key indicating which column to order results by (e.g. "uid").
The exact value must be valid for the configured report.
json_filter (string; JSON-encoded object)
A string containing a JSON object that defines filter criteria for the report.
Example structure (simplified):
{
  "o_business_contract": [],
  "o_client_churn": [],
  "o_location": [],
  ...
}
Use this to restrict the data set by fields such as membership, location, custom fields, etc.
Note: json_filter itself is a string field; its value must be valid JSON when parsed on the server side.

Successful Response (200)#

A successful 200 OK response returns a JSON object that includes dynamic report metadata and result rows. At a high level:
a_dynamic
Map of dynamic column definitions keyed by field name (e.g. "field-general-2", "field-custom-100000078810").
Each entry describes a column:
text_title / text_title_export – display/export labels (e.g. "First Name", "Address", "Date of Birth").
a_type – data type information (e.g. string, bool).
is_dynamic, is_export, is_show, is_store, is_order – flags controlling visibility, ordering, and export behavior.
Optional nested a_cell definitions for composite fields (e.g. city/region/country for an address, date parts, etc.).
Other top-level fields (not fully shown in the truncated sample) typically include:
Row data array that aligns with the dynamic column definitions.
Additional metadata for pagination, totals, or formatting.
In this collection context, common dynamic fields represent member demographics and contact information, including:
First/Last Name
Username and Client/Member ID
Address, City, Region, Country, ZIP/Postal Code
Date of Birth, Gender
Location and other custom fields (e.g. checkboxes, dropdowns, radio buttons).
Use the a_dynamic map to understand the available columns and drive client-side rendering, exports, or downstream processing of the report output.

Request

Query Params

Body Params text/plain
Examples

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/v1/report/query?id_region={{id_region}}&k_business={{k_business}}' \
--header 'Content-Type: text/plain' \
--data-raw '{"k_business":"{{k_business}}","cid_report":689,"i_limit":50,"i_offset":0,"is_backend":1,"is_refresh":0,"s_sort":"uid","json_filter":{"o_business_contract":[],"o_client_churn_risk":[],"o_client_type":[],"o_date":{"dl_end":"2025-12-31","dl_start":"2025-01-01","id_report_date":4},"o_gender":[],"o_liability_waiver":[],"o_location_home":[],"o_login_list":[],"o_member_group":[],"o_member_status":[3],"o_member_subscribe":[],"o_promotion_special":[],"o_search":"","o_search_template":{"is_dashboard":0,"k_search_template":""},"o_user_app":[]}}'
Response Response Example
{}
Modified at 2026-02-26 17:13:05
Previous
/v1/report/data
Next
/v1/report/customization-form
Built with