StockService :: LotSeriesArticle

The GET method, is used to retrieve data.

The list of necessary parameters for sending a query:
  • string refArticle.

Returns data as JSON, for use in PHP, you need to convert JSON in StdClass PHP (PHP function: json_decode ()).

Input parameters:

/MODIV01

Example:

require (__DIR__ . '/service/WebServices100.php');

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/StockService/rest/LotSeries/MODIV01';

// Send requests to receive data
$result = WebServices100::getData($url)));

$response = json_decode($result);

Result:

Array
(
[0] => stdClass Object
(
[RefArticle] => MODIV01
[NumLotSerie] => MF80
[Complement] =>
[DatePeremption] => /Date(-2208992400000+0100)/
[DateFabrication] => /Date(1357081200000+0100)/
[Quantite] => 1
[QuantiteRestante] => 1
[QuantiteReserve] => 0
[EstEpuise] =>
[IdDepot] => 1
[TypeMouvement] => 1
[Createur] => COLU
[DateModification] => /Date(1442588100000+0200)/
)
[1] => stdClass Object
(
[RefArticle] => MODIV01
[NumLotSerie] => MF81
[Complement] =>
[DatePeremption] => /Date(-2208992400000+0100)/
[DateFabrication] => /Date(1357081200000+0100)/
[Quantite] => 1
[QuantiteRestante] => 1
[QuantiteReserve] => 0
[EstEpuise] =>
[IdDepot] => 1
[TypeMouvement] => 1
[Createur] => COLU
[DateModification] => /Date(1378850400000+0200)/
)
[2] => stdClass Object
(
[RefArticle] => MODIV01
[NumLotSerie] => MF82
[Complement] =>
[DatePeremption] => /Date(-2208992400000+0100)/
[DateFabrication] => /Date(1357081200000+0100)/
[Quantite] => 1
[QuantiteRestante] => 1
[QuantiteReserve] => 0
[EstEpuise] =>
[IdDepot] => 1
[TypeMouvement] => 1
[Createur] => COLU
[DateModification] => /Date(1378850400000+0200)/
)
[3] => stdClass Object
(
[RefArticle] => MODIV01
[NumLotSerie] => MF83
[Complement] =>
[DatePeremption] => /Date(-2208992400000+0100)/
[DateFabrication] => /Date(1357081200000+0100)/
[Quantite] => 1
[QuantiteRestante] => 1
[QuantiteReserve] => 0
[EstEpuise] =>
[IdDepot] => 1
[TypeMouvement] => 1
[Createur] => COLU
[DateModification] => /Date(1378850400000+0200)/
)
[4] => stdClass Object
(
[RefArticle] => MODIV01
[NumLotSerie] => MF84
[Complement] =>
[DatePeremption] => /Date(-2208992400000+0100)/
[DateFabrication] => /Date(1357081200000+0100)/
[Quantite] => 1
[QuantiteRestante] => 1
[QuantiteReserve] => 0
[EstEpuise] =>
[IdDepot] => 1
[TypeMouvement] => 1
[Createur] => COLU
[DateModification] => /Date(1378850400000+0200)/
)
)