API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Storing a created pdf invoice on my server

Hi all, After booking an invoice and then using the getpdf method to get the pdf 'client-Invoice_GetPdf' i have been able to send this invoice to email. But what i need now is for a way to send the pdf invoice to my server.


I'm working with PHP. some one please help soon. Thanks
created Jun 28, 2014 by samybaxy
100% Accept Rate
Q 2 A 1 C 0

1 Answer

Best answer

I fixed this myself :) using the following simple snippet

$filename = $invoiceNumber.'.pdf';
$pathToInvoice = $pathToInvoice.DS.$filename;
if($pdfInvoice) {
file_put_contents($pathToInvoice, $pdfInvoice);
answered Jun 28, 2014 by samybaxy
Visma e-conomic A/S