Метод используется для размещения заказа в системе MONT, в строках ответа на запрос будут инструкции по установке и использованию на чеках. Объект, принимаемый на вход, содержит в себе номер заказа и список строк заказа. Каждая строка соответствует одной заказываемой позиции, имеет уникальный номер. В ней описывается:
партномер заказываемого товара;
количество;
заполненная лицензионная форма, с данными о конечном пользователе;
идентификатор подписчика, для которого создается подписка (заполняется только для подписок).
Запрос XmlOverHttp без лицензионной формы
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/AddOrderWiInstructions
<?xml version="1.0" encoding="utf-8"?>
<SendOrderLangContract>
<LangCode>RU</LangCode>
<SendOrderLines>
<SendOrderLineContract>
<OrderLineNum>abc1</OrderLineNum>
<Quantity>1</Quantity>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<PartNum>ABC-11111</PartNum>
</SendOrderLineContract>
<SendOrderLineContract>
<OrderLineNum>ghjk1</OrderLineNum>
<Quantity>1</Quantity>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<PartNum>ABC-11111</PartNum>
</SendOrderLineContract>
</SendOrderLines>
<OrderNum>asf1</OrderNum>
</SendOrderLangContract>
Ответ XmlOverHttp без лицензионной формы
<?xml version="1.0" encoding="utf-8"?>
<AddOrderWiInstructionsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AddOrderWiInstructionsResult>
<Data>
<OrderLines>
<OrderLineWiInstructionContract>
<Id>00000000-0000-0000-0000-000000000000</Id>
<OrderLineId>83296</OrderLineId>
<OrderLineNum>abc1</OrderLineNum>
<DateCreated>2016-04-03T16:42:34.0352558</DateCreated>
<PartNum>ABC-11111</PartNum>
<InstallInstructions>Just install</InstallInstructions>
<Quantity>1</Quantity>
<TotalSumm>1122</TotalSumm>
<ItemPrice>1122</ItemPrice>
<Currency>RUR</Currency>
<OrderStatus>InProcess</OrderStatus>
<Keys/>
<Links/>
<Files/>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<ErrorText></ErrorText>
<ErrorCode>0</ErrorCode>
</OrderLineWiInstructionContract>
<OrderLineWiInstructionContract>
<Id>00000000-0000-0000-0000-000000000000</Id>
<OrderLineId>83297</OrderLineId>
<OrderLineNum>ghjk1</OrderLineNum>
<DateCreated>2016-04-03T16:42:34.0352558</DateCreated>
<PartNum>ABC-11111</PartNum>
<InstallInstructions>Just install</InstallInstructions>
<Quantity>1</Quantity>
<TotalSumm>1122</TotalSumm>
<ItemPrice>1122</ItemPrice>
<Currency>RUR</Currency>
<OrderStatus>InProcess</OrderStatus>
<Keys/>
<Links/>
<Files/>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<ErrorText></ErrorText>
<ErrorCode>0</ErrorCode>
</OrderLineWiInstructionContract>
</OrderLines>
<OrderNum>asf1</OrderNum>
<DateCreated>2016-04-03T16:42:34.007</DateCreated>
<OrderStatus>InProcess</OrderStatus>
</Data>
<IsError>true</IsError>
<ErrorText>InternalServerError</ErrorText>
<ErrorCode>101</ErrorCode>
<Errors/>
</AddOrderWiInstructionsResult>
</AddOrderWiInstructionsResponse>
Запрос XmlOverHttp с лицензионной формой
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/AddOrderWiInstructions
<SendOrderLangContract>
<LangCode>RU</LangCode>
<SendOrderLines>
<SendOrderLineContract>
<OrderLineNum>abc5</OrderLineNum>
<PartNum>KL1849RDBFY</PartNum>
<Quantity>1</Quantity>
<EndUserInfo>
<Fields>
<EndUserInfoFieldContract>
<FieldName>CustomerName</FieldName>
<FieldValue>Vasya Pupkin</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>Email</FieldName>
<FieldValue>vasyapupkin@mail.ru</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>IsLegalPerson</FieldName>
<FieldValue>false</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>KasperskyPIN</FieldName>
<FieldValue>12345678</FieldValue>
</EndUserInfoFieldContract>
</Fields>
</EndUserInfo>
</SendOrderLineContract>
</SendOrderLines>
<OrderNum>abcd5</OrderNum>
</SendOrderLangContract>
Ответ XmlOverHttp с лицензионной формой
<?xml version="1.0" encoding="utf-8"?>
<AddOrderWiInstructionsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AddOrderWiInstructionsResult>
<Data>
<OrderLines>
<OrderLineWiInstructionContract>
<Id>00000000-0000-0000-0000-000000000000</Id>
<OrderLineId>83440</OrderLineId>
<OrderLineNum>abc5</OrderLineNum>
<DateCreated>2016-04-07T14:52:48.5416335</DateCreated>
<PartNum>KL1849RDBFY</PartNum>
<Quantity>1</Quantity>
<TotalSumm>3609</TotalSumm>
<ItemPrice>3609</ItemPrice>
<Currency>RUR</Currency>
<OrderStatus>InProcess</OrderStatus>
<EndUserInfo>
<Fields>
<EndUserInfoFieldContract>
<FieldName>Email</FieldName>
<FieldValue>vasyapupkin@mail.ru</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>CustomerName</FieldName>
<FieldValue>Vasya Pupkin</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>Country</FieldName>
<FieldValue>Russia</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>KasperskyPIN</FieldName>
<FieldValue>12345678</FieldValue>
</EndUserInfoFieldContract>
<EndUserInfoFieldContract>
<FieldName>IsLegalPerson</FieldName>
<FieldValue>False</FieldValue>
</EndUserInfoFieldContract>
</Fields>
</EndUserInfo>
<Keys/>
<Links/>
<Files/>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<ErrorCode>0</ErrorCode>
</OrderLineWiInstructionContract>
</OrderLines>
<OrderNum>abcd5</OrderNum>
<DateCreated>2016-04-07T14:52:48.513</DateCreated>
<OrderStatus>InProcess</OrderStatus>
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</AddOrderWiInstructionsResult>
</AddOrderWiInstructionsResponse>
Запрос SOAP без лицензионной формы
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<GetOrderWiInstructions>
<MethodParameters>
<orderNumber>ed-222222</orderNumber>
<langCode>RU</langCode>
</MethodParameters>
</GetOrderWiInstructions>
Ответ SOAP без лицензионной формы
<GetOrderWiInstructions>
<MethodParameters>
<WebStoreResponseContractOfOrderWiInstructionContractig8CMuuI>
<Data>
<DateCreated>20.02.2021 17:41:36</DateCreated>
<OrderLines attr0="OrderLineWiInstructionContractArray" isNull="false">
<OrderLineWiInstructionContractArray0>
<FullInstructions>R2VK-2BJR-ONS1-9P3H</FullInstructions>
<InstallInstructions isNull="false" />
<ProductTitle isNull="false" />
<Action isNull="true" />
<Currency>RUR</Currency>
<DateCreated>20.02.2021 17:41:36</DateCreated>
<EndUserInfo>
<Fields attr0="EndUserInfoFieldContractArray" isNull="false">
<EndUserInfoFieldContractArray0>
<FieldName>Phone</FieldName>
<FieldValue>89023333333</FieldValue>
</EndUserInfoFieldContractArray0>
<EndUserInfoFieldContractArray1>
<FieldName>CustomerName</FieldName>
<FieldValue>pupkin</FieldValue>
</EndUserInfoFieldContractArray1>
<EndUserInfoFieldContractArray2>
<FieldName>Country</FieldName>
<FieldValue>Russia</FieldValue>
</EndUserInfoFieldContractArray2>
<EndUserInfoFieldContractArray3>
<FieldName>LicFormId</FieldName>
<FieldValue>24211</FieldValue>
</EndUserInfoFieldContractArray3>
</Fields>
</EndUserInfo>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Files attr0="OrderFileContractArray" isNull="false" />
<Hidden isNull="true" />
<ItemPrice>1000</ItemPrice>
<Keys attr0="OrderKeyContractArray" isNull="false">
<OrderKeyContractArray0>
<ActiveKey>R2VK-2BJR-ONS1-9P3H</ActiveKey>
<DateAdd>20.02.2021 17:41:39</DateAdd>
<Description>TestKey</Description>
<KeyTypeId>1</KeyTypeId>
<Satcode isNull="true" />
<SequenceNumber isNull="true" />
<VendorClientTransactionId>95834613-ec1e-4adc-ae77-3407dca426ba-62879</VendorClientTransactionId>
</OrderKeyContractArray0>
</Keys>
<Links attr0="OrderLinkContractArray" isNull="false">
<OrderLinkContractArray0>
<DateAdd>20.02.2021 17:41:39</DateAdd>
<Description>Test link</Description>
<Link>http://somesite.com/FIS2W4M3OQCK0NF8</Link>
<LinkTypeId>1</LinkTypeId>
<VendorClientTransactionId>95834613-ec1e-4adc-ae77-3407dca426ba-62879</VendorClientTransactionId>
</OrderLinkContractArray0>
</Links>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<OrderLineNum>qwe123-1</OrderLineNum>
<OrderStatus>Successed</OrderStatus>
<PartNum>ABC-11111</PartNum>
<Quantity>1</Quantity>
<ResellerComment isNull="false" />
<SubscriptionId isNull="false" />
<TotalSumm>1000</TotalSumm>
</OrderLineWiInstructionContractArray0>
</OrderLines>
<OrderNum>ed-222222</OrderNum>
<OrderStatus>Successed</OrderStatus>
</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfOrderWiInstructionContractig8CMuuI>
</MethodParameters>
</GetOrderWiInstructions>
Запрос SOAP с лицензионной формой
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<AddOrderWiInstructions>
<MethodParameters>
<orderRequest>
<LangCode>RU</LangCode>
<Phone>89112223344</Phone>
<OrderNum>asdfghj</OrderNum>
<ResellerComment isNull="false" />
<SendOrderLines attr0="SendOrderLineContractArray" isNull="false">
<SendOrderLineContractArray0>
<Action isNull="false" />
<DateOn>31.03.2021 12:40:38</DateOn>
<EndUserAxCode isNull="false" />
<EndUserCurrencyCode isNull="false" />
<EndUserInfo>
<Fields attr0="EndUserInfoFieldContractArray" isNull="false">
<EndUserInfoFieldContractArray0>
<FieldName>CustomerName</FieldName>
<FieldValue>Ivan Ivanov</FieldValue>
</EndUserInfoFieldContractArray0>
<EndUserInfoFieldContractArray1>
<FieldName>Email</FieldName>
<FieldValue>mymail@mail.ru</FieldValue>
</EndUserInfoFieldContractArray1>
<EndUserInfoFieldContractArray2>
<FieldName>IsLegalPerson</FieldName>
<FieldValue>false</FieldValue>
</EndUserInfoFieldContractArray2>
<EndUserInfoFieldContractArray3>
<FieldName>KasperskyPIN</FieldName>
<FieldValue>12345678</FieldValue>
</EndUserInfoFieldContractArray3>
</Fields>
</EndUserInfo>
<EndUserInvoiceNum isNull="false" />
<EndUserPrice>0</EndUserPrice>
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<OrderLineNum>asdfghj-1</OrderLineNum>
<ParentOrderLineNum isNull="false" />
<ParentSubscriptionNum isNull="false" />
<PartNum>KL1849RDBFY</PartNum>
<PaymentTransactionId isNull="false" />
<Quantity>1</Quantity>
<ResellerComment isNull="false" />
<ReserveLineId>0</ReserveLineId>
<SubscriptionId isNull="false" />
</SendOrderLineContractArray0>
</SendOrderLines>
</orderRequest>
</MethodParameters>
</AddOrderWiInstructions>
Ответ SOAP с лицензионной формой
<AddOrderWiInstructions>
<MethodParameters>
<WebStoreResponseContractOfOrderWiInstructionContractig8CMuuI>
<Data>
<DateCreated>31.03.2021 13:28:20</DateCreated>
<OrderLines attr0="OrderLineWiInstructionContractArray" isNull="false">
<OrderLineWiInstructionContractArray0>
<FullInstructions isNull="false" />
<InstallInstructions isNull="false" />
<ProductTitle isNull="false" />
<Action isNull="true" />
<Currency>RUR</Currency>
<DateCreated>31.03.2021 13:28:20</DateCreated>
<EndUserInfo>
<Fields attr0="EndUserInfoFieldContractArray" isNull="false">
<EndUserInfoFieldContractArray0>
<FieldName>Phone</FieldName>
<FieldValue>89112223344</FieldValue>
</EndUserInfoFieldContractArray0>
<EndUserInfoFieldContractArray1>
<FieldName>Email</FieldName>
<FieldValue>mymail@mail.ru</FieldValue>
</EndUserInfoFieldContractArray1>
<EndUserInfoFieldContractArray2>
<FieldName>CustomerName</FieldName>
<FieldValue>Ivan Ivanov</FieldValue>
</EndUserInfoFieldContractArray2>
<EndUserInfoFieldContractArray3>
<FieldName>Country</FieldName>
<FieldValue>Russia</FieldValue>
</EndUserInfoFieldContractArray3>
<EndUserInfoFieldContractArray4>
<FieldName>KasperskyPIN</FieldName>
<FieldValue>12345678</FieldValue>
</EndUserInfoFieldContractArray4>
<EndUserInfoFieldContractArray5>
<FieldName>LicFormId</FieldName>
<FieldValue>24736</FieldValue>
</EndUserInfoFieldContractArray5>
<EndUserInfoFieldContractArray6>
<FieldName>IsLegalPerson</FieldName>
<FieldValue>False</FieldValue>
</EndUserInfoFieldContractArray6>
</Fields>
</EndUserInfo>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Files attr0="OrderFileContractArray" isNull="false" />
<Hidden isNull="true" />
<ItemPrice>3800</ItemPrice>
<Keys attr0="OrderKeyContractArray" isNull="false" />
<Links attr0="OrderLinkContractArray" isNull="false" />
<MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId>
<OrderLineNum>asdfghj-1</OrderLineNum>
<OrderStatus>InProcess</OrderStatus>
<PartNum>KL1849RDBFY</PartNum>
<Quantity>1</Quantity>
<ResellerComment isNull="false" />
<SubscriptionId isNull="false" />
<TotalSumm>3800</TotalSumm>
</OrderLineWiInstructionContractArray0>
</OrderLines>
<OrderNum>asdfghj</OrderNum>
<OrderStatus>InProcess</OrderStatus>
</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfOrderWiInstructionContractig8CMuuI>
</MethodParameters>
</AddOrderWiInstructions>