Image Integration API for INVOICE

Chrome River offers an API that enables you to download images to your internal system after exporting invoices. If you would like to use the Image Integration API, please contact Chrome River Support to have access turned on.

Click here to download the Image Integration API for INVOICE.

  • Note: The Chrome River Image API requires the client application to specify a security protocol of TLS 1.2 or higher in order to connect.

How to Access the Service

<environment_url>/receipts/doitenvironment_url (depending on querying PROD or QA/UAT server)

  • Use the QA/UAT or Production URL provided by your organization's Chrome River administrator.

Required POST Arguments (always required for every method call below)

un Username (FTP User)
pw Password (FTP Password)
method method to run


This method returns a list of invoices exported in a given date range. The dates are based on the Chrome River export date. Most customers run the service after midnight for the previous day. Your company develops a program that iterates over the list of invoices and calls the getInvoiceImages method for each one. Please note, non-ASCII characters such as currency symbols and soft hyphens are not fully supported at this time and may cause issues with this method.

Required POST Arguments

fromDate MM/DD/YYYY format
toDate MM/DD/YYYY format
  • Note: To optimize the query, the date range is limited to 32 days.
  • Note: Records returned are limited to export dates within the past 90 calendar days. If the invoice was exported more than 90 days ago, its XML data will not be returned.

Success XML

<?xml version="1.0" encoding="utf-8" ?><list><com.chromeriver.servlet.InvoiceTO><invoiceID>010000008475</invoiceID><invoiceNumber>0003698602242029</invoiceNumber><invoiceDate>1236293857500</invoiceDate><invoiceDateString>2009-03-05 22:57:37</invoiceDateString><vendorUniqueID>12345</vendorUniqueID><addressUniqueID>3</addressUniqueID></com.chromeriver.servlet.InvoiceTO><com.chromeriver.servlet.InvoiceTO><invoiceID>010000008490</invoiceID><invoiceNumber>0003698602987777</invoiceNumber><invoiceDate>1236293857500</invoiceDate><invoiceDateString>2009-03-05 22:57:37</invoiceDateString><vendorUniqueID>12345</vendorUniqueID><addressUniqueID>3</addressUniqueID></com.chromeriver.servlet.VoucherInvoiceTO>...</list>or<list/>

Error XML

<?xml version="1.0" encoding="utf-8"?><><errorMessage> </errorMessage></>

Data Element Notes

  • invoiceID: Invoice ID
  • invoiceNumber: Invoice number
  • invoiceDate: Invoice Date formatted in seconds since 1970
  • invoiceDateString: Invoice Date
  • vendorUniqueID: Vendor Unique ID
  • addressUniqueID: Vendor Address Unique ID


This method returns a PDF file of all of the images and/or invoice PDF reports associated with an invoice. Each call generates a single PDF file that is named with the Invoice ID. PDF reports will be appended to the image file.

Required POST Arguments

invoiceID Invoice ID

Optional POST Arguments

Argument Action Possible Values Default Value
getImage Returns the invoice image true/false true
getPDFReport Returns the Full PDF report true/false false
imageFirst Returns the invoice image before the Full PDF report true/false true


  • If successful, the API will return the consolidated image and/or PDF file.
  • If an error occurs, the API will return XML with error information.

Note: There is no date limit as to when this call can be made.

Decision-Making and Returned Messages in Detail

  • If no invoice exists for the given invoice ID, the message will be: “No invoice record exists for this request.”
  • If both the image PDF and JPG are available, the jpgs will be retrieved; if no JPGs are available the PDF will be retrieved.
  • If “getPDFReport” is selected, the original PDF will be retrieved first, if available.
  • If this invoice does not have any attached images, the message will be: “There are no images associated with this invoice.”

Was this article helpful?