src/Web/Service.php
public function invoiceAdd(array $invoice, Result $result = null)
    {
        return $this->communicator->callApiFunction('invoices/invoice_add', $invoice, $result)->setMainResponseKey('invoice');
    }
public function invoiceAdd(array $invoice, Result $result = null)
    {
        return $this->communicator->callApiFunction('invoices/invoice_add', $invoice, $result)->setMainResponseKey('invoice');
    }
public function invoiceAdd ( array $ invoice , Result $ result = null ) { return $ this -> communicator -> callApiFunction ( 'invoices/invoice_add' , $ invoice , $ result ) -> setMainResponseKey ( 'invoice' ) ; }
Sends an invoice to Acumulus.

@param array $invoice
The invoice to send.
@param \Siel\Acumulus\Web\Result|null $result
It is possible to already create a Result object before calling the Web
Service to store local messages. By passing this Result object these
local messages will be merged with any remote messages in the returned
Result object.

@return \Siel\Acumulus\Web\Result
The Result of the webservice call. A successful call will contain a
response array with key:
- invoice: an array of information about the created invoice, being an
array with keys:
- invoicenumber
- token
- entryid

@see https://www.siel.nl/acumulus/API/Invoicing/Add_Invoice/
Sends an invoice to Acumulus .