RefuseDelayedOrder
Description
The method is used to cancel the placed “delayed” order in the MontWebstore system.
Parameters
Name | Type | Description |
orderNumber | string | Order number |
Return value
Type | Description |
bool | Object containing the status of the operation |
Errors
Error code | Error text |
3 | Order not found |
6006 | Operation is not allowed for not dellayed order |
6007 | Order is already refused |
6004 | Can't refuse delayed order |
Examples
XmlOverHttp request
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/RefuseDelayedOrder?ordernumber=abc0000123
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<RefuseDelayedOrderResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RefuseDelayedOrderResult>
<Data>
true
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</RefuseDelayedOrderResult>
</CRefuseDelayedOrderResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<RefuseDelayedOrder>
<MethodParameters>
<orderNumber>abc0000123</orderNumber>
</MethodParameters>
</RefuseDelayedOrder>
Ответ SOAP
<RefuseDelayedOrder>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true"/>
<Errors attr0="ErrorContractArray"isNull="false"/>
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</RefuseDelayedOrder>
XmlOverHttp response
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/RefuseDelayedOrder?ordernumber=abc0000123
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<RefuseDelayedOrderResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RefuseDelayedOrderResult>
<Data>
true
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</RefuseDelayedOrderResult>
</CRefuseDelayedOrderResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<RefuseDelayedOrder>
<MethodParameters>
<orderNumber>abc0000123</orderNumber>
</MethodParameters>
</RefuseDelayedOrder>
Ответ SOAP
<RefuseDelayedOrder>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true"/>
<Errors attr0="ErrorContractArray"isNull="false"/>
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</RefuseDelayedOrder>
SOAP request
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/RefuseDelayedOrder?ordernumber=abc0000123
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<RefuseDelayedOrderResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RefuseDelayedOrderResult>
<Data>
true
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</RefuseDelayedOrderResult>
</CRefuseDelayedOrderResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<RefuseDelayedOrder>
<MethodParameters>
<orderNumber>abc0000123</orderNumber>
</MethodParameters>
</RefuseDelayedOrder>
Ответ SOAP
<RefuseDelayedOrder>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true"/>
<Errors attr0="ErrorContractArray"isNull="false"/>
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</RefuseDelayedOrder>
SOAP response
Запрос XmlOverHttp
GET https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/RefuseDelayedOrder?ordernumber=abc0000123
Ответ XmlOverHttp
<?xml version="1.0" encoding="utf-8"?>
<RefuseDelayedOrderResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RefuseDelayedOrderResult>
<Data>
true
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</RefuseDelayedOrderResult>
</CRefuseDelayedOrderResponse>
Запрос SOAP
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<RefuseDelayedOrder>
<MethodParameters>
<orderNumber>abc0000123</orderNumber>
</MethodParameters>
</RefuseDelayedOrder>
Ответ SOAP
<RefuseDelayedOrder>
<MethodParameters>
<WebStoreResponseContractOfboolean>
<Data>True</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true"/>
<Errors attr0="ErrorContractArray"isNull="false"/>
<IsError>False</IsError>
</WebStoreResponseContractOfboolean>
</MethodParameters>
</RefuseDelayedOrder>