This API imitates EasySDI Shop REST Service

Authentication

Done via HTTP Basic Authentication header.
You can set username and password on this page.

Exceptions

In case something gets wrong, a non-200 status code with a XML message wil be returned.
XML structure: https://viageo.ch/api/legacyOrder/xsd/exception.xsd

<?xml version="1.0" encoding="utf-8"?>
<sdi:exception
    xmlns:sdi="http://www.easysdi.org/2011/sdi"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/exception.xsd">
    <sdi:code>500</sdi:code>
    <sdi:message>Internal Server Error</sdi:message>
    <sdi:details>Cannot load the requested product</sdi:details>
</sdi:exception>

Possible exception codes:

Code Message Explanation
400 Bad Request The input XML do not validates with XSD
401 Unauthorized Authentication failed
403 Forbidden You are trying to update a Product from another supplier
404 Not Found Product or Order was not found
405 Method not allowed You are trying to use an HTTP method this endpoint does not support.
409 Conflict The product you are trying to update is not waiting for data (maybe it was already updated?)
500 Internal Server Error See sdi:details for more details about the error.

GetOrders

Allow to fetch Orders pending data. Only Products in "automatic" mode are shown. Once fetched, products are locked in "waiting data" status.

Input

URL: https://viageo.ch/api/legacyOrder/extract.getOrders
Methods: GET, POST

Query parameters
readOnly optional, boolean, false by default Do not lock Products once read
withAttachment optional, boolean, true by default Do not add return GeoData PDF snapshot and XML metadata
Request parameters
Request (body) parameters are ignored.

Output

Output follows this XSD: https://viageo.ch/api/legacyOrder/xsd/getorders.xsd

<?xml version="1.0" encoding="utf-8"?>
<sdi:orders xmlns:sdi="http://www.easysdi.org/2011/sdi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/getorders.xsd">
  <sdi:platform name="easySDI" version="4.4.4" serviceversion="4.4.4"/>
  <sdi:order id="223102" type="order" guid="9f3cb825-d0c0-f564-b5b2-dcd5cde7ac67" datetimesent="2017-03-15T10:25:43">
    <sdi:name>My first order</sdi:name>
    <sdi:client id="1" guid="67d856ac-f516-4c33-96b6-2f5c23a0d5d6">
      <sdi:name>Alice Geek</sdi:name>
      <sdi:contact>
        <sdi:address>
          <sdi:organismacronym/>
          <sdi:organismname/>
          <sdi:agentfirstname>Alice</sdi:agentfirstname>
          <sdi:agentlastname>Geek</sdi:agentlastname>
          <sdi:addressstreet1>Boulevard de la Montagne</sdi:addressstreet1>
          <sdi:addressstreet2/>
          <sdi:zip>1000</sdi:zip>
          <sdi:pobox/>
          <sdi:locality>Lausanne</sdi:locality>
          <sdi:country>CH</sdi:country>
          <sdi:email>alice@mygeooffice2000.lan</sdi:email>
          <sdi:mobile/>
          <sdi:phone>+41 21 111 22 33</sdi:phone>
          <sdi:fax>+41 21 111 22 34</sdi:fax>
        </sdi:address>
      </sdi:contact>
      <sdi:invoice>
        <sdi:address>
          <sdi:organismacronym/>
          <sdi:organismname/>
          <sdi:agentfirstname>Peter</sdi:agentfirstname>
          <sdi:agentlastname>Geek</sdi:agentlastname>
          <sdi:addressstreet1>Boulevard de la Montagne</sdi:addressstreet1>
          <sdi:addressstreet2/>
          <sdi:zip>1000</sdi:zip>
          <sdi:pobox/>
          <sdi:locality>Lausanne</sdi:locality>
          <sdi:country>CH</sdi:country>
          <sdi:email>peter@mygeooffice2000.lan</sdi:email>
          <sdi:mobile/>
          <sdi:phone>+41 21 111 22 44</sdi:phone>
          <sdi:fax>+41 21 111 22 45</sdi:fax>
        </sdi:address>
      </sdi:invoice>
      <sdi:delivery>
        <sdi:address>
          <sdi:organismacronym/>
          <sdi:organismname/>
          <sdi:agentfirstname>Alice</sdi:agentfirstname>
          <sdi:agentlastname>Geek</sdi:agentlastname>
          <sdi:addressstreet1>Boulevard de la Montagne</sdi:addressstreet1>
          <sdi:addressstreet2/>
          <sdi:zip>1000</sdi:zip>
          <sdi:pobox/>
          <sdi:locality>Lausanne</sdi:locality>
          <sdi:country>CH</sdi:country>
          <sdi:email>alice@mygeooffice2000.lan</sdi:email>
          <sdi:mobile/>
          <sdi:phone>+41 21 111 22 33</sdi:phone>
          <sdi:fax>+41 21 111 22 34</sdi:fax>
        </sdi:address>
      </sdi:delivery>
      <sdi:organism id="1751" guid="a35f0327-bceb-43a1-b366-96c3a94bc47b">
        <sdi:name>MyGeoOffice2000 ltd</sdi:name>
        <sdi:acronym/>
        <sdi:website>http://mygeooffice2000.lan</sdi:website>
        <sdi:categories>
          <sdi:category id="1" guid="da7203f0-de85-b1b4-5155-728faeb6a6e2" alias="membre">
            <sdi:name>Member</sdi:name>
          </sdi:category>
          <sdi:category id="14" guid="5e115740-fcab-9734-d5ee-88586bf4e340" alias="association-fondation">
            <sdi:name>Association/fondation</sdi:name>
          </sdi:category>
        </sdi:categories>
        <sdi:contact>
          <sdi:address>
            <sdi:organismacronym/>
            <sdi:organismname>MyGeoOffice2000 ltd</sdi:organismname>
            <sdi:agentfirstname>Alice</sdi:agentfirstname>
            <sdi:agentlastname>Geek</sdi:agentlastname>
            <sdi:addressstreet1>Boulevard de la Montagne</sdi:addressstreet1>
            <sdi:addressstreet2/>
            <sdi:zip>1000</sdi:zip>
            <sdi:pobox/>
            <sdi:locality>Lausanne</sdi:locality>
            <sdi:country>CH</sdi:country>
            <sdi:email>alice@mygeooffice2000.lan</sdi:email>
            <sdi:mobile/>
            <sdi:phone>+41 21 111 22 33</sdi:phone>
            <sdi:fax>+41 21 111 22 34</sdi:fax>
            </sdi:address>
        </sdi:contact>
        <sdi:invoice>
          <sdi:address>
            <sdi:organismacronym/>
            <sdi:organismname>MyGeoOffice2000 ltd</sdi:organismname>
            <sdi:agentfirstname>Peter</sdi:agentfirstname>
            <sdi:agentlastname>Geek</sdi:agentlastname>
            <sdi:addressstreet1>Boulevard de la Montagne</sdi:addressstreet1>
            <sdi:addressstreet2/>
            <sdi:zip>1000</sdi:zip>
            <sdi:pobox/>
            <sdi:locality>Lausanne</sdi:locality>
            <sdi:country>CH</sdi:country>
            <sdi:email>peter@mygeooffice2000.lan</sdi:email>
            <sdi:mobile/>
            <sdi:phone>+41 21 111 22 44</sdi:phone>
            <sdi:fax>+41 21 111 22 45</sdi:fax>
          </sdi:address>
        </sdi:invoice>
        <sdi:delivery>
          <sdi:address>
            <sdi:organismacronym/>
            <sdi:organismname/>
            <sdi:agentfirstname/>
            <sdi:agentlastname/>
            <sdi:addressstreet1/>
            <sdi:addressstreet2/>
            <sdi:zip/>
            <sdi:pobox/>
            <sdi:locality/>
            <sdi:country/>
            <sdi:email/>
            <sdi:mobile/>
            <sdi:phone/>
            <sdi:fax/>
          </sdi:address>
        </sdi:delivery>
      </sdi:organism>
    </sdi:client>
    <sdi:tierce>
      <sdi:organism id="3116" guid="f6cb0978-cb62-92c4-6941-a9917d7de66f">
        <sdi:name>The Agglo</sdi:name>
        <sdi:acronym/>
        <sdi:website/>
        <sdi:categories>
          <sdi:category id="13" guid="f6cb0979-db62-92c4-6941-a9917d7de66d" alias="intercommunale">
            <sdi:name>Groupement ou association intercommunale</sdi:name>
          </sdi:category>
        </sdi:categories>
        <sdi:contact>
          <sdi:address>
            <sdi:organismacronym/>
            <sdi:organismname>Agglomeration</sdi:organismname>
            <sdi:agentfirstname>Fanny</sdi:agentfirstname>
            <sdi:agentlastname>Delaba</sdi:agentlastname>
            <sdi:addressstreet1>Bureau d'agglomération</sdi:addressstreet1>
            <sdi:addressstreet2>Place de l'Ancienne Poste 4</sdi:addressstreet2>
            <sdi:zip>1880</sdi:zip>
            <sdi:pobox/>
            <sdi:locality>Bex</sdi:locality>
            <sdi:country>CH</sdi:country>
            <sdi:email>fanny.delaba@theagglo.lan</sdi:email>
            <sdi:mobile/>
            <sdi:phone>024 463 00 00</sdi:phone>
            <sdi:fax/>
          </sdi:address>
        </sdi:contact>
        <sdi:invoice>
          <sdi:address>
            <sdi:organismacronym/>
            <sdi:organismname/>
            <sdi:agentfirstname/>
            <sdi:agentlastname/>
            <sdi:addressstreet1/>
            <sdi:addressstreet2/>
            <sdi:zip/>
            <sdi:pobox/>
            <sdi:locality/>
            <sdi:country/>
            <sdi:email/>
            <sdi:mobile/>
            <sdi:phone/>
            <sdi:fax/>
          </sdi:address>
        </sdi:invoice>
        <sdi:delivery>
          <sdi:address>
            <sdi:organismacronym/>
            <sdi:organismname/>
            <sdi:agentfirstname/>
            <sdi:agentlastname/>
            <sdi:addressstreet1/>
            <sdi:addressstreet2/>
            <sdi:zip/>
            <sdi:pobox/>
            <sdi:locality/>
            <sdi:country/>
            <sdi:email/>
            <sdi:mobile/>
            <sdi:phone/>
            <sdi:fax/>
          </sdi:address>
        </sdi:delivery>
      </sdi:organism>
    </sdi:tierce>
    <sdi:perimeter type="coordinates" id="1" alias="freeperimeter" guid="f0d48c8e-ad5a-09f4-d1b0-dce7dfa544a9">
      <sdi:surface unit="m2">1874219.75000000000000000000</sdi:surface>
      <sdi:contents>
        <sdi:content>POLYGON((6.556053540245442 46.5406858665773,6.564736227940287 46.552776494518355,6.579339266387595 46.54778277789993,6.57065411715828 46.53569326277157,6.556053540245442 46.5406858665773))</sdi:content>
      </sdi:contents>
    </sdi:perimeter>
    <sdi:suppliers>
      <sdi:supplier>
        <sdi:organism id="6861" guid="4b952a5d-16bf-84d4-111f-57d76c834493">
          <sdi:name>Best GeoData Provider ltd</sdi:name>
          <sdi:acronym/>
          <sdi:website/>
          <sdi:categories>
            <sdi:category id="5" guid="3569f31b-9963-ffff-017a-0d5d8c6b8a83" alias="bureau">
              <sdi:name>Bureaux d’études / sociétés de service</sdi:name>
            </sdi:category>
            <sdi:category id="8" guid="0dfa02c5-faee-dc84-6efb-b5c4b44434f9" alias="fournisseur">
              <sdi:name>Fournisseur de données</sdi:name>
            </sdi:category>
          </sdi:categories>
          <sdi:contact>
            <sdi:address>
              <sdi:organismacronym/>
              <sdi:organismname>Best GeoData Provider ltd</sdi:organismname>
              <sdi:agentfirstname>Jonny</sdi:agentfirstname>
              <sdi:agentlastname>Doe</sdi:agentlastname>
              <sdi:addressstreet1>Avenue de la Grande Route</sdi:addressstreet1>
              <sdi:addressstreet2>Case Postale</sdi:addressstreet2>
              <sdi:zip>1337</sdi:zip>
              <sdi:pobox/>
              <sdi:locality>Vallorbe</sdi:locality>
              <sdi:country>CH</sdi:country>
              <sdi:email>jd@easysdi.lan</sdi:email>
              <sdi:mobile/>
              <sdi:phone>+41 21 000 00 00</sdi:phone>
              <sdi:fax/>
            </sdi:address>
          </sdi:contact>
          <sdi:invoice>
            <sdi:address>
              <sdi:organismacronym/>
              <sdi:organismname>Best GeoData Provider ltd</sdi:organismname>
              <sdi:agentfirstname>Jonny</sdi:agentfirstname>
              <sdi:agentlastname>Doe</sdi:agentlastname>
              <sdi:addressstreet1>Avenue de la Grande Route</sdi:addressstreet1>
              <sdi:addressstreet2>Case Postale</sdi:addressstreet2>
              <sdi:zip>1337</sdi:zip>
              <sdi:pobox/>
              <sdi:locality>Vallorbe</sdi:locality>
              <sdi:country>CH</sdi:country>
              <sdi:email>jd@easysdi.lan</sdi:email>
              <sdi:mobile/>
              <sdi:phone>+41 21 000 00 00</sdi:phone>
              <sdi:fax/>
            </sdi:address>
          </sdi:invoice>
          <sdi:delivery>
            <sdi:address>
              <sdi:organismacronym/>
              <sdi:organismname>Best GeoData Provider ltd</sdi:organismname>
              <sdi:agentfirstname>Jonny</sdi:agentfirstname>
              <sdi:agentlastname>Doe</sdi:agentlastname>
              <sdi:addressstreet1>Avenue de la Grande Route</sdi:addressstreet1>
              <sdi:addressstreet2>Case Postale</sdi:addressstreet2>
              <sdi:zip>1337</sdi:zip>
              <sdi:pobox/>
              <sdi:locality>Vallorbe</sdi:locality>
              <sdi:country>CH</sdi:country>
              <sdi:email>jd@easysdi.lan</sdi:email>
              <sdi:mobile/>
              <sdi:phone>+41 21 000 00 00</sdi:phone>
              <sdi:fax/>
            </sdi:address>
          </sdi:delivery>
        </sdi:organism>
        <sdi:pricing>
          <sdi:cfg_internal_free>true</sdi:cfg_internal_free>
          <sdi:cfg_fixed_fee_te>23.15</sdi:cfg_fixed_fee_te>
          <sdi:cfg_fixed_fee_apply_vat>true</sdi:cfg_fixed_fee_apply_vat>
          <sdi:cfg_data_free_fixed_fee>false</sdi:cfg_data_free_fixed_fee>
          <sdi:cal_fee_ti>25</sdi:cal_fee_ti>
        </sdi:pricing>
        <sdi:products>
          <sdi:product id="10409" guid="a049fecb-30d9-9125-ed41-0685566a0855">
            <sdi:name>Cadastre solaire de Tatooine</sdi:name>
            <sdi:pricing>
              <sdi:cfg_type>profile</sdi:cfg_type>
              <sdi:profile id="27" guid="01ff2061-7431-7765-093b-7f6ab315c733">
                <sdi:name>Plans secrets</sdi:name>
                <sdi:cfg_fixed_fee_te>20</sdi:cfg_fixed_fee_te>
                <sdi:cfg_surface_rate unit="currency per km2">30.00</sdi:cfg_surface_rate>
                <sdi:cfg_min_fee>0.00</sdi:cfg_min_fee>
                <sdi:cfg_max_fee>2000.00</sdi:cfg_max_fee>
                <sdi:cfg_apply_vat>true</sdi:cfg_apply_vat>
              </sdi:profile>
              <sdi:cal_amount_data_te>76.23</sdi:cal_amount_data_te>
              <sdi:cfg_pct_category_profile_discount>0.00</sdi:cfg_pct_category_profile_discount>
              <sdi:ind_lbl_category_profile_discount/>
              <sdi:cfg_pct_category_supplier_discount>0.00</sdi:cfg_pct_category_supplier_discount>
              <sdi:ind_lbl_category_supplier_discount/>
              <sdi:cal_total_amount_te>76.23</sdi:cal_total_amount_te>
              <sdi:cal_total_amount_ti>82.35</sdi:cal_total_amount_ti>
            </sdi:pricing>
            <sdi:properties>
              <sdi:property id="1" alias="FORMAT" guid="a5d679d2-d86b-4974-a87f-896adc3a30b7">
                <sdi:value>DXF</sdi:value>
              </sdi:property>
              <sdi:property id="4" alias="PROJECTION" guid="25da879b-7b5e-4fc7-9aa1-5c4995d75ff0">
                <sdi:value>SWITZERLAND</sdi:value>
              </sdi:property>
            </sdi:properties>
            <sdi:metadata id="200918" guid="e9501f68-d4ce-ec44-bdcf-f1c77427e806">
              <sdi:xml>WE1MIEZpbGUgY29udGVudC4uLi4=</sdi:xml>
              <sdi:pdf>UERGIEZpbGUgY29udGVudC4uLi4=</sdi:pdf>
            </sdi:metadata>
          </sdi:product>
        </sdi:products>
      </sdi:supplier>
    </sdi:suppliers>
    <sdi:pricing>
      <sdi:cfg_vat>8.00</sdi:cfg_vat>
      <sdi:cfg_currency>CHF</sdi:cfg_currency>
      <sdi:cfg_rounding>0.05</sdi:cfg_rounding>
      <sdi:cfg_overall_default_fee_te>50.00</sdi:cfg_overall_default_fee_te>
      <sdi:cfg_free_data_fee>false</sdi:cfg_free_data_fee>
      <sdi:cfg_fee_apply_vat>false</sdi:cfg_fee_apply_vat>
      <sdi:cal_fee_ti>5.00</sdi:cal_fee_ti>
      <sdi:ind_lbl_category_order_fee>Member</sdi:ind_lbl_category_order_fee>
    </sdi:pricing>
  </sdi:order>
</sdi:orders>

SetProduct

Allow to answer to a Product, which was in "waiting data" status. A Product can get an answer with a file (attached to the request), with a remote file (an URL) or be rejected. Estimation and pricing are not used anymore, they are ignored.

Input

URL: https://viageo.ch/api/legacyOrder/extract.setProduct
Methods: POST
Content-Type must be application/x-www-form-urlencoded

Query parameters
None
Request parameters
xml required An XML input, following this XSD: https://viageo.ch/api/legacyOrder/xsd/setproductparameters.xsd
file required in some cases only When answering data with a file, binary data

<!-- Rejection case -->
<?xml version="1.0" encoding="UTF-8"?>
<sdi:product xmlns:sdi="http://www.easysdi.org/2011/sdi"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/setproductparameters.xsd"
			guid="708e932b-81c3-2ce4-b907-ed07e61ac5f9"
			xsi:type="sdi:rejection">
	<sdi:order>677587e2-057f-0144-ddc1-9feca766448f</sdi:order>
	<sdi:state>rejected</sdi:state>
	<!-- remark is mandatory -->
	<sdi:remark>the reason why the supplier reject this product</sdi:remark>
</sdi:product>

<!-- Estimation available case -->
<?xml version="1.0" encoding="UTF-8"?>
<sdi:product xmlns:sdi="http://www.easysdi.org/2011/sdi"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/setproductparameters.xsd"
			guid="5d23c0a1-3ea7-5ef4-d582-8cfbdf360fd8"
			xsi:type="sdi:estimation">
	<sdi:order>00fb3f71-e85a-4b62-86f9-982d978b0ca6</sdi:order>
	<sdi:state>available</sdi:state>
	<!-- remark is not mandatory -->
	<sdi:remark>the supplier can add a remark</sdi:remark>
	<!-- price given in TTC - the rounding rule will be applied - currency is defined at platform level and mentionned in getOrders -->
	<sdi:fee>12.91</sdi:fee>
</sdi:product>

<!-- Order available with local storage and predefined price case -->
<?xml version="1.0" encoding="UTF-8"?>
<sdi:product xmlns:sdi="http://www.easysdi.org/2011/sdi"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/setproductparameters.xsd"
			guid="5d23c0a1-3ea7-5ef4-d582-8cfbdf360fd8"
			xsi:type="sdi:localAndPredefined">
	<sdi:order>00fb3f71-e85a-4b62-86f9-982d978b0ca6</sdi:order>
	<sdi:state>available</sdi:state>
	<!-- remark is not mandatory -->
	<sdi:remark>the supplier can add a remark</sdi:remark>
	<!-- file is posted at same time as XML -->
	<sdi:storage>local</sdi:storage>
	<sdi:filename>archive.zip</sdi:filename>
</sdi:product>

<!-- Order available with remote storage and predefined price case -->
<?xml version="1.0" encoding="UTF-8"?>
<sdi:product xmlns:sdi="http://www.easysdi.org/2011/sdi"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/setproductparameters.xsd"
			guid="5d23c0a1-3ea7-5ef4-d582-8cfbdf360fd8"
			xsi:type="sdi:remoteAndPredefined" >
	<sdi:order>00fb3f71-e85a-4b62-86f9-982d978b0ca6</sdi:order>
	<sdi:state >available</sdi:state>
	<!-- remark is not mandatory -->
	<sdi:remark>the supplier can add a remark</sdi:remark>
	<!-- file is posted at same time as XML -->
	<sdi:storage >remote</sdi:storage>
	<sdi:filename>archive.zip</sdi:filename>
	<sdi:fileurl>url_to_the_file</sdi:fileurl>
	<sdi:filesize unit="o">42</sdi:filesize>
</sdi:product>

<!-- Order available with local storage and fee without profile case -->
<?xml version="1.0" encoding="UTF-8"?>
<sdi:product xmlns:sdi="http://www.easysdi.org/2011/sdi"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/setproductparameters.xsd"
			guid="5d23c0a1-3ea7-5ef4-d582-8cfbdf360fd8"
			xsi:type="sdi:localAndFee"  >
	<sdi:order>00fb3f71-e85a-4b62-86f9-982d978b0ca6</sdi:order>
	<sdi:state>available</sdi:state>
	<!-- remark is not mandatory -->
	<sdi:remark>the supplier can add a remark</sdi:remark>
	<!-- price given in TTC - the rounding rule will be applied - currency is defined at platform level and mentionned in getOrders -->
	<sdi:fee>12.91</sdi:fee>
	<!-- file is posted at same time as XML -->
	<sdi:storage>local</sdi:storage>
	<sdi:filename>archive.zip</sdi:filename>
</sdi:product>

<!-- Order available with remote storage and fee without profile case -->
<?xml version="1.0" encoding="UTF-8"?>
<sdi:product xmlns:sdi="http://www.easysdi.org/2011/sdi"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/setproductparameters.xsd"
			guid="5d23c0a1-3ea7-5ef4-d582-8cfbdf360fd8"
			xsi:type="sdi:remoteAndFee"  >
	<sdi:order>00fb3f71-e85a-4b62-86f9-982d978b0ca6</sdi:order>
	<sdi:state >available</sdi:state>
	<!-- remark is not mandatory -->
	<sdi:remark>the supplier can add a remark</sdi:remark>
	<!-- price given in TTC - the rounding rule will be applied - currency is defined at platform level and mentionned in getOrders -->
	<sdi:fee>12.91</sdi:fee>
	<!-- file is posted at same time as XML -->
	<sdi:storage>remote</sdi:storage>
	<sdi:filename>archive.zip</sdi:filename>
	<sdi:fileurl>url_to_the_file</sdi:fileurl>
	<sdi:filesize unit="o">42</sdi:filesize>
</sdi:product>

Output

Output follows this XSD: https://viageo.ch/api/legacyOrder/xsd/setproduct.xsd

<?xml version="1.0" encoding="utf-8"?>
<sdi:success
    xmlns:sdi="http://www.easysdi.org/2011/sdi"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.easysdi.org/schema/4.4.4/setproduct.xsd">
    <sdi:code>200</sdi:code>
    <sdi:message>Product updated</sdi:message>
    <sdi:order guid="677587e2-057f-0144-ddc1-9feca766448f">
        <sdi:name>order name</sdi:name>
    </sdi:order>
    <sdi:product guid="708e932b-81c3-2ce4-b907-ed07e61ac5f9">
        <sdi:name>product name</sdi:name>
    </sdi:product>
</sdi:success>

setProductsStatus

Allow set a product's status. For now only waiting_data_automatic status is supported.

Input

URL: https://viageo.ch/api/legacyOrder/extract.setProductsStatus
Methods: POST
Content-Type must be application/x-www-form-urlencoded

Query parameters
None
Request parameters
xml required An XML input, following this XSD: https://viageo.ch/api/legacyOrder/xsd/setproductsstatusparameters.xsd

<?xml version="1.0" encoding="utf-8"?>
<sdi:orders xmlns:sdi="http://www.easysdi.org/2011/sdi">
  <sdi:order guid="6728ea02-a007-4f45-9bc9-1fab4ea3b837">
    <sdi:product guid="92dbe936-7d40-4ff6-9ece-08e0213499d5">waiting_data_automatic</sdi:product>
  </sdi:order>
  <sdi:order guid="6728ea02-a007-4f45-9bc9-1fab4ea3b838">
    <sdi:product guid="92dbe936-7d40-4ff6-9ece-08e0213499d5">waiting_data_automatic</sdi:product>
    <sdi:product guid="92dbe936-7d40-4ff6-9ece-08e0213499d6">waiting_data_automatic</sdi:product>
    <sdi:product guid="92dbe936-7d40-4ff6-9ece-08e0213499d7">waiting_data_automatic</sdi:product>
  </sdi:order>
</sdi:orders>

Output

Output follows this XSD: https://viageo.ch/api/legacyOrder/xsd/setproductsstatus.xsd

<?xml version="1.0" encoding="utf-8"?>
<sdi:success
  xmlns:sdi="http://www.easysdi.org/2011/sdi"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://viageo.test/api/legacyOrder/xsd/setproductsstatus.xsd">
  <sdi:code>200</sdi:code>
  <sdi:message>Products status updated</sdi:message>
  <sdi:orders>
    <sdi:order guid="a8954cdb-3fab-485a-892e-3cd5e0904c6a">
      <sdi:product guid="c1100815-a4df-4e27-ba19-9ff2ffd8ef8f">waiting_data_automatic</sdi:product>
    </sdi:order>
	<sdi:order guid="36175f25-b2c5-4a70-bf03-a06b2ae8ee65">
      <sdi:product guid="9060341a-81d8-4bc1-81a3-cf7b03ef5536">waiting_data_automatic</sdi:product>
      <sdi:product guid="c1100815-a4df-4e27-ba19-9ff2ffd8ef8f">waiting_data_automatic</sdi:product>
    </sdi:order>
  </sdi:orders>
</sdi:success>