GetOrder
Description
This method is used to obtain information about the order placed in the MONT system.
Parameters
Name | Type | Description |
orderNumber | int | Order number |
Return value
Name | Type | Description |
OrderNum | string | Order number |
OrderStatus | int | Curent order status. Possible values are described by OrderLineStatusEnum
If all order lines are completed successfully, the order status will be “completed successfully”. Otherwise, the status of the order wil be “in process”. (i.e., the status of the Order will never be “error”) |
DateCreated | DateTime | Order create date |
OrderLines | array of OrderLineContract | list of order lines |
It should be noted that the Microsoft vendor has products with FulfillmentType = 1. For these products, the vendor limited the link expiry period to 24 hours. To request an updated link, use the same GetOrder method. The reply will contain updated links that are valid at the time of method call.
Errors
Error Code | Error Text |
3 | Order not found |
Examples
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/GetOrder?ordernumber=qwerty5
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<GetOrderResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<GetOrderResult>
<Data>
<OrderLines>
<OrderLineContract>
<Id>00000000-0000-0000-0000-000000000000</Id>
<OrderLineId>211218</OrderLineId>
<OrderLineNum>qwerty5-1</OrderLineNum>
<DateCreated>2021-03-17T14:51:56.8821131</DateCreated>
<PartNum>KL1849RDBFY</PartNum>
<Quantity>1</Quantity>
<TotalSumm>3800</TotalSumm>
<ItemPrice>3800</ItemPrice>
<Currency>RUR</Currency>
<OrderStatus>Successed</OrderStatus>
<EndUserInfo>
<Fields>
<EndUserInfoFieldContract>
<FieldName>Email</FieldName>
<FieldValue>ivanivanov@mail.ru</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>CustomerName</FieldName>
<FieldValue>Ivan Ivanov</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>Country</FieldName>
<FieldValue>Russia</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>KasperskyPIN</FieldName>
<FieldValue>12345678</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>LicFormId</FieldName>
<FieldValue>24645</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>IsLegalPerson</FieldName>
<FieldValue>False</FieldValue>
</EndUserInfoFieldContract>
</Fields>
</EndUserInfo>
<Keys>
<OrderKeyContract>
<ActiveKey>A06W-TE9F-DMHT-38I3</ActiveKey>
<DateAdd>2021-03-17T14:52:00.617</DateAdd>
<VendorClientTransactionId>10c93589-7964-458e-9641-40ad193b4b70-63263</VendorClientTransactionId>
<KeyTypeId>1</KeyTypeId>
<Description>TestKey</Description>
</OrderKeyContract>
</Keys>
<Links>
<OrderLinkContract>
<Link>http://somesite.com/Q1PQTCYYDQ4CYCAD</Link>
<DateAdd>2021-03-17T14:52:00.617</DateAdd>
<VendorClientTransactionId>10c93589-7964-458e-9641-40ad193b4b70-63263</VendorClientTransactionId>
<LinkTypeId>1</LinkTypeId>
<Description>Test link</Description>
</OrderLinkContract>
</Links>
<Files/>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<ErrorCode>0</ErrorCode>
<Hidden xsi:nil="true"/>
<HideKeys>false</HideKeys>
</OrderLineContract>
</OrderLines>
<OrderNum>qwerty5</OrderNum>
<DateCreated>2021-03-17T14:51:56.883</DateCreated>
<OrderStatus>Successed</OrderStatus>
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</GetOrderResult>
</GetOrderResponse>
SOAP request
<GetOrder>
<MethodParameters>
<orderNumber>qwerty78900</orderNumber>
</MethodParameters>
</GetOrder>
SOAP reply
<GetOrder>
<MethodParameters>
<WebStoreResponseContractOfOrderContractig8CMuuI>
<Data>
<DateCreated>17.03.2021 15:07:34</DateCreated>
<OrderLines attr0="OrderLineContractArray"isNull="false">
<OrderLineContractArray0 actualtype="OrderLineContract"basetype="OrderLineContract">
<Action isNull="true"/>
<Currency>RUR</Currency>
<DateCreated>17.03.2021 15:07:34</DateCreated>
<EndUserInfo>
<Fields attr0="EndUserInfoFieldContractArray"isNull="false">
<EndUserInfoFieldContractArray0>
<FieldName>Email</FieldName>
<FieldValue>ivanivanov@mail.ru</FieldValue>
</EndUserInfoFieldContractArray0>
<EndUserInfoFieldContractArray1>
<FieldName>CustomerName</FieldName>
<FieldValue>Ivan Ivanov</FieldValue>
</EndUserInfoFieldContractArray1>
<EndUserInfoFieldContractArray2>
<FieldName>Country</FieldName>
<FieldValue>Russia</FieldValue>
</EndUserInfoFieldContractArray2>
<EndUserInfoFieldContractArray3>
<FieldName>KasperskyPIN</FieldName>
<FieldValue>12345678</FieldValue>
</EndUserInfoFieldContractArray3>
<EndUserInfoFieldContractArray4>
<FieldName>LicFormId</FieldName>
<FieldValue>24649</FieldValue>
</EndUserInfoFieldContractArray4>
<EndUserInfoFieldContractArray5>
<FieldName>IsLegalPerson</FieldName>
<FieldValue>False</FieldValue>
</EndUserInfoFieldContractArray5>
</Fields>
</EndUserInfo>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true"/>
<Files attr0="OrderFileContractArray"isNull="false"/>
<Hidden isNull="true"/>
<ItemPrice>3800</ItemPrice>
<Keys attr0="OrderKeyContractArray"isNull="false">
<OrderKeyContractArray0>
<ActiveKey>VEY3-83YW-NGYL-6MOY</ActiveKey>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>TestKey</Description>
<KeyTypeId>1</KeyTypeId>
<Satcode isNull="true"/>
<SequenceNumber isNull="true"/>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63264</VendorClientTransactionId>
</OrderKeyContractArray0>
<OrderKeyContractArray1>
<ActiveKey>TO6L-3P1X-A7I3-AVK2</ActiveKey>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>TestKey</Description>
<KeyTypeId>1</KeyTypeId>
<Satcode isNull="true"/>
<SequenceNumber isNull="true"/>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63265</VendorClientTransactionId>
</OrderKeyContractArray1>
<OrderKeyContractArray2>
<ActiveKey>B5XM-9GYN-5R4D-GDTQ</ActiveKey>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>TestKey</Description>
<KeyTypeId>1</KeyTypeId>
<Satcode isNull="true"/>
<SequenceNumber isNull="true"/>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63266</VendorClientTransactionId>
</OrderKeyContractArray2>
<OrderKeyContractArray3>
<ActiveKey>28I6-8OA7-E1Q2-JRLR</ActiveKey>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>TestKey</Description>
<KeyTypeId>1</KeyTypeId>
<Satcode isNull="true"/>
<SequenceNumber isNull="true"/>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63267</VendorClientTransactionId>
</OrderKeyContractArray3>
<OrderKeyContractArray4>
<ActiveKey>VS01-O2MC-TGG0-LMGW</ActiveKey>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>TestKey</Description>
<KeyTypeId>1</KeyTypeId>
<Satcode isNull="true"/>
<SequenceNumber isNull="true"/>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63268</VendorClientTransactionId>
</OrderKeyContractArray4>
</Keys>
<Links attr0="OrderLinkContractArray"isNull="false">
<OrderLinkContractArray0>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>Test link</Description>
<Link>http://somesite.com/CR23CESMSQ98OS5B</Link>
<LinkTypeId>1</LinkTypeId>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63264</VendorClientTransactionId>
</OrderLinkContractArray0>
<OrderLinkContractArray1>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>Test link</Description>
<Link>http://somesite.com/7AHM4S3YK6BQ82JQ</Link>
<LinkTypeId>1</LinkTypeId>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63265</VendorClientTransactionId>
</OrderLinkContractArray1>
<OrderLinkContractArray2>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>Test link</Description>
<Link>http://somesite.com/JTORQIEG1M8WSFN1</Link>
<LinkTypeId>1</LinkTypeId>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63266</VendorClientTransactionId>
</OrderLinkContractArray2>
<OrderLinkContractArray3>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>Test link</Description>
<Link>http://somesite.com/B63B5SSIO2H843ER</Link>
<LinkTypeId>1</LinkTypeId>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63267</VendorClientTransactionId>
</OrderLinkContractArray3>
<OrderLinkContractArray4>
<DateAdd>17.03.2021 15:07:35</DateAdd>
<Description>Test link</Description>
<Link>http://somesite.com/7GNT5CKMV1MGL576</Link>
<LinkTypeId>1</LinkTypeId>
<VendorClientTransactionId>0a1b4521-7dbc-4656-a1e0-0a546c4d2d64-63268</VendorClientTransactionId>
</OrderLinkContractArray4>
</Links>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<OrderLineNum>qwerty78900-05</OrderLineNum>
<OrderStatus>Successed</OrderStatus>
<PartNum>KL1849RDBFY</PartNum>
<Quantity>5</Quantity>
<ResellerComment>for me</ResellerComment>
<SubscriptionId isNull="false"/>
<TotalSumm>19000</TotalSumm>
</OrderLineContractArray0>
</OrderLines>
<OrderNum>qwerty78900</OrderNum>
<OrderStatus>Successed</OrderStatus>
</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true"/>
<Errors attr0="ErrorContractArray"isNull="false"/>
<IsError>False</IsError>
</WebStoreResponseContractOfOrderContractig8CMuuI>
</MethodParameters>
</GetOrder>