WellnessLiving API (UAT) - v1.2026-02
  1. lead
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
      GET
    • /v1/lead/info
      POST
  • 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
    • /v1/report/query
  • 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. lead

/v1/lead/info

POST
/v1/lead/info

Purpose#

Creates or updates a lead record for a specific business and region in the WellnessLiving UAT environment.
This endpoint is typically used when capturing new lead information (e.g., from a web form) before creating a full member account. If the email already exists and is associated with an existing account, the API returns a 200 response with an error payload describing the conflict.

HTTP Request#

Method: POST
URL: https://uat-api.wellnessliving.io/v1/lead/info

Required Query Parameters#

id_region (number, required)
Region identifier for the request context.
Example: 2
k_business (number/string, required)
Business key/identifier in WellnessLiving.
Example: 49197

Required Headers#

Content-Type: application/json
Any required authentication headers (e.g., Authorization: Bearer {{TOKEN}}) must be supplied by the caller, typically inherited from the collection/folder configuration.

JSON Request Body#

Body is sent as raw JSON with the following structure:
{
  "k_business": "49197",
  "a_field_data": {
    "743626": "john@example.com",
    "743628": "John",
    "743629": "Doe",
    "743630": "222-222-2222"
  }
}

Top-level Fields#

k_business (string, required)
Business key. Should match the k_business passed in the query string.
a_field_data (object, required)
A key/value map of lead form fields. Keys are internal field IDs in the WellnessLiving configuration; values are the user-provided data.

Sample Mapped Fields in a_field_data#

Note: Field IDs are environment-specific configuration IDs; names below describe their apparent usage based on the sample.
"743626" – Lead email
Type: string (email)
Example: "john@example.com"
Used to check if an account with this email already exists.
"743628" – First name
Type: string
Example: "John"
"743629" – Last name
Type: string
Example: "Doe"
"743630" – Phone number
Type: string (phone)
Example: "222-222-2222"
Additional field IDs can be included in a_field_data depending on the lead form configuration.

Successful 200 Response – Email Already Exists Error Case#

When the email provided in a_field_data["743626"] is already associated with an existing account, the API responds with HTTP 200 but returns an error payload describing the problem instead of creating a new lead.
Example response shape (simplified from the last response):
{
  "a_error": [
    {
      "html_message": "An account with this email already exist...",
      "id": null,
      "s_field": "field-743626",
      "s_message": "An account with this email already exist...",
      "sid": "login-member"
    }
  ],
  "class": "Core\\Request\\Api\\UserException",
  "code": null,
  "message": "An account with this email already exist...",
  "status": "login-member",
  "s_version": "444085",
  "__a_message": [
    "name-first|rs.field.general.sid",
    "name-last|rs.field.general.sid",
    "login|rs.field.general.sid",
    "phone-cell|rs.field.general.sid",
    "phone-home|rs.field.general.sid",
    "phone-work|rs.field.general.sid",
    "birthday|rs.field.general.sid",
    "address|rs.field.general.sid",
    "location|rs.field.general.sid",
    "vaccination-status|rs.field.general.sid"
  ]
}

Response Fields (error case)#

a_error (array)
List of field-level errors.
Each item contains:
html_message: Full error message, possibly formatted for display.
id: Internal identifier for the error (often null).
s_field: Field identifier causing the error (e.g., field-743626 for the email field).
s_message: Human-readable error message.
sid: Error code/status identifier (e.g., login-member).
class (string)
Backend exception class name (e.g., Core\Request\Api\UserException).
code (number or null)
Numeric error code, if provided.
message (string)
Top-level error message (duplicates the field error in this scenario).
status (string)
Machine-readable status for the error (e.g., login-member).
s_version (string)
Internal version identifier for the backend.
__a_message (array of strings)
Additional internal message keys/identifiers, often mapping to general field SIDs (first name, last name, login/email, various phone and profile fields).

Notes#

A 200 HTTP status does not guarantee that the lead was created; always inspect the response body. Presence of a_error, class, and status values like login-member indicates an error condition even when the status code is 200.

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/lead/info?id_region={{id_region}}&k_business={{k_business}}' \
--header 'Content-Type: text/plain' \
--data-raw '{"k_business":"{{k_business}}","a_field_data":{"743626":"john@example.com","743628":"John","743629":"Doe","743630":"222-222-2222"}}'
Response Response Example
{}
Modified at 2026-02-26 17:13:05
Previous
/v1/lead/info
Next
/v1/location/list
Built with