Skip to main content

Credit Notes

Resource 'Credit Notes' operations.

📄️Send a credit note (UBL, CII or Factur-X)

Uploads a credit note file to A-Cube. Accepts UBL 2.1 or UN/CEFACT CII XML documents; the syntax is detected automatically from the payload, or upload a Factur-X PDF as a `multipart/form-data` request with the file in the `file` field, A Factur-X PDF is validated as a whole (PDF/A-3 container and embedded XML). For CII and Factur-X the document must carry a credit note type code (BT-3, e.g. 381). Send the `X-Referenced-Invoice-Uuid` header to link the credit note to one of your invoices. The document is validated and transmitted to the network within the request: on success it answers 201 with the credit note already `SUBMITTED`, and a transmission failure is reported as an error, with nothing stored. Send the `X-Send-Async` header to queue the transmission instead: the response is then 202 with the credit note `ACQUIRED`, and it becomes `SUBMITTED` once the network confirms it has been sent, which is reported via the `credit_note.outbound` webhook. Returns 409 when the legal entity the document is addressed from is not onboarded yet.