POST, GET | /v2/Documents_GetList |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
start_date | form | DateTime | No | |
end_date | form | DateTime | No | |
filters | form | List<DocumentsFilter> | No | |
status_change_off | form | bool | No | |
get_document | form | bool | No | |
use_updateDate | form | bool | No | |
document_type | form | string | No | |
offset | form | int | No | |
limit | form | int | No | |
at_pages | form | bool | No | |
get_count | form | bool | No | |
getStrategy | form | DocumentGetStrategy | No | |
maxCount | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
name | form | string | No | |
operation | form | string | No | |
value | form | string | No | |
range | form | DocumentsFilterRange | No | |
inValues | form | List<string> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
min | form | string | No | |
max | form | string | No |
all | |
sent | |
receive |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
errCode | form | int | No | |
totalCount | form | long | No | |
documents | form | List<DocumentsList> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
message_id | form | string | No | |
sender | form | string | No | |
receiver | form | string | No | |
type | form | string | No | |
status | form | DocumentStatus | No | |
date | form | DateTime | No | |
num | form | string | No | |
sum | form | decimal | No | |
currencyId | form | string | No | |
hash | form | string | No | |
addProps | form | string | No | |
file_attached | form | bool | No | |
is_new | form | bool | No | |
company | form | string | No | |
branch | form | string | No | |
message | form | string | No | |
update_date | form | DateTime | No | |
comment | form | string | No | |
file_id | form | string | No | |
marketplace | form | string | No | |
delivery_date | form | DateTime | No | |
marketplace_status | form | string | No | |
huckster_status | form | string | No | |
cancel_date | form | DateTime | No | |
canceled_after_delivery | form | bool | No | |
marketplace_id | form | string | No | |
marketplace_posting_number | form | string | No | |
marketplace_substatus | form | string | No | |
payment_type | form | string | No | |
payment_method | form | string | No | |
trademark | form | string | No | |
marketplace_account | form | string | No | |
marketplace_shop_id | form | string | No | |
marketplace_express | form | bool | No | |
marketplace_warehouse_id | form | string | No | |
marketplace_warehouse_name | form | string | No | |
marketplace_delivery_method | form | string | No | |
marketplace_pre_posting_number | form | string | No | |
itemsInfo | form | DocumentItemsInfo | No | |
client_order_number | form | string | No |
new | |
transmitted | |
processed | |
canceled | |
agreement | |
confirmed | |
shipped | |
closed | |
draft |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
firstItem | form | TeleportDocumentTable | No | |
itemsQuantity | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
owner | form | string | No | |
id | form | string | No | |
uid | form | string | No | |
code | form | string | No | |
article | form | string | No | |
name | form | string | No | |
unit | form | string | No | |
quantity | form | decimal | No | |
confirmed | form | decimal | No | |
price | form | decimal | No | |
sum | form | decimal | No | |
trademark | form | string | No | |
props | form | List<TeleportDocumentPropsValue> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
name | form | string | No | |
value | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v2/Documents_GetList HTTP/1.1
Host: wbs.e-teleport.ru
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"start_date":"0001-01-01T00:00:00.0000000","end_date":"0001-01-01T00:00:00.0000000","filters":[{"name":"String","operation":"String","value":"String","range":{"min":"String","max":"String"},"inValues":["String"]}],"status_change_off":false,"get_document":false,"use_updateDate":false,"document_type":"String","offset":0,"limit":0,"at_pages":false,"get_count":false,"getStrategy":"all","maxCount":0}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"errCode":0,"totalCount":0,"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"}]}