TarifService :: DeleteTarifClient

The DELETE method, is used to retrieve data.

The list of necessary parameters for sending a query:

  • TarifClient tarif

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

Input parameters:

{"tarif":{
"RefArticle":"BAAR01",
"IdGamme1":0,
"IdGamme2":0,
"Gamme1":"",
"Gamme2":"",
"NumeroTiers":"CARAT",
"Coefficient":2,
"PrixVente":372,
"Remise":15,
"TypePrix":0,
"RefArticleClient":""}
}

Example:

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

use services\TarifClient;
use services\Webservices100;

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

// add parameters
$data = new TarifClient();

$data->setRefArticle('BAAR01');
$data->setIdGamme1(0);
$data->setIdGamme2(0);
$data->setGamme1('');
$data->setGamme2('');
$data->setNumeroTiers ('CARAT');
$data->setCoefficient(2);
$data->setPrixVente(372);
$data->setRemise(15);
$data->setTypePrix(0);
$data->setRefArticleClient('');

$json_data = json_encode($data->getResponse());

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

Result:

BOOLEAN