PHP code example of oxygensuite / aade-mydata-oxygen
1. Go to this page and download the library: Download oxygensuite/aade-mydata-oxygen library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oxygensuite / aade-mydata-oxygen example snippets
use Firebed\AadeMyData\Http\MyDataRequest;
use OxygenSuite\AadeMyData\OxygenProvider;
MyDataRequest::init($aadeUserId, $aadeSubscriptionKey, 'prod'); // still used by the requests that stay on ΑΑΔΕ
OxygenProvider::register(token: 'your-company-api-token');
use Firebed\AadeMyData\Enums\DiscountType;
$invoice->getInvoiceHeader()->setIssueDate('2026-08-28')->setIssueTime('10:15:00'); // NTAGE, 10.0) // or DiscountType::AMOUNT
->setNetValue(90.0);
$invoice->setExtraFields(['order' => 'SO-1']); // also on lines and payment methods
use OxygenSuite\AadeMyData\Enums\NSP;
use OxygenSuite\AadeMyData\Enums\SignatureDuration;
$payment = PaymentMethodDetail::make()->setType(7)->setAmount(12.4)->setTid('TERM001')->setTransactionId('abc-123');
$invoice->addPaymentMethod($payment);
$signature = OxygenProvider::signatures()->create($invoice, $payment, NSP::VIVA, SignatureDuration::HOURS_60);
$payment->setProvidersSignature(null, $signature->signature);
(new SendInvoices())->handle($invoice);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.