TiersService :: ClientsList

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/Clients?pageNumber=1&rowsPerPage=3';

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

$response = json_decode($result);

Result:

Array
(
[0] => stdClass Object
(
[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
)
[1] => stdClass Object
(
[TypeTiers] => 0
[NumeroTiers] => CARAT
[NumeroTiersPayeur] => CARAT
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 4
[Intitule] => Carat S.a.r.l
[Qualite] => Société
[Abrege] => Carat S.a.r.l
[Contact] => Yves Debanne
[CompteCollectif] => 4110000
[Adresse] => 144, route de Vannes
[Complement] => BP 14
[CodePostal] => 44000
[Ville] => NANTES
[Region] =>
[Pays] => France
[Telephone] => 02 40 48 67 95
[Fax] => 02 40 48 67 90
[Email] =>
[SiteWeb] =>
[NumeroSiret] =>
[NumeroTva] => FR373087844356
[CodeEdi] =>
[CodeNAF] => 95.25Z
[Commentaire] =>
[Langue] => 1
[EstEnSommeil] =>
[IdDepot] => 0
[NumeroCentraleAchat] =>
[CessionCreance] =>
[EncoursAutorise] => 100000
[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(-2208992400000+0100)/
)
[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(-2208992400000+0100)/
)
[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)



)
[Createur] => MA30
[DateModification] => /Date(1458830040000+0100)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[IdModeExpedition] => 1
[AssuranceCredit] => 50000
[PrioriteLivraison] => 1
[DelaiTransport] => 0
[FactureParBonLivraison] =>
[NePasAppliquerPenaliteRetard] =>
[IdRepresentant] => 9
[IdPeriodicite] => 1
[AutorisationLivraisonPartielle] =>
[TauxRemise] => 20
[TauxEscompte] => 3
)
[2] => stdClass Object
(
[TypeTiers] => 0
[NumeroTiers] => CERAM
[NumeroTiersPayeur] => CERAM
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 3
[IdModeleReglement] => 4
[Intitule] => Horlogerie Ceram
[Qualite] =>
[Abrege] => Horlogerie Ceram
[Contact] => Mme Henriot
[CompteCollectif] => 4110000
[Adresse] => 83, Boulevard Diroma
[Complement] =>
[CodePostal] => 13000
[Ville] => Marseille
[Region] =>
[Pays] => France
[Telephone] => 05 46 52 58 91
[Fax] => 05 46 25 25 32
[Email] =>
[SiteWeb] =>
[NumeroSiret] =>
[NumeroTva] =>
[CodeEdi] =>
[CodeNAF] => 26.52Z
[Commentaire] =>
[Langue] => 2
[EstEnSommeil] =>
[IdDepot] => 0
[NumeroCentraleAchat] =>
[CessionCreance] =>
[EncoursAutorise] => 40000
[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(-2208992400000+0100)/
)
[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(-2208992400000+0100)/
)
[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)
)
[Createur] => COLU
[DateModification] => /Date(1458830040000+0100)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[IdModeExpedition] => 1
[AssuranceCredit] => 40000
[PrioriteLivraison] => 10
[DelaiTransport] => 0
[FactureParBonLivraison] =>
[NePasAppliquerPenaliteRetard] =>
[IdRepresentant] => 10
[IdPeriodicite] => 1
[AutorisationLivraisonPartielle] =>
[TauxRemise] => 0
[TauxEscompte] => 0
)
)