WellnessLiving API (v1)
  1. Profile
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
      GET
    • /v1/profile/contract
      GET
    • /v1/profile/purchase/list/element
      GET
  • Promotion
    • /v1/promotion/list
    • /v1/promotion
  • Purchase
    • /v1/purchase/receipt
  • Report
    • /v1/report/data
    • /v1/report/query
  • 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. Profile

/v1/profile/purchase/list/element

Testing
GET
https://uat-api.wellnessliving.io/v1/profile/purchase/list/element
This endpoint retrieves the details of a specific purchase list element based on the provided parameters.

Request#

Parameters:
id_region (integer) - The ID of the region for which the purchase list element is being retrieved.
k_business (integer) - The business key associated with the purchase list element.
k_purchase_item (integer) - The key of the specific purchase item.

Response#

Status: 200
Content-Type: application/json
The response will include various attributes related to the purchase list element. However, the actual values for these attributes are masked/minified for privacy reasons.
a_component (array) - An array of components.
a_logo (object) - An object containing logo details such as height, width, and URL.
a_restrict (array) - An array of restrictions.
a_tax (array) - An array of tax details.
can_renew (boolean) - Indicates whether the purchase can be renewed.
dl_end (string) - End date for the purchase list element.
dl_purchase (string) - Purchase date for the element.
... (and more attributes)
{
    "type": "object",
    "properties": {
        "a_component": {"type": "array"},
        "a_logo": {
            "type": "object",
            "properties": {
                "i_height": {"type": "integer"},
                "i_width": {"type": "integer"},
                "is_empty": {"type": "boolean"},
                "s_url": {"type": "string"}
            },
            "additionalProperties": false
        },
        "a_restrict": {"type": "array"},
        "a_tax": {"type": "array"},
        "can_renew": {"type": "boolean"},
        "dl_end": {"type": "string"},
        "dl_purchase": {"type": "string"},
        "dl_send": {"type": "string"},
        "dl_start": {"type": "string"},
        "dt_cancel": {"type": "string"},
        "dt_hold_end": {"type": "string"},
        "dt_hold_start": {"type": "string"},
        "dt_purchase": {"type": "string"},
        "dt_redeem": {"type": "string"},
        "f_discount_login_type_percent": {"type": "number"},
        "html_description": {"type": "string"},
        "i_book": {"type": "integer"},
        "i_book_duration": {"type": "integer"},
        "i_buy": {"type": "integer"},
        "i_discount_count": {"type": "integer"},
        "i_duration": {"type": "integer"},
        "i_left": {"type": "integer"},
        "i_limit": {"type": "integer"},
        "i_payment_period": {"type": "integer"},
        "i_remain": {"type": "integer"},
        "i_remain_duration": {"type": "integer"},
        "i_renew": {"type": "integer"},
        "i_use": {"type": "integer"},
        "i_use_duration": {"type": "integer"},
        "id_activation": {"type": "integer"},
        "id_discount_commission_type": {"type": "integer"},
        "id_duration": {"type": "integer"},
        "id_program_type": {"type": "integer"},
        "id_purchase_item": {"type": "integer"},
        "id_sale": {"type": "integer"},
        "is_active": {"type": "boolean"},
        "is_asset": {"type": "boolean"},
        "is_component": {"type": "boolean"},
        "is_convert": {"type": "boolean"},
        "is_expire": {"type": "boolean"},
        "is_hold": {"type": "boolean"},
        "is_limit": {"type": "boolean"},
        "is_login_type_member": {"type": "boolean"},
        "is_mail": {"type": "boolean"},
        "is_past": {"type": "boolean"},
        "is_redeem": {"type": "boolean"},
        "is_renew": {"type": "boolean"},
        "is_transfer": {"type": "boolean"},
        "k_code_result": {"type": "string"},
        "k_currency": {"type": "string"},
        "k_id": {"type": "string"},
        "k_login_promotion_result": {"type": "string"},
        "k_purchase_result": {"type": "string"},
        "m_cost_item": {"type": "string"},
        "m_cost_total": {"type": "string"},
        "m_discount_amount": {"type": "string"},
        "m_discount_login_type_amount": {"type": "string"},
        "m_discount_manual": {"type": "string"},
        "m_period_price": {"type": "string"},
        "m_price": {"type": "string"},
        "m_refund": {"type": ["null", "string"]},
        "s_code": {"type": "string"},
        "s_gift_code": {"type": "string"},
        "s_gift_recipient": {"type": "string"},
        "s_limit_actor": {"type": "string"},
        "s_mail": {"type": "string"},
        "s_message": {"type": "string"},
        "s_payer": {"type": "string"},
        "s_promotion_convert": {"type": "string"},
        "s_purchase": {"type": "string"},
        "s_recipient": {"type": "string"},
        "s_sender": {"type": "string"},
        "s_title": {"type": "string"},
        "sid_value": {"type": "string"},
        "text_expire": {"type": "string"},
        "uid_payer": {"type": "string"},
        "uid_recipient": {"type": "string"},
        "status": {"type": "string"},
        "s_version": {"type": "string"}
    },
    "additionalProperties": false
}

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
k_purchase_item
string 
required
Example:
100014130847

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/profile/purchase/list/element?id_region=2&k_business=49197&k_purchase_item=100014130847' \
--header 'Content-Type: text/plain' \
--data-raw ''

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Previous
/v1/profile/contract
Next
/v1/promotion/list