Send a credit note (UBL or CII)
POST/credit-notes
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. Support for Factur-X will be added in the near future. 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.
Request
Responses
- 201
- 400
- 422
CreditNote resource created
Invalid input
An error occurred