Credit notes

Send electronic credit notes through the Peppol network, and read their status, UBL file and delivery receipt in FinologeeBKO.

A credit note is an electronic document that corrects or adjusts a previously issued invoice, in the UBL format of the Peppol BIS Billing 3.0 specification. An integration uses the Credit notes endpoints to send credit notes from an external system (ERP, billing or accounting tool) to their recipients through the FinologeeBKO Peppol access point: it submits one credit note or a batch of credit notes, follows their delivery status, and downloads the UBL file and the delivery receipt of each credit note.

Credit notes behave like invoices, with their own endpoints: see Invoices. Credit notes sent from the FinologeeBKO interface, FinologeeDRIVE or SFTP, and credit notes received from the Peppol network, are stored in the same list as the credit notes sent through this API.

Key concepts

  • Credit note number: invoiceNumber is the credit note number chosen by the seller (cbc:ID in UBL)
  • Document type: the Credit notes endpoints handle UBL credit notes only. The id of an invoice returns 404 on these endpoints
  • Peppol routing: FinologeeBKO sends each credit note 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 credit note 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 credit notes. Delivery through the Peppol network happens afterwards; follow it with invoiceStatus
  • Scope: the invoice rights have no scope. An API user with INVOICE_READ reads all credit notes 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 credit note:

StatusMeaningHow it is reached
RECEIVEDFor a credit note that FinologeeBKO sends: FinologeeBKO has validated and stored the credit note, and delivery through the Peppol network is in progress. For a credit note received from the Peppol network: FinologeeBKO has received itCreation of the credit note, or reception from the Peppol network
SENTThe FinologeeBKO Peppol access point has delivered the credit note. 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 credit noteThird failed delivery attempt: after a failure, FinologeeBKO sends the credit note again up to two times, 30 seconds apart

SENT and ERROR are final statuses.

Rights

RightWhat it allows in this section
INVOICE_READSearch and read credit notes, and download their UBL file and delivery receipt
INVOICE_WRITECreate and send credit notes, one by one or by batch

The same rights cover invoices and credit notes. See Permissions for how rights are assigned to users.

Typical integration flows

Send a credit note and keep its proof of delivery

  1. Call Create a single credit note with the credit note 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 credit note information by id until invoiceStatus is SENT or ERROR
  3. For a credit note in status SENT, call Get credit note receipt by id and Get credit note UBL representation by id to archive the receipt and the delivered document

Send a batch of credit notes

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

Find a credit note by its number

  1. Call Search credit notes with invoiceNumber
  2. Use the returned id to read the credit note, its UBL file or its receipt

Related documentation

  • Invoices: invoice and credit note features of the FinologeeBKO interface, Peppol and supported formats
  • FinologeeDRIVE: sending and receiving documents as files
  • API: access to the Invoicing API and its OpenAPI file
  • Permissions