Create multiple invoices from a JSON/XML/CSV representation of invoice(s)

Purpose

Use it to submit a billing run from an external system.

Rights

  • INVOICE_WRITE

Rules

  • With application/json, each entry of invoices follows the same structure as in Create a single invoice
  • With multipart/form-data, each part of files contains one UBL invoice as XML (Peppol BIS Billing 3.0). FinologeeBKO stores the UBL content of each part
  • The request is all or nothing: FinologeeBKO validates every invoice first, and when one invoice is invalid, it creates none of them
  • Only errors of the validation block the creation; warnings of the Peppol rules do not

Effects

  • After the response, each invoice moves to SENT or ERROR independently of the others
  • Use invoiceNumber to map each id of the response to its source invoice

Errors

StatusWhen
400At least one invoice fails schema or Peppol validation. The body lists, in invoices, every invalid invoice with its invoice number in invoiceId and one message per error in errors
400A part of files is not detected as one of the accepted file types
403The API user does not have INVOICE_WRITE

Related

Query Params
string
required

A file identifier used to group the invoices

Body Params

Creates a batch of invoices request

invoices
array of objects
invoices
Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json