Difference between revisions of "API/EndUser/Account/getInvoiceById"
From Emersion
(getInvoiceById) |
(getInvoiceById) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
<code> | <code> | ||
− | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acc="http://api | + | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acc="http://api-uat.emersion.com.au/AccountObjects"> |
<soapenv:Header/> | <soapenv:Header/> | ||
<soapenv:Body> | <soapenv:Body> | ||
<acc:getInvoiceById> | <acc:getInvoiceById> | ||
<acc:username>emesupport@telechoice.com.au</acc:username> | <acc:username>emesupport@telechoice.com.au</acc:username> | ||
− | <acc:password> | + | <acc:password>********</acc:password> |
<acc:invoice_id>367710</acc:invoice_id> | <acc:invoice_id>367710</acc:invoice_id> | ||
</acc:getInvoiceById> | </acc:getInvoiceById> | ||
Line 22: | Line 22: | ||
<code> | <code> | ||
− | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api | + | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api-uat.emersion.com.au/AccountObjects"> |
<SOAP-ENV:Body> | <SOAP-ENV:Body> | ||
<ns1:getInvoiceByIdResponse> | <ns1:getInvoiceByIdResponse> |
Latest revision as of 15:22, 21 November 2014
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