TiersService :: Fournisseurs

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:

/DUPON

Example:

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

use services\WebServices100;

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

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

$response = json_decode($result);

Result:

stdClass Object
(
[TypeTiers] => 1
[NumeroTiers] => DUPON
[NumeroTiersPayeur] => DUPON
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 4
[Intitule] => Dupont et Dupond
[Qualite] => Société
[Abrege] => Dupont et
[Contact] => Henri Dupond
[CompteCollectif] => 4010000
[Adresse] => 13, Place Vendôme
[Complement] =>
[CodePostal] => 75001
[Ville] => PARIS
[Region] =>
[Pays] => France
[Telephone] => 01 42 45 85 55
[Fax] => 01 42 45 27 77
[Email] =>
[SiteWeb] =>
[NumeroSiret] =>
[NumeroTva] => FR37002365497
[CodeEdi] =>
[CodeNAF] => 95.25Z
[Commentaire] =>
[Langue] => 0
[EstEnSommeil] =>
[IdDepot] => 0
[NumeroCentraleAchat] =>
[CessionCreance] =>
[EncoursAutorise] => 0
[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] =>
)
[1] => stdClass Object
(
[Name] => Capital social
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] =>
)
[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] =>
)
[5] => stdClass Object
(
[Name] => Points fidélité restants
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] =>
)
[6] => stdClass Object
(
[Name] => Fin validité carte fidélité
[Type] => 1
[Size] => 0
[EstCalculee] =>
[Value] =>
)
[7] => stdClass Object
(
[Name] => Date négociation règlement
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] =>
)
[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)
)
[Createur] => COLU
[DateModification] => /Date(1361228400000+0100)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[DelaiApprovisionnement] => 0
[IdConditionLivraison] => 1
[IdRepresentant] => 3
[TauxRemise] => 0
[TauxEscompte] => 0
)