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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<AdminContacts_RequestPerson xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
  <Branches>
    <Branch_Add>
      <BranchName>String</BranchName>
      <CompanyId>String</CompanyId>
      <Owner>String</Owner>
      <OwnerType>contact</OwnerType>
      <Parameters xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Parameters>
    </Branch_Add>
  </Branches>
  <Companies>
    <Company_Add>
      <CompanyName>String</CompanyName>
      <Owner>String</Owner>
      <OwnerType>contact</OwnerType>
      <Parameters xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Parameters>
    </Company_Add>
  </Companies>
  <Contact>String</Contact>
  <Owner>String</Owner>
  <callback_url>String</callback_url>
  <message>String</message>
</AdminContacts_RequestPerson>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Contacts_RequestPersonResponce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceModel">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <retval>0</retval>
  <userOrganisationInfo>
    <BranchesList>
      <UserTeamsBranches>
        <branch_KPP>String</branch_KPP>
        <branch_address>String</branch_address>
        <branch_id>String</branch_id>
        <branch_name>String</branch_name>
        <branch_phone>String</branch_phone>
        <company_id>String</company_id>
        <owner_id>String</owner_id>
        <owner_name>String</owner_name>
        <owner_type>String</owner_type>
        <photo_id>String</photo_id>
      </UserTeamsBranches>
    </BranchesList>
    <CompaniesList>
      <UserTeamsCompanies>
        <company_BIK>String</company_BIK>
        <company_INN>String</company_INN>
        <company_KPP>String</company_KPP>
        <company_OGRN>String</company_OGRN>
        <company_account>String</company_account>
        <company_address>String</company_address>
        <company_bank>String</company_bank>
        <company_buh>String</company_buh>
        <company_chief>String</company_chief>
        <company_coraccount>String</company_coraccount>
        <company_fullname>String</company_fullname>
        <company_id>String</company_id>
        <company_logo>String</company_logo>
        <company_name>String</company_name>
        <company_phone>String</company_phone>
        <owner_id>String</owner_id>
        <owner_name>String</owner_name>
        <owner_type>String</owner_type>
        <photo_id>String</photo_id>
      </UserTeamsCompanies>
    </CompaniesList>
  </userOrganisationInfo>
</Contacts_RequestPersonResponce>