Send electronic invoices through the Peppol network, and read their status, UBL file and delivery receipt in FinologeeBKO.
An invoice is an electronic invoice in the UBL format of the Peppol BIS Billing 3.0 specification. An integration uses the Invoices endpoints to send invoices from an external system (ERP, billing or accounting tool) to their recipients through the FinologeeBKO Peppol access point: it submits one invoice or a batch of invoices, follows their delivery status, and downloads the UBL file and the delivery receipt of each invoice.
Credit notes, which correct or adjust previously issued invoices, have their own endpoints with the same behaviour: see Credit notes. Invoices sent from the FinologeeBKO interface, FinologeeDRIVE or SFTP, and invoices received from the Peppol network, are stored in the same list as the invoices sent through this API.
Key concepts
- Invoice number:
invoiceNumberis the invoice number chosen by the seller (cbc:IDin UBL) - Document type: the Invoices endpoints handle UBL invoices only. The
idof a credit note returns404on these endpoints - Peppol routing: FinologeeBKO sends each invoice from the Peppol participant in
accountingSupplierParty.party.endpointIDto the Peppol participant inaccountingCustomerParty.party.endpointID. Each identifier combines a scheme (schemeId) and a value - Validation: FinologeeBKO validates every invoice against the UBL schema, then against the Peppol BIS Billing 3.0 validation rules, which include the EN 16931 business rules. The rules on parties, amounts, VAT and currencies come from these Peppol rules
- Asynchronous delivery: the create endpoints return once FinologeeBKO has validated and stored the invoices. Delivery through the Peppol network happens afterwards; follow it with
invoiceStatus - Direction:
directionisSENTfor invoices that FinologeeBKO sends andRECEIVEDfor invoices that FinologeeBKO receives from the Peppol network - Scope: the invoice rights have no scope. An API user with
INVOICE_READreads all invoices of the tenant, whatever the channel that created them - Activation: no tenant feature flag controls the invoicing endpoints; the rights
INVOICE_READandINVOICE_WRITEdo. Finologee sets up the Peppol access point configuration of the tenant
Lifecycle and statuses
invoiceStatus follows the delivery of the invoice:
| Status | Meaning | How it is reached |
|---|---|---|
RECEIVED | For direction SENT: FinologeeBKO has validated and stored the invoice, and delivery through the Peppol network is in progress. For direction RECEIVED: FinologeeBKO has received the invoice from the Peppol network | Creation of the invoice, or reception from the Peppol network |
SENT | The FinologeeBKO Peppol access point has delivered the invoice. sentDate holds the delivery time, and the delivery receipt is available | Delivery confirmation from the Peppol access point |
ERROR | Delivery failed. FinologeeBKO no longer tries to send the invoice | Third failed delivery attempt: after a failure, FinologeeBKO sends the invoice again up to two times, 30 seconds apart |
SENT and ERROR are final statuses.
paymentStatus is NOT_PAID when FinologeeBKO creates the invoice. Users can mark an invoice in status SENT as PAID in the FinologeeBKO interface.
Rights
| Right | What it allows in this section |
|---|---|
INVOICE_READ | Search and read invoices, and download their UBL file and delivery receipt |
INVOICE_WRITE | Create and send invoices, one by one or by batch |
See Permissions for how rights are assigned to users.
Typical integration flows
Send an invoice and keep its proof of delivery
- Call Create a single invoice with the invoice as JSON. FinologeeBKO validates it, converts it to UBL and returns its
id. On a validation error, FinologeeBKO creates nothing and returns the errors - Call Get invoice information by id until
invoiceStatusisSENTorERROR - For an invoice in status
SENT, call Get invoice receipt by id and Get invoice UBL representation by id to archive the receipt and the delivered document
Send a batch of invoices
- Call Create multiple invoices with a JSON list of invoices, or with UBL XML files as multipart parts, and a
fileReference - FinologeeBKO validates all invoices first. When one invoice is invalid, FinologeeBKO creates none of them and returns the errors of every invalid invoice
- Use the
idof each created invoice to follow its delivery, as in the previous flow
Find an invoice by its number
- Call Search invoices with
invoiceNumber - Use the returned
idto read the invoice, its UBL file or its receipt
Related documentation
- Invoices: invoice features of the FinologeeBKO interface, Peppol and supported formats
- FinologeeDRIVE: sending and receiving invoices as files
- API: access to the Invoicing API and its OpenAPI file
- Permissions

