Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Перед использованием метода необходимо пройти аутентификацию и получить валидный токен. Подробнее об этом https://corteos-platform.atlassian.net/wiki/spaces/COR/pages/842885

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

Метод: ManageReservation

Параметры:

  • id_Reserve – int – номер заказа в системе Кортеос, не может быть пустым;

  • Action – string – действие над заказом: issue - оформление, cancel - отмена, transfer - передача в агентство

  • OtherData – string – комментарий для агента

  • ClientToken – string – токен клиента

Пример передачи заказа в агентство(transfer)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cor="http://www.corteos.ru/">
   <soapenv:Header>
      <cor:AuthHeader>
         <!--Optional:-->
         <cor:Token>e9e494d0-****-****-aec8-779b341a6141</cor:Token>
      </cor:AuthHeader>
   </soapenv:Header>
   <soapenv:Body>
      <cor:ManageReservation>
         <cor:id_Reserve>1767712</cor:id_Reserve>
         <!--Optional:-->
         <cor:Action>transfer</cor:Action>
         <!--Optional:-->
         <cor:OtherData></cor:OtherData>
      </cor:ManageReservation>
   </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>
      <ManageReservationResponse xmlns="http://www.corteos.ru/">
         <ManageReservationResult>
            <Result>true</Result>
         </ManageReservationResult>
      </ManageReservationResponse>
   </soap:Body>
</soap:Envelope>

 

  • No labels