POST api/trustedorg/orgs/link/lead/{id}?oId={oId}&obId={obId}&oMId={oMId}
Lead generation of org member using public link
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
logged in user id. |
integer |
Required |
| oId |
org id to get call back for |
integer |
Required |
| obId |
org branch id to get call back for |
integer |
Required |
| oMId |
org member id to get a call from |
integer |
Required |
Body Parameters
Social media campaign reladted data like utm_source, utm_medium, utm_campaign
SocialMediaReq| Name | Description | Type | Additional information |
|---|---|---|---|
| utm_source |
To identify the source of traffic, e.g. Facebook, Instagram, a search engine or another source. |
string |
None. |
| utm_medium |
To identify the advertising medium. For example, "banner", "email", "Facebook_Feed" or "Instagram_Story". |
string |
None. |
| utm_campaign |
To identify a specific promotion or strategic campaign. For example, "summer_sale". |
string |
None. |
Request Formats
application/json, text/json
{
"utm_source": "sample string 1",
"utm_medium": "sample string 2",
"utm_campaign": "sample string 3"
}
application/xml, text/xml
<SocialMediaReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models"> <utm_campaign>sample string 3</utm_campaign> <utm_medium>sample string 2</utm_medium> <utm_source>sample string 1</utm_source> </SocialMediaReq>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
On success, returns org, member details On failure, return Lifetrons standard responses codes.
GenericResp| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
generic id to return |
integer |
None. |
| other_user_id |
this is used when user remove member from group or other id |
integer |
None. |
| mapping_id |
string mapping id to return to client |
string |
None. |
| string_id |
any string id to return to client |
string |
None. |
| resp_code |
Lifetrons response code |
string |
None. |
| resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
{
"id": 1,
"other_user_id": 1,
"mapping_id": "sample string 1",
"string_id": "sample string 2",
"resp_code": "sample string 3",
"resp_msg": "sample string 4"
}
application/xml, text/xml
<generic_resp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.ResponseAgg.v5"> <resp_code xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 3</resp_code> <resp_msg xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 4</resp_msg> <id>1</id> <mapping_id>sample string 1</mapping_id> <other_user_id>1</other_user_id> <string_id>sample string 2</string_id> </generic_resp>