TeleportService

<back to all web services

Documents_Download_v2

Requires Authentication
The following routes are available for this service:
POST, GET/v2/Documents_Download
Documents_Download_v2 Parameters:
NameParameterData TypeRequiredDescription
StartDateTimebodyDateTime?No
FieldStrategybodyFieldStrategyNo
PageSizebodyintNo
CursorbodystringNo
FieldStrategy Enum:
Date
UpdateDate
DocumentsDownloadResponse Parameters:
NameParameterData TypeRequiredDescription
DocumentsformList<DocumentsList>No
CursorformstringNo
HasNextformboolNo
DocumentsList Parameters:
NameParameterData TypeRequiredDescription
message_idformstringNo
senderformstringNo
receiverformstringNo
typeformstringNo
statusformDocumentStatusNo
dateformDateTimeNo
numformstringNo
sumformdecimalNo
currencyIdformstringNo
hashformstringNo
addPropsformstringNo
file_attachedformboolNo
is_newformboolNo
companyformstringNo
branchformstringNo
messageformstringNo
update_dateformDateTimeNo
commentformstringNo
file_idformstringNo
marketplaceformstringNo
delivery_dateformDateTimeNo
marketplace_statusformstringNo
huckster_statusformstringNo
cancel_dateformDateTimeNo
canceled_after_deliveryformboolNo
marketplace_idformstringNo
marketplace_posting_numberformstringNo
marketplace_substatusformstringNo
payment_typeformstringNo
payment_methodformstringNo
trademarkformstringNo
marketplace_accountformstringNo
marketplace_shop_idformstringNo
marketplace_expressformboolNo
marketplace_warehouse_idformstringNo
marketplace_warehouse_nameformstringNo
marketplace_delivery_methodformstringNo
marketplace_pre_posting_numberformstringNo
itemsInfoformDocumentItemsInfoNo
client_order_numberformstringNo
DocumentStatus Enum:
new
transmitted
processed
canceled
agreement
confirmed
shipped
closed
draft
DocumentItemsInfo Parameters:
NameParameterData TypeRequiredDescription
firstItemformTeleportDocumentTableNo
itemsQuantityformintNo
TeleportDocumentTable Parameters:
NameParameterData TypeRequiredDescription
ownerformstringNo
idformstringNo
uidformstringNo
codeformstringNo
articleformstringNo
nameformstringNo
unitformstringNo
quantityformdecimalNo
confirmedformdecimalNo
priceformdecimalNo
sumformdecimalNo
trademarkformstringNo
propsformList<TeleportDocumentPropsValue>No
TeleportDocumentPropsValue Parameters:
NameParameterData TypeRequiredDescription
nameformstringNo
valueformstringNo

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 /v2/Documents_Download HTTP/1.1 
Host: wbs.e-teleport.ru 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"StartDateTime":"0001-01-01T00:00:00.0000000","FieldStrategy":"Date","PageSize":0,"Cursor":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Documents":[{"message_id":"String","sender":"String","receiver":"String","type":"String","status":"new","date":"0001-01-01T00:00:00.0000000","num":"String","sum":0,"currencyId":"String","hash":"String","addProps":"String","file_attached":false,"is_new":false,"company":"String","branch":"String","message":"String","update_date":"0001-01-01T00:00:00.0000000","comment":"String","file_id":"String","marketplace":"String","delivery_date":"0001-01-01T00:00:00.0000000","marketplace_status":"String","huckster_status":"String","cancel_date":"0001-01-01T00:00:00.0000000","canceled_after_delivery":false,"marketplace_id":"String","marketplace_posting_number":"String","marketplace_substatus":"String","payment_type":"String","payment_method":"String","trademark":"String","marketplace_account":"String","marketplace_shop_id":"String","marketplace_express":false,"marketplace_warehouse_id":"String","marketplace_warehouse_name":"String","marketplace_delivery_method":"String","marketplace_pre_posting_number":"String","itemsInfo":{"firstItem":{"owner":"String","id":"String","uid":"String","code":"String","article":"String","name":"String","unit":"String","quantity":0,"confirmed":0,"price":0,"sum":0,"trademark":"String","props":[{"name":"String","value":"String"}]},"itemsQuantity":0},"client_order_number":"String"}],"Cursor":"String","HasNext":false}