Open kosepusen opened 9 years ago
It's been a while since I've last worked with this, but have in mind it used the legacy webservices.
$data would be formatted according to the 24SevenOffice WebService description.
For SaveInvoices the description is this: https://webservices.24sevenoffice.com/Economy/Invoice/InvoiceService.asmx
So basically the data array would be:
$data = array(
'InvoiceId' => 123456,
'DeliveryName' => 'My Awesome Product',
'Addresses' => array(
array(
'City' => 'Oslo',
...
)
)
...
);
and the function
public function SaveInvoice( $data ) {
$this->set_service( 'Invoice/InvoiceService' );
$request = array(
'invoiceItem' => $data,
);
return $this->call( 'SaveInvoice', $request );
}
This is not tested, and is only "in theory". I've never actually tested it against the invoice service of the API.
Legacy web services ? I don't see a big difference with the connection, if this is the current:
http://developer.24sevenoffice.com/category/dev/#api-intro
Am I missing something ?
The legacy webservices documentation can be found here: http://developer.24sevenoffice.com/hidden/webservices/
The connection is about the same, so it might be that the new API will work aswell, but it’s not tested.
I am trying to save an invoice - if I copy savecompany, what does $data look like ? an array, ie array('invoiceid'=>'1234')