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

Информация о запросе

Для отмены заказа применяется запрос OrderRequest (Mode=Cancel).

Спецификация

Ниже приведены примеры отмены заказа. 

Описание типов данных здесь.

Отмена по номеру заказа в Пегасе

Request
Request code
<?xml version="1.0" encoding="utf-8"?>
<Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="OrderRequest">
	<Mode>Cancel</Mode> <!--Required-->
	<OrderList> <!--Required-->
		<Order> <!--Required-->
			<PerformersNumber>MOW35820468</PerformersNumber> <!--Required-->
		</Order>
	</OrderList>
</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">
	<OrderList>
		<Order>
			<PerformersNumber>MOW35820468</PerformersNumber>
			<ServiceList />
			<StatusList>
				<OrderStatus>
					<Description>Order has been cancelled</Description>
					<Date>2019-09-27T14:28:07.283</Date>
					<Code>Cancelled</Code>
				</OrderStatus>
			</StatusList>
			<ConsolidationList />
			<ExternalDataList />
		</Order>
	</OrderList>
	<MessageList />
</Response>

Отмена по клиентскому номеру заказа

Request
Request code
<?xml version="1.0" encoding="utf-8"?>
<Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="OrderRequest">
	<Mode>Cancel</Mode> <!--Required-->
	<OrderList> <!--Required-->
		<Order> <!--Required-->
			<ClientsNumber>test98786555</ClientsNumber> <!--Required-->
		</Order>
	</OrderList>
</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">
	<OrderList>
		<Order>
			<ClientsNumber>test98786555</ClientsNumber>
			<ServiceList />
			<StatusList>
				<OrderStatus>
					<Description>Order has been cancelled</Description>
					<Date>2019-09-27T15:41:20.89</Date>
					<Code>Cancelled</Code>
				</OrderStatus>
			</StatusList>
			<ConsolidationList />
			<ExternalDataList />
		</Order>
	</OrderList>
	<MessageList />
</Response>

  • No labels