This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//set BASE_URL to https://factureaza.ro/api/v1/ for production | |
define('BASE_URL', 'https://sandbox.factureaza.ro/api/v1/'); | |
//replace with the api key provided in the backend | |
define('API_KEY', '72543f4dc00474bc40a27916d172eb93339fae894ec7a6f2dceb4751d965'); | |
$invoice_id = 1065253794; // your invoice id here | |
$changes = array("invoice" => | |
array( | |
"lower_annotation" => 'Explicații noi', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//set BASE_URL to https://factureaza.ro/api/v1/ for production | |
define('BASE_URL', 'https://sandbox.factureaza.ro/api/v1/'); | |
//replace with the api key provided in the backend | |
define('API_KEY', '72543f4dc00474bc40a27916d172eb93339fae894ec7a6f2dceb4751d965'); | |
$client_id = 1064116434; // your client id here | |
$changes = array("client" => array("name" => 'Nume client schimbat', "city" => "Nume oras nou")); | |
$url = BASE_URL . 'clients/' . $client_id . '.xml' ; | |
$ch = curl_init(); |
OlderNewer