Create multiple credit notes from a JSON/XML/CSV representation of credit note(s)

Rights

  • INVOICE_WRITE

Rules

  • With application/json, each entry of creditNotes follows the same structure as in Create a single credit note
  • With multipart/form-data, each part of files must be an XML file containing one UBL credit note (Peppol BIS Billing 3.0). FinologeeBKO stores the UBL content of each part
  • The request is all or nothing: FinologeeBKO validates every credit note first, and when one credit note 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 credit note moves to SENT or ERROR independently of the others
  • Use invoiceNumber to map each id of the response to its source credit note

Errors

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

Related

Query Params
string
required

A file identifier used to group the credit notes

Body Params

Creates a batch of credit notes request

creditNotes
array of objects
creditNotes
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