Get Resources

Request
Description Retrieves the list of resources within a territory.
Context https://<instance>.optimizemyday.com/omdservices-basic/rest/v1/services/data
URL /getTerritories
Method GET
Response Code 200 when successful, another HTTP status code otherwise
Success Response A document containing the list of resources.
Response Type XML or JSON
Parameter Datatype Description
configId Integer The identifier of the configuration.
territoryId Integer The name of the territory. This parameter can be specified several times to retrieve resources from more than one territory within the same request.
_output String The requested output format being xml or json. If omitted, xml is assumed.

Sample Call

https://sandbox.optimizemyday.com/omdservices-basic/rest/v1/services/data/getResources?configId=16167225&territoryId=104&territoryId=105

Sample Result

<Result success="true">
  <Territory id="16175135" version="1" configuration="16167225" name="104">
    <Resource id="16180587" version="5" configuration="16167225" fullName="Tommy Tomate" externalId="10000021" name="Tommy Tomate" territory="104" street="Hagenhoopt 26" postalCode="21435" city="Stelle" holidayCalendar="Feiertage NRW" country="DE" geocode="0_0_10144400_53367500 1" maximumWeight="0.0" maximumVolume="0.0" zeroDistanceForDeparture="false" zeroDistanceForArrival="false" startWithWorkingHours="false" email="Tommy.Tomate@smartservices.de" inactive="false"/>
    <Resource id="16180591" version="6" configuration="16167225" fullName="Gerhard Gross" externalId="10000024" name="Gerhard Gross" territory="104" street="Grenzstr. 3" postalCode="08468" city="Reichenbach" country="DE" geocode="0_0_12292760_50614540 1" maximumWeight="0.0" maximumVolume="0.0" zeroDistanceForDeparture="false" zeroDistanceForArrival="false" startWithWorkingHours="false" email="Gerhard.Gross@smartservices.de" inactive="false"/>
    <Resource id="16180585" version="4" configuration="16167225" fullName="Max Mustermann" externalId="10000032" name="Max Mustermann" territory="104" street="C?lbigk 4" postalCode="06408" city="Ilberstedt" country="DE" geocode="0_0_11671793_51799290 1" maximumWeight="0.0" maximumVolume="0.0" zeroDistanceForDeparture="false" zeroDistanceForArrival="false" startWithWorkingHours="false" email="Max.Mustermann@smartservices.de" inactive="false"/>
  </Territory>
  <Territory id="16175142" version="1" configuration="16167225" name="105">
    <Resource id="16180592" version="4" configuration="16167225" fullName="Paul Schuld" externalId="10000004" name="Paul Schuld" territory="105" street="Josef-Lenders-Dyk 29" postalCode="47803" city="Krefeld" country="DE" geocode="0_0_6558600_51351112 1" maximumWeight="0.0" maximumVolume="0.0" zeroDistanceForDeparture="false" zeroDistanceForArrival="false" startWithWorkingHours="false" email="Paul.Schuld@smartservices.de" inactive="false"/>
    <Resource id="16180589" version="3" configuration="16167225" fullName="Karl Klein" externalId="10000018" name="Karl Klein" territory="105" street="Taffingsweg 8" postalCode="66740" city="Saarlouis" country="DE" geocode="0_0_6736960_49299992 2" maximumWeight="0.0" maximumVolume="0.0" zeroDistanceForDeparture="false" zeroDistanceForArrival="false" startWithWorkingHours="false" email="Karl.Klein@smartservices.de" inactive="false"/>
    <Resource id="16180586" version="3" configuration="16167225" fullName="Susi Sorglos" externalId="10000033" name="Susi Sorglos" territory="105" street="Von-Galen-Str. 19" postalCode="49356" city="Diepholz" country="DE" geocode="0_0_8375747_52620056 1" maximumWeight="0.0" maximumVolume="0.0" zeroDistanceForDeparture="false" zeroDistanceForArrival="false" startWithWorkingHours="false" email="Susi.Sorglos@smartservices.de" inactive="false"/>
    <Resource id="16180590" version="8" configuration="16167225" fullName="Markus Müller" externalId="10079664" name="Markus Müller" territory="105" street="Nelkenweg 29" postalCode="90768" city="Fürth" country="DE" geocode="0_0_10913390_49492260 1" maximumWeight="0.0" maximumVolume="0.0" zeroDistanceForDeparture="false" zeroDistanceForArrival="false" startWithWorkingHours="false" email="Markus.Mueller@smartservices.de" inactive="false"/>
  </Territory>
</Result>

results matching ""

    No results matching ""