TeleportService

<back to all web services

Contracts_Push

Requires Authentication
The following routes are available for this service:
POST, GET/Contracts_Push
Contracts_Push Parameters:
NameParameterData TypeRequiredDescription
IdbodystringYesCreate new if is empty
UidbodystringNo
OwnerbodystringNo
ContactbodystringYesNot updated after creation
NamebodystringNo
InnbodystringNo
KppbodystringNo
AddressbodystringNo
PhonebodystringNo
AdditionalPropertiesbodyDictionary<string, string>No
ContractsPushResponce Parameters:
NameParameterData TypeRequiredDescription
ContractformContractNo
ErrCodeformintNo
ResponseStatusformResponseStatusNo
Contract Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CreateDateformDateTimeNo
UpdateDateformDateTimeNo
UidformstringNo
TeamformstringNo
OwnerformstringNo
ContactformstringNo
NameformstringNo
InnformstringNo
KppformstringNo
AddressformstringNo
PhoneformstringNo
AdditionalPropertiesformDictionary<string, string>No

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

HTTP + CSV

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

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

{"Id":"String","Uid":"String","Owner":"String","Contact":"String","Name":"String","Inn":"String","Kpp":"String","Address":"String","Phone":"String","AdditionalProperties":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Contract":{"Id":"String","CreateDate":"0001-01-01T00:00:00.0000000","UpdateDate":"0001-01-01T00:00:00.0000000","Uid":"String","Team":"String","Owner":"String","Contact":"String","Name":"String","Inn":"String","Kpp":"String","Address":"String","Phone":"String","AdditionalProperties":{}},"ErrCode":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}