Skip to content

Instantly share code, notes, and snippets.

View aphilippi's full-sized avatar

Andreas Philippi aphilippi

  • Cubus Arts SRL
  • Brasov
View GitHub Profile
@aphilippi
aphilippi / create_client_api_factureaza.php
Last active February 23, 2019 14:19
Factureaza.ro API: Basic examples
<?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');
$attributes = array(
"client" => array(
"name" => 'Firma mea preferata',
"uid" => '3987985',
@aphilippi
aphilippi / create_invoice_api_factureaza.php
Last active February 23, 2019 14:20
Factureaza.ro API: add invoice example
<?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');
/* adapt there variables to your needs*/
$client_id = 1064116434;
$currency_id = 183;// 183 -> RON
$invoice_series_id = 1061104069; // IDul seriei - NU PREFIXUL !!!!!