POSThttps://uat-api.wellnessliving.io/v1/lead/infoid_region (number, required)2k_business (number/string, required)49197Content-Type: application/jsonAuthorization: Bearer {{TOKEN}}) must be supplied by the caller, typically inherited from the collection/folder configuration.{
"k_business": "49197",
"a_field_data": {
"743626": "john@example.com",
"743628": "John",
"743629": "Doe",
"743630": "222-222-2222"
}
}
k_business (string, required)k_business passed in the query string.a_field_data (object, required)a_field_dataNote: Field IDs are environment-specific configuration IDs; names below describe their apparent usage based on the sample.
"743626" – Lead email"john@example.com""743628" – First name"John""743629" – Last name"Doe""743630" – Phone number"222-222-2222"a_field_data depending on the lead form configuration.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.{
"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"
]
}
a_error (array)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)Core\Request\Api\UserException).code (number or null)message (string)status (string)login-member).s_version (string)__a_message (array of strings)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.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"}}'{}