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

Invoice_GetPdf Error

0
Hi,

I'm having some difficulties with getting the PDF for an existing invoice via the API. My code is like this:

$myInvoice = $client-Invoice_FindByNumber(array('number' = '30034'))-Invoice_FindByNumberResult;
$pdf = $client-Invoice_GetPdf(array('InvoiceHandle' = $myInvoice))-Invoice_GetPdfResult;

The error is like this:
Api.Exceptions.ServerException(E00000): An internal error has occurred. {id=2103131007}

Any ideas?

Thanks,
Andreas
created Jan 1, 2012 by alydersen
0% Accept Rate
Q 2 A 1 C 0

3 Answers

0
Hi,

This is some PHP-SOAP syntax error - from the error ID you're supplying, I can see in our logs that you aren't actually sending the invoice handle along with your Invoice_GetPdf request.

Any PHP expert takers?


Best regards,
answered Jan 2, 2012 by Christian Estrup
0
It's simply a typing error.

InvoiceHandle in second line should be invoiceHandle (lower case i)

/Michael
answered Jan 3, 2012 by MicMac
0
Thanks!

Andreas
answered Jan 5, 2012 by alydersen
Visma e-conomic A/S
...