Page tree
Skip to end of metadata
Go to start of metadata

Request information

To obtain information about orders for a certain period of time, use the HistoryRequest request.

The response to this type of request contains a minimum of information about the order and its services and all statuses that have occurred during a given period.

Attention

The request is outdated, it is not recommended to use.

The answer contains a limited number of orders with statuses at a time (a limit is set for a specific access key). To receive the rest of orders a new identical request must be sent. If the next response does not contain orders, this means that all information has already been returned in previous answers.

If you send another historical request earlier than all the information was returned for the current request, a new sequence of orders with statuses will be started, and the current one will be interrupted.

Specification

The following is an example of a HistoryRequest request.

Description of data types here.

Request
Request code
<?xml version="1.0" encoding="utf-8"?>
<Request xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="HistoryRequest">
	<Id>1</Id> <!--Optional-->
	<DateFrom>2019-08-14T00:00:00+04:00</DateFrom> <!--Required--> 
	<DateTo>2019-08-15T00:00:00+04:00</DateTo> <!--Required--> 
	<StatusesMode>ByKey</StatusesMode> <!--Optional--> 
</Request>

Response

Response code
<?xml version="1.0" encoding="utf-8"?>
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="HistoryResponse">
	<RequestId>1</RequestId>
	<OrderList>
		<Order>
			<Guid>16b99072-5d0f-4d26-849a-7523abde3acb</Guid>
			<ClientsNumber>1501084</ClientsNumber>
			<PerformersNumber>MOW34791627</PerformersNumber>
			<OrderType>OnlineShop</OrderType>
			<ServiceList>
				<Service xsi:type="SalesMediationService">
					<Id>1</Id>
					<StatusList>
						<ServiceStatus xsi:type="SalesMediationStatus">
							<Description>Sold</Description>
							<Date>2019-08-14T16:00:00</Date>
							<Code>Sold</Code>
							<LotList>
								<string>1, 2,</string>
							</LotList>
						</ServiceStatus>
						<ServiceStatus xsi:type="SalesMediationStatus">
							<Description>MoneyCollected</Description>
							<Date>2019-08-14T16:00:00</Date>
							<Code>MoneyCollected</Code>
							<SalesSlip>
								<Number />
								<Sum>820.0000</Sum>
							</SalesSlip>
							<LotList>
								<string>1, 2,</string>
							</LotList>
						</ServiceStatus>
					</StatusList>
				</Service>
				<Service xsi:type="DeliveryService">
					<Id>1</Id>
					<StatusList>
						<ServiceStatus xsi:type="DeliveryStatus">
							<Description>Доставлен / (Получил: ТЕСТОВЫЙ ЗАКАЗ) / Куда</Description>
							<Date>2019-08-14T16:00:00</Date>
							<Code>Delivered</Code>
							<Id>6</Id>
							<Country>Казахстан</Country>
							<City>Алматы</City>
							<Consignee>ТЕСТОВЫЙ ЗАКАЗ</Consignee>
							<DateTZ>6</DateTZ>
						</ServiceStatus>
					</StatusList>
					<Waybill>
						<Number>24-3465-2110</Number>
						<Date>2019-08-14T16:26:00</Date>
						<WaybillTariff>
							<CheckWeight>1.4</CheckWeight>
							<VolumeWeight>10.5</VolumeWeight>
							<BasePrice>0.0000</BasePrice>
						</WaybillTariff>
					</Waybill>
				</Service>
			</ServiceList>
			<StatusList>
				<OrderStatus>
					<Description>Order has been received</Description>
					<Date>2019-08-14T13:00:39.703</Date>
					<Code>Received</Code>
				</OrderStatus>
				<OrderStatus>
					<Description>Order has been checked</Description>
					<Date>2019-08-14T13:00:40.083</Date>
					<Code>Checked</Code>
				</OrderStatus>
				<OrderStatus>
					<Description>Order is in processing</Description>
					<Date>2019-08-14T13:00:41.46</Date>
					<Code>Processing</Code>
				</OrderStatus>
			</StatusList>
			<ExternalDataList />
		</Order>
		<Order>
			<Guid>a065d063-c960-47c0-b616-dea008aa9b8f</Guid>
			<ClientsNumber>1501083</ClientsNumber>
			<PerformersNumber>MOW34791104</PerformersNumber>
			<OrderType>OnlineShop</OrderType>
			<ServiceList>
				<Service xsi:type="DeliveryService">
					<Id>1</Id>
					<StatusList />
					<Waybill>
						<Number>24-3464-5400</Number>
					</Waybill>
				</Service>
			</ServiceList>
			<StatusList>
				<OrderStatus>
					<Description>Order has been received</Description>
					<Date>2019-08-14T12:35:43.353</Date>
					<Code>Received</Code>
				</OrderStatus>
				<OrderStatus>
					<Description>Order has been checked</Description>
					<Date>2019-08-14T12:35:51.247</Date>
					<Code>Checked</Code>
				</OrderStatus>
				<OrderStatus>
					<Description>Order is in processing</Description>
					<Date>2019-08-14T12:35:53.077</Date>
					<Code>Processing</Code>
				</OrderStatus>
			</StatusList>
			<ExternalDataList />
		</Order>
	</OrderList>
	<MessageList>
		<ResponceMessage>
			<IsError>false</IsError>
			<Text>Ответ не содержит больше заказов! Для завершения нужно выполнить запрос ещё раз</Text>
			<ErrorCode>I0071</ErrorCode>
		</ResponceMessage>
	</MessageList>
</Response>

  • No labels