Запрос XmlOverHttp без лицензионной формы
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/AddOrderDelayed
<?xml version="1.0" ?> <SendOrderLangContract> <LangCode>RU</LangCode> <Phone>89023333300</Phone> <ResellerComment>Comment1</ResellerComment> <SendOrderLines> <SendOrderLineContract> <OrderLineNum>15266418520335574-01</OrderLineNum> <PartNum>ABC-11111</PartNum> <Quantity>1</Quantity> <EndUserInfo/> <ResellerComment>hello world</ResellerComment> </SendOrderLineContract> </SendOrderLines> <OrderNum>15266418520335574</OrderNum> </SendOrderLangContract>
Ответ XmlOverHttp без лицензионной формы
<?xml version="1.0" encoding="utf-8"?> <AddOrderDelayedResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <AddOrderDelayedResult> <Data> <OrderLines> <OrderLineWiInstructionContract> <Id>00000000-0000-0000-0000-000000000000</Id> <OrderLineId>211456</OrderLineId> <OrderLineNum>15266418520335574-01</OrderLineNum> <DateCreated>2021-04-21T12:21:22.7100722</DateCreated> <PartNum>ABC-11111</PartNum> <Quantity>1</Quantity> <TotalSumm>1000</TotalSumm> <ItemPrice>1000</ItemPrice> <Currency>RUR</Currency> <OrderStatus>Successed</OrderStatus> <EndUserInfo> <Fields> <EndUserInfoFieldContract> <FieldName>Phone</FieldName> <FieldValue>89023333300</FieldValue> </EndUserInfoFieldContract> <EndUserInfoFieldContract> <FieldName>Country</FieldName> <FieldValue>Russia</FieldValue> </EndUserInfoFieldContract> <EndUserInfoFieldContract> <FieldName>LicFormId</FieldName> <FieldValue>24867</FieldValue> </EndUserInfoFieldContract> </Fields> </EndUserInfo> <Keys> <OrderKeyContract> <ActiveKey>F5XA-R2JS-AY3T-MYWL</ActiveKey> <DateAdd>2021-04-21T12:21:26.723</DateAdd> <VendorClientTransactionId>f5b86eec-3c68-4e9e-a974-e4cc472c05ca-65950</VendorClientTransactionId> <KeyTypeId>1</KeyTypeId> <Description>TestKey</Description> </OrderKeyContract> </Keys> <Links> <OrderLinkContract> <Link>http://somesite.com/ORNAFL2FIV68130S</Link> <DateAdd>2021-04-21T12:21:26.723</DateAdd> <VendorClientTransactionId>f5b86eec-3c68-4e9e-a974-e4cc472c05ca-65950</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"/> <ResellerComment>hello world</ResellerComment> <HideKeys>false</HideKeys> <InstallInstructions/> <ProductTitle/> <FullInstructions>F5XA-R2JS-AY3T-MYWL</FullInstructions> </OrderLineWiInstructionContract> </OrderLines> <OrderNum>15266418520335574</OrderNum> <DateCreated>2021-04-21T12:21:22.69</DateCreated> <OrderStatus>Successed</OrderStatus> </Data> <IsError>false</IsError> <ErrorCode>0</ErrorCode> <Errors/> </AddOrderDelayedResult> </AddOrderDelayedResponse>
Запрос XmlOverHttp с лицензионной формой
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/AddOrderDelayed
<?xml version="1.0" ?> <SendOrderLangContract> <LangCode>RU</LangCode> <SendOrderLines> <SendOrderLineContract> <OrderLineNum>abc100</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>abc100</OrderNum> </SendOrderLangContract>
Ответ XmlOverHttp с лицензионной формой
<?xml version="1.0" encoding="utf-8"?> <AddOrderDelayedResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AddOrderDelayedResult> <Data> <OrderLines> <OrderLineWiInstructionContract> <Id>00000000-0000-0000-0000-000000000000</Id> <OrderLineId>210792</OrderLineId> <OrderLineNum>abc100</OrderLineNum> <DateCreated>2021-02-25T12:41:36.6874764</DateCreated> <PartNum>KL1849RDBFY</PartNum> <Quantity>1</Quantity> <TotalSumm>3800</TotalSumm> <ItemPrice>3800</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>LicFormId</FieldName> <FieldValue>24224</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> <Hidden xsi:nil="true"/> <HideKeys>false</HideKeys> <InstallInstructions/> <ProductTitle/> <FullInstructions/> </OrderLineWiInstructionContract> </OrderLines> <OrderNum>abc100</OrderNum> <DateCreated>2021-02-25T12:41:36.687</DateCreated> <OrderStatus>InProcess</OrderStatus> </Data> <IsError>false</IsError> <ErrorCode>0</ErrorCode> <Errors/> </AddOrderDelayedResult> </AddOrderDelayedResponse>
Запрос SOAP без лицензионной формы
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<AddOrderDelayed> <MethodParameters> <orderRequest> <LangCode>RU</LangCode> <Phone>89032222222</Phone> <OrderNum>abc0000123</OrderNum> <ResellerComment>Comment1</ResellerComment> <SendOrderLines attr0="SendOrderLineContractArray" isNull="false"> <SendOrderLineContractArray0> <Action isNull="false" /> <DateOn>26.02.2021 11:19:37</DateOn> <EndUserAxCode isNull="false" /> <EndUserCurrencyCode isNull="false" /> <EndUserInfo> <Fields attr0="EndUserInfoFieldContractArray" isNull="false"> <EndUserInfoFieldContractArray0> <FieldName isNull="false" /> <FieldValue isNull="false" /> </EndUserInfoFieldContractArray0> </Fields> </EndUserInfo> <EndUserInvoiceNum isNull="false" /> <EndUserPrice>0</EndUserPrice> <MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId> <OrderLineNum>abc0000123-1</OrderLineNum> <ParentOrderLineNum isNull="false" /> <ParentSubscriptionNum isNull="false" /> <PartNum>ABC-11111</PartNum> <PaymentTransactionId isNull="false" /> <Quantity>1</Quantity> <ResellerComment>Comment1</ResellerComment> <ReserveLineId>0</ReserveLineId> <SubscriptionId isNull="false" /> </SendOrderLineContractArray0> </SendOrderLines> </orderRequest> </MethodParameters> </AddOrderDelayed>
Ответ SOAP без лицензионной формы
<AddOrderDelayed> <MethodParameters> <WebStoreResponseContractOfOrderWiInstructionContractig8CMuuI> <Data> <DateCreated>26.02.2021 13:39:16</DateCreated> <OrderLines attr0="OrderLineWiInstructionContractArray"isNull="false"> <OrderLineWiInstructionContractArray0> <FullInstructions>Y63R-1O8M-4NGF-AMCM</FullInstructions> <InstallInstructions isNull="false"/> <ProductTitle isNull="false"/> <Action isNull="true"/> <Currency>RUR</Currency> <DateCreated>26.02.2021 13:39:16</DateCreated> <EndUserInfo> <Fields attr0="EndUserInfoFieldContractArray"isNull="false"> <EndUserInfoFieldContractArray0> <FieldName>Phone</FieldName> <FieldValue>89032222222</FieldValue> </EndUserInfoFieldContractArray0> <EndUserInfoFieldContractArray1> <FieldName>Country</FieldName> <FieldValue>Russia</FieldValue> </EndUserInfoFieldContractArray1> <EndUserInfoFieldContractArray2> <FieldName>LicFormId</FieldName> <FieldValue>24279</FieldValue> </EndUserInfoFieldContractArray2> </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>Y63R-1O8M-4NGF-AMCM</ActiveKey> <DateAdd>26.02.2021 13:39:17</DateAdd> <Description>TestKey</Description> <KeyTypeId>1</KeyTypeId> <Satcode isNull="true"/> <SequenceNumber isNull="true"/> <VendorClientTransactionId>23f1fb79-ea18-4d33-ab41-44f6ff29a29c-62945</VendorClientTransactionId> </OrderKeyContractArray0> </Keys> <Links attr0="OrderLinkContractArray"isNull="false"> <OrderLinkContractArray0> <DateAdd>26.02.2021 13:39:17</DateAdd> <Description>Test link</Description> <Link>http://somesite.com/64BMMRKNSBJDPGLE</Link> <LinkTypeId>1</LinkTypeId> <VendorClientTransactionId>23f1fb79-ea18-4d33-ab41-44f6ff29a29c-62945</VendorClientTransactionId> </OrderLinkContractArray0> </Links> <MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId> <OrderLineNum>abc0000123-1</OrderLineNum> <OrderStatus>Successed</OrderStatus> <PartNum>ABC-11111</PartNum> <Quantity>1</Quantity> <ResellerComment>Comment1</ResellerComment> <SubscriptionId isNull="false"/> <TotalSumm>1000</TotalSumm> </OrderLineWiInstructionContractArray0> </OrderLines> <OrderNum>abc0000123</OrderNum> <OrderStatus>Successed</OrderStatus> </Data> <ErrorCode>0</ErrorCode> <ErrorText isNull="true"/> <Errors attr0="ErrorContractArray"isNull="false"/> <IsError>False</IsError> </WebStoreResponseContractOfOrderWiInstructionContractig8CMuuI> </MethodParameters> </AddOrderDelayed>
Запрос SOAP с лицензионной формой
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<AddOrderDelayed> <MethodParameters> <orderRequest> <LangCode>RU</LangCode> <Phone>89023333300</Phone> <OrderNum>abc000001</OrderNum> <ResellerComment>for me</ResellerComment> <SendOrderLines attr0="SendOrderLineContractArray" isNull="false"> <SendOrderLineContractArray0> <Action isNull="false" /> <DateOn>20.02.2021 17:21:37</DateOn> <EndUserAxCode isNull="false" /> <EndUserCurrencyCode isNull="false" /> <EndUserInfo> <Fields attr0="EndUserInfoFieldContractArray" isNull="false"> <EndUserInfoFieldContractArray0> <FieldName>CustomerName</FieldName> <FieldValue>Vasya Pupkin</FieldValue> </EndUserInfoFieldContractArray0> <EndUserInfoFieldContractArray1> <FieldName>Email</FieldName> <FieldValue>vasyapupkin@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>abc000001-01</OrderLineNum> <ParentOrderLineNum isNull="false" /> <ParentSubscriptionNum isNull="false" /> <PartNum>KL1849RDBFY</PartNum> <PaymentTransactionId isNull="false" /> <Quantity>5</Quantity> <ResellerComment>for me</ResellerComment> <ReserveLineId>0</ReserveLineId> <SubscriptionId isNull="false" /> </SendOrderLineContractArray0> </SendOrderLines> </orderRequest> </MethodParameters> </AddOrderDelayed>
Ответ SOAP с лицензионной формой
<AddOrderDelayed> <MethodParameters> <WebStoreResponseContractOfOrderWiInstructionContractig8CMuuI> <Data> <DateCreated>25.02.2021 15:49:47</DateCreated> <OrderLines isNull="false" attr0="OrderLineWiInstructionContractArray"> <OrderLineWiInstructionContractArray0> <FullInstructions isNull="false"/> <InstallInstructions isNull="false"/> <ProductTitle isNull="false"/> <Action isNull="true"/> <Currency>RUR</Currency> <DateCreated>25.02.2021 15:49:47</DateCreated> <EndUserInfo> <Fields isNull="false" attr0="EndUserInfoFieldContractArray"> <EndUserInfoFieldContractArray0> <FieldName>Phone</FieldName> <FieldValue>89023333300</FieldValue> </EndUserInfoFieldContractArray0> <EndUserInfoFieldContractArray1> <FieldName>Email</FieldName> <FieldValue>vasyapupkin@mail.ru</FieldValue> </EndUserInfoFieldContractArray1> <EndUserInfoFieldContractArray2> <FieldName>CustomerName</FieldName> <FieldValue>Vasya Pupkin</FieldValue> </EndUserInfoFieldContractArray2> <EndUserInfoFieldContractArray3> <FieldName>Country</FieldName> <FieldValue>Russia</FieldValue> </EndUserInfoFieldContractArray3> <EndUserInfoFieldContractArray4> <FieldName>KasperskyPIN</FieldName> <FieldValue>12345678</FieldValue> </EndUserInfoFieldContractArray4> <EndUserInfoFieldContractArray5> <FieldName>LicFormId</FieldName> <FieldValue>24227</FieldValue> </EndUserInfoFieldContractArray5> <EndUserInfoFieldContractArray6> <FieldName>IsLegalPerson</FieldName> <FieldValue>False</FieldValue> </EndUserInfoFieldContractArray6> </Fields> </EndUserInfo> <ErrorCode>0</ErrorCode> <ErrorText isNull="true"/> <Files isNull="false" attr0="OrderFileContractArray"/> <Hidden isNull="true"/> <ItemPrice>3800</ItemPrice> <Keys isNull="false" attr0="OrderKeyContractArray"/> <Links isNull="false" attr0="OrderLinkContractArray"/> <MontSubscriberId>00000000-0000-0000-0000-000000000000</MontSubscriberId> <OrderLineNum>abc000001-01</OrderLineNum> <OrderStatus>InProcess</OrderStatus> <PartNum>KL1849RDBFY</PartNum> <Quantity>5</Quantity> <ResellerComment>for me</ResellerComment> <SubscriptionId isNull="false"/> <TotalSumm>19000</TotalSumm> </OrderLineWiInstructionContractArray0> </OrderLines> <OrderNum>abc000001</OrderNum> <OrderStatus>InProcess</OrderStatus> </Data> <ErrorCode>0</ErrorCode> <ErrorText isNull="true"/> <Errors isNull="false" attr0="ErrorContractArray"/> <IsError>False</IsError> </WebStoreResponseContractOfOrderWiInstructionContractig8CMuuI> </MethodParameters> </AddOrderDelayed>