API/Services/getInvoiceById

From Emersion
Jump to: navigation, search

Purpose

Return the actual invoice (PDF) for a given invoice.

Inputs

 <soapenv:Header/>
  <soapenv:Body>
     <ser:getInvoiceById>
        <ser:invoice_id>1</ser:invoice_id>
     </ser:getInvoiceById>
  </soapenv:Body>


Output

<SOAP-ENV:Body>
     <ns1:getInvoiceByIdResponse>
        <ns1:getInvoiceByIdItem>
           <ns1:filename></ns1:filename>
           <ns1:account_id></ns1:account_id>
           <ns1:file></ns1:file>
        </ns1:getInvoiceByIdItem>
     </ns1:getInvoiceByIdResponse>
  </SOAP-ENV:Body>

Error String

145. Missing invoice_id