ConfirmOrderSms
Description
The method is used to confirm the placed order (according to the SMS scheme) in the MontWebstore system.
Restrictions
Parameters
Name | Type | Description |
orderNum | string | Number of order |
Return value
Type | Description |
bool | Operation result |
Errors
Код | Текст ошибки |
3 | Reserve not found |
6007 | Order is canceled |
6006 | Can't confirm non-reserved order |
Examples
XmlOverHttp request
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/ConfirmOrderSms?orderNum=Myshop7-R-2086
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<ConfirmOrderSmsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConfirmOrderSmsResult>
<Data>true</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</ConfirmOrderSmsResult>
</ConfirmOrderSmsResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<ConfirmOrderSms>
<MethodParameters>
<orderNum>Myshop8-R-2087</orderNum>
</MethodParameters>
</ConfirmOrderSms>
Ответ SOAP
<ConfirmOrderSms>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</ConfirmOrderSms>
XmlOverHttp response
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/ConfirmOrderSms?orderNum=Myshop7-R-2086
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<ConfirmOrderSmsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConfirmOrderSmsResult>
<Data>true</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</ConfirmOrderSmsResult>
</ConfirmOrderSmsResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<ConfirmOrderSms>
<MethodParameters>
<orderNum>Myshop8-R-2087</orderNum>
</MethodParameters>
</ConfirmOrderSms>
Ответ SOAP
<ConfirmOrderSms>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</ConfirmOrderSms>
SOAP request
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/ConfirmOrderSms?orderNum=Myshop7-R-2086
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<ConfirmOrderSmsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConfirmOrderSmsResult>
<Data>true</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</ConfirmOrderSmsResult>
</ConfirmOrderSmsResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<ConfirmOrderSms>
<MethodParameters>
<orderNum>Myshop8-R-2087</orderNum>
</MethodParameters>
</ConfirmOrderSms>
Ответ SOAP
<ConfirmOrderSms>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</ConfirmOrderSms>
SOAP response
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/ConfirmOrderSms?orderNum=Myshop7-R-2086
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<ConfirmOrderSmsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConfirmOrderSmsResult>
<Data>true</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</ConfirmOrderSmsResult>
</ConfirmOrderSmsResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<ConfirmOrderSms>
<MethodParameters>
<orderNum>Myshop8-R-2087</orderNum>
</MethodParameters>
</ConfirmOrderSms>
Ответ SOAP
<ConfirmOrderSms>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</ConfirmOrderSms>