API/EndUser/Account/getInvoiceById
From Emersion
getInvoiceById
Purpose Get an invoice in Adobe Acrobat format
Inputs
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acc="http://api-uat.emersion.com.au/AccountObjects"> <soapenv:Header/> <soapenv:Body> <acc:getInvoiceById> <acc:username>emesupport@telechoice.com.au</acc:username> <acc:password>********</acc:password> <acc:invoice_id>367710</acc:invoice_id> </acc:getInvoiceById> </soapenv:Body> </soapenv:Envelope>
Outputs
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api-uat.emersion.com.au/AccountObjects"> <SOAP-ENV:Body> <ns1:getInvoiceByIdResponse> <ns1:getInvoiceByIdItem> <ns1:filename>invoice_1_461060_20131201_367710.pdf</ns1:filename> <ns1:account_id>461060</ns1:account_id> <ns1:file/> </ns1:getInvoiceByIdItem> </ns1:getInvoiceByIdResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Error String:
- Invalid username / password
- Missing invoice_id