WellnessLiving API (v1)
  1. Promotion
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
      GET
    • /v1/promotion
      GET
  • 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. Promotion

/v1/promotion

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

Request#

Parameters:
id_region (integer) - The ID of the region for which the promotion details are requested.
k_business (integer) - The ID of the business associated with the promotion.
uid (integer) - The user ID for whom the promotion details are being fetched.
k_promotion (integer) - The unique ID of the promotion.

Response#

Status: 200
Content-Type: application/json
The response contains the details of the promotion in JSON format, including information about access, image, expiration, duration, limit, program, pricing, description, title, and purchase URL.
{
    "type": "object",
    "properties": {
        "a_promotion": {
            "type": "object",
            "properties": {
                "a_access": {
                    "type": "object",
                    "properties": {
                        "a_class": {"type": "array"},
                        "a_event": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "k_class": {"type": "string"}
                                },
                                "additionalProperties": false
                            }
                        },
                        "a_resource": {"type": "array"},
                        "a_service": {"type": "array"},
                        "is_class_all": {"type": "string"},
                        "is_event_all": {"type": "string"}
                    },
                    "additionalProperties": false
                },
                "a_image": {
                    "type": "object",
                    "properties": {
                        "i_height": {"type": "integer"},
                        "i_height_src": {"type": "integer"},
                        "i_rotate": {"type": "integer"},
                        "i_width": {"type": "integer"},
                        "i_width_src": {"type": "integer"},
                        "id_type_src": {"type": "integer"},
                        "is-resize": {"type": "boolean"},
                        "url-view": {"type": "string"},
                        "url-thumbnail": {"type": "string"},
                        "url": {"type": "string"}
                    },
                    "additionalProperties": false
                },
                "dl_expire": {"type": ["null", "string"]},
                "i_duration": {"type": "string"},
                "i_limit": {"type": "string"},
                "id_duration": {"type": "integer"},
                "id_duration_type": {"type": "integer"},
                "id_program": {"type": "integer"},
                "is_introductory": {"type": "string"},
                "is_online": {"type": "string"},
                "k_promotion": {"type": "string"},
                "m_price": {"type": "string"},
                "text_description": {"type": "string"},
                "text_title": {"type": "string"},
                "url_buy": {"type": "string"}
            },
            "additionalProperties": false
        },
        "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
uid
string 
required
Example:
2720946
k_promotion
string 
required
Example:
100000196480

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/promotion?id_region=2&k_business=49197&uid=2720946&k_promotion=100000196480' \
--header 'Content-Type: text/plain' \
--data-raw ''

Responses

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