TeleportService

<back to all web services

AdminContacts_RequestPerson

Requires Authentication
The following routes are available for this service:
POST/AdminContacts_RequestPerson
AdminContacts_RequestPerson Parameters:
NameParameterData TypeRequiredDescription
OwnerbodystringNo
ContactbodystringNo
messagebodystringNo
callback_urlbodystringNo
BranchesbodyList<Branch_Add>No
CompaniesbodyList<Company_Add>No
Branch_Add Parameters:
NameParameterData TypeRequiredDescription
OwnerTypeformCompanyOwnerTypeNo
OwnerformstringNo
BranchNameformstringNo
CompanyIdformstringNo
ParametersformDictionary<string, string>No
CompanyOwnerType Enum:
contact
contactGroup
Company_Add Parameters:
NameParameterData TypeRequiredDescription
OwnerTypeformCompanyOwnerTypeNo
OwnerformstringNo
CompanyNameformstringNo
ParametersformDictionary<string, string>No
Contacts_RequestPersonResponce Parameters:
NameParameterData TypeRequiredDescription
retvalformintNo
userOrganisationInfoformUserOrganisationInfoNo
ResponseStatusformResponseStatusNo
UserOrganisationInfo Parameters:
NameParameterData TypeRequiredDescription
BranchesListformList<UserTeamsBranches>No
CompaniesListformList<UserTeamsCompanies>No
UserTeamsBranches Parameters:
NameParameterData TypeRequiredDescription
owner_idformstringNo
owner_typeformstringNo
branch_idformstringNo
owner_nameformstringNo
branch_nameformstringNo
branch_KPPformstringNo
branch_addressformstringNo
branch_phoneformstringNo
company_idformstringNo
photo_idformstringNo
UserTeamsCompanies Parameters:
NameParameterData TypeRequiredDescription
owner_idformstringNo
owner_typeformstringNo
company_idformstringNo
owner_nameformstringNo
company_nameformstringNo
company_fullnameformstringNo
company_INNformstringNo
company_KPPformstringNo
company_OGRNformstringNo
company_accountformstringNo
company_BIKformstringNo
company_bankformstringNo
company_coraccountformstringNo
company_chiefformstringNo
company_buhformstringNo
company_phoneformstringNo
company_addressformstringNo
company_logoformstringNo
photo_idformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /AdminContacts_RequestPerson HTTP/1.1 
Host: wbs.e-teleport.ru 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Owner: String,
	Contact: String,
	message: String,
	callback_url: String,
	Branches: 
	[
		{
			OwnerType: contact,
			Owner: String,
			BranchName: String,
			CompanyId: String,
			Parameters: 
			{
				String: String
			}
		}
	],
	Companies: 
	[
		{
			OwnerType: contact,
			Owner: String,
			CompanyName: String,
			Parameters: 
			{
				String: String
			}
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	retval: 0,
	userOrganisationInfo: 
	{
		BranchesList: 
		[
			{
				owner_id: String,
				owner_type: String,
				branch_id: String,
				owner_name: String,
				branch_name: String,
				branch_KPP: String,
				branch_address: String,
				branch_phone: String,
				company_id: String,
				photo_id: String
			}
		],
		CompaniesList: 
		[
			{
				owner_id: String,
				owner_type: String,
				company_id: String,
				owner_name: String,
				company_name: String,
				company_fullname: String,
				company_INN: String,
				company_KPP: String,
				company_OGRN: String,
				company_account: String,
				company_BIK: String,
				company_bank: String,
				company_coraccount: String,
				company_chief: String,
				company_buh: String,
				company_phone: String,
				company_address: String,
				company_logo: String,
				photo_id: String
			}
		]
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}