TeleportService

<back to all web services

OfferGetById

The following routes are available for this service:
GET, POST/OfferGetById/{Id}
OfferGetById Parameters:
NameParameterData TypeRequiredDescription
IdpathstringYes
OfferGetByIdResponse Parameters:
NameParameterData TypeRequiredDescription
ErrCodeformintNo
OfferformOfferDocumentNo
ResponseStatusformResponseStatusNo
OfferDocument Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
UserNameformstringNo
TeamformstringNo
NumformstringNo
CreateDateformDateTimeNo
UpdateDateformDateTimeNo
CompanyformOfferCompanyNo
ContractformOfferContractNo
SumformdecimalNo
CommentformstringNo
TableformOfferTableNo
OfferCompany Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
OfferContract Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
DateformDateTimeNo
NumberformstringNo
NameformstringNo
OfferTable Parameters:
NameParameterData TypeRequiredDescription
ColumnsformOfferTableColumnsNo
RowsformList<OfferTableRow>No
OfferTableColumns Parameters:
NameParameterData TypeRequiredDescription
UserNameformstringNo
IdformstringNo
UidformstringNo
CodeformstringNo
ArticleformstringNo
NameformstringNo
UnitformstringNo
QuantityformstringNo
ConfirmedformstringNo
PriceformstringNo
SumformstringNo
TrademarkformstringNo
AdditionalColumnsformList<OfferTableColumn>No
OfferTableColumn Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
HeaderformstringNo
TypeformstringNo
RequiredformboolNo
ValueformstringNo
EnumValuesformList<string>No
OfferTableRow Parameters:
NameParameterData TypeRequiredDescription
UserNameformstringNo
IdformstringNo
UidformstringNo
CodeformstringNo
ArticleformstringNo
NameformstringNo
UnitformstringNo
QuantityformdecimalNo
ConfirmedformdecimalNo
PriceformdecimalNo
SumformdecimalNo
TrademarkformstringNo
AdditionalColumnsValuesformList<OfferTableRowValue>No
OfferTableRowValue Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo

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 /OfferGetById/{Id} HTTP/1.1 
Host: wbs.e-teleport.ru 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OfferGetById xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceInterface">
  <Id>String</Id>
</OfferGetById>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OfferGetByIdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeleportService.ServiceInterface">
  <ErrCode>0</ErrCode>
  <Offer xmlns:d2p1="http://schemas.datacontract.org/2004/07/TeleportService.DaoMongo.Model">
    <d2p1:Comment>String</d2p1:Comment>
    <d2p1:Company>
      <d2p1:Id>String</d2p1:Id>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:Company>
    <d2p1:Contract>
      <d2p1:Date>0001-01-01T00:00:00</d2p1:Date>
      <d2p1:Id>String</d2p1:Id>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Number>String</d2p1:Number>
    </d2p1:Contract>
    <d2p1:CreateDate>0001-01-01T00:00:00</d2p1:CreateDate>
    <d2p1:Id>String</d2p1:Id>
    <d2p1:Num>String</d2p1:Num>
    <d2p1:Sum>0</d2p1:Sum>
    <d2p1:Table>
      <d2p1:Columns>
        <d2p1:AdditionalColumns>
          <d2p1:OfferTableColumn>
            <d2p1:EnumValues xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>String</d7p1:string>
            </d2p1:EnumValues>
            <d2p1:Header>String</d2p1:Header>
            <d2p1:Name>String</d2p1:Name>
            <d2p1:Required>false</d2p1:Required>
            <d2p1:Type>String</d2p1:Type>
            <d2p1:Value>String</d2p1:Value>
          </d2p1:OfferTableColumn>
        </d2p1:AdditionalColumns>
        <d2p1:Article>String</d2p1:Article>
        <d2p1:Code>String</d2p1:Code>
        <d2p1:Confirmed>String</d2p1:Confirmed>
        <d2p1:Id>String</d2p1:Id>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:Price>String</d2p1:Price>
        <d2p1:Quantity>String</d2p1:Quantity>
        <d2p1:Sum>String</d2p1:Sum>
        <d2p1:Trademark>String</d2p1:Trademark>
        <d2p1:Uid>String</d2p1:Uid>
        <d2p1:Unit>String</d2p1:Unit>
        <d2p1:UserName>String</d2p1:UserName>
      </d2p1:Columns>
      <d2p1:Rows>
        <d2p1:OfferTableRow>
          <d2p1:AdditionalColumnsValues>
            <d2p1:OfferTableRowValue>
              <d2p1:Name>String</d2p1:Name>
              <d2p1:Value>String</d2p1:Value>
            </d2p1:OfferTableRowValue>
          </d2p1:AdditionalColumnsValues>
          <d2p1:Article>String</d2p1:Article>
          <d2p1:Code>String</d2p1:Code>
          <d2p1:Confirmed>0</d2p1:Confirmed>
          <d2p1:Id>String</d2p1:Id>
          <d2p1:Name>String</d2p1:Name>
          <d2p1:Price>0</d2p1:Price>
          <d2p1:Quantity>0</d2p1:Quantity>
          <d2p1:Sum>0</d2p1:Sum>
          <d2p1:Trademark>String</d2p1:Trademark>
          <d2p1:Uid>String</d2p1:Uid>
          <d2p1:Unit>String</d2p1:Unit>
          <d2p1:UserName>String</d2p1:UserName>
        </d2p1:OfferTableRow>
      </d2p1:Rows>
    </d2p1:Table>
    <d2p1:Team>String</d2p1:Team>
    <d2p1:UpdateDate>0001-01-01T00:00:00</d2p1:UpdateDate>
    <d2p1:UserName>String</d2p1:UserName>
  </Offer>
  <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>
</OfferGetByIdResponse>