DocumentService :: LignesDocumentById

The GET method, is used to retrieve data.

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

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

Input parameters:

/255

Example:

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

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/DocumentService/rest/LignesDocument/255';

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

$response = json_decode($result);

Result:

stdClass Object
(
[__type] => LigneArticle:http://www.proconsult.lu/WebServices100
[Id] => 255
[TypeDocument] => 1
[Domaine] => 0
[NumeroDocument] => BC00028
[NumeroDocumentBC] =>
[NumeroDocumentBL] =>
[NumeroDocumentPL] =>
[Date] => /Date(1362351600000+0100)/
[DateBC] => /Date(1362351600000+0100)/
[DateBL] => /Date(-2208992400000+0100)/
[DatePL] => /Date(-2208992400000+0100)/
[NumeroLigne] => 20000
[Designation] => Location de parure
[Createur] => MCBA
[DateModification] => /Date(1538487600000+0200)/
[InfosLibres] => Array
(
[0] => stdClass Object
(
[Name] => Colisage
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] => 16
)
[1] => stdClass Object
(
[Name] => Unité de colisage
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] => AA - AA - AA - AA -
)
[2] => stdClass Object
(
[Name] => Commentaires
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] => AA - AA - AA - AA -
)
[3] => stdClass Object
(
[Name] => TestTabledocLigne
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] => AA - AA - AA - AA -
)
[4] => stdClass Object
(
[Name] => testDate
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] => /Date(1522447200000+0200)/
)
)
[RefArticle] => LOCPARURE
[IdGamme1] => 0
[IdGamme2] => 0
[DateLivraison] => /Date(1363129200000+0100)/
[PrixUnitaire] => 145
[PrixUnitaireBC] => 0
[PrixRevientUnitaire] => 0
[PrixUnitaireTTC] => 145
[PrixUnitaireDevise] => 0
[MontantHT] => 435
[MontantTTC] => 435
[CMUP] => 0
[Quantite] => 3
[QuantiteBC] => 3
[QuantiteBL] => 0
[QuantitePL] => 3
[PoidsNet] => 0
[PoidsBrut] => 0
[Conditionnement] => Jour
[QuantiteConditionnement] => 3
[RefFournisseur] =>
[RefArticleCompose] =>
[SectionAnalytique] => 950BIJO
[EstValorise] => 1
[EstNomenclature] =>
[LigneTTC] => 0
[IdDepot] => 0
[IdCollaborateur] => 10
[RemiseType1] => 0
[RemiseValeur1] => 0
[RemiseType2] => 0
[RemiseValeur2] => 0
[RemiseType3] => 0
[RemiseValeur3] => 0
[CodeTaxe1] => C19
[CodeTaxe2] =>
[CodeTaxe3] =>
[Taux1] => 0
[Taux2] => 0
[Taux3] => 0
[IdEmplacement] => 0
[TexteSupplementaire] =>
[NumLotSerie] =>
[ComplementLotSerie] =>
[DatePeremption] => /Date(-2208992400000+0100)/
[DateFabrication] => /Date(-2208992400000+0100)/
)