Skip to main content

Send an invoice (UBL or CII)

POST 

/invoices

Uploads an invoice 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. The document is validated and transmitted to the network within the request: on success it answers 201 with the invoice 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 invoice ACQUIRED, and it becomes SUBMITTED once the network confirms it has been sent, which is reported via the invoice.outbound webhook. Returns 409 when the legal entity the document is addressed from is not onboarded yet.

Request

Responses

Invoice resource created