GET V1 fml/materialLots?materialId={materialId}

Gets the non-disposed Lots for the FReg Material with the specified ID.

Request Information

Parameters

NameDescriptionAdditional information
materialId
The ID of the FReg Material to get the Lots for.

Define this parameter in the request URI.

Example Request

To get the Lots for the FReg Material with ID 1234, make the following API call: GET /fml/materialLots?materialId=1234

Response Information

HTTP Status Codes

Status CodeMeaning
200 (OK) The request has completed successfully. The Material Lots will be contained in the response body (see below).
401 (Unauthorized) The user has not been authorised.
Please ensure that the client provides the api-username and api-usertoken headers.

Response Detail

An empty collection means that the FReg material did not exist or it does not have any related Lots. Only Lots that have not been disposed of will be returned in the response.

Response Body Formats

application/json, text/json

Sample:
[
  {
    "ID": 10001,
    "LotNumber": "Lot 1"
  },
  {
    "ID": 10002,
    "LotNumber": "Lot 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMaterialLot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Unilever.Urdps.Hts.EmsApi.EntityRepresentations.FReg.V1">
  <MaterialLot>
    <ID>10001</ID>
    <LotNumber>Lot 1</LotNumber>
  </MaterialLot>
  <MaterialLot>
    <ID>10002</ID>
    <LotNumber>Lot 2</LotNumber>
  </MaterialLot>
</ArrayOfMaterialLot>