Ask Material

Request
Description List the resources with a specific product in their inventory (car stock), sorted by distance to the current location.
Context https://<instance>.optimizemyday.com/omdservices-basic/rest/v1/services/data
URL /askMaterial
Method GET
Response Code 200 when successful, another HTTP status code otherwise
Success Response The list of resources
Response Type XML or JSON
Parameter Datatype Description
configId Integer The identifier of the configuration.
productId String The product code for which the request is sent.
resourceId String The external identifier of the resource requesting the material.
latitude Float The latitude of the current position (of the requesting resource).
longitude Float The longitude of the current position (of the requesting resource).
_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/askMaterial?configId=16167225&productId=SP046369&resourceId=10000044&latitude=51.231668&longitude=6.803817

Sample Result

<Result success="true">
  <ProductAvailability externalId="10000021" name="Tommy Tomate" phone="+49 172 5856739" email="Tommy.Tomate@smartservices.de" quantity="3.0" date="2016-12-14 11:57:50" distance="68"/>
  <ProductAvailability externalId="10000030" name="Maria Morgenstern" phone="+49 174 9376581" email="Maria.Morgenstern@smartservices.de" quantity="1.0" date="2016-09-23 15:08:58" distance="561"/>
</Result>

results matching ""

    No results matching ""