ConfirmReserve
Description
The method is used to confirm the placed reserve in the MontWebstore system.
Restrictions
Parameters
Name | Type | Description |
reserveNum | string | Number of reserve |
Return value
Name | Type | Description |
ConfirmationResult | bool | Confirmation result |
OrderNum | string | Reserved order number |
Errors
Код | Текст ошибки |
52 | Reserve not found |
48 | Reserve already confirmed |
50 | Canceled reseve cant be confirmed |
Examples
XmlOverHttp request
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/ConfirmReserve?reserveNum=2084
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<ConfirmReserveResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConfirmReserveResult>
<Data>
<OrderNum>Myshop4-R-2084</OrderNum>
<ConfirmationResult>true</ConfirmationResult>
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</ConfirmReserveResult>
</ConfirmReserveResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<ConfirmReserve>
<MethodParameters>
<reserveNum>2085</reserveNum>
</MethodParameters>
</ConfirmReserve>
Ответ SOAP
<ConfirmReserve>
<MethodParameters>
<WebStoreResponseContractOfOrderReserveConfirmationContractxDcf_SQ1_P>
<Data>
<ConfirmationResult>True</ConfirmationResult>
<OrderNum>Myshop5-R-2085</OrderNum>
</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfOrderReserveConfirmationContractxDcf_SQ1_P>
</MethodParameters>
</ConfirmReserve>
XmlOverHttp response
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/ConfirmReserve?reserveNum=2084
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<ConfirmReserveResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConfirmReserveResult>
<Data>
<OrderNum>Myshop4-R-2084</OrderNum>
<ConfirmationResult>true</ConfirmationResult>
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</ConfirmReserveResult>
</ConfirmReserveResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<ConfirmReserve>
<MethodParameters>
<reserveNum>2085</reserveNum>
</MethodParameters>
</ConfirmReserve>
Ответ SOAP
<ConfirmReserve>
<MethodParameters>
<WebStoreResponseContractOfOrderReserveConfirmationContractxDcf_SQ1_P>
<Data>
<ConfirmationResult>True</ConfirmationResult>
<OrderNum>Myshop5-R-2085</OrderNum>
</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfOrderReserveConfirmationContractxDcf_SQ1_P>
</MethodParameters>
</ConfirmReserve>
SOAP request
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/ConfirmReserve?reserveNum=2084
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<ConfirmReserveResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConfirmReserveResult>
<Data>
<OrderNum>Myshop4-R-2084</OrderNum>
<ConfirmationResult>true</ConfirmationResult>
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</ConfirmReserveResult>
</ConfirmReserveResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<ConfirmReserve>
<MethodParameters>
<reserveNum>2085</reserveNum>
</MethodParameters>
</ConfirmReserve>
Ответ SOAP
<ConfirmReserve>
<MethodParameters>
<WebStoreResponseContractOfOrderReserveConfirmationContractxDcf_SQ1_P>
<Data>
<ConfirmationResult>True</ConfirmationResult>
<OrderNum>Myshop5-R-2085</OrderNum>
</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfOrderReserveConfirmationContractxDcf_SQ1_P>
</MethodParameters>
</ConfirmReserve>
SOAP response
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/ConfirmReserve?reserveNum=2084
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<ConfirmReserveResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConfirmReserveResult>
<Data>
<OrderNum>Myshop4-R-2084</OrderNum>
<ConfirmationResult>true</ConfirmationResult>
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</ConfirmReserveResult>
</ConfirmReserveResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<ConfirmReserve>
<MethodParameters>
<reserveNum>2085</reserveNum>
</MethodParameters>
</ConfirmReserve>
Ответ SOAP
<ConfirmReserve>
<MethodParameters>
<WebStoreResponseContractOfOrderReserveConfirmationContractxDcf_SQ1_P>
<Data>
<ConfirmationResult>True</ConfirmationResult>
<OrderNum>Myshop5-R-2085</OrderNum>
</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfOrderReserveConfirmationContractxDcf_SQ1_P>
</MethodParameters>
</ConfirmReserve>