TiersService :: FournisseursList

The GET method, is used to retrieve data.

The list of parameters is not mandatory to request:

  • 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:

?pageNumber=1&rowsPerPage=3

Example:

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

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/TiersService/rest/Fournisseurs?pageNumber=1&rowsPerPage=3';

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

$response = json_decode($result);

Result:

Array
(
[0] => stdClass Object
(
[TypeTiers] => 1
[NumeroTiers] => BILLO
[NumeroTiersPayeur] => BILLO
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 3
[Intitule] => Billotxxxxxxx
[Qualite] => M. cc
[Abrege] => Billotbb
[Contact] => Mr Félix Billotdd
[CompteCollectif] => 4010000
[Adresse] => 2, allée des Lilas
[Complement] => BP 21
[CodePostal] => 62000
[Ville] => CALAIS
[Region] => region
[Pays] => France
[Telephone] => 03 21 31 98 58
[Fax] => 03 21 46 30 25
[Email] => billo@billo.fr
[SiteWeb] => billo.fr
[NumeroSiret] => siret
[NumeroTva] => FR37545654321
[CodeEdi] => 123456789
[CodeNAF] => 46.52Z
[Commentaire] => commentaire
[Langue] => 2
[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] => /Date(1227999600000+0100)/
)



[1] => stdClass Object
(
[Name] => Capital social
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] => 12000
)



[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(-2208992400000+0100)/
)



[7] => stdClass Object
(
[Name] => Date négociation règlement
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] => /Date(1233442800000+0100)/
)



[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)



)



[Createur] => COLU
[DateModification] => /Date(1458826680000+0100)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[DelaiApprovisionnement] => 0
[IdConditionLivraison] => 1
[IdRepresentant] => 2
[TauxRemise] => 0
[TauxEscompte] => 0
)



[1] => stdClass Object
(
[TypeTiers] => 1
[NumeroTiers] => BLANC
[NumeroTiersPayeur] => BLANC
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 4
[Intitule] => Jean Blanc agent Renault
[Qualite] =>
[Abrege] => Jean Blanc agent
[Contact] => Jean Blancu
[CompteCollectif] => 4040000
[Adresse] => 77, Avenue du Général Ement
[Complement] =>
[CodePostal] => 75011
[Ville] => Paris
[Region] =>
[Pays] => France
[Telephone] => 01 46 25 32 21
[Fax] => 01 46 45 21 17
[Email] => blanc@blanc.fr
[SiteWeb] => blanc.fr
[NumeroSiret] =>
[NumeroTva] =>
[CodeEdi] =>
[CodeNAF] => 77.11A
[Commentaire] =>
[Langue] => 1
[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] => /Date(792802800000+0100)/
)



[1] => stdClass Object
(
[Name] => Capital social
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] => 11000
)



[2] => stdClass Object
(
[Name] => Actionnaire Pal
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] => Parnter
)



[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(-2208992400000+0100)/
)



[7] => stdClass Object
(
[Name] => Date négociation règlement
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] => /Date(1230764400000+0100)/
)



[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)



)



[Createur] => MA30
[DateModification] => /Date(1504708260000+0200)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[DelaiApprovisionnement] => 0
[IdConditionLivraison] => 1
[IdRepresentant] => 2
[TauxRemise] => 0
[TauxEscompte] => 0
)



[2] => stdClass Object
(
[TypeTiers] => 1
[NumeroTiers] => BRELO
[NumeroTiersPayeur] => BRELO
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 4
[Intitule] => Breloque S.a.r.l
[Qualite] => Société
[Abrege] => Breloque S
[Contact] => Jacques Mélian
[CompteCollectif] => 4010000
[Adresse] => 38, av. du Prado
[Complement] =>
[CodePostal] => 13002
[Ville] => MARSEILLE
[Region] =>
[Pays] => France
[Telephone] => 04 91 08 50 50
[Fax] => 04 45 25 25 45
[Email] => brelo@brelo.fr
[SiteWeb] => brelo.fr
[NumeroSiret] =>
[NumeroTva] => FR37545498877
[CodeEdi] =>
[CodeNAF] => 46.65Z
[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
)



)