Получение списка изменений состояния заказов

Перед использованием метода необходимо пройти аутентификацию и получить валидный токен. Подробнее об этом Авторизация (получение токена)

WSDL для использования метода: https://yourdomain.ru/XmlGate/EndCustomer/EndCustomerAPI.asmx?WSDL

Метод: GetReservesStateChangeList

Обязательные параметры:

  • Token – string – токен клиента,

  • dateStart - дата и время начала выборки,

  • dateEnd - дата и время окончания выборки

Опциональные параметры:

  • id_Reserve - идентификатор заказа в том случае, если мы необходимо получить информацию об изменениях по конкретному заказу.

Пример запроса:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cor="http://www.corteos.ru/"> <soapenv:Header> <cor:AuthHeader> <!--Optional:--> <cor:Token>d1d876ab-****-****-ad27-17ecd24fd7ad</cor:Token> </cor:AuthHeader> </soapenv:Header> <soapenv:Body> <cor:GetReservesStateChangeList> <cor:dateStart>2021-01-26</cor:dateStart> <cor:dateEnd>2021-01-28</cor:dateEnd> </cor:GetReservesStateChangeList> </soapenv:Body> </soapenv:Envelope>

Пример ответа без ошибки:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetReservesStateChangeListResponse xmlns="http://www.corteos.ru/"> <GetReservesStateChangeListResult> <Trace ResponseDate="2021-01-28T14:25:10.4069314+03:00" SessionID="ZF54YZJVJ0HD" IP="212.233.125.182" WebSite="https://jv3.corteos.ru"/> <Errors/> <ResponseDetails> <StableSimpleReserveStateChanges id_Reserve="1770896" id_ReserveState="5" id_PreviousState="0" IsManual="true" DateChanged="2021-01-26T14:15:30.98" id_ReserveType="3" id_CurrentState="6" BookerEmail="usr7869@corteos.info" id_ClientBooker="133662" id_ClientGroup="7869"> <id_Change>3152268</id_Change> </StableSimpleReserveStateChanges> <StableSimpleReserveStateChanges id_Reserve="1770896" id_ReserveState="7" id_PreviousState="5" IsManual="true" DateChanged="2021-01-26T14:16:12.41" id_ReserveType="3" id_CurrentState="6" BookerEmail="usr7869@corteos.info" id_ClientBooker="133662" id_ClientGroup="7869"> <id_Change>3152269</id_Change> </StableSimpleReserveStateChanges> <StableSimpleReserveStateChanges id_Reserve="1770896" id_ReserveState="4" id_PreviousState="7" IsManual="true" DateChanged="2021-01-26T14:16:29.743" id_ReserveType="3" id_CurrentState="6" BookerEmail="usr7869@corteos.info" id_ClientBooker="133662" id_ClientGroup="7869"> <id_Change>3152270</id_Change> </StableSimpleReserveStateChanges> <StableSimpleReserveStateChanges id_Reserve="1770896" id_ReserveState="2" id_PreviousState="1" IsManual="true" DateChanged="2021-01-26T14:14:44.243" id_ReserveType="3" id_CurrentState="6" BookerEmail="usr7869@corteos.info" id_ClientBooker="133662" id_ClientGroup="7869"> <id_Change>3152266</id_Change> </StableSimpleReserveStateChanges> <StableSimpleReserveStateChanges id_Reserve="1770896" id_ReserveState="2" id_PreviousState="4" IsManual="true" DateChanged="2021-01-26T14:28:10.57" id_ReserveType="3" id_CurrentState="6" BookerEmail="usr7869@corteos.info" id_ClientBooker="133662" id_ClientGroup="7869"> <id_Change>3152290</id_Change> </StableSimpleReserveStateChanges> <StableSimpleReserveStateChanges id_Reserve="1770896" id_ReserveState="6" id_PreviousState="2" IsManual="true" DateChanged="2021-01-26T14:46:24" id_ReserveType="3" id_CurrentState="6" BookerEmail="usr7869@corteos.info" id_ClientBooker="133662" id_ClientGroup="7869"> <id_Change>3152291</id_Change> </StableSimpleReserveStateChanges> </ResponseDetails> </GetReservesStateChangeListResult> </GetReservesStateChangeListResponse> </soap:Body> </soap:Envelope>

Пример ответа с ошибкой:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetReservesStateChangeListResponse xmlns="http://www.corteos.ru/"> <GetReservesStateChangeListResult> <Trace ResponseDate="2021-01-28T14:28:58.6708414+03:00" SessionID="ZF54YZJVJ0HD" IP="212.233.125.182" WebSite="https://jv3.corteos.ru"/> <Errors> <UniversalApiError Type="IntentionallyThrownException" Text="Указана некорректная дата начала - дата не должна быть меньше 01.01.2000"/> </Errors> <ResponseDetails/> </GetReservesStateChangeListResult> </GetReservesStateChangeListResponse> </soap:Body> </soap:Envelope>