Skip to content

Settlement note XML reference

A settlement note can carry an XML file next to its PDF. This page describes that file for the two products that have one, Invoice factoring sell and Invoice service, so that you can read it in an integration. For how to find and download the file, see Fetch reports and files through the API. For what the settlement notes are and who receives them, see Reports and files Quiddly sends.

  • The client’s settlement note formats include XML. In the Operations Portal this is the picker Choose format for Client Report “Invoice/Factoring Settlement Note” on the client’s Reports tab. In the API it is the client document setting generateXml.
  • Quiddly generates the XML in the background when it generates the settlement note. It is a document of the same report as the PDF. Look for the document with type SETTLEMENT_SPECIFICATION_XML on a factoring settlement note, and SETTLEMENT_INVOICE_SERVICE_XML on an invoice settlement note.
  • Business loan and overdrawn settlement notes have no XML.

Elements without a value are left out of the file, so do not expect every element in every row.

When the setting USE_LEGACY_XML_SETTLEMENT_NOTES is on, either for the whole system or for the client, Quiddly generates the legacy format instead, and only for factoring settlement notes. An invoice service settlement note then gets no XML. Contact Quiddly support to change the setting.

The legacy file has the root PaymentSpecification with one Entry. It is a report of its own, of type FACTORING_SETTLEMENT_NOTE_XML. In it, CustNo and CustName hold the identification number and the name of the service provider (the instance provider), not of the client or the debtor. This is by design. The client is identified by the account number in Reference, which holds the id of the client account.

The rest of this page describes the format that is used when the setting is off.

The root is FactoringSettlementNote, with these sections.

ElementHolds
ReportNumberThe id of the transaction report
ClientID, ClientName, VATNumberThe client
AccountNumberThe id of the client account
TransactionDateThe transaction date of the report
ProductInvoice Factoring Sell
CurrencyThe currency code of the client account
DocumentThe id of the settlement note document
PayoutIDsThe payout ids of the note, separated by a comma and a space
ElementHolds
InvoiceTotal, NumberOfInvoicesThe financed amount and the number of invoices in the Invoices section
CreditFee, AdminFeeThe financing fees and the administration fees of those invoices
VATFeeThe VAT on the fees
OtherFeeThe amounts of the Other section and the Recourse section
TotalToPayoutThe amount to pay out

Invoices has one Invoice element for each financed invoice, with the invoice number, type, payment reference, customer, due date, finance date, recourse flag, amounts, fees, exchange rate and TotalToPayout.

Recourse has one RecourseTransaction for each invoice that was repurchased from Quiddly, with its date, invoice number, reference, customer, InvoiceTotal and RecoursedTotal.

Other has one Transaction for everything else on the note. Its elements are Date, Type, the invoice number, type and reference and the customer when the transaction belongs to an invoice, Description, Quantity, OriginalAmount, VAT, Total, IsBalancingTransaction and Recourse.

The root is ServiceSettlementNote. DocumentInformation has the same elements as above, except that the element holding the document id is DocumentID, and Product is Invoice Service.

SectionHolds
SummaryPayments, VAT (with a label attribute that names the VAT percentages), Fees, Other and TotalToPayout
PaymentsOne Payment for each debtor payment that the note settles, with date, invoice, reference, customer and Amount
FeesOne Fee for each fee article, with Type (the article code), Description, Quantity, ExclVAT, VAT and Total
OtherOne Transaction for everything else, with the same elements as in the factoring note, except that it has Amount and no Quantity, OriginalAmount or VAT

Type is one of three things, and the note does not mark which:

  • A client account transaction type, for a transaction on the client account such as a payout, a transfer between accounts, a write-off, a direct payment or an unplaced payment. The value is the name of the transaction type, for example CLIENT_PAYOUT, MANUAL_TRANSFER, BALANCING_TRANSFER, INVOICE_SOLD_DIRECT_PAYMENT, INVOICE_SOLD_CAPITAL_WRITEOFF or UNPLACED_ACCOUNT_PAYMENT.
  • A fee article code, for a fee that the note bills to the client and that is not part of an invoice row in the Invoices section. A custom fee has a code that starts with CUSTOM_FEE. This applies to the factoring note. In the service note the fees are in Fees, with the article code as Type there.
  • A debtor payment type, in the factoring note only, for the parts of a payment batch (for example INVOICE_PAYMENT, or a payment tolerance or cash discount). The service note lists debtor payments in Payments instead.

In the factoring note, a transaction with a total of zero is left out. The XML always shows a balancing transaction as one row with IsBalancingTransaction set to true, and not broken down into the transactions behind it as the PDF can be. The same event can also appear in other documents, for example the activity report.