TarifService :: GetListRemiseFamilleClient

The POST method, is used to retrieve data.

The list of parameters is not mandatory to request:

  • Criteria criteria,
  • array orders,
  • int pageNumber,
  • int rowsPerPage.

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

Input parameters:

{
  "criteria":
  {
      "__type":"CriteriaComparison:http://www.proconsult.lu/WebServices100",
      "FieldName":"NumeroTiers",
      "Operator":5,
      "Value":"NUM0007"
  },
  "orders":[{"FieldName":"NumeroTiers","OrderType":1}],
  "pageNumber":"1",
  "rowsPerPage":"10"
}

Example:

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

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/TarifService/rest/GetListRemiseFamilleClient';

// add parameters
$data = new stdClass();
...
$json_data = json_encode($data);

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

$response = json_decode($result);

Result:

Array
(
[0] => stdClass Object
(
[CodeFamille] => ORFEVRERIE
[NumeroTiers] => TOPAZ
[Remise] => 7
[Createur] => COLU
[DateModification] => /Date(1240783200000+0200)/
)
[1] => stdClass Object
(
[CodeFamille] => MONTREBW
[NumeroTiers] => QUART
[Remise] => 5
[Createur] => COLU
[DateModification] => /Date(1240783200000+0200)/
)
[2] => stdClass Object
(
[CodeFamille] => MONTREOR
[NumeroTiers] => QUART
[Remise] => 5
[Createur] => COLU
[DateModification] => /Date(1240783200000+0200)/
)
[3] => stdClass Object
(
[CodeFamille] => BIJOUXOR
[NumeroTiers] => OPALE
[Remise] => 7
[Createur] => COLU
[DateModification] => /Date(1240783200000+0200)/
)
[4] => stdClass Object
(
[CodeFamille] => ZDIVERS
[NumeroTiers] => DBIJOUX
[Remise] => 2
[Createur] => COLU
[DateModification] => /Date(1240783200000+0200)/
)
[5] => stdClass Object
(
[CodeFamille] => MONTREBW
[NumeroTiers] => CISEL
[Remise] => 5.1
[Createur] => W100
[DateModification] => /Date(1538037300000+0200)/
)
[6] => stdClass Object
(
[CodeFamille] => BIJOUXARG
[NumeroTiers] => CERAM
[Remise] => 9.99
[Createur] => COLU
[DateModification] => /Date(1426235700000+0100)/
)
[7] => stdClass Object
(
[CodeFamille] => BIJOUXARG
[NumeroTiers] => CARAT
[Remise] => 5
[Createur] => COLU
[DateModification] => /Date(1240783200000+0200)/
)
[8] => stdClass Object
(
[CodeFamille] => PRESTHOR
[NumeroTiers] => BAGUES
[Remise] => 5
[Createur] => COLU
[DateModification] => /Date(1319061600000+0200)/
)
)