Invoices

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: invoiceNumber is the invoice number chosen by the seller (cbc:ID in UBL)
  • Document type: the Invoices endpoints handle UBL invoices only. The id of a credit note returns 404 on these endpoints
  • Peppol routing: FinologeeBKO sends each invoice from the Peppol participant in accountingSupplierParty.party.endpointID to the Peppol participant in accountingCustomerParty.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: direction is SENT for invoices that FinologeeBKO sends and RECEIVED for invoices that FinologeeBKO receives from the Peppol network
  • Scope: the invoice rights have no scope. An API user with INVOICE_READ reads all invoices of the tenant, whatever the channel that created them
  • Activation: no tenant feature flag controls the invoicing endpoints; the rights INVOICE_READ and INVOICE_WRITE do. Finologee sets up the Peppol access point configuration of the tenant

Lifecycle and statuses

invoiceStatus follows the delivery of the invoice:

StatusMeaningHow it is reached
RECEIVEDFor 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 networkCreation of the invoice, or reception from the Peppol network
SENTThe FinologeeBKO Peppol access point has delivered the invoice. sentDate holds the delivery time, and the delivery receipt is availableDelivery confirmation from the Peppol access point
ERRORDelivery failed. FinologeeBKO no longer tries to send the invoiceThird 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

RightWhat it allows in this section
INVOICE_READSearch and read invoices, and download their UBL file and delivery receipt
INVOICE_WRITECreate 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

  1. 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
  2. Call Get invoice information by id until invoiceStatus is SENT or ERROR
  3. 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

  1. Call Create multiple invoices with a JSON list of invoices, or with UBL XML files as multipart parts, and a fileReference
  2. FinologeeBKO validates all invoices first. When one invoice is invalid, FinologeeBKO creates none of them and returns the errors of every invalid invoice
  3. Use the id of each created invoice to follow its delivery, as in the previous flow

Find an invoice by its number

  1. Call Search invoices with invoiceNumber
  2. Use the returned id to 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