TeleportService

<back to all web services

OfferPush

Requires Authentication
The following routes are available for this service:
POST/OfferPush
OfferPush Parameters:
NameParameterData TypeRequiredDescription
OfferbodyOfferDtoYes
OfferDto Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CompanyformOfferDtoCompanyNo
ContractformOfferDtoContractNo
CommentformstringNo
Sumformdecimal?No
TableformOfferDtoTableNo
OfferDtoCompany Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
OfferDtoContract Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
DateformDateTimeNo
NumberformstringNo
NameformstringNo
OfferDtoTable Parameters:
NameParameterData TypeRequiredDescription
ColumnsformOfferDtoTableColumnsNo
RowsformList<OfferDtoTableRow>No
OfferDtoTableColumns Parameters:
NameParameterData TypeRequiredDescription
OwnerformstringNo
IdformstringNo
UidformstringNo
CodeformstringNo
ArticleformstringNo
NameformstringNo
UnitformstringNo
QuantityformstringNo
ConfirmedformstringNo
PriceformstringNo
SumformstringNo
TrademarkformstringNo
AdditionalColumnsformList<OfferDtoTableColumn>No
OfferDtoTableColumn Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
HeaderformstringNo
TypeformstringNo
RequiredformboolNo
ValueformstringNo
EnumValuesformList<string>No
OfferDtoTableRow Parameters:
NameParameterData TypeRequiredDescription
OwnerformstringNo
IdformstringNo
UidformstringNo
CodeformstringNo
ArticleformstringNo
NameformstringNo
UnitformstringNo
Quantityformdecimal?No
Confirmedformdecimal?No
Priceformdecimal?No
Sumformdecimal?No
TrademarkformstringNo
AdditionalColumnsValuesformList<OfferDtoTableRowValue>No
OfferDtoTableRowValue Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo
OfferPushResponse Parameters:
NameParameterData TypeRequiredDescription
OfferformOfferDocumentNo
ErrCodeformintNo
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /OfferPush HTTP/1.1 
Host: wbs.e-teleport.ru 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Offer":{"Id":"String","Company":{"Id":"String","Name":"String"},"Contract":{"Id":"String","Date":"0001-01-01T00:00:00.0000000","Number":"String","Name":"String"},"Comment":"String","Sum":0,"Table":{"Columns":{"Owner":"String","Id":"String","Uid":"String","Code":"String","Article":"String","Name":"String","Unit":"String","Quantity":"String","Confirmed":"String","Price":"String","Sum":"String","Trademark":"String","AdditionalColumns":[{"Name":"String","Header":"String","Type":"String","Required":false,"Value":"String","EnumValues":["String"]}]},"Rows":[{"Owner":"String","Id":"String","Uid":"String","Code":"String","Article":"String","Name":"String","Unit":"String","Quantity":0,"Confirmed":0,"Price":0,"Sum":0,"Trademark":"String","AdditionalColumnsValues":[{"Name":"String","Value":"String"}]}]}}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Offer":{"Id":"String","UserName":"String","Team":"String","Num":"String","CreateDate":"0001-01-01T00:00:00.0000000","UpdateDate":"0001-01-01T00:00:00.0000000","Company":{"Id":"String","Name":"String"},"Contract":{"Id":"String","Date":"0001-01-01T00:00:00.0000000","Number":"String","Name":"String"},"Sum":0,"Comment":"String","Table":{"Columns":{"UserName":"String","Id":"String","Uid":"String","Code":"String","Article":"String","Name":"String","Unit":"String","Quantity":"String","Confirmed":"String","Price":"String","Sum":"String","Trademark":"String","AdditionalColumns":[{"Name":"String","Header":"String","Type":"String","Required":false,"Value":"String","EnumValues":["String"]}]},"Rows":[{"UserName":"String","Id":"String","Uid":"String","Code":"String","Article":"String","Name":"String","Unit":"String","Quantity":0,"Confirmed":0,"Price":0,"Sum":0,"Trademark":"String","AdditionalColumnsValues":[{"Name":"String","Value":"String"}]}]}},"ErrCode":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}