--- title: InvoiceService description: API reference for the sales invoice service --- # InvoiceService The `InvoiceService` service handles sales invoice certification. ## Methods ### sign() Certifies a sales invoice. ```php public function sign(?array $data = null): ResponseDTO ``` **Parameters:** - `$data` (array|null): Invoice data (optional if data is defined via context) **Returns:** `ResponseDTO` ### Example: ```php use Neocode\FNE\Facades\FNE; use Neocode\FNE\Enums\InvoiceType; use Neocode\FNE\Enums\PaymentMethod; use Neocode\FNE\Enums\InvoiceTemplate; use Neocode\FNE\Enums\TaxType; $result = FNE::invoice()->sign([ 'invoiceType' => InvoiceType::SALE->value, 'paymentMethod' => PaymentMethod::MOBILE_MONEY->value, 'template' => InvoiceTemplate::B2C->value, 'isRne' => false, 'clientCompanyName' => 'Client', 'clientPhone' => '0123456789', 'clientEmail' => 'client@example.com', 'pointOfSale' => 'POS-001', 'establishment' => 'EST-001', 'items' => [ [ 'description' => 'Product', 'quantity' => 1, 'amount' => 10000.0, 'taxes' => [TaxType::TVA->value], ], ], 'taxes' => TaxType::TVA->value, ]); ``` ## See Also - [Guide - Sales Invoices](/docs/guides/invoices) > [!info] > **Need help?** Check out the [complete documentation](https://fne-client.neocode.ci/) or [open an issue](https://github.com/neocodesupport/fne-client/issues) on GitHub.