TeleportService

<back to all web services

Documents_GetList_v2

Requires Authentication
The following routes are available for this service:
POST, GET/v2/Documents_GetList
DocumentsGetListBase Parameters:
NameParameterData TypeRequiredDescription
start_dateformDateTimeNo
end_dateformDateTimeNo
filtersformList<DocumentsFilter>No
status_change_offformboolNo
get_documentformboolNo
use_updateDateformboolNo
document_typeformstringNo
offsetformintNo
limitformintNo
at_pagesformboolNo
get_countformboolNo
getStrategyformDocumentGetStrategyNo
maxCountformintNo
DocumentsFilter Parameters:
NameParameterData TypeRequiredDescription
nameformstringNo
operationformstringNo
valueformstringNo
rangeformDocumentsFilterRangeNo
inValuesformList<string>No
DocumentsFilterRange Parameters:
NameParameterData TypeRequiredDescription
minformstringNo
maxformstringNo
DocumentGetStrategy Enum:
all
sent
receive
DocumentsGetListResponse_v2 Parameters:
NameParameterData TypeRequiredDescription
errCodeformintNo
totalCountformlongNo
documentsformList<DocumentsList>No
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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	start_date: 0001-01-01,
	end_date: 0001-01-01,
	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/jsv
Content-Length: length

{
	errCode: 0,
	totalCount: 0,
	documents: 
	[
		{
			message_id: String,
			sender: String,
			receiver: String,
			type: String,
			status: new,
			date: 0001-01-01,
			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-01,
			comment: String,
			file_id: String,
			marketplace: String,
			delivery_date: 0001-01-01,
			marketplace_status: String,
			huckster_status: String,
			cancel_date: 0001-01-01,
			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
		}
	]
}