CancelReserve
Description
The method is used to cancel the placed reserve in the MontWebstore system.
Restrictions
Parameters
Name | Type | Description |
reserveNum | string | Reserve number |
Return value
Type | Description |
bool | Operation result |
Errors
Код | Текст ошибки |
52 | Reserve not found |
48 | Reserve already canceled |
50 | Confirmed reseve cant be canceled |
Examples
XmlOverHttp request
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/CancelReserve?reserveNum=2082
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<CancelReserveResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CancelReserveResult>
<Data>true</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</CancelReserveResult>
</CancelReserveResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<CancelReserve>
<MethodParameters>
<reserveNum>2083</reserveNum>
</MethodParameters>
</CancelReserve>
Ответ SOAP
<CancelReserve>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</CancelReserve>
XmlOverHttp response
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/CancelReserve?reserveNum=2082
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<CancelReserveResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CancelReserveResult>
<Data>true</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</CancelReserveResult>
</CancelReserveResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<CancelReserve>
<MethodParameters>
<reserveNum>2083</reserveNum>
</MethodParameters>
</CancelReserve>
Ответ SOAP
<CancelReserve>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</CancelReserve>
SOAP request
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/CancelReserve?reserveNum=2082
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<CancelReserveResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CancelReserveResult>
<Data>true</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</CancelReserveResult>
</CancelReserveResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<CancelReserve>
<MethodParameters>
<reserveNum>2083</reserveNum>
</MethodParameters>
</CancelReserve>
Ответ SOAP
<CancelReserve>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</CancelReserve>
SOAP response
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/CancelReserve?reserveNum=2082
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<CancelReserveResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CancelReserveResult>
<Data>true</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</CancelReserveResult>
</CancelReserveResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<CancelReserve>
<MethodParameters>
<reserveNum>2083</reserveNum>
</MethodParameters>
</CancelReserve>
Ответ SOAP
<CancelReserve>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</CancelReserve>