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