TiersService :: Clients

The GET method, is used to retrieve data.

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

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

Input parameters:

/BAGUES

Example:

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

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/TiersService/rest/Clients/BAGUES';

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

$response = json_decode($result);

Result:

stdClass Object
(
[__type] => Client:http://www.proconsult.lu/WebServices100
[TypeTiers] => 0
[NumeroTiers] => BAGUES
[NumeroTiersPayeur] => BAGUES
[IdCategorieComptable] => 2
[IdCategorieTarifaire] => 2
[IdModeleReglement] => 3
[Intitule] => toto
[Qualite] => toto
[Abrege] => Bague's en or
[Contact] => toto
[CompteCollectif] => 4110000
[Adresse] => toto
[Complement] => toto
[CodePostal] => toto
[Ville] => toto
[Region] => toto
[Pays] => toto
[Telephone] => toto
[Fax] => toto
[Email] => toto
[SiteWeb] => toto
[NumeroSiret] => toto
[NumeroTva] => toto
[CodeEdi] => toto
[CodeNAF] => 32.12Z
[Commentaire] => toto
[Langue] => 0
[EstEnSommeil] =>
[IdDepot] => 0
[NumeroCentraleAchat] =>
[CessionCreance] =>
[EncoursAutorise] => 50000
[IdRisque] => 1
[ModeControleEnCours] => 0
[AutomatiserEcritureMultiEcheances] =>
[AutorisationLettrageAutomatique] => 1
[ExclureRappelsReleve] =>
[Facebook] =>
[LinkedIn] =>
[InfosLibres] => Array
(
[0] => stdClass Object
(
[Name] => Date création société
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] => /Date(549496900000+0200)/
)
[1] => stdClass Object
(
[Name] => Capital social
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] => 0
)
[2] => stdClass Object
(
[Name] => Actionnaire Pal
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] =>
)
[3] => stdClass Object
(
[Name] => Score Banque de France
[Type] => 0
[Size] => 14
[EstCalculee] =>
[Value] =>
)
[4] => stdClass Object
(
[Name] => Total points fidélité
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] => 0
)
[5] => stdClass Object
(
[Name] => Points fidélité restants
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] => 0
)
[6] => stdClass Object
(
[Name] => Fin validité carte fidélité
[Type] => 1
[Size] => 0
[EstCalculee] =>
[Value] => /Date(1199055600000+0100)/
)
[7] => stdClass Object
(
[Name] => Date négociation règlement
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] => /Date(1214776800000+0200)/
)
[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)
)
[Createur] => MA30
[DateModification] => /Date(1530265200000+0200)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[IdModeExpedition] => 2
[AssuranceCredit] => 100000
[PrioriteLivraison] => 0
[DelaiTransport] => 0
[FactureParBonLivraison] =>
[NePasAppliquerPenaliteRetard] =>
[IdRepresentant] => 8
[IdPeriodicite] => 1
[AutorisationLivraisonPartielle] =>
[TauxRemise] => 0
[TauxEscompte] => 0
)