How can I receive XML invoices in the Spend Cloud?

How can I receive XML invoices in the Spend Cloud?

The (design) objective of XML is simplicity, uniformity and usability. In order for these invoices to be read by all computers worldwide, certain rules have been laid down on how an XML invoice must be constructed. This set of standard rules structure is called UBL. The most common form of UBL is UBL 2.0. For example, if a supplier who sends an XML invoice uses UBL 2.0, we know that the invoice date is always at the top. This has allowed us to create a standard mapping in the Spend Cloud where we say:


The first line of an XML invoice is always the invoice date, put this value in the 'invoice date' field during encoding.

Because we have this standard mapping in Spend Cloud (plus several exceptions), it will go well nine out of ten times when you receive an XML invoice from a supplier for the first time. Read more about XML mapping here. If the supplier sends an XML invoice in an unknown format, you will receive an error message when transferring it to Encoding. When this is the case, it is best to contact our Support department. They can help you set up the correct XML mapping.

Receive XML invoices in the Spend Cloud

Receiving XML invoices is the same as receiving PDF invoices. The XML invoices are sent to the Spend Cloud Mailbox. From here you can either transfer the invoices manually to Encoding or through quick processing.


We recommend asking the creditor to send both the XML invoice and the PDF invoice in the same email. We can then use the PDF to visualise the invoice. To do this the filenames of these documents must be the same, for example:

  • Invoice_123456.PDF

  • Invoice_123456.XML

The XML and PDF attachments have the exact the same. Because of this, the Spend Cloud knows that these files belong together and automatically marks the PDF as a digital reproduction from the XML invoice

The XML and PDF attachments do not have the same name. Because of this, the Spend Cloud does not know these files belong together and will mark both files as a new invoice


There is also the possibility that the supplier has embedded the PDF invoice in the XML file as a long (Base64) code. This method is also supported by the Spend Cloud. In this case, it is no longer necessary to send the PDF invoice as an additional attachment in the email.
In this example there is a PDF file embedded in the XML file. Because of this it is not neccessary to add an extra PDF file for the invoice. If this is removed from the e-mail by the supplier, future emails can be processed automatically


    • Related Articles

    • XML-invoice field layout

      Introduction In another article, Digital invoice processing in combination with XML invoices, we describe the benefits of receiving and processing XML invoices. To read an XML invoice, you need an existing XML invoice field layout, known as mappings. ...
    • Everything you need to know about XML-Invoices

      Why process XML invoices? Our goal is to have users spend as little time as possible in the Spend Cloud. The software should do as much as possible automatically, so that our users can focus on other important tasks. Digital invoice processing helps ...
    • Default conditions for UBL in the Spend Cloud

      This technical information can be used by your accounting package's developer/application manager. This is how the Spend Cloud reads UBL invoices and processes the values. Curious how you can create your own unique XML field layout (mapping)? Read ...
    • Optimizing the mailbox

      By adjusting a few settings in the Mailbox, you can streamline the invoice processing workflow. This optimisation reduces the number of manual steps required. As a result, the Mailbox will no longer need to forward messages in bulk at fixed times, ...
    • Managing the mailbox

      The Inbox contains all emails that have been sent to the Spend Cloud Mailbox email address. By having suppliers send invoices to this email address, all invoices are consolidated in one place. From application management, you have the ability to ...