TeleportService

<back to all web services

Documents_Update

Requires Authentication
The following routes are available for this service:
POST/Documents_Update
Documents_Update Parameters:
NameParameterData TypeRequiredDescription
DocumentsbodyList<TeleportDocumentUpdateDto>Yesmax 300 orders
TeleportDocumentUpdateDto Parameters:
NameParameterData TypeRequiredDescription
idformstringNo
headerformTeleportDocumentHeaderUpdateDtoNo
TeleportDocumentHeaderUpdateDto Parameters:
NameParameterData TypeRequiredDescription
statusformDocumentStatus?No
dateformDateTime?No
numformstringNo
sumformdecimal?No
currencyIdformstringNo
commentformstringNo
marketplaceformstringNo
delivery_dateformDateTime?No
marketplace_statusformstringNo
huckster_statusformstringNo
cancel_dateformDateTime?No
canceled_after_deliveryformbool?No
marketplace_idformstringNo
marketplace_posting_numberformstringNo
marketplace_substatusformstringNo
payment_typeformstringNo
payment_methodformstringNo
marketplace_accountformstringNo
marketplace_shop_idformstringNo
marketplace_expressformbool?No
marketplace_delivery_methodformstringNo
marketplace_warehouse_idformstringNo
marketplace_warehouse_nameformstringNo
marketplace_pre_posting_numberformstringNo
client_order_numberformstringNo
DocumentStatus Enum:
new
transmitted
processed
canceled
agreement
confirmed
shipped
closed
draft
DocumentsUpdateResponse Parameters:
NameParameterData TypeRequiredDescription
modifiedCountformlongNo
ResponseStatusformResponseStatusNo

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

{
	Documents: 
	[
		{
			id: String,
			header: 
			{
				status: new,
				date: 0001-01-01,
				num: String,
				sum: 0,
				currencyId: String,
				comment: 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,
				marketplace_account: String,
				marketplace_shop_id: String,
				marketplace_express: False,
				marketplace_delivery_method: String,
				marketplace_warehouse_id: String,
				marketplace_warehouse_name: String,
				marketplace_pre_posting_number: String,
				client_order_number: String
			}
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	modifiedCount: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}